Skip to content

Commit

Permalink
Set protect-kernel-defaults on v2 clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Blendermann committed Oct 5, 2023
1 parent 3127552 commit 8eb61cd
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 8eb61cd

Please sign in to comment.