This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 94122d1a6f Fix chart named template comments (#32681)
94122d1a6f is described below
commit 94122d1a6fcca5115fc4a3f2659418878f16e63c
Author: Jed Cunningham <[email protected]>
AuthorDate: Wed Jul 19 13:40:02 2023 -0600
Fix chart named template comments (#32681)
Not very exciting, but I noticed a formatting issue and a typo in our
named template comments.
---
chart/templates/_helpers.yaml | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/chart/templates/_helpers.yaml b/chart/templates/_helpers.yaml
index 6d4d4bac8d..e0c158c765 100644
--- a/chart/templates/_helpers.yaml
+++ b/chart/templates/_helpers.yaml
@@ -858,9 +858,8 @@ If no value is passed for securityContexts.container or
<node>.securityContexts.
| <node>.securityContexts.container | -> | securityContexts.containers |
-> | allowPrivilegesEscalation: false, capabilities.drop: [ALL]|
+-----------------------------------+ +----------------------------+
+-----------------------------------------------------------+
-
The template can be called like so:
- include "containerSecurityContext" (list . .Values.statsd)
+ include "containerSecurityContext" (list . .Values.webserver)
Where `.` is the global variables scope and `.Values.webserver` the local
variables scope for the webserver template.
*/}}
@@ -880,18 +879,17 @@ capabilities:
{{- end -}}
{{- end -}}
- {{/*
- Set the default value for external container securityContext(redis and
statsd).
- If no value is passed for <node>.securityContexts.container, defaults to
deny privileges escallation and dropping all POSIX capabilities.
-
- +-----------------------------------+
+-----------------------------------------------------------+
- | <node>.securityContexts.container | -> | allowPrivilegesEscalation:
false, capabilities.drop: [ALL]|
- +-----------------------------------+
+-----------------------------------------------------------+
+{{/*
+Set the default value for external container securityContext(redis and statsd).
+If no value is passed for <node>.securityContexts.container, defaults to deny
privileges escallation and dropping all POSIX capabilities.
+ +-----------------------------------+
+-----------------------------------------------------------+
+ | <node>.securityContexts.container | -> | allowPrivilegesEscalation:
false, capabilities.drop: [ALL]|
+ +-----------------------------------+
+-----------------------------------------------------------+
- The template can be called like so:
- include "externalContainerSecurityContext" .Values.statsd
- */}}
+The template can be called like so:
+ include "externalContainerSecurityContext" .Values.statsd
+*/}}
{{- define "externalContainerSecurityContext" -}}
{{- if .securityContexts.container -}}
{{ toYaml .securityContexts.container | print }}