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

Prevent aws-vpc-operator from overwriting the Name tag #1866

Closed
AverageMarcus opened this issue Jan 16, 2023 · 5 comments
Closed

Prevent aws-vpc-operator from overwriting the Name tag #1866

AverageMarcus opened this issue Jan 16, 2023 · 5 comments
Assignees
Labels
area/kaas Mission: Cloud Native Platform - Self-driving Kubernetes as a Service kind/task provider/cluster-api-aws Cluster API based running on AWS topic/capi

Comments

@AverageMarcus
Copy link
Member

AverageMarcus commented Jan 16, 2023

Update to check if the Name tag is user-provided and only if not should it be added by the operator.

See: https://github.com/giantswarm/aws-vpc-operator/blob/2d2dd267410a7837bf6c2b9d86aaa5d096bebf53/pkg/aws/subnets/reconciler.go#L70

@AverageMarcus
Copy link
Member Author

Note: CAPA has this same behaviour (overwriting the Name) and I'm going to discuss with upstream if it's required or not.

@alex-dabija alex-dabija added area/kaas Mission: Cloud Native Platform - Self-driving Kubernetes as a Service team/hydra topic/capi provider/cluster-api-aws Cluster API based running on AWS kind/task labels Jan 17, 2023
@AverageMarcus
Copy link
Member Author

Upstream issue: kubernetes-sigs/cluster-api-provider-aws#3989

@AverageMarcus
Copy link
Member Author

Note: we attempted the to get around this by manually setting the kubernetes.io/role/internal-elb and kubernetes.io/role/elb tags on each subnet to control which subnets are fetched during the autodiscovery. While this worked and the tags weren't overwritten it seems that the in-tree (and out-of-tree) AWS controller ignores the value of the tag so cannot be used to control which are matched and which are ignored.

The aws-load-balancer-controller which handles ALBs and NLBs does use the value of the tag but doesn't help us with the ingress LoadBalancer.

@AndiDog
Copy link

AndiDog commented Feb 7, 2023

kubernetes-sigs/cluster-api-provider-aws#3991 is merged. We only need to merge into our CAPA fork. Together with #1832, we can release the fix.

@AndiDog
Copy link

AndiDog commented Mar 3, 2023

CAPA change was released via giantswarm/cluster-api-provider-aws-app#154, so we're done with both aws-vpc-operator and CAPA

@AndiDog AndiDog closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kaas Mission: Cloud Native Platform - Self-driving Kubernetes as a Service kind/task provider/cluster-api-aws Cluster API based running on AWS topic/capi
Projects
None yet
Development

No branches or pull requests

3 participants