From 35c65d857d8c03173a98fe5ecad632d3748d7a90 Mon Sep 17 00:00:00 2001 From: Steve Pentland Date: Tue, 27 Aug 2024 20:56:15 -0400 Subject: [PATCH] fix(app): ensure invalid keys do not make it through The 'enabled', 'fsGroup', and 'fsGroupChangePolicy' keys were making it through to the template.spec.containers[0].securityContext section. This is causing updates to have issues applying. --- charts/nx-cloud/Chart.yaml | 2 +- charts/nx-cloud/templates/nx-cloud-file-server-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/nx-cloud/Chart.yaml b/charts/nx-cloud/Chart.yaml index 646e418..e709c4a 100644 --- a/charts/nx-cloud/Chart.yaml +++ b/charts/nx-cloud/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: nx-cloud description: Nx Cloud Helm Chart type: application -version: 0.15.9 +version: 0.15.10 maintainers: - name: nx url: "https://nx.app/" diff --git a/charts/nx-cloud/templates/nx-cloud-file-server-deployment.yaml b/charts/nx-cloud/templates/nx-cloud-file-server-deployment.yaml index 1d99230..afbb064 100644 --- a/charts/nx-cloud/templates/nx-cloud-file-server-deployment.yaml +++ b/charts/nx-cloud/templates/nx-cloud-file-server-deployment.yaml @@ -62,7 +62,7 @@ spec: periodSeconds: 5 {{- if .Values.fileServer.securityContext }} securityContext: - {{- toYaml .Values.fileServer.securityContext | nindent 12 }} + {{- omit .Values.fileServer.securityContext "enabled" "fsGroup" "fsGroupChangePolicy" | toYaml | nindent 12 }} {{- end }} volumeMounts: - mountPath: /data