Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose additionalTags value from CAPA in cluster-aws and cluster-eks #2929

Closed
Tracked by #316 ...
T-Kukawka opened this issue Oct 26, 2023 · 7 comments
Closed
Tracked by #316 ...

Comments

@T-Kukawka
Copy link
Contributor

T-Kukawka commented Oct 26, 2023

Based on the CAPA implementation: kubernetes-sigs/cluster-api-provider-aws#1113

We should be able to expose additionalTags value in our cluster-aws and cluster-eks for tagging the AWS Resources. This feature is highly wanted by customers either for cost tracking or security processes.

Initial implementation should consider the population of the tags during creation of clusters only, however besides CAPI controllers we have to extend population of the tags also within our custom controllers.

@calvix
Copy link

calvix commented Nov 1, 2023

TODO

@calvix
Copy link

calvix commented Nov 1, 2023

S3 buckets for ignition are not tagged in the latest CAPA controller release, I was checking the code and found out that @AndiDog actually implemented it :p wow
kubernetes-sigs/cluster-api-provider-aws#4518

so the last part is blocked by upstream release

@AndiDog
Copy link

AndiDog commented Nov 7, 2023

I'll try to cherry-pick the S3 tagging change into our fork

@calvix
Copy link

calvix commented Nov 8, 2023

unfortunately, the changes in capa-controller only add basic tags

sigs.k8s.io/cluster-api-provider-aws/role: node
sigs.k8s.io/cluster-api-provider-aws/cluster/vac0t: owned

but do not add tags under

 #: kcapa get awscluster vac0t -o yaml  | grep -A 3 spec
spec:
  additionalTags:
    giantswarm.io/cluster: vac0t
    vaclav: vaclavTag

that means customer tags are not applied, this will need to be fixed in the capa controller

@AndiDog
Copy link

AndiDog commented Nov 9, 2023

I'll take care of AdditionalTags – not hard to do.

@AndiDog
Copy link

AndiDog commented Nov 9, 2023

Fixed in kubernetes-sigs/cluster-api-provider-aws#4625 and I'll cherry-pick it immediately into our fork because it's so straightforward and unlikely that the PR content changes.

@alex-dabija alex-dabija moved this from Backlog 📦 to In Progress ⛏️ in Roadmap Nov 13, 2023
@calvix
Copy link

calvix commented Nov 14, 2023

LGTM

@calvix calvix closed this as completed Nov 14, 2023
@github-project-automation github-project-automation bot moved this from In Progress ⛏️ to Done ✅ in Roadmap Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants