Merge pull request #31732 from matheuscscp/ssa-defaults

chore(defaults): server-side apply SDK defaults should always match the CLI defaults
pull/31730/head
George Jenkins 8 months ago committed by GitHub
commit 1dffc817e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -159,7 +159,7 @@ type ChartPathOptions struct {
func NewInstall(cfg *Configuration) *Install { func NewInstall(cfg *Configuration) *Install {
in := &Install{ in := &Install{
cfg: cfg, cfg: cfg,
ServerSideApply: true, ServerSideApply: true, // Must always match the CLI default.
DryRunStrategy: DryRunNone, DryRunStrategy: DryRunNone,
} }
in.registryClient = cfg.RegistryClient in.registryClient = cfg.RegistryClient

@ -65,6 +65,7 @@ type Rollback struct {
func NewRollback(cfg *Configuration) *Rollback { func NewRollback(cfg *Configuration) *Rollback {
return &Rollback{ return &Rollback{
cfg: cfg, cfg: cfg,
ServerSideApply: "auto", // Must always match the CLI default.
DryRunStrategy: DryRunNone, DryRunStrategy: DryRunNone,
} }
} }

@ -142,7 +142,7 @@ type resultMessage struct {
func NewUpgrade(cfg *Configuration) *Upgrade { func NewUpgrade(cfg *Configuration) *Upgrade {
up := &Upgrade{ up := &Upgrade{
cfg: cfg, cfg: cfg,
ServerSideApply: "auto", ServerSideApply: "auto", // Must always match the CLI default.
DryRunStrategy: DryRunNone, DryRunStrategy: DryRunNone,
} }
up.registryClient = cfg.RegistryClient up.registryClient = cfg.RegistryClient

Loading…
Cancel
Save