installer: kubernetes.io/cluster/CLUSTER_NAME tag missing from EIPs, NAT GWs, S3 buckets and R53 zones
Version
$ openshift-install version
./bin/openshift-install v0.1.0
Terraform v0.11.8
Platform (aws|libvirt|openshift):
aws
What happened?
After installation, I see some objects are tagged with kubernetes.io/cluster/CLUSTER_NAME and some aren’t. Specifically, I’ve noticed that EIPs, NAT Gateways, S3 buckets, and Route53 zones are missing the above tag.
What you expected to happen?
I expect the tags applied to objects during installation to be consistent.
How to reproduce it (as minimally and precisely as possible)?
1) install a cluster as documented
2) query the tags on any of the EIPs, NAT Gateways, S3 buckets, and Route53 zones that were created during installation.
For example: aws ec2 describe-nat-gateways --region us-east-1 --nat-gateway-ids nat-00f483ee692b50d54 | jq -r '.NatGateways[0].Tags'
[
{
"Key": "tectonicClusterID",
"Value": "17993b0f-7370-4ee1-9e28-209db9a321d9"
}
]
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 35 (28 by maintainers)
Commits related to this issue
- pkg/types/installconfig: Add an (*InstallConfig).Tags() helper AWS resources created by the cluster (e.g. some elastic load-balancers) are currently missing the tectonicClusterID tag [1], which makes... — committed to wking/openshift-installer by wking 8 years ago
- pkg/asset/cluster: tectonicClusterID or kubernetes.io/cluster/<name> deletion We're having trouble getting our resources tagged consistently, with elastic IPs, NAT gateways, etc. missing kubernetes.i... — committed to wking/openshift-installer by wking 8 years ago
- Merge pull request #573 from abhinavdahiya/mp_to_ms add an API for machinepool -> machinesets — committed to openshift/installer by openshift-merge-robot 8 years ago
They need to be simultaneous, in case a resource tagged one way blocks deletion of a resource tagged the other way. You could do that with goroutines here, but I prefer openshift/hive#47, because it allows for future optimization (the
filterObjectsresources could handle both AND and OR in a single goroutine).@wking who could we talk to that could shed some light on the appropriateness of adding the kubernetes.io/cluster/CLUSTER_X tag to objects not intended for kubernetes usage.
really, what i’m looking for is “one true tag” so that i could search and see everything in AWS related to CLUSTER_X.