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
mine
doy-materialize 2024-02-15 12:13:52 -05:00 committed by GitHub
parent 87a672b183
commit b55c094f93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ func (k *K9s) IsReadOnly() bool {
ro = *cfg.Context.ReadOnly
}
if k.manualReadOnly != nil {
ro = true
ro = *k.manualReadOnly
}
return ro