chore(defaults): server-side apply SDK defaults should always match the CLI defaults
Some checks failed
build-test / build (push) Has been cancelled
golangci-lint / golangci-lint (push) Has been cancelled
govulncheck / govulncheck (push) Has been cancelled

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
(cherry picked from commit c1cc625323)
This commit is contained in:
Matheus Pimenta 2026-01-15 10:04:07 +00:00 committed by Scott Rigby
parent b36d660fb7
commit c94d381b03
No known key found for this signature in database
GPG key ID: C7C6FBB5B91C1155
3 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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,
}
}

View file

@ -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