Skip to content

Commit

Permalink
skipper: disable image-updater-bot for main image
Browse files Browse the repository at this point in the history
image-updater-bot replaces all matching image urls in the manifest
so use print template function to disable it for main image.

Follow up #8193

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
  • Loading branch information
AlexanderYastrebov committed Sep 26, 2024
1 parent 6655265 commit 2a19cad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cluster/manifests/skipper/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{/* image-updater-bot detects *image variables so use __ suffux to disable it for main image */}}
{{/* image-updater-bot detects *image variables so use print to disable it for main image */}}

{{ $main_image__ := "container-registry.zalando.net/teapot/skipper-internal:v0.21.198-1017" }}
{{ $main_image := print "container-registry.zalando.net/teapot/skipper-internal:" "v0.21.198-1017" }}
{{ $canary_image := "container-registry.zalando.net/teapot/skipper-internal:v0.21.208-1027" }}


Expand All @@ -9,7 +9,7 @@

{{ template "skipper-ingress" dict
"name" "skipper-ingress"
"image" $main_image__
"image" $main_image

"Cluster" .Cluster
"Values" .Values
Expand Down Expand Up @@ -447,7 +447,7 @@ spec:
{{ end }}

{{ if ne .Cluster.ConfigItems.skipper_routesrv_enabled "false" }}
{{ $main_version := index (split (index (split $main_image__ ":") 1) "-") 0 }}
{{ $main_version := index (split (index (split $main_image ":") 1) "-") 0 }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 2a19cad

Please sign in to comment.