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

Commit

Permalink
Merge pull request #1612 from HotelsDotCom/v0.13.x
Browse files Browse the repository at this point in the history
Tag instances with their etcd or kubernetes version
  • Loading branch information
davidmccormick authored May 31, 2019
2 parents 15cfc3f + 50e7fad commit cd86e8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/files/stack-templates/etcd.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@
"PropagateAtLaunch": "true",
"Value": "owned"
},
{
"Key": "kube-aws:etcd_version",
"PropagateAtLaunch": "true",
"Value": "{{ $.Etcd.Version }}"
},
{
"Key": "Name",
"PropagateAtLaunch": "true",
Expand Down
2 changes: 2 additions & 0 deletions pkg/model/stack_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func NewControlPlaneStack(conf *Config, opts api.StackTemplateOptions, extras cl
conf.StackTags = make(map[string]string, 1)
}
conf.StackTags["kube-aws:version"] = VERSION
conf.StackTags["kube-aws:kubernetes_version"] = conf.K8sVer

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

for k, v := range extraWorker.NodeLabels {
npconf.NodeSettings.NodeLabels[k] = v
Expand Down

0 comments on commit cd86e8f

Please sign in to comment.