Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 652ba2f

Browse files
Merge pull request #1613 from HotelsDotCom/v0.14.x
Tag instances with their etcd or kubernetes version
2 parents 5b019e0 + ca18b52 commit 652ba2f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

builtin/files/stack-templates/etcd.json.tmpl

+5
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@
333333
"PropagateAtLaunch": "true",
334334
"Value": "owned"
335335
},
336+
{
337+
"Key": "kube-aws:etcd_version",
338+
"PropagateAtLaunch": "true",
339+
"Value": "{{ $.Etcd.Version }}"
340+
},
336341
{
337342
"Key": "Name",
338343
"PropagateAtLaunch": "true",

pkg/model/stack_new.go

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func NewControlPlaneStack(conf *Config, opts api.StackTemplateOptions, extras cl
108108
conf.StackTags = make(map[string]string, 1)
109109
}
110110
conf.StackTags["kube-aws:version"] = VERSION
111+
conf.StackTags["kube-aws:kubernetes_version"] = conf.K8sVer
111112

112113
stack.archivedFiles = extraController.ArchivedFiles
113114
stack.CfnInitConfigSets = extraController.CfnInitConfigSets
@@ -262,6 +263,7 @@ func NewWorkerStack(conf *Config, npconf *NodePoolConfig, opts api.StackTemplate
262263
npconf.StackTags = make(map[string]string, 1)
263264
}
264265
npconf.StackTags["kube-aws:version"] = VERSION
266+
conf.StackTags["kube-aws:kubernetes_version"] = conf.K8sVer
265267

266268
for k, v := range extraWorker.NodeLabels {
267269
npconf.NodeSettings.NodeLabels[k] = v

0 commit comments

Comments
 (0)