Skip to content

Commit

Permalink
Merge pull request #1073 from javanthropus/add-security-context
Browse files Browse the repository at this point in the history
Lock down package server runtime environment
  • Loading branch information
openshift-merge-robot authored Mar 16, 2020
2 parents a7ba0e7 + 06faf2d commit 7afd248
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
12 changes: 11 additions & 1 deletion deploy/chart/templates/_packageserver.deployment-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,15 @@ spec:
{{- if .Values.package.resources }}
resources:
{{ toYaml .Values.package.resources | indent 10 }}
{{- end}}
{{- end }}
{{- if .Values.package.securityContext }}
securityContext:
runAsUser: {{ .Values.package.securityContext.runAsUser }}
{{- end }}
volumeMounts:
- name: tmpfs
mountPath: /tmp
volumes:
- name: tmpfs
emptyDir: {}
{{- end -}}
2 changes: 2 additions & 0 deletions deploy/upstream/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ package:
pullPolicy: Always
service:
internalPort: 5443
securityContext:
runAsUser: 1000
catalog_sources:
- rh-operators
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ spec:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- name: tmpfs
mountPath: /tmp
volumes:
- name: tmpfs
emptyDir: {}
maturity: alpha
version: 0.14.1
apiservicedefinitions:
Expand Down

0 comments on commit 7afd248

Please sign in to comment.