chore(defaults): server-side apply SDK defaults should always match the CLI defaults

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
pull/31732/head
Matheus Pimenta 1 week ago
parent edbb47474c
commit c1cc625323
No known key found for this signature in database
GPG Key ID: 4639F038AE28FBFF

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

@ -64,8 +64,9 @@ type Rollback struct {
// NewRollback creates a new Rollback object with the given configuration.
func NewRollback(cfg *Configuration) *Rollback {
return &Rollback{
cfg: cfg,
DryRunStrategy: DryRunNone,
cfg: cfg,
ServerSideApply: "auto", // Must always match the CLI default.
DryRunStrategy: DryRunNone,
}
}

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

Loading…
Cancel
Save