Externalise podSecurityContext.runAsUser and

This commit is contained in:
Akram Ben Aissi
2019-06-26 07:28:30 -04:00
parent 9285e294dd
commit f17a4c5dce
3 changed files with 17 additions and 11 deletions
@@ -155,6 +155,14 @@ type JenkinsMaster struct {
// +optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// SecurityContext that applies to all the containers of the Jenkins
// Master. As per kubernetes specification, it can be overidden
// for each container individually.
// +optional
// Defaults to: nil
SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`
// List of containers belonging to the pod.
// Containers cannot currently be added or removed.
// There must be at least one container in a Pod.