mirror of https://git.rancher.io/charts
Merge pull request #664 from prachidamle/new_cis_fixes
CIS chart fixes to update image tag, fixes for hardened clusterpull/667/head
commit
89746f9fe1
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: default-allow-all
|
||||||
|
namespace: {{ template "cis.namespace" . }}
|
||||||
|
spec:
|
||||||
|
podSelector: {}
|
||||||
|
ingress:
|
||||||
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: patch-sa
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": post-install, post-upgrade
|
||||||
|
"helm.sh/hook-delete-policy": hook-succeeded, before-hook-creation
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
serviceAccountName: cis-operator-serviceaccount
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: sa
|
||||||
|
image: "{{ template "system_default_registry" . }}{{ .Values.global.kubectl.repository }}:{{ .Values.global.kubectl.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
|
||||||
|
command: ["kubectl", "patch", "serviceaccount", "default", "-p", "{\"automountServiceAccountToken\": false}"]
|
||||||
|
args: ["-n", {{ template "cis.namespace" . }}]
|
||||||
|
backoffLimit: 1
|
|
@ -5,7 +5,7 @@
|
||||||
image:
|
image:
|
||||||
cisoperator:
|
cisoperator:
|
||||||
repository: rancher/cis-operator
|
repository: rancher/cis-operator
|
||||||
tag: v0.0.5
|
tag: v0.0.6
|
||||||
securityScan:
|
securityScan:
|
||||||
repository: rancher/security-scan
|
repository: rancher/security-scan
|
||||||
tag: v0.2.0
|
tag: v0.2.0
|
||||||
|
@ -33,4 +33,7 @@ affinity: {}
|
||||||
|
|
||||||
global:
|
global:
|
||||||
cattle:
|
cattle:
|
||||||
systemDefaultRegistry: ""
|
systemDefaultRegistry: ""
|
||||||
|
kubectl:
|
||||||
|
repository: rancher/kubectl
|
||||||
|
tag: v1.18.6
|
||||||
|
|
Loading…
Reference in New Issue