From cb4f11177ca266d33864d09659bad5e2ae4ffe1d Mon Sep 17 00:00:00 2001 From: Mark Arends Date: Fri, 19 May 2023 17:09:34 +0200 Subject: [PATCH 1/2] Add support for extra SecurityContext configuration like disabling IPv6 --- stable/xray/Chart.yaml | 2 +- stable/xray/templates/xray-statefulset.yaml | 1 + stable/xray/values.yaml | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/xray/Chart.yaml b/stable/xray/Chart.yaml index 0bc762570..5b44ef5c8 100644 --- a/stable/xray/Chart.yaml +++ b/stable/xray/Chart.yaml @@ -24,4 +24,4 @@ name: xray sources: - https://github.com/jfrog/charts type: application -version: 103.71.6 +version: 103.71.7 diff --git a/stable/xray/templates/xray-statefulset.yaml b/stable/xray/templates/xray-statefulset.yaml index 0b8300b07..74ead17ca 100644 --- a/stable/xray/templates/xray-statefulset.yaml +++ b/stable/xray/templates/xray-statefulset.yaml @@ -91,6 +91,7 @@ spec: {{- if .Values.common.fsGroupChangePolicy }} fsGroupChangePolicy: {{ .Values.common.fsGroupChangePolicy }} {{- end }} +{{ tpl (toYaml .Values.common.extraSecurityContext) . | nindent 8 }} {{- if .Values.common.topologySpreadConstraints }} topologySpreadConstraints: {{ tpl (toYaml .Values.common.topologySpreadConstraints) . | indent 8 }} diff --git a/stable/xray/values.yaml b/stable/xray/values.yaml index d67910494..079767f66 100644 --- a/stable/xray/values.yaml +++ b/stable/xray/values.yaml @@ -535,6 +535,13 @@ common: xrayGroupId: 1035 # fsGroupChangePolicy: "Always" + # Set extra security context options + extraSecurityContext: + # For example disable ipv6 inside the pod + # sysctls: + # - name: net.ipv6.conf.all.disable_ipv6 + # value: "1" + # Spread Xray pods evenly across your nodes or some other topology topologySpreadConstraints: [] # - maxSkew: 1 From cc5fe17e1e0bd60d99fc88003245af554dca68fa Mon Sep 17 00:00:00 2001 From: Mark Arends Date: Fri, 19 May 2023 17:19:11 +0200 Subject: [PATCH 2/2] Add support for extra SecurityContext configuration like disabling IPv6 --- stable/xray/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stable/xray/CHANGELOG.md b/stable/xray/CHANGELOG.md index 630a9a8f3..2a9b5db00 100644 --- a/stable/xray/CHANGELOG.md +++ b/stable/xray/CHANGELOG.md @@ -1,6 +1,8 @@ # JFrog Xray Chart Changelog All changes to this chart will be documented in this file. +## [103.71.7] - May 19, 2023 +* Allow setting extra SecurityContext ## [103.71.6] - Apr 07, 2023 * Adding vm memory memoryHighWatermark field and scheduler field for Rabbitmq Chart