From 5b91bfd9fe06eb1e387abcf26cbb840a31d23d10 Mon Sep 17 00:00:00 2001 From: Andy Sadler Date: Mon, 9 Dec 2024 10:10:42 -0600 Subject: [PATCH] Add renovate config (#20) * extract image references to top-level kustomize Move the strict definition of images from the deployment manifests for each proxy type to their respective kustomize.yaml. This lets us watch for updates on them using renovate. Signed-off-by: Andy Sadler * add renovate config This enables updates for the following: - go.mod dependencies - images referenced in container manifests - images referenced in kustomize manifests Signed-off-by: Andy Sadler --------- Signed-off-by: Andy Sadler --- .../test/dumb-proxy/config/proxy/kustomization.yaml | 3 +++ acceptance/test/dumb-proxy/config/proxy/proxy.yaml | 2 +- .../config/proxy-auth/kustomization.yaml | 5 +++++ .../test/smart-proxy/config/proxy-auth/proxy.yaml | 4 ++-- renovate.json | 13 +++++++++++++ 5 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 renovate.json diff --git a/acceptance/test/dumb-proxy/config/proxy/kustomization.yaml b/acceptance/test/dumb-proxy/config/proxy/kustomization.yaml index 4a07038..c0a8fe7 100644 --- a/acceptance/test/dumb-proxy/config/proxy/kustomization.yaml +++ b/acceptance/test/dumb-proxy/config/proxy/kustomization.yaml @@ -9,3 +9,6 @@ configMapGenerator: - name: namespace-lister-proxy files: - nginx.conf +images: +- name: openresty/openresty + newTag: 1.25.3.1-0-jammy diff --git a/acceptance/test/dumb-proxy/config/proxy/proxy.yaml b/acceptance/test/dumb-proxy/config/proxy/proxy.yaml index 371c2bd..a6dcfd4 100644 --- a/acceptance/test/dumb-proxy/config/proxy/proxy.yaml +++ b/acceptance/test/dumb-proxy/config/proxy/proxy.yaml @@ -22,7 +22,7 @@ spec: spec: serviceAccountName: namespace-lister-proxy containers: - - image: openresty/openresty:1.25.3.1-0-jammy + - image: openresty/openresty:latest name: nginx-120 command: - "/usr/local/openresty/bin/openresty" diff --git a/acceptance/test/smart-proxy/config/proxy-auth/kustomization.yaml b/acceptance/test/smart-proxy/config/proxy-auth/kustomization.yaml index ccef12b..ee92c57 100644 --- a/acceptance/test/smart-proxy/config/proxy-auth/kustomization.yaml +++ b/acceptance/test/smart-proxy/config/proxy-auth/kustomization.yaml @@ -9,3 +9,8 @@ configMapGenerator: - name: namespace-lister-proxy-auth files: - nginx.conf +images: +- name: registry.access.redhat.com/ubi9/ubi + digest: sha256:66233eebd72bb5baa25190d4f55e1dc3fff3a9b77186c1f91a0abdb274452072 +- name: openresty/openresty + newTag: 1.25.3.1-0-jammy diff --git a/acceptance/test/smart-proxy/config/proxy-auth/proxy.yaml b/acceptance/test/smart-proxy/config/proxy-auth/proxy.yaml index e6e8b71..89de5a4 100644 --- a/acceptance/test/smart-proxy/config/proxy-auth/proxy.yaml +++ b/acceptance/test/smart-proxy/config/proxy-auth/proxy.yaml @@ -23,7 +23,7 @@ spec: serviceAccountName: namespace-lister-proxy-auth initContainers: - name: add-sva-token-to-nginx-config - image: registry.access.redhat.com/ubi9/ubi@sha256:66233eebd72bb5baa25190d4f55e1dc3fff3a9b77186c1f91a0abdb274452072 + image: registry.access.redhat.com/ubi9/ubi:latest command: - sh - -c @@ -54,7 +54,7 @@ spec: cpu: 10m memory: 64Mi containers: - - image: openresty/openresty:1.25.3.1-0-jammy + - image: openresty/openresty:latest name: nginx-120 command: - "/usr/local/openresty/bin/openresty" diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..1f35481 --- /dev/null +++ b/renovate.json @@ -0,0 +1,13 @@ +{ + "extends": [ + "github>konflux-ci/mintmaker//config/renovate/renovate.json" + ], + "enabledManagers": [ + "docker", + "go", + "kustomize", + ], + "go": { + "pinDigests": false + }, +}