-
Notifications
You must be signed in to change notification settings - Fork 423
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 --ca-cert flag to the vcluster platform add vcluster, so it can b… #2046
add --ca-cert flag to the vcluster platform add vcluster, so it can b… #2046
Conversation
…e used by passing .additionalCA from platform config
✅ Deploy Preview for vcluster-docs canceled.Built without sensitive environment variables
|
bd17fd5
to
87054a4
Compare
87054a4
to
1f55f06
Compare
@@ -380,7 +380,7 @@ func (cmd *createHelm) addVCluster(ctx context.Context, vClusterConfig *config.C | |||
return nil | |||
} | |||
|
|||
err = platform.ApplyPlatformSecret(ctx, cmd.LoadedConfig(cmd.log), cmd.kubeClient, "", cmd.Namespace, cmd.Project, "", "", false) | |||
err = platform.ApplyPlatformSecret(ctx, cmd.LoadedConfig(cmd.log), cmd.kubeClient, "", cmd.Namespace, cmd.Project, "", "", false, cmd.LoadedConfig(cmd.log).Platform.CertificateAuthorityData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this come from the flag? Why is this read from the config, while the other options are read from the flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what's the preferred way to do this here.
I can change it for a flag, which will mean that vcluster create vcluster
with driver helm
will get a new flag. Do you think this should be a desired behavior?
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
[v0.20] add --ca-cert flag to the vcluster platform add vcluster, so it can b… (#2046)
…e used by passing .additionalCA from platform config
What issue type does this pull request address? (keep at least one, remove the others)
/kind enhancement
What does this pull request do? Which issues does it resolve? (use
resolves #<issue_number>
if possible)part of ENG-4224
Please provide a short message that should be published in the vcluster release notes
adds --ca-cert flag and adds
certificate-authority-data
to the platform secret to enable secure connection between platform and vcluster. Overall behavior is described in this PRWhat else do we need to know?