From 06fccbb335cbffe7de8b2f9093c929ae99e958a7 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Wed, 8 May 2024 16:33:53 +0200 Subject: [PATCH] fix: replace alpine image (#372) --- resources/nats/templates/statefulset.yaml | 2 +- resources/nats/values.yaml | 4 ++++ sec-scanners-config.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/nats/templates/statefulset.yaml b/resources/nats/templates/statefulset.yaml index 6fd2c449..4be90ed3 100644 --- a/resources/nats/templates/statefulset.yaml +++ b/resources/nats/templates/statefulset.yaml @@ -98,7 +98,7 @@ spec: - name: change-storage-permissions securityContext: runAsUser: 0 - image: alpine:latest + image: "{{ include "imageurl" (dict "reg" .Values.global.containerRegistry "img" .Values.global.images.alpine) }}" command: ["sh", "-c", "chown -R 1000:10001 {{ .Values.nats.jetstream.fileStorage.storageDirectory }} && chmod -R 755 {{ .Values.nats.jetstream.fileStorage.storageDirectory }} && echo 'Done!'"] volumeMounts: - name: {{ include "nats.fullname" . }}-js-pvc diff --git a/resources/nats/values.yaml b/resources/nats/values.yaml index a246139d..c78c2ddf 100644 --- a/resources/nats/values.yaml +++ b/resources/nats/values.yaml @@ -20,6 +20,10 @@ global: name: natsio/prometheus-nats-exporter version: 0.14.0 directory: prod/external + alpine: + name: alpine + version: 3.19.1 + directory: prod/external jetstream: # Storage type of the stream, memory or file. diff --git a/sec-scanners-config.yaml b/sec-scanners-config.yaml index 7c498aef..de032d87 100644 --- a/sec-scanners-config.yaml +++ b/sec-scanners-config.yaml @@ -5,6 +5,7 @@ protecode: - europe-docker.pkg.dev/kyma-project/prod/external/natsio/prometheus-nats-exporter:0.14.0 - europe-docker.pkg.dev/kyma-project/prod/external/natsio/nats-server-config-reloader:0.14.1 - europe-docker.pkg.dev/kyma-project/prod/external/nats:v20240102-2.10.7-alpine3.18 + - europe-docker.pkg.dev/kyma-project/prod/external/alpine:3.19.1 whitesource: language: golang-mod subprojects: false