Unverified Commit ba77c572 by Denise Committed by GitHub

Merge pull request #163 from leodotcloud/cis

cis changes
parents b5e3de1d 549b4897
...@@ -14,6 +14,7 @@ metadata: ...@@ -14,6 +14,7 @@ metadata:
run: sonobuoy-master run: sonobuoy-master
spec: spec:
serviceAccountName: s-sa-{{ .Release.Name }} serviceAccountName: s-sa-{{ .Release.Name }}
terminationGracePeriodSeconds: 0
volumes: volumes:
- configMap: - configMap:
name: s-config-cm-{{ .Release.Name }} name: s-config-cm-{{ .Release.Name }}
...@@ -23,10 +24,20 @@ spec: ...@@ -23,10 +24,20 @@ spec:
name: s-plugins-volume name: s-plugins-volume
- emptyDir: {} - emptyDir: {}
name: output-volume name: output-volume
{{- if ne .Values.skipConfigMapName "" }} {{- if ne .Values.userSkipConfigMapName "" }}
- configMap: - configMap:
name: {{ .Values.skipConfigMapName }} name: {{ .Values.userSkipConfigMapName }}
name: s-skip-info-volume name: user-skip-info-volume
{{- end }}
{{- if ne .Values.defaultSkipConfigMapName "" }}
- configMap:
name: {{ .Values.defaultSkipConfigMapName }}
name: default-skip-info-volume
{{- end }}
{{- if ne .Values.notApplicableConfigMapName "" }}
- configMap:
name: {{ .Values.notApplicableConfigMapName }}
name: not-applicable-info-volume
{{- end }} {{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
...@@ -66,9 +77,17 @@ spec: ...@@ -66,9 +77,17 @@ spec:
name: s-plugins-volume name: s-plugins-volume
- mountPath: /tmp/sonobuoy - mountPath: /tmp/sonobuoy
name: output-volume name: output-volume
{{- if ne .Values.skipConfigMapName "" }} {{- if ne .Values.userSkipConfigMapName "" }}
- mountPath: /etc/kbs - mountPath: /etc/kbs/userskip
name: s-skip-info-volume name: user-skip-info-volume
{{- end }}
{{- if ne .Values.defaultSkipConfigMapName "" }}
- mountPath: /etc/kbs/defaultskip
name: default-skip-info-volume
{{- end }}
{{- if ne .Values.notApplicableConfigMapName "" }}
- mountPath: /etc/kbs/notapplicable
name: not-applicable-info-volume
{{- end }} {{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
......
...@@ -6,9 +6,12 @@ replicaCount: 1 ...@@ -6,9 +6,12 @@ replicaCount: 1
# if owner is specified, it's used for the name of the configmap for results # if owner is specified, it's used for the name of the configmap for results
owner: "" owner: ""
# skipConfigMapName is used to specify the name of cm where the skip info is stored # userSkipConfigMapName is used to specify the name of cm where user skip info is stored
# skip has higher precedence than what's specified in the configmap userSkipConfigMapName: ""
skipConfigMapName: "" # defaultSkipConfigMapName is used to specify the name of cm where default skip info is stored
defaultSkipConfigMapName: ""
# notApplicableConfigMapName
notApplicableConfigMapName: ""
# overrideBenchmarkVersion is used to override the default benchmark version used for # overrideBenchmarkVersion is used to override the default benchmark version used for
# a particular k8s version # a particular k8s version
overrideBenchmarkVersion: "" overrideBenchmarkVersion: ""
...@@ -20,7 +23,7 @@ debugTime: "infinity" ...@@ -20,7 +23,7 @@ debugTime: "infinity"
image: image:
repository: rancher/security-scan repository: rancher/security-scan
tag: v0.1.6 tag: v0.1.7
pullPolicy: Always pullPolicy: Always
nameOverride: "" nameOverride: ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment