mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-15 17:50:58 +00:00
Added support of sidecars and extraManifests (#439)
* Added support of sidecars (for oauth2-proxy in example) and extraManifests Signed-off-by: Milogo Boris (Agyla) <boris.milogo.agyla@ext.pmu.fr>
This commit is contained in:
parent
a1b4f60ad0
commit
7642175544
5 changed files with 55 additions and 2 deletions
|
@ -88,6 +88,16 @@ spec:
|
||||||
{{- with .Values.envVars }}
|
{{- with .Values.envVars }}
|
||||||
{{- . | toYaml | trim | nindent 10 }}
|
{{- . | toYaml | trim | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.sidecarContainers }}
|
||||||
|
{{- range $name, $spec := .Values.sidecarContainers }}
|
||||||
|
- name: {{ $name }}
|
||||||
|
{{- if kindIs "string" $spec }}
|
||||||
|
{{- tpl $spec $ | nindent 10 }}
|
||||||
|
{{- else }}
|
||||||
|
{{- toYaml $spec | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-file
|
- name: config-file
|
||||||
configMap:
|
configMap:
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
{{ range .Values.extraManifests }}
|
||||||
|
---
|
||||||
|
{{ tpl . $ }}
|
||||||
|
{{ end }}
|
|
@ -1,6 +1,6 @@
|
||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "ui.fullname" . -}}
|
{{- $fullName := include "ui.fullname" . -}}
|
||||||
{{- $svcPort := .Values.service.port -}}
|
{{- $svcPort := .Values.ingress.port | default .Values.service.port -}}
|
||||||
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
|
|
@ -25,6 +25,9 @@ spec:
|
||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
{{- if .Values.service.additionalPorts }}
|
||||||
|
{{ toYaml .Values.service.additionalPorts | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "ui.selectorLabels" . | nindent 4 }}
|
{{- include "ui.selectorLabels" . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -11,6 +11,24 @@ image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: 1.9.2
|
tag: 1.9.2
|
||||||
|
|
||||||
|
# sidecarContainers - add more containers to Kyverno ui
|
||||||
|
# Key/Value where Key is the sidecar `- name: <Key>`
|
||||||
|
# Example:
|
||||||
|
# for adding OAuth authentication to Kyverno ui
|
||||||
|
# sidecarContainers:
|
||||||
|
# oauth-proxy:
|
||||||
|
# image: quay.io/oauth2-proxy/oauth2-proxy:v7.6.0
|
||||||
|
# args:
|
||||||
|
# - --upstream=http://127.0.0.1:8080
|
||||||
|
# - --http-address=0.0.0.0:8081
|
||||||
|
# - ...
|
||||||
|
# ports:
|
||||||
|
# - containerPort: 8081
|
||||||
|
# name: oauth-proxy
|
||||||
|
# protocol: TCP
|
||||||
|
# resources: {}
|
||||||
|
sidecarContainers: {}
|
||||||
|
|
||||||
# possible default displayModes: light/dark
|
# possible default displayModes: light/dark
|
||||||
displayMode: ""
|
displayMode: ""
|
||||||
|
|
||||||
|
@ -172,6 +190,11 @@ service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
# integer nubmer. This is port for service
|
# integer nubmer. This is port for service
|
||||||
port: 8080
|
port: 8080
|
||||||
|
# additionalPorts:
|
||||||
|
# - name: authenticated
|
||||||
|
# port: 8081
|
||||||
|
# targetPort: 8081
|
||||||
|
additionalPorts: []
|
||||||
|
|
||||||
# enabled if replicaCount > 1
|
# enabled if replicaCount > 1
|
||||||
podDisruptionBudget:
|
podDisruptionBudget:
|
||||||
|
@ -193,13 +216,15 @@ ingress:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
## Redirect ingress to an additional defined port on the service
|
||||||
|
# port: 8081
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: chart-example.local
|
||||||
paths: []
|
paths: []
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
# - chart-example.local
|
# - chart-example.local
|
||||||
|
|
||||||
# Node labels for pod assignment
|
# Node labels for pod assignment
|
||||||
# ref: https://kubernetes.io/docs/user-guide/node-selection/
|
# ref: https://kubernetes.io/docs/user-guide/node-selection/
|
||||||
|
@ -241,3 +266,14 @@ global:
|
||||||
password: ""
|
password: ""
|
||||||
# read credentials from secret
|
# read credentials from secret
|
||||||
secretRef: ""
|
secretRef: ""
|
||||||
|
|
||||||
|
# Extra manifests to deploy as an array
|
||||||
|
extraManifests: []
|
||||||
|
# - |
|
||||||
|
# apiVersion: v1
|
||||||
|
# kind: ConfigMap
|
||||||
|
# metadata:
|
||||||
|
# labels:
|
||||||
|
# name: kyverno-extra
|
||||||
|
# data:
|
||||||
|
# extra-data: "value"
|
Loading…
Reference in a new issue