Sha256: 6a4c09fe6235c747de63e718ffc2e5368d5e374d6b5119696e693664850b216a

Contents?: true

Size: 656 Bytes

Versions: 58

Compression:

Stored size: 656 Bytes

Contents

---
title: Custom Ordering
---

You can override the ordering with the `kinds` and `roles` option under the `config.kubectl.order` key. It is fully configurable. Here's an example of overriding the default ordering.

.kubes/config.rb:

```ruby
Kubes.configure do |config|
  config.kubectl.order.roles = %w[
    shared
    web
    worker
    clock
  ]
  config.kubectl.order.kinds = [
    "Namespace",
    # ...
    "Deployment",
  ]
end
```

Items not listed in the list are sorted at the end and in alphabetical order. Refer to the source [ordering.rb](https://github.com/boltops-tools/kubes/blob/master/lib/kubes/config.rb#L50) for the default ordering.

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
kubes-0.9.3 docs/_docs/intro/ordering/custom.md
kubes-0.9.2 docs/_docs/intro/ordering/custom.md
kubes-0.9.1 docs/_docs/intro/ordering/custom.md
kubes-0.9.0 docs/_docs/intro/ordering/custom.md
kubes-0.8.10 docs/_docs/intro/ordering/custom.md
kubes-0.8.9 docs/_docs/intro/ordering/custom.md
kubes-0.8.8 docs/_docs/intro/ordering/custom.md
kubes-0.8.7 docs/_docs/intro/ordering/custom.md
kubes-0.8.6 docs/_docs/intro/ordering/custom.md
kubes-0.8.5 docs/_docs/intro/ordering/custom.md
kubes-0.8.4 docs/_docs/intro/ordering/custom.md
kubes-0.8.3 docs/_docs/intro/ordering/custom.md
kubes-0.8.2 docs/_docs/intro/ordering/custom.md
kubes-0.8.1 docs/_docs/intro/ordering/custom.md
kubes-0.8.0 docs/_docs/intro/ordering/custom.md
kubes-0.7.10 docs/_docs/intro/ordering/custom.md
kubes-0.7.9 docs/_docs/intro/ordering/custom.md
kubes-0.7.8 docs/_docs/intro/ordering/custom.md
kubes-0.7.7 docs/_docs/intro/ordering/custom.md
kubes-0.7.6 docs/_docs/intro/ordering/custom.md