Skip to content

Commit a13a001

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent 7d9e9c9 commit a13a001

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

pkg/api/v1/cluster_types.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,19 @@ type ClusterSpec struct {
462462
// +optional
463463
SeccompProfile *corev1.SeccompProfile `json:"seccompProfile,omitempty"`
464464

465+
// Override the PodSecurityContext applied to every Pod of the cluster.
466+
// When set, this overrides the operator's default PodSecurityContext for the cluster.
467+
// If omitted, the operator defaults are used.
468+
// This field doesn't have any effect if SecurityContextConstraints are present.
469+
// +optional
470+
PodSecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`
471+
472+
// Override the SecurityContext applied to every Container in the Pod of the cluster.
473+
// When set, this overrides the operator's default Container SecurityContext.
474+
// If omitted, the operator defaults are used.
475+
// +optional
476+
SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`
477+
465478
// The tablespaces configuration
466479
// +optional
467480
Tablespaces []TablespaceConfiguration `json:"tablespaces,omitempty"`

pkg/api/v1/zz_generated.deepcopy.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)