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
helm mode: add additional deprecated secret logic, and fix clustermesh connect
for helm mode
#1551
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asauber
force-pushed
the
pr/asauber/clustermesh-secretname
branch
from
April 27, 2023 15:38
b8c8fa1
to
380b63d
Compare
asauber
changed the title
helm mode: add additional deprecated secret logic
helm mode: add additional deprecated secret logic, and fix "clustermesh connect" for helm mode
May 2, 2023
asauber
changed the title
helm mode: add additional deprecated secret logic, and fix "clustermesh connect" for helm mode
helm mode: add additional deprecated secret logic, and fix May 2, 2023
clustermesh connect
for helm mode
michi-covalent
approved these changes
May 2, 2023
@joamaki ping! |
How do we trigger the required test |
Previously, we had logic to look for deprecated names like clustermesh-apiserver-client-certs when clustermesh-apiserver-client-cert was expected. With helm-based installations, we now need to also look for clustermesh-apiserver-client-cert when clustermesh-apiserver-remote-cert is expected, and do this recursively. Signed-off-by: Andrew Sauber <andrew.sauber@isovalent.com>
asauber
force-pushed
the
pr/asauber/clustermesh-secretname
branch
from
May 5, 2023 22:09
380b63d
to
127d6f9
Compare
@joestringer That workflow was merged since this PR was opened. I'll try a rebase. |
YutaroHayakawa
approved these changes
May 8, 2023
maintainer-s-little-helper
bot
added
the
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
label
May 8, 2023
asauber
added a commit
that referenced
this pull request
May 31, 2023
As of #1551, the clustermesh connect subcommand looks for all three possible names for the clustermesh-apiserver client certificate in the local cluster. This removes the logic needed by the GKE-based CI workflow prior to that change. Signed-off-by: Andrew Sauber <andrew.sauber@isovalent.com>
tklauser
pushed a commit
that referenced
this pull request
Jun 1, 2023
As of #1551, the clustermesh connect subcommand looks for all three possible names for the clustermesh-apiserver client certificate in the local cluster. This removes the logic needed by the GKE-based CI workflow prior to that change. Signed-off-by: Andrew Sauber <andrew.sauber@isovalent.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Previously, we had logic to look for deprecated names like
clustermesh-apiserver-client-certs
whenclustermesh-apiserver-client-cert
was expected. With helm-based installations, we now need to look forclustermesh-apiserver-client-cert
whenclustermesh-apiserver-remote-cert
is expected.Implementation
This implements that concpet recursively, looking for the "even more deprecated" name for secrets if applicable.
Example Runs
Two example runs that exercise the logic:
Using one level of deprecated names to find the secret
Using two levels of deprecated names to find the secret