Skip to content

Commit 8264cad

Browse files
authored
Merge pull request #1245 from a-blender/fix-cluster-config-load-err-backport
[Backport release/v3] Set protect-kernel-defaults on v2 clusters
2 parents 1e152f4 + 40d884f commit 8264cad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rancher2/schema_cluster_v2_rke_config_system_config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func clusterV2RKEConfigSystemConfigFieldsV0() map[string]*schema.Schema {
6868
"config": {
6969
Type: schema.TypeMap,
7070
Optional: true,
71+
Default: "protect-kernel-defaults: false",
7172
Description: "Machine selector config",
7273
},
7374
}
@@ -89,6 +90,7 @@ func clusterV2RKEConfigSystemConfigFields() map[string]*schema.Schema {
8990
"config": {
9091
Type: schema.TypeString,
9192
Optional: true,
93+
Default: "protect-kernel-defaults: false",
9294
Description: "Machine selector config",
9395
ValidateFunc: func(val interface{}, key string) (warns []string, errs []error) {
9496
v, ok := val.(string)

0 commit comments

Comments
 (0)