Skip to content

Commit

Permalink
infra/azure-peerpods: don't depend on AKS resource group
Browse files Browse the repository at this point in the history
This resource group is only used for the non-peerpods AKS resource
group. The peerpods cluster doesn't need to read from this resource
group.
  • Loading branch information
Freax13 committed Oct 18, 2024
1 parent e705f46 commit f2120a4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions infra/azure-peerpods/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ locals {
name = "${var.name_prefix}_caa_cluster"
}

data "azurerm_resource_group" "rg_podvm_image" {
name = var.image_resource_group_name
}

data "azurerm_resource_group" "rg" {
name = local.name
}
Expand Down Expand Up @@ -81,12 +77,6 @@ resource "azuread_application_federated_identity_credential" "federated_credenti
audiences = ["api://AzureADTokenExchange"]
}

resource "azurerm_role_assignment" "ra_image" {
scope = data.azurerm_resource_group.rg_podvm_image.id
role_definition_name = "Reader"
principal_id = azuread_service_principal.sp.object_id
}

resource "azuread_application_password" "cred" {
application_id = azuread_application.app.id
}
Expand Down

0 comments on commit f2120a4

Please sign in to comment.