Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Dec 31, 2024
1 parent 9b83ae9 commit 8e9127f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions aks/cluster_data/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ terraform {
data "environment_variables" "github_actions" {
filter = "GITHUB_ACTIONS"
}

data "environment_variables" "spn_secret" {
filter = "AAD_SERVICE_PRINCIPAL_CLIENT_SECRET"
sensitive = true
}
2 changes: 1 addition & 1 deletion aks/cluster_data/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ locals {
azure_RBAC_enabled = length(data.azurerm_kubernetes_cluster.main.azure_active_directory_role_based_access_control) > 0

running_in_github_actions = contains(keys(data.environment_variables.github_actions.items), "GITHUB_ACTIONS")
spn_secret_authentication = contains(keys(data.environment_variables.github_actions.items), "AAD_SERVICE_PRINCIPAL_CLIENT_SECRET")
spn_secret_authentication = contains(keys(data.environment_variables.spn_secret.items), "AAD_SERVICE_PRINCIPAL_CLIENT_SECRET")
}

0 comments on commit 8e9127f

Please sign in to comment.