Skip to content

Commit

Permalink
fix: add permission to update pod status
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Apr 29, 2024
1 parent 8798190 commit d8a3052
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform/iam/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,10 @@ resource "google_project_iam_binding" "secret-manager" {
"serviceAccount:${google_service_account.wi-secret-mattermost-primary.email}",
]
}

resource "google_project_iam_binding" "pod_status_updater_binding" {
role = google_project_iam_custom_role.pod_status_updater.id
members = [
"serviceAccount:${google_service_account.wi-mattermost-primary.email}",
]
}
7 changes: 7 additions & 0 deletions terraform/iam/role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ resource "google_project_iam_custom_role" "tfplanner" {
"dns.responsePolicyRules.list",
]
}

resource "google_project_iam_custom_role" "pod_status_updater" {
role_id = "podStatusUpdater"
title = "Pod Status Updater"
description = "Allows updating pod status"
permissions = ["container.pods.updateStatus"]
}

0 comments on commit d8a3052

Please sign in to comment.