Skip to content

Commit

Permalink
Merge pull request #106 from ericavonb/update-k8s-image-registry
Browse files Browse the repository at this point in the history
replace k8s.gcr.io registry with registry.k8s.io in all images
  • Loading branch information
DrFaust92 authored May 13, 2023
2 parents db347e5 + 86aa47d commit 4714fb8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions controller.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ resource "kubernetes_deployment" "ebs_csi_controller" {

container {
name = "csi-provisioner"
image = "k8s.gcr.io/sig-storage/csi-provisioner:${var.csi_provisioner_tag_version}"
image = "registry.k8s.io/sig-storage/csi-provisioner:${var.csi_provisioner_tag_version}"
args = compact(
[
"--csi-address=$(ADDRESS)",
Expand Down Expand Up @@ -177,7 +177,7 @@ resource "kubernetes_deployment" "ebs_csi_controller" {

container {
name = "liveness-probe"
image = "k8s.gcr.io/sig-storage/livenessprobe:${local.liveness_probe_version}"
image = "registry.k8s.io/sig-storage/livenessprobe:${local.liveness_probe_version}"
args = [
"--csi-address=/csi/csi.sock"
]
Expand Down
4 changes: 2 additions & 2 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ locals {

resizer_container = var.enable_volume_resizing ? [{
name = "csi-resizer",
image = "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0"
image = "registry.k8s.io/sig-storage/csi-resizer:v1.4.0"
}] : []

snapshot_container = var.enable_volume_snapshot ? [{
name = "csi-snapshotter",
image = "k8s.gcr.io/sig-storage/csi-snapshotter:v6.0.1"
image = "registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1"
}] : []
}
4 changes: 2 additions & 2 deletions node.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "kubernetes_daemonset" "node" {

container {
name = "ebs-plugin"
image = "${var.ebs_csi_controller_image == "" ? "k8s.gcr.io/provider-aws/aws-ebs-csi-driver" : var.ebs_csi_controller_image}:${local.ebs_csi_driver_version}"
image = "${var.ebs_csi_controller_image == "" ? "registry.k8s.io/provider-aws/aws-ebs-csi-driver" : var.ebs_csi_controller_image}:${local.ebs_csi_driver_version}"
args = flatten([
"node",
"--http-endpoint=:8080",
Expand Down Expand Up @@ -192,7 +192,7 @@ resource "kubernetes_daemonset" "node" {

container {
name = "liveness-probe"
image = "k8s.gcr.io/sig-storage/livenessprobe:${local.liveness_probe_version}"
image = "registry.k8s.io/sig-storage/livenessprobe:${local.liveness_probe_version}"
args = [
"--csi-address=/csi/csi.sock"
]
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "ebs_csi_driver_version" {

variable "ebs_csi_controller_image" {
description = "The EBS CSI driver controller's image"
default = "k8s.gcr.io/provider-aws/aws-ebs-csi-driver"
default = "registry.k8s.io/provider-aws/aws-ebs-csi-driver"
type = string
}

Expand Down

0 comments on commit 4714fb8

Please sign in to comment.