Skip to content

Commit 40bdd42

Browse files
committed
REP-1293: removes list element schema as labels operator is not a list
1 parent 9f8ab6d commit 40bdd42

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

castai/resource_allocation_group.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ func resourceAllocationGroup() *schema.Resource {
6565
AND - workload needs to have all the labels to be included`,
6666
Optional: true,
6767
Default: sdk.OR,
68-
Elem: &schema.Schema{
69-
Type: schema.TypeString,
70-
},
7168
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{
7269
string(sdk.AND), string(sdk.OR),
7370
}, false)),

castai/resource_allocation_group_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func allocationGroupConfig() string {
9999
resource "castai_allocation_group" "test" {
100100
name = "Test terraform example"
101101
cluster_ids = [
102-
"7536e872-6b52-428e-8c0c-e4306e0849ce",
102+
"c0595984-9da4-44f0-98ef-9014d51d8483",
103103
]
104104
105105
namespaces = [
@@ -125,7 +125,7 @@ func allocationGroupUpdatedConfig() string {
125125
resource "castai_allocation_group" "test" {
126126
name = "Test terraform example updated"
127127
cluster_ids = [
128-
"7536e872-6b52-428e-8c0c-e4306e0849ce",
128+
"c0595984-9da4-44f0-98ef-9014d51d8483",
129129
]
130130
131131
namespaces = [

0 commit comments

Comments
 (0)