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

Use "<cluster name>:<addon name>" for Addon.eks external-name annotation #8

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Nov 29, 2023

Description of your changes

Fixes #7

This PR adds a patch statement for the Addon.eks composed resource, which sets its external-name annotation to <EKS cluster name>:aws-ebs-csi-driver. Initially, the external-name is just aws-ebs-csi-driver, as it was previously and once the status.eks.clusterName is available at the xeks XR, it's patched with the specified syntax.

If there's a way in compositions to directly patch from the spec of the composed resource, or directly from one composed (Cluster.eks) to another (Addon.eks), I think we had better use it. Currently, the data flow for the proposed change is Cluster.eke MR -> xeks XR -> Addon.eks.

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

Via uptest: https://github.com/upbound/configuration-aws-eks/actions/runs/7037818700

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
@ulucinar ulucinar marked this pull request as draft November 29, 2023 19:50
@ulucinar
Copy link
Collaborator Author

/test-examples

1 similar comment
@ulucinar
Copy link
Collaborator Author

/test-examples

@ulucinar ulucinar marked this pull request as ready for review November 29, 2023 20:42
@ulucinar ulucinar requested a review from haarchri December 1, 2023 07:51
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@haarchri haarchri merged commit cb1e4b3 into upbound:main Dec 1, 2023
@ulucinar ulucinar deleted the fix-addon-extname branch December 4, 2023 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race on metadata.annotations["crossplane.io/external-name"] of Addon.eks MR
2 participants