File tree 3 files changed +8
-0
lines changed
modules/workload-identity
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ module "my-app-workload-identity" {
68
68
69
69
| Name | Description | Type | Default | Required |
70
70
| ------| -------------| :----:| :-----:| :-----:|
71
+ | automount\_ service\_ account\_ token | Enable automatic mounting of the service account token | bool | ` "false" ` | no |
71
72
| cluster\_ name | Cluster name. Required if using existing KSA. | string | ` "" ` | no |
72
73
| k8s\_ sa\_ name | Name for the existing Kubernetes service account | string | ` "null" ` | no |
73
74
| location | Cluster location (region if regional cluster, zone if zonal cluster). Required if using existing KSA. | string | ` "" ` | no |
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ resource "google_service_account" "cluster_service_account" {
47
47
resource "kubernetes_service_account" "main" {
48
48
count = var. use_existing_k8s_sa ? 0 : 1
49
49
50
+ automount_service_account_token = var. automount_service_account_token
50
51
metadata {
51
52
name = var. name
52
53
namespace = var. namespace
Original file line number Diff line number Diff line change @@ -53,3 +53,9 @@ variable "use_existing_k8s_sa" {
53
53
default = false
54
54
type = bool
55
55
}
56
+
57
+ variable "automount_service_account_token" {
58
+ description = " Enable automatic mounting of the service account token"
59
+ default = false
60
+ type = bool
61
+ }
You can’t perform that action at this time.
0 commit comments