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

ci: Make AKS cluster name unique. #1940

Merged
merged 1 commit into from
Aug 7, 2023
Merged

ci: Make AKS cluster name unique. #1940

merged 1 commit into from
Aug 7, 2023

Conversation

eiffel-fl
Copy link
Member

This avoids issues where we try to create an already existing cluster.

This avoids issues where we try to create an already existing cluster.
The max name length should be safe as it would be:
ig-ci-aks-arm64-AzureLinux-32767
Which is 32 characters long, which is far below the 63 characters limitation of
AKS [1].

Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
[1]: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/aks-common-issues-faq#what-naming-restrictions-are-enforced-for-aks-resources-and-parameters-
@mqasimsarfraz
Copy link
Member

The change is looking good. My only concern is how would we ensure there isn't any dangling clusters? Also, do we have a run against citest already?

@eiffel-fl
Copy link
Member Author

My only concern is how would we ensure there isn't any dangling clusters?

The CI step to remove it always executed.
So, no dangling ones.

Also, do we have a run against citest already?

Not for the moment, I will push something.

@eiffel-fl
Copy link
Member Author

I will push something.

I tested and it was OK there.

@mqasimsarfraz
Copy link
Member

My only concern is how would we ensure there isn't any dangling clusters?

The CI step to remove it always executed. So, no dangling ones.

Makes sense. I was also thinking for scenarios if the deletion job itself has issues (downtime from Azure/GH) but perhaps we can check CI resource group in future if that even happens.

Copy link
Member

@mqasimsarfraz mqasimsarfraz left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for it!

@eiffel-fl
Copy link
Member Author

Thank you for the review!

@eiffel-fl eiffel-fl merged commit a9a0450 into main Aug 7, 2023
94 of 95 checks passed
@eiffel-fl eiffel-fl deleted the francis/aks-salt branch August 7, 2023 13:09
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.

None yet

2 participants