mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 22:33:35 +00:00
Merge pull request #645 from shanemcd/pod-security-context
Add support for arbitrary pod-level securityContext settings
This commit is contained in:
@@ -408,6 +408,10 @@ spec:
|
|||||||
x-kubernetes-preserve-unknown-fields: true
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
|
security_context_settings:
|
||||||
|
description: Key/values that will be set under the pod-level securityContext field
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
@@ -235,3 +235,5 @@ bundle_cacert_secret: ''
|
|||||||
garbage_collect_secrets: false
|
garbage_collect_secrets: false
|
||||||
|
|
||||||
development_mode: false
|
development_mode: false
|
||||||
|
|
||||||
|
security_context_settings: {}
|
||||||
|
|||||||
@@ -310,9 +310,14 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{ tolerations | indent(width=8) }}
|
{{ tolerations | indent(width=8) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if projects_persistence|bool %}
|
{% if projects_persistence|bool or (security_context_settings|length) %}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
{% if projects_persistence|bool %}
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
{% endif %}
|
||||||
|
{% if security_context_settings|length %}
|
||||||
|
{{ security_context_settings | to_nice_yaml | indent(8) }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
volumes:
|
volumes:
|
||||||
{% if bundle_ca_crt %}
|
{% if bundle_ca_crt %}
|
||||||
|
|||||||
@@ -4,14 +4,17 @@
|
|||||||
group: awx.ansible.com
|
group: awx.ansible.com
|
||||||
kind: AWX
|
kind: AWX
|
||||||
role: installer
|
role: installer
|
||||||
|
snakeCaseParameters: False
|
||||||
|
|
||||||
- version: v1beta1
|
- version: v1beta1
|
||||||
group: awx.ansible.com
|
group: awx.ansible.com
|
||||||
kind: AWXBackup
|
kind: AWXBackup
|
||||||
role: backup
|
role: backup
|
||||||
|
snakeCaseParameters: False
|
||||||
|
|
||||||
- version: v1beta1
|
- version: v1beta1
|
||||||
group: awx.ansible.com
|
group: awx.ansible.com
|
||||||
kind: AWXRestore
|
kind: AWXRestore
|
||||||
role: restore
|
role: restore
|
||||||
|
snakeCaseParameters: False
|
||||||
# +kubebuilder:scaffold:watch
|
# +kubebuilder:scaffold:watch
|
||||||
|
|||||||
Reference in New Issue
Block a user