You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2020/11/29 06:16:10 UTC

[trafficserver-ingress-controller] branch master updated: add support for cmd/args/securitycontext to helm chart (#56)

This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new afafd23  add support for cmd/args/securitycontext to helm chart (#56)
afafd23 is described below

commit afafd23d87bbce782965329f6399e7b25b56adeb
Author: Kit Chan <ki...@apache.org>
AuthorDate: Sat Nov 28 22:16:02 2020 -0800

    add support for cmd/args/securitycontext to helm chart (#56)
---
 charts/ats-ingress/templates/deployment.yaml |  15 +++++++++++++++
 charts/ats-ingress/values.yaml               |  14 ++++++++++++++
 docs/ats-ingress-0.1.0.tgz                   | Bin 4708 -> 4872 bytes
 docs/index.yaml                              |   6 +++---
 4 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/charts/ats-ingress/templates/deployment.yaml b/charts/ats-ingress/templates/deployment.yaml
index 7af8a53..586551c 100644
--- a/charts/ats-ingress/templates/deployment.yaml
+++ b/charts/ats-ingress/templates/deployment.yaml
@@ -55,6 +55,10 @@ spec:
     spec:
       serviceAccountName: {{ include "ats-ingress.serviceAccountName" . }}
       terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
+{{- if .Values.controller.podSecurityContext }}
+      securityContext:
+{{ toYaml .Values.controller.podSecurityContext | indent 8 }}
+{{- end }}
 {{- if .Values.controller.dnsConfig }}
       dnsConfig:
 {{ toYaml .Values.controller.dnsConfig | indent 8 }}
@@ -71,6 +75,13 @@ spec:
         - name: {{ .Chart.Name }}
           image: {{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag | default .Chart.AppVersion }}
           imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
+{{- if .Values.controller.command }}
+          command: {{ .Values.controller.command }}
+{{- end }}
+          args:
+{{- range .Values.controller.extraArgs }}
+          - {{ . }}
+{{- end }}
           volumeMounts:
             - mountPath: {{ .Values.controller.ssl.path | quote }} 
               name: {{ .Values.controller.ssl.name }}
@@ -103,6 +114,10 @@ spec:
             protocol: TCP
           resources:
             {{- toYaml .Values.controller.resources | nindent 12 }}
+          {{- if .Values.controller.securityContext }}
+          securityContext:
+{{ toYaml .Values.controller.securityContext | indent 12 }}
+          {{- end }}
           {{- if .Values.controller.lifecycle }}
           lifecycle:
             {{- if eq "string" (printf "%T" .Values.controller.lifecycle) }}
diff --git a/charts/ats-ingress/values.yaml b/charts/ats-ingress/values.yaml
index 51e6ae4..bd51dd5 100644
--- a/charts/ats-ingress/values.yaml
+++ b/charts/ats-ingress/values.yaml
@@ -50,6 +50,20 @@ controller:
     username: null
     password: null
 
+  ## optionally override entrypoint
+  command: ""
+
+  ## Additional command line arguments to pass to Controller
+  extraArgs: []
+
+  ## Security Context for pod
+  ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
+  podSecurityContext: {}
+
+  ## Security Context for container
+  ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
+  securityContext: {}
+
   ## Controller Service configuration
   ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
   service:
diff --git a/docs/ats-ingress-0.1.0.tgz b/docs/ats-ingress-0.1.0.tgz
index 5885dd7..a42eeeb 100644
Binary files a/docs/ats-ingress-0.1.0.tgz and b/docs/ats-ingress-0.1.0.tgz differ
diff --git a/docs/index.yaml b/docs/index.yaml
index b6e9061..1a0bce1 100644
--- a/docs/index.yaml
+++ b/docs/index.yaml
@@ -3,12 +3,12 @@ entries:
   ats-ingress:
   - apiVersion: v2
     appVersion: 0.1.0
-    created: "2020-11-28T02:57:15.235894-08:00"
+    created: "2020-11-28T22:08:57.684474-08:00"
     description: A Helm chart for Kubernetes
-    digest: 01bd483f8632c6dfc3de85a1dc54aee3d4e1072fc28da91558006fc7e0b8b17c
+    digest: 42530c3ea67730cb10b2b4df1119d98772f6413c72b63b9db32902b07d0b0b5b
     name: ats-ingress
     type: application
     urls:
     - https://apache.github.io/trafficserver-ingress-controller/ats-ingress-0.1.0.tgz
     version: 0.1.0
-generated: "2020-11-28T02:57:15.234409-08:00"
+generated: "2020-11-28T22:08:57.683727-08:00"