Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charts,manifests: Support configuring reporting-operator securityContext #990

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
{{- end }}
spec:
securityContext:
runAsNonRoot: true
{{ toYaml $operatorValues.spec.securityContext | indent 8 }}
{{- if $operatorValues.spec.nodeSelector }}
nodeSelector:
{{ toYaml $operatorValues.spec.nodeSelector | indent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/openshift-metering/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@ reporting-operator:
cpu: 100m
memory: 50Mi

securityContext:
fsGroup: null
runAsNonRoot: true

presto:
spec:
labels: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down
14 changes: 14 additions & 0 deletions manifests/deploy/openshift/olm/bundle/4.3/meteringconfig.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down
14 changes: 14 additions & 0 deletions manifests/deploy/openshift/telemeter/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2569,6 +2569,20 @@ objects:
required:
- enabled
type: object
securityContext:
properties:
fsGroup:
format: int64
type: integer
runAsGroup:
format: int64
type: integer
runAsNonRoot:
type: boolean
runAsUser:
format: int64
type: integer
type: object
tolerations:
items:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down
14 changes: 14 additions & 0 deletions manifests/deploy/upstream/olm/bundle/4.3/meteringconfig.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,20 @@ spec:
properties:
type:
type: string
securityContext:
type: object
properties:
fsGroup:
type: integer
format: int64
runAsGroup:
type: integer
format: int64
runAsNonRoot:
type: boolean
runAsUser:
type: integer
format: int64

presto:
type: object
Expand Down