Skip to content

Commit

Permalink
Merge pull request #1245 from a-blender/fix-cluster-config-load-err-b…
Browse files Browse the repository at this point in the history
…ackport

[Backport release/v3] Set protect-kernel-defaults on v2 clusters
  • Loading branch information
a-blender authored Oct 5, 2023
2 parents 1e152f4 + 40d884f commit 8264cad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rancher2/schema_cluster_v2_rke_config_system_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func clusterV2RKEConfigSystemConfigFieldsV0() map[string]*schema.Schema {
"config": {
Type: schema.TypeMap,
Optional: true,
Default: "protect-kernel-defaults: false",
Description: "Machine selector config",
},
}
Expand All @@ -89,6 +90,7 @@ func clusterV2RKEConfigSystemConfigFields() map[string]*schema.Schema {
"config": {
Type: schema.TypeString,
Optional: true,
Default: "protect-kernel-defaults: false",
Description: "Machine selector config",
ValidateFunc: func(val interface{}, key string) (warns []string, errs []error) {
v, ok := val.(string)
Expand Down

0 comments on commit 8264cad

Please sign in to comment.