Add slug label in more places

This makes it clearer which deploy/service/pod belong together
This commit is contained in:
James Polley 2018-06-24 23:19:19 +10:00
parent 0231f3ff46
commit 00ddfc00b8

View file

@ -13,7 +13,8 @@ function (slug, sha) {
"kind": "Service", "kind": "Service",
"metadata": { "metadata": {
"labels": { "labels": {
"app": "symposion-app" "app": "symposion-app",
"slug": slug
}, },
"name": app, "name": app,
"namespace": namespace "namespace": namespace
@ -27,7 +28,8 @@ function (slug, sha) {
} }
], ],
"selector": { "selector": {
"app": "symposion-app" "app": "symposion-app",
"slug": slug
}, },
"sessionAffinity": "None", "sessionAffinity": "None",
"type": "ClusterIP" "type": "ClusterIP"
@ -38,7 +40,8 @@ function (slug, sha) {
"kind": "Deployment", "kind": "Deployment",
"metadata": { "metadata": {
"labels": { "labels": {
"app": "symposion-app" "app": "symposion-app",
"slug": slug,
}, },
"name": app, "name": app,
"namespace": namespace "namespace": namespace
@ -48,7 +51,8 @@ function (slug, sha) {
"revisionHistoryLimit": 1, "revisionHistoryLimit": 1,
"selector": { "selector": {
"matchLabels": { "matchLabels": {
"app": "symposion-app" "app": "symposion-app",
"slug": slug
} }
}, },
"strategy": { "strategy": {