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

Add a cluster method Name to get canonical clusterName based on provider #829

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

mikkeloscar
Copy link
Contributor

@mikkeloscar mikkeloscar commented Oct 31, 2024

This adds a cluster method Name() which returns the canonical cluster ID/Name based on the cluster Provider.

This is helpful as for non-EKS we use the full ID as cluster ID e.g. via tags on resources and for EKS we use only LocalID as the ID is not compatible with EKS because of : in the value.

This makes it simpler to template such that both EKS and non-EKS is supported.

@mikkeloscar mikkeloscar added the minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call. label Oct 31, 2024
@mikkeloscar mikkeloscar force-pushed the clusterName-template-func branch 2 times, most recently from e1fa341 to ae70ee3 Compare November 1, 2024 08:57
provisioner/template.go Outdated Show resolved Hide resolved
provisioner/clusterpy.go Outdated Show resolved Hide resolved
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
@mikkeloscar
Copy link
Contributor Author

👍

@mikkeloscar mikkeloscar changed the title Add a template function to get canonical clusterName based on provider Add a cluster method Name to get canonical clusterName based on provider Nov 1, 2024
@linki
Copy link
Member

linki commented Nov 1, 2024

👍

@linki linki merged commit 0a7121e into master Nov 1, 2024
10 checks passed
@linki linki deleted the clusterName-template-func branch November 1, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants