GithubHelp home page GithubHelp logo

Comments (4)

Baarsgaard avatar Baarsgaard commented on September 16, 2024

I have since found out, the same issue is present on GrafanaContactPoint and GrafanaNotificationPolicy which also does not allow specifying UIDs

from grafana-operator.

pb82 avatar pb82 commented on September 16, 2024

Allowing custom UIDs on folders can become complicated (more complicated than other resources), because: if you change the UID on an already existing folder, what do you do with the original one and all the dashboards it contains? You'd have to write special logic to handle those cases (and agree on a policy).

from grafana-operator.

Baarsgaard avatar Baarsgaard commented on September 16, 2024

Could that be handled/enforced through an immutability clause requiring a recreate rather than an edit of the Grafanafolder resource?
You already have that on the metadata.uid and instanceSelector.matchLabels in the CRDs I believe.

x-kubernetes-validations:
  - message: Value is immutable
    rule: self == oldSelf

That way, changing the UID is officially not supported, but it's possible to define an ID on creation?
This would also be compatible with #1626 which fixes blocking folder deletes when referenced without extra logic.

from grafana-operator.

theSuess avatar theSuess commented on September 16, 2024

@aboulay-numspot will try to implement this with immutable UIDs

from grafana-operator.

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.