Giter VIP home page Giter VIP logo

Comments (5)

yorinasub17 avatar yorinasub17 commented on May 28, 2024 1

This should be doable, as long as all three commands (grant, configure, revoke) are updated to support this semantic. Right now configure and revoke use that name in some capacity to uniquely identify that secret.

On another note, does flux support looking up the secret by labels? We attach the label gruntwork.io/tiller-entity-id and gruntwork.io/tiller-namespace that you can use to look up the Secrets using more friendly strings.

from kubergrunt.

yorinasub17 avatar yorinasub17 commented on May 28, 2024 1

Let's keep this open since I think it is a valid enhancement to make. With that said, this whole functionality will be deprecated soon once helm 3 reaches GA :)

from kubergrunt.

bhegazy avatar bhegazy commented on May 28, 2024

I took a look at the code and figured it was md5 hashed number of service account name so I'm currently had success getting the name using the following

  flux_namespace_sa = "${var.tiller_namespace}.${local.flux_service_account}"
  tls_client_secret_name = "tiller-client-${md5(local.flux_namespace_sa)}-certs"

Note that both flux/tiller is being deployed in the same namespace to be able to mount secrets.

from kubergrunt.

bhegazy avatar bhegazy commented on May 28, 2024

Hi @yorinasub17 sorry for not getting back earlier, currently flux helm chart only able to get certs by secret name, I'm using the workaround which works well for me

tls_client_secret_name = "tiller-client-${md5(local.flux_namespace_sa)}-certs"

if you prefer the issue to be closed, that's fine by me.

Thanks for your help

from kubergrunt.

yorinasub17 avatar yorinasub17 commented on May 28, 2024

Helm features are removed, so this is no longer relevant.

from kubergrunt.

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.