Revert "Use kubectl replace instead of apply when updating addons"

This reverts commit 18c5d184e7.
This commit is contained in:
Ciprian Hacman 2022-06-10 07:19:58 +03:00
parent b46d3442ec
commit 6a24dc2dbc
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func Apply(data []byte) error {
return fmt.Errorf("error writing temp file: %v", err)
}
_, err = execKubectl("replace", "-f", localManifestFile, "--force", "--field-manager=kops")
_, err = execKubectl("apply", "-f", localManifestFile, "--server-side", "--force-conflicts", "--field-manager=kops")
return err
}