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

The --namespace option does not have the expected effect #51

Closed
kingdonb opened this issue Aug 2, 2021 · 1 comment
Closed

The --namespace option does not have the expected effect #51

kingdonb opened this issue Aug 2, 2021 · 1 comment

Comments

@kingdonb
Copy link

kingdonb commented Aug 2, 2021

In #50 I have reported that I tried to install the Flux operator with kubectl-operator, and I learned it includes some service accounts and some ClusterRoleBindings which should be associated with them.

The Flux operator sets operatorframework.io/preferred-namespace, but as #50 explains, kubectl-operator does not honor it today. However there is a -n or --namespace option which I assumed is meant to set the target namespace for the operator lifecycle manager to install the operator itself into.

kubectl operator install -n flux-system flux --create-operator-group
@kingdonb
Copy link
Author

kingdonb commented Aug 2, 2021

Apologies, I have just tried this again and it seems to work as expected. I thought I should report it anyway because we agreed I would, and thus someone was likely expecting it to show up in the issue queue, but I will close it now.

Perhaps the issue was a stray instance of the flux package that got absorbed somehow into my new installation attempt.

I ran

kubens operators
kubectl operator uninstall -X flux

followed by

kubectl operator install -n flux-system flux --create-operator-group
operatorgroup "flux-system" created
subscription "flux" created
operator "flux" installed; installed csv is "flux.v0.16.1"

and this time, worked exactly as expected:

flux-system   helm-controller-77fc6c74db-2clk5                                  1/1     Running     0          22s
flux-system   image-automation-controller-6744cf6f4c-pcwfn                      1/1     Running     0          22s
flux-system   image-reflector-controller-86989c7699-2dmrh                       1/1     Running     0          22s
flux-system   kustomize-controller-67c98f95df-42rsv                             1/1     Running     0          21s
flux-system   notification-controller-74789bddbc-vbhzb                          1/1     Running     0          21s
flux-system   source-controller-75c8c7759d-bbg5l                                1/1     Running     0          21s

I will go ahead and close this.

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

No branches or pull requests

1 participant