Skip to content

Commit 5096c91

Browse files
authored
Fix BootstrapKubeConfigs LocalSecrets field to be a pointer and update DeepCopy method accordingly (#364)
Signed-off-by: xuezhaojun <[email protected]>
1 parent b4fb4a6 commit 5096c91

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

operator/v1/types_klusterlet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ type BootstrapKubeConfigs struct {
224224
// LocalSecretsConfig include a list of secrets that contains the kubeconfigs for ordered bootstrap kubeconifigs.
225225
// The secrets must be in the same namespace where the agent controller runs.
226226
// +optional
227-
LocalSecrets LocalSecretsConfig `json:"localSecretsConfig,omitempty"`
227+
LocalSecrets *LocalSecretsConfig `json:"localSecretsConfig,omitempty"`
228228
}
229229

230230
type LocalSecretsConfig struct {

operator/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)