Skip to content

Commit 13f30f3

Browse files
feat: protect embeddedClusterID (#339)
embeddedClusterID should not be overwritten during upgrades or operator reconcile cycles.
1 parent 17dde5a commit 13f30f3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pkg/addons/adminconsole/adminconsole.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ var (
3737
)
3838

3939
// protectedFields are helm values that are not overwritten when upgrading the addon.
40-
var protectedFields = []string{
41-
"automation",
42-
}
40+
var protectedFields = []string{"automation", "embeddedClusterID"}
4341

4442
const DEFAULT_ADMIN_CONSOLE_NODE_PORT = 30000
4543

pkg/addons/embeddedclusteroperator/embeddedclusteroperator.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ func (e *EmbeddedClusterOperator) HostPreflights() (*v1beta2.HostPreflightSpec,
6363
// GetProtectedFields returns the protected fields for the embedded charts.
6464
// placeholder for now.
6565
func (e *EmbeddedClusterOperator) GetProtectedFields() map[string][]string {
66-
protectedFields := []string{
67-
"embeddedBinaryName",
68-
}
66+
protectedFields := []string{"embeddedBinaryName", "embeddedClusterID"}
6967
return map[string][]string{releaseName: protectedFields}
7068
}
7169

0 commit comments

Comments
 (0)