Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readOnly: true in config.yaml doesnt get overriden by readOnly: false in cluster config #2434

Closed
arnoldyahad opened this issue Jan 7, 2024 · 2 comments
Labels
bug Something isn't working InProgress Marks an issue has being worked on

Comments

@arnoldyahad
Copy link

Hello,
Im currently using v0.30.8 and started to use k9s in readonly mode for most of production clusters.
Since we have a lot of production clusters i have set the main k9s/config.yaml readOnly configruation to true:
(by default, i want k9s to be readOnly, as we have much more prod than dev clusters)

k9s:
  liveViewAutoRefresh: false
  refreshRate: 2
  maxConnRetry: 5
  readOnly: true

and in my cluster config file k9s/clusters/something1/something2/config.yaml i set it to be false:

k9s:
  cluster: something2
  readOnly: false

i would expect it to overriden as the docs say https://k9scli.io/topics/config/ and have it be not readonly

  readOnly: false          # [New!] you can now single out a given context and make it readonly. Woof!

can you please tell if its by design (to not allow setting a cluster to be read-write if the general config is read-only)?

@derailed
Copy link
Owner

derailed commented Jan 7, 2024

@arnoldyahad Thanks for reporting this Arnold! I've ran into this issue as well ;( Fix is on the way...

@derailed derailed added bug Something isn't working InProgress Marks an issue has being worked on labels Jan 7, 2024
@derailed
Copy link
Owner

derailed commented Jan 9, 2024

Fixed v0.31.0

@derailed derailed closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working InProgress Marks an issue has being worked on
Projects
None yet
Development

No branches or pull requests

2 participants