Skip to content

Commit

Permalink
Merge pull request #58 from anuraaga/no-force-new
Browse files Browse the repository at this point in the history
Don't ForceNew for label changes.
  • Loading branch information
sl1pm4t authored Oct 17, 2018
2 parents ae3d43e + 7506482 commit 7974cd5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions kubernetes/schema_label_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,22 @@ func labelSelectorFields() map[string]*schema.Schema {
Type: schema.TypeList,
Description: "A list of label selector requirements. The requirements are ANDed.",
Optional: true,
ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"key": {
Type: schema.TypeString,
Description: "The label key that the selector applies to.",
Optional: true,
ForceNew: true,
},
"operator": {
Type: schema.TypeString,
Description: "A key's relationship to a set of values. Valid operators ard `In`, `NotIn`, `Exists` and `DoesNotExist`.",
Optional: true,
ForceNew: true,
},
"values": {
Type: schema.TypeSet,
Description: "An array of string values. If the operator is `In` or `NotIn`, the values array must be non-empty. If the operator is `Exists` or `DoesNotExist`, the values array must be empty. This array is replaced during a strategic merge patch.",
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},
Expand All @@ -40,7 +36,6 @@ func labelSelectorFields() map[string]*schema.Schema {
Type: schema.TypeMap,
Description: "A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
Optional: true,
ForceNew: true,
},
}
}

0 comments on commit 7974cd5

Please sign in to comment.