Skip to content

Commit

Permalink
r/kubernetes_cluster: moving the service_principal block with the o…
Browse files Browse the repository at this point in the history
…ther optional props
  • Loading branch information
tombuildsstuff committed Apr 6, 2020
1 parent 3b8c9de commit 667d71c
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,6 @@ func resourceArmKubernetesCluster() *schema.Resource {

"default_node_pool": SchemaDefaultNodePool(),

"service_principal": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"client_id": {
Type: schema.TypeString,
Required: true,
ValidateFunc: containerValidate.ClientID,
},

"client_secret": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
ValidateFunc: validation.StringIsNotEmpty,
},
},
},
},

// Optional
"addon_profile": SchemaKubernetesAddOnProfiles(),

Expand Down Expand Up @@ -364,6 +342,28 @@ func resourceArmKubernetesCluster() *schema.Resource {
},
},

"service_principal": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"client_id": {
Type: schema.TypeString,
Required: true,
ValidateFunc: containerValidate.ClientID,
},

"client_secret": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
ValidateFunc: validation.StringIsNotEmpty,
},
},
},
},

"tags": tags.Schema(),

"windows_profile": {
Expand Down

0 comments on commit 667d71c

Please sign in to comment.