-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unable to customize OLM namespace #23
Comments
I would suggest that you remove the namespace creation. The helm chart will create it for you. Can you drop that resource and rerun? |
mmmh strange. I‘ll check that |
I deleted my earlier comment so I could more thoroughly test. It takes awhile to create/destroy clusters on my end currently, and I wanted to make sure I was being completely accurate in my bug report. I launched a fresh cluster to perform additional tests. I verified no 'olm' namespace existing in the cluster prior to each run.
|
ah ok. Got you now. For me this worked in:
|
Did you check the actual pods?
Mine still defaults to 'operator-lifecycle-manager' namespace. I used the same code as you did. |
mmmh, seems either a OLM or Helm issue. I found that I have to use
|
It would probably be fine to leave catalog_namespace as a default, but not being able to customize the main olm namespace just doesn't help our use-case at all... |
okay, from chart side I cannot completly resolve the issue, due to kubernetes-sigs/cluster-api-addon-provider-helm#221 But here is how resolved the issue:
|
verified with this terraform script:
|
I ran the updated version, with your same Terraform code, and got a namespace error again, though it did install most of the components into the correct namespace now.
I verified this twice with fresh clusters in between.
|
I tried bringing back in the namespace creation via external resource, and then using I seem to be stuck here, unfortunately. |
When I go to destroy a stack with that failed helm_release job, I run into another error and then have to expend effort in troubleshooting cluster operational status. It's a bit annoying unfortunately.
|
mmmh I'm sorry. This is a little helm issue there as linked. I'll try to fix that otherwise. Will take a look next week. Currently busy with other stuff |
Any update on this, by chance? |
actually I cannot solve it via terraform and helm combination. The only option would be with the manual setup step. Currently it's now possible to resolve due to helm restrictions. Sorry to say that. In the current way olm works you either just use helm for templating with your custom values and apply it via |
What did you do?
Launched Helm install via OpenTofu/Terraform helm_release resource module, using customized set
namespace
andcatalog_namespace
parameters (both set to 'olm').What did you expect to happen?
OLM and catalog to be installed in the 'olm' namespace.
What happened instead?
The chart install succeeds if only
catalog_namespace
is set, but the main namespace defaults to 'operator-lifecycle-manager'.If
namespace
is set {}, it always produces the above error.Setting the
namespace
module variable appears to have no effect at all.Your Environment
EKS 1.30
Teraform/Tofu code
The text was updated successfully, but these errors were encountered: