cilium-cli icon indicating copy to clipboard operation
cilium-cli copied to clipboard

Make Cilium CLI work with Cilium installed through helm with a non-default name

Open giorio94 opened this issue 1 year ago • 6 comments

Quite a few Cilium CLI commands fail with a release: not found error if Cilium got installed through helm with a non-default name.

For instance:

$ helm install -n kube-system cilium-break-cli cilium/cilium --version v1.14.5

$ cilium hubble enable
Error: Unable to enable Hubble: release: not found

$ cilium clustermesh enable --service-type LoadBalancer
Error: Unable to enable ClusterMesh: release: not found

This happens because we hardcode the default release name (for instance here). Instead, we should make it user-configurable, similarly to the namespace where Cilium is installed.

giorio94 avatar Jan 30 '24 10:01 giorio94

hey @giorio94, I would like to work on this issue. Could you please guide me on this?

prashantrewar avatar Jan 30 '24 11:01 prashantrewar

Sure, the idea is to make the helm release name configurable through a flag, similarly to the namespace case.

I'd suggest starting with introducing the new flag (which defaults to the current value), and then look for all the usages of defaults.HelmReleaseName and replace them with the propagated parameter.

Feel free to reach out if you have more questions.

giorio94 avatar Jan 30 '24 11:01 giorio94

@giorio94, [namespace case] link is broken. Are you pointing this?

prashantrewar avatar Jan 30 '24 11:01 prashantrewar

@giorio94, [namespace case] link is broken. Are you pointing this?

Yep, sorry. Should be fixed now.

giorio94 avatar Jan 30 '24 11:01 giorio94

@prashantrewar Do you have news about this issue?

littlejo avatar Mar 13 '24 05:03 littlejo

@prashantrewar I wasn't sure if you were actively working on this or if you were busy with other things. I checked for a existing fork.

Apologies for being impatient, but I was interested in using the fix.

matthewhembree avatar Mar 19 '24 06:03 matthewhembree