From b55c094f933f99832df06b5c614a6f5bdf90c675 Mon Sep 17 00:00:00 2001 From: doy-materialize <110416385+doy-materialize@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:13:52 -0500 Subject: [PATCH] fix the --write flag (#2531) --write sets k.manualReadOnly to false, but this was previously setting the read only state to true if k.manualReadOnly was set at all --- internal/config/k9s.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/k9s.go b/internal/config/k9s.go index 72e4a34b..a1b45558 100644 --- a/internal/config/k9s.go +++ b/internal/config/k9s.go @@ -304,7 +304,7 @@ func (k *K9s) IsReadOnly() bool { ro = *cfg.Context.ReadOnly } if k.manualReadOnly != nil { - ro = true + ro = *k.manualReadOnly } return ro