Skip to content

Commit

Permalink
Merge pull request #42 from mitou/fix/add-patch-permission
Browse files Browse the repository at this point in the history
[修正] podのstatusを更新できなくてmattermostが再起動を繰り返していたため修正
  • Loading branch information
xpadev-net authored Apr 29, 2024
2 parents 8798190 + 5cc50c0 commit a342fe0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions terraform/iam/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,11 @@ 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" {
project = "mitou-jr"
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 a342fe0

Please sign in to comment.