Skip to content

Commit

Permalink
Split attribute securityContext in podSecurityContext and containerSe…
Browse files Browse the repository at this point in the history
…curityContext
  • Loading branch information
wpjunior committed Jan 22, 2024
1 parent cfbf014 commit 62a4456
Show file tree
Hide file tree
Showing 5 changed files with 393 additions and 161 deletions.
9 changes: 7 additions & 2 deletions api/v1alpha1/nginx_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,14 @@ type NginxPodTemplateSpec struct {
// terminationGracePeriodSeconds default value.
// +optional
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
// SecurityContext configures security attributes for the nginx pod.
// PodSecurityContext configures security attributes for the nginx pod.
// +optional
SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`
PodSecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`

// ContainerSecurityContext configures security attributes for the nginx container.
// +optional
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`

// Volumes that will attach to nginx instances
// +optional
Volumes []corev1.Volume `json:"volumes,omitempty"`
Expand Down
37 changes: 33 additions & 4 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 62a4456

Please sign in to comment.