Skip to content

Commit

Permalink
Update gcp image
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 18, 2024
1 parent b2bfc2f commit 5aacedb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkg/cmds/gcp_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ var gcpImageMap = map[string]string{
"defaultbackend-amd64": "ingress-nginx-defaultbackend",
"fluxcd/helm-controller": "flux-helm-controller",
"fluxcd/source-controller": "flux-source-controller",
"fluxcd/kustomize-controller": "flux-kustomize-controller",
"fluxcd/notification-controller": "flux-notification-controller",
"ingress-nginx/controller": "ingress-nginx-controller",
"ingress-nginx/kube-webhook-certgen": "ingress-nginx-kube-webhook-certgen",
"kedacore/http-add-on-interceptor": "keda-http-add-on-interceptor",
Expand Down Expand Up @@ -97,6 +99,11 @@ fi
return fmt.Errorf("image %s has no tag", img)
}

repo := ref.Repository
if repo == "prometheus-operator/prometheus-operator" {
continue
}

buf.WriteString("crane cp")
if nondistro {
buf.WriteString(" --allow-nondistributable-artifacts")
Expand All @@ -107,10 +114,7 @@ fi
buf.WriteString(" ")
buf.WriteString(img)
buf.WriteString(" ")
repo := ref.Repository
if repo == "prometheus-operator/prometheus-operator" {
continue
}

if strings.HasPrefix(ref.Repository, "library/") {
repo = ref.Repository[len("library/"):]
}
Expand Down

0 comments on commit 5aacedb

Please sign in to comment.