Giter VIP home page Giter VIP logo

Comments (4)

tsandall avatar tsandall commented on May 24, 2024

What is the best way to get the namespace where I put the data ConfigMap? (Workaround I found: use opa.runtime() which gives me all the environment variables of OPA and then make OPA container consume the namespace using the downwardAPI)

I suspect that users are hardcoding the namespace in their policies today. @iverberk do you have any thoughts on this?

Can the data ConfigMap be created in other namespaces (not OPA's one) like policies (--policies flag)?

yes, the namespaces specified by --policies will get used.

from kube-mgmt.

iverberk avatar iverberk commented on May 24, 2024

We are indeed hardcoding the namespace because we know where we will put the data configmap beforehand. I don't have any other suggestions on how to do it dynamically unfortunately.

from kube-mgmt.

tsandall avatar tsandall commented on May 24, 2024

I'm going to close this because I don't think there's anything to be done at this point in time.

from kube-mgmt.

freegroup avatar freegroup commented on May 24, 2024

the issue is closed but maybe worth to discuss.

we use our policies in different environments like CloudFoundry, K8S, simple EC2 Instances and the developer, which generates the rego files, should not care about the landscape where the rego files are deployed.

From my point of view referencing the namespace and config-map name in the rego files is not a good pattern. You are mixing deployment and rules.

from kube-mgmt.

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.