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

fix(capi): secrets type must be cluster.x-k8s.io/secret #96

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

prometherion
Copy link
Member

Closes #92.

@hexchen may I ask you for a review on this? Since it was a straightforward one I tried to implement it on my own, hope you don't mind.

Copy link
Contributor

@hexchen hexchen left a comment

Choose a reason for hiding this comment

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

Looks good to me. Have you tested whether this affects already existing secrets (or specifically, whether it throws an error because it attempts to mutate the type of the secret)?

@prometherion
Copy link
Member Author

Unfortunately, type is immutable, if someone's facing issues (like you) the secrets must be deleted and created back by running v0.8.0

Seems reasonable to me, and deleting secrets is not a big problem since the source of truth are the Kamaji ones, so it's just a matter of replication.

@prometherion prometherion merged commit 70187b6 into clastix:master Apr 26, 2024
3 checks passed
@prometherion prometherion deleted the issues/92 branch April 26, 2024 10:54
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.

kubeconfig secret is created with the wrong type
2 participants