Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Use the kubernetes.io/cluster/${cluster-id} tag to retrieve AWS Resources #1

Open
raelga opened this issue May 29, 2020 · 0 comments
Open
Assignees
Labels
kind/enhancement New feature or request priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple sprints to complete. size/XL Requires about a week to complete the PR or the issue.

Comments

@raelga
Copy link
Contributor

raelga commented May 29, 2020

Is your feature request related to a problem? Please describe.

The best approach to select resources related to a Kubernetes object generated by the AWS provider controller, is to use the tags kubernetes.io/.... populated by the controller on creation.

Describe the solution you'd like

Be able to use the kubernetes.io/cluster/${cluster-id} tag to retrieve AWS Resources once the information is available in the Kubernetes API.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context

...
func UpdateLoadBalancer(clusterIDTagKey string, serviceNameTagValue string, ...) (bool, error) {
...
tags := map[string]string{
   "kubernetes.io/service-name":   serviceNameTagValue,
    fmt.Sprintf("kubernetes.io/cluster/%s", clusterIDTagKey): "owned",
}

Not supported yet by Kubernetes, seems to be generated by the AWS provider code.

@raelga raelga added kind/enhancement New feature or request priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple sprints to complete. size/XL Requires about a week to complete the PR or the issue. labels May 29, 2020
@raelga raelga self-assigned this May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New feature or request priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple sprints to complete. size/XL Requires about a week to complete the PR or the issue.
Projects
None yet
Development

No branches or pull requests

1 participant