Coder Social home page Coder Social logo

Comments (10)

golubovsky avatar golubovsky commented on August 25, 2024 1

Found simplier solution, just add --set hydra-maester.nameOverride=hydra-maester-unique_word:

helm install hydra ory/hydra --version 0.13.0 -n namespace1 --set hydra-maester.nameOverride=hydra-maester-namespace1
helm install hydra ory/hydra --version 0.13.0 -n namespace2 --set hydra-maester.nameOverride=hydra-maester-namespace2

from k8s.

aeneasr avatar aeneasr commented on August 25, 2024

Yeah that's definitely a bug. You don't need maester, right?

from k8s.

jbapu avatar jbapu commented on August 25, 2024

Good point. I guess I don't..

from k8s.

christian-roggia avatar christian-roggia commented on August 25, 2024

The same issue shows up if you try to install oathkeeper and hydra in the same cluster with CDR enabled:

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

from k8s.

aeneasr avatar aeneasr commented on August 25, 2024

Ok, we definitely need to rename the role. PRs welcomed!

from k8s.

Atharex avatar Atharex commented on August 25, 2024

Came across this issue and also wanted a fix :)

from k8s.

golubovsky avatar golubovsky commented on August 25, 2024

I’ve managed to fix it by

It’s a temporary solution, but it works )

PS v0.12.0

from k8s.

aeneasr avatar aeneasr commented on August 25, 2024

Could that be included in the helm chart directly?

from k8s.

Demonsthere avatar Demonsthere commented on August 25, 2024

Hello there. Two things:
1 - There is a small bug in the RBAC, will create a PR in a second to fix it.
2 - Installing two copies of the same chart like this:

helm install hydra ory/hydra --version 0.3.3 -n namespace1
helm install hydra ory/hydra --version 0.3.3 -n namespace2

May not be the best approach, because as @golubovsky mentioned, the name is the same across both installation. Please install it like:

helm install hydra-maester ./helm/charts/hydra-maester -f local/hydra-maester.yaml --namespace foo1
helm install hydra-maester-2 ./helm/charts/hydra-maester -f local/hydra-maester.yaml --namespace foo2

from k8s.

muya avatar muya commented on August 25, 2024

NB: This also works for the Oathkeeper maester

--set oathkeeper-maester.nameOverride=oathkeeper-maester-{unique-value}

from k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.