Skip to content

Commit

Permalink
suppress diff if cluster cniPlugin was defaulted to cilium, which it …
Browse files Browse the repository at this point in the history
…now may be depending on the DC
  • Loading branch information
multi-io committed May 6, 2024
1 parent 81d3ead commit 0b7bcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metakube/resource_cluster_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func metakubeResourceClusterSpecFields() map[string]*schema.Schema {
DiffSuppressFunc: func(_, _, _ string, d *schema.ResourceData) bool {
configured, ok := d.GetOkConfigured("spec.0.cni_plugin.0.type")
newValue := d.Get("spec.0.cni_plugin.0.type")
return (!ok || configured == "") && newValue == "canal"
return (!ok || configured == "") && (newValue == "canal" || newValue == "cilium")
},
Description: "Contains the spec of the CNI plugin used by the Cluster",
Elem: &schema.Resource{
Expand Down

0 comments on commit 0b7bcd2

Please sign in to comment.