GithubHelp home page GithubHelp logo

Comments (3)

jfchevrette avatar jfchevrette commented on July 26, 2024

ksonnet seem to do this specifically because some resources cannot reconcile if listed in the wrong order

https://github.com/ksonnet/ksonnet/blob/8b703db7cf6303ceddb3317a3a24e4b61ad7fc4f/pkg/cluster/sort.go#L95-L148

It does not seem to be possible to do this with jsonnet itself. The roles are in fact already defined prior to the roleBindings in jsonnet/telemeter/prometheus/kubernetes.libsonnet but they end up in a different order in the generated manifests.

from telemeter.

squat avatar squat commented on July 26, 2024

This is because all of the items are defined as fields in a JSON object and key order is never guaranteed for an object. However, if this truly is an issue (my kubectl will happily create a multi-doc yaml file with bindings before roles) we can modify this during the generation of the list. Lists are by definition ordered collections and any ordering we set during its creation will be preserved.

from telemeter.

openshift-bot avatar openshift-bot commented on July 26, 2024

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

from telemeter.

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.