Skip to content

Commit

Permalink
feat(bootstrap-gcp): add variable to allow gke to pull image from con…
Browse files Browse the repository at this point in the history
…tainer registry (#598)

* feat(bootstrap-gcp): add variable to allow gke to pull image from container registry

* bump tf version
  • Loading branch information
walkoss authored Mar 27, 2023
1 parent 9fe2c2d commit a7c98dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap/terraform/gcp-bootstrap/deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: plural.sh/v1alpha1
kind: Dependencies
metadata:
description: Creates a GKE cluster and adds initial configuration
version: 0.2.18
version: 0.2.19
spec:
dependencies: []
providers:
Expand Down
1 change: 1 addition & 0 deletions bootstrap/terraform/gcp-bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module "gke" {
release_channel = var.release_channel
regional = var.regional_cluster
zones = var.cluster_zones
grant_registry_access = var.grant_registry_access

node_pools = var.node_pools

Expand Down
8 changes: 7 additions & 1 deletion bootstrap/terraform/gcp-bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,10 @@ variable "cluster_zones" {
type = list(string)
description = "The zones to host the cluster in (optional if regional cluster / required if zonal)"
default = []
}
}

variable "grant_registry_access" {
type = bool
description = "Grants created cluster-specific service account storage.objectViewer and artifactregistry.reader roles."
default = false
}

0 comments on commit a7c98dd

Please sign in to comment.