-
Notifications
You must be signed in to change notification settings - Fork 208
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 clustermesh enable/disable #1527
Conversation
6c4aa3d
to
1d674a9
Compare
1d674a9
to
cc39c3a
Compare
cc39c3a
to
1ee3fe9
Compare
cilium clustermesh {enable,disable}
using Helmcilium clustermesh {enable,disable}
cilium clustermesh {enable,disable}
1ee3fe9
to
ea0fe4d
Compare
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.
lgtm maybe add some unit tests for ParseVals
Implements a version of `clustermesh enable` and `clustermesh disable` using Helm actions run directly against the cluster Signed-off-by: Andrew Sauber <[email protected]>
Enables a matrix for "classic" and "helm" mode for multicluster tests using GKE. The recently added parameter for "cilium_cli_mode" in the cilium-cli-test-job-chart is used. Signed-off-by: Andrew Sauber <[email protected]>
0e18420
to
a4bb01b
Compare
The new workflow was temporarily enabled on this PR for testing purposes. Logs for a successful run of the modified and new workflow can be found here: (classic) https://github.com/cilium/cilium-cli/actions/runs/4789575696/jobs/8517609808?pr=1527 |
Signed-off-by: Andrew Sauber <[email protected]>
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.
Approved with 1 question.
internal/cli/cmd/clustermesh.go
Outdated
}, | ||
} | ||
|
||
cmd.Flags().StringVar(¶ms.ServiceType, "service-type", "LoadBalancer", "Type of Kubernetes service to expose control plane { ClusterIP | LoadBalancer | NodePort }") |
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.
This changes the default value from the old behavior. Did you have any reason you wanted to change the default?
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 believe I chose LoadBalancer
here, because some version of the clustermesh setup docs (which I can't seem to find at the moment), specified --service-type NodePort
, as though LoadBalancer was the default.
The default does appear to be NodePort
https://github.com/cilium/cilium/blob/main/install/kubernetes/cilium/values.yaml#L2385
I'll change this to NodePort
.
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.
Thanks for your consideration. I would also like to know which of the cilium-cli and Helm defaults we should preserve. I don't know the overall direction of this work, but if we use the old cilium-cli default, the default is an empty string, and cilium-cli does auto-detection depending on the environment (https://github.com/cilium/cilium-cli/blob/main/clustermesh/clustermesh.go#L111-L135). In your new logic, you cut out the auto-detection logic. Is it expected?
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.
Yes, the current direction for much of this autodetection logic is to replace it with documentation, as it has been a source of bugs.
Signed-off-by: Andrew Sauber <[email protected]>
@brlbil ping! |
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.
CI parts looks good
it's green, there i click. |
Two commits for review
Add cilium clustermesh {enable,disable} using Helm
Implements a version of
clustermesh enable
andclustermesh disable
using Helm actions run directly against the clusterEnable Helm mode matrix for multicluster tests
Enables a workflow matrix for "classic" and "helm" mode for multicluster tests using GKE. The recently added parameter for cilium_cli_mode in the
cilium-cli-test-job-chart
is used.