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

Helm install errors on different namespace then openstad #27

Closed
ToshKoevoets opened this issue Jun 20, 2020 · 6 comments
Closed

Helm install errors on different namespace then openstad #27

ToshKoevoets opened this issue Jun 20, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@ToshKoevoets
Copy link
Collaborator

ToshKoevoets commented Jun 20, 2020

Trying to create
helm install --values c-values.yaml --replace openstad . --namespace=openstad-development --create-namespace --set clusterIssuer.enabled=false

Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "openstad-cert-manager-cainjector" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-namespace" must equal "openstad-development": current value is "openstad"

I deleted ns, but seems it is error on an existing release?

@ghost ghost self-assigned this Jun 20, 2020
@ghost ghost added the bug Something isn't working label Jun 20, 2020
@ToshKoevoets ToshKoevoets changed the title Helm setup currently doesn't seem to support different namespaces Helm install errors on different namespace then openstad Jun 20, 2020
@ghost
Copy link

ghost commented Jun 22, 2020

Hello @ToshKoevoets,

Thanks for reporting this issue. The problem seems to be related to what we found in issue #31 .
After uninstalling the chart and after removing cert-manager including its CRD's. Does this still happen?

I tried it on Hetzner Cloud and got the following:

$ helm install openstad . --namespace openstad-development --create-namespace
NAME: openstad
LAST DEPLOYED: Mon Jun 22 14:16:55 2020
NAMESPACE: openstad-development
STATUS: deployed
REVISION: 1
TEST SUITE: None

This was directly after having installed it on the openstad namespace followed by uninstalling the chart (whilst keeping the namespace).

If this issue still exists let me know!

@ToshKoevoets
Copy link
Collaborator Author

ToshKoevoets commented Jun 22, 2020 via email

@ToshKoevoets
Copy link
Collaborator Author

ToshKoevoets commented Jun 22, 2020

@S-Nigel I was thinking to run release and development in different namespaces on cluster. I realise that's not possible this way, is this possible with running cluster wide cert manager?

@ghost
Copy link

ghost commented Jun 24, 2020

Hello @ToshKoevoets,

The current default setup/chart does not allow for multiple instances (production + development) on the same cluster.
It may be possible if you disable all CRD installations (cert-manager) in the second instance as CRD's are global.

Currently, I think this is out of scope, maybe more suitable as a documentation/installation note.

In other words:

is this possible with running cluster wide cert manager?

If I'm not mistaken yes. It should also be doable by just installing the CRD's on one of the instances, preferable production (Helm uninstall gets rid of the CRD and all resources using the relevant CRD's).

@ToshKoevoets
Copy link
Collaborator Author

ToshKoevoets commented Jun 24, 2020 via email

@ghost
Copy link

ghost commented Jun 26, 2020

Hi @ToshKoevoets,

Awesome! In that case, can we close this issue for now? Or shall we wait till the documentation is in place?

@ghost ghost closed this as completed Jul 8, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant