File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
modules/workload-identity Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ module "my-app-workload-identity" {
71
71
72
72
| Name | Description | Type | Default | Required |
73
73
| ------| -------------| :----:| :-----:| :-----:|
74
+ | automount\_ service\_ account\_ token | Enable automatic mounting of the service account token | bool | ` "false" ` | no |
74
75
| k8s\_ sa\_ name | Name for the existing Kubernetes service account | string | ` "null" ` | no |
75
76
| name | Name for both service accounts | string | n/a | yes |
76
77
| namespace | Namespace for k8s service account | string | ` "default" ` | no |
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ resource "google_service_account" "cluster_service_account" {
33
33
resource "kubernetes_service_account" "main" {
34
34
count = var. use_existing_k8s_sa ? 0 : 1
35
35
36
+ automount_service_account_token = var. automount_service_account_token
36
37
metadata {
37
38
name = var. name
38
39
namespace = var. namespace
Original file line number Diff line number Diff line change @@ -41,3 +41,9 @@ variable "use_existing_k8s_sa" {
41
41
default = false
42
42
type = bool
43
43
}
44
+
45
+ variable "automount_service_account_token" {
46
+ description = " Enable automatic mounting of the service account token"
47
+ default = false
48
+ type = bool
49
+ }
You can’t perform that action at this time.
0 commit comments