diff --git a/docs/data-sources/kubernetes_cluster_deployment_targets.md b/docs/data-sources/kubernetes_cluster_deployment_targets.md index 7b7da774..d1e59eea 100644 --- a/docs/data-sources/kubernetes_cluster_deployment_targets.md +++ b/docs/data-sources/kubernetes_cluster_deployment_targets.md @@ -110,6 +110,7 @@ Read-Only: Read-Only: - `account_id` (String) +- `admin_login` (String) - `cluster_name` (String) - `cluster_resource_group` (String) diff --git a/docs/resources/kubernetes_cluster_deployment_target.md b/docs/resources/kubernetes_cluster_deployment_target.md index 7e52faee..f778fd98 100644 --- a/docs/resources/kubernetes_cluster_deployment_target.md +++ b/docs/resources/kubernetes_cluster_deployment_target.md @@ -109,6 +109,10 @@ Required: - `cluster_name` (String) - `cluster_resource_group` (String) +Optional: + +- `admin_login` (String) + ### Nested Schema for `certificate_authentication` diff --git a/octopusdeploy/schema_kubernetes_azure_authentication.go b/octopusdeploy/schema_kubernetes_azure_authentication.go index 5d1c08bb..c478b529 100644 --- a/octopusdeploy/schema_kubernetes_azure_authentication.go +++ b/octopusdeploy/schema_kubernetes_azure_authentication.go @@ -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 } @@ -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, }} } @@ -43,5 +46,9 @@ func getKubernetesAzureAuthenticationSchema() map[string]*schema.Schema { Required: true, Type: schema.TypeString, }, + "admin_login": { + Optional: true, + Type: schema.TypeString, + }, } }