-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MI credentials for Velero and Add nodepool ARM - Playground (#1323)
Co-authored-by: Automatic Update <[email protected]>
- Loading branch information
Showing
17 changed files
with
167 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "azurerm_user_assigned_identity" "velero" { | ||
resource_group_name = module.config.common_resource_group | ||
name = "radix-id-velero-${module.config.environment}" | ||
} | ||
|
||
resource "azurerm_federated_identity_credential" "velero-mi-fedcred" { | ||
for_each = module.clusters.oidc_issuer_url | ||
|
||
audience = ["api://AzureADTokenExchange"] | ||
name = "k8s-velero-${each.key}-${module.config.environment}" | ||
issuer = each.value | ||
subject = "system:serviceaccount:velero:velero" | ||
parent_id = data.azurerm_user_assigned_identity.velero.id | ||
resource_group_name = module.config.common_resource_group | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
terraform/subscriptions/s940/extmon/post-clusters/velero.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "azurerm_user_assigned_identity" "velero" { | ||
resource_group_name = module.config.common_resource_group | ||
name = "radix-id-velero-${module.config.environment}" | ||
} | ||
|
||
resource "azurerm_federated_identity_credential" "velero-mi-fedcred" { | ||
for_each = module.clusters.oidc_issuer_url | ||
|
||
audience = ["api://AzureADTokenExchange"] | ||
name = "k8s-velero-${each.key}-${module.config.environment}" | ||
issuer = each.value | ||
subject = "system:serviceaccount:velero:velero" | ||
parent_id = data.azurerm_user_assigned_identity.velero.id | ||
resource_group_name = module.config.common_resource_group | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "azurerm_user_assigned_identity" "velero" { | ||
resource_group_name = module.config.common_resource_group | ||
name = "radix-id-velero-${module.config.environment}" | ||
} | ||
|
||
resource "azurerm_federated_identity_credential" "velero-mi-fedcred" { | ||
for_each = module.clusters.oidc_issuer_url | ||
|
||
audience = ["api://AzureADTokenExchange"] | ||
name = "k8s-velero-${each.key}-${module.config.environment}" | ||
issuer = each.value | ||
subject = "system:serviceaccount:velero:velero" | ||
parent_id = data.azurerm_user_assigned_identity.velero.id | ||
resource_group_name = module.config.common_resource_group | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "azurerm_user_assigned_identity" "velero" { | ||
resource_group_name = module.config.common_resource_group | ||
name = "radix-id-velero-${module.config.environment}" | ||
} | ||
|
||
resource "azurerm_federated_identity_credential" "velero-mi-fedcred" { | ||
for_each = module.clusters.oidc_issuer_url | ||
|
||
audience = ["api://AzureADTokenExchange"] | ||
name = "k8s-velero-${each.key}-${module.config.environment}" | ||
issuer = each.value | ||
subject = "system:serviceaccount:velero:velero" | ||
parent_id = data.azurerm_user_assigned_identity.velero.id | ||
resource_group_name = module.config.common_resource_group | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
terraform/subscriptions/s941/playground/post-clusters/velero.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "azurerm_user_assigned_identity" "velero" { | ||
resource_group_name = module.config.common_resource_group | ||
name = "radix-id-velero-${module.config.environment}" | ||
} | ||
|
||
resource "azurerm_federated_identity_credential" "velero-mi-fedcred" { | ||
for_each = module.clusters.oidc_issuer_url | ||
|
||
audience = ["api://AzureADTokenExchange"] | ||
name = "k8s-velero-${each.key}-${module.config.environment}" | ||
issuer = each.value | ||
subject = "system:serviceaccount:velero:velero" | ||
parent_id = data.azurerm_user_assigned_identity.velero.id | ||
resource_group_name = module.config.common_resource_group | ||
} |