Skip to content

Commit

Permalink
fix: replace alpine image (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaizanse authored May 8, 2024
1 parent c9622b0 commit 06fccbb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/nats/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions resources/nats/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions sec-scanners-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06fccbb

Please sign in to comment.