Skip to content

Commit

Permalink
Add admin_login attribute to azure authentication for kubernetes depl…
Browse files Browse the repository at this point in the history
…oyment target
  • Loading branch information
denys-octopus committed Nov 19, 2024
1 parent ee600ff commit ffc302d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions octopusdeploy/schema_kubernetes_azure_authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ func expandKubernetesAzureAuthentication(values interface{}) *machines.Kubernete
authentication.AuthenticationType = "KubernetesAzure"
authentication.ClusterName = flattenedAuthentication["cluster_name"].(string)
authentication.ClusterResourceGroup = flattenedAuthentication["cluster_resource_group"].(string)
authentication.AdminLogin = flattenedAuthentication["admin_login"].(string)

return authentication
}

Expand All @@ -26,6 +28,7 @@ func flattenKubernetesAzureAuthentication(kubernetesAzureAuthentication *machine
"account_id": kubernetesAzureAuthentication.AccountID,
"cluster_name": kubernetesAzureAuthentication.ClusterName,
"cluster_resource_group": kubernetesAzureAuthentication.ClusterResourceGroup,
"admin_login": kubernetesAzureAuthentication.AdminLogin,
}}
}

Expand All @@ -43,5 +46,9 @@ func getKubernetesAzureAuthenticationSchema() map[string]*schema.Schema {
Required: true,
Type: schema.TypeString,
},
"admin_login": {
Optional: true,
Type: schema.TypeString,
},
}
}

0 comments on commit ffc302d

Please sign in to comment.