Skip to content

Commit 17cf9e1

Browse files
Matthew Fishermboersma
authored andcommitted
ref(k8s): rename name label to app, introduce heritage label
reflects conventions used in our helm charts
1 parent 959b7cc commit 17cf9e1

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

rootfs/scheduler/k8s.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,25 @@
4141
"metadata": {
4242
"name": "$name",
4343
"labels": {
44-
"name": "$id"
44+
"app": "$id",
45+
"heritage": "deis"
4546
}
4647
},
4748
"spec": {
4849
"replicas": $num,
4950
"selector": {
50-
"name": "$id",
51+
"app": "$id",
5152
"version": "$appversion",
52-
"type": "$type"
53+
"type": "$type",
54+
"heritage": "deis"
5355
},
5456
"template": {
5557
"metadata": {
5658
"labels": {
57-
"name": "$id",
59+
"app": "$id",
5860
"version": "$appversion",
59-
"type": "$type"
61+
"type": "$type",
62+
"heritage": "deis"
6063
}
6164
},
6265
"spec": {
@@ -79,7 +82,7 @@
7982
"metadata": {
8083
"name": "$name",
8184
"labels": {
82-
"name": "$label"
85+
"app": "$label"
8386
}
8487
},
8588
"spec": {
@@ -91,8 +94,9 @@
9194
}
9295
],
9396
"selector": {
94-
"name": "$label",
95-
"type": "$type"
97+
"app": "$label",
98+
"type": "$type",
99+
"heritage": "deis"
96100
}
97101
}
98102
}

0 commit comments

Comments
 (0)