Skip to content
Open
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
1 change: 1 addition & 0 deletions CHANGES/1492.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added `pod_security_context` field to api, content, worker and web to override the hardcoded runAsUser/fsGroup 700.
24 changes: 24 additions & 0 deletions apis/repo-manager.pulpproject.org/v1/pulp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ type Api struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
NodeSelector map[string]string `json:"node_selector,omitempty"`

// PodSecurityContext defines the pod-level security attributes for the pulp-api pods.
// If unset, runAsUser and fsGroup default to 700.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
PodSecurityContext *corev1.PodSecurityContext `json:"pod_security_context,omitempty"`

// Node tolerations for the Pulp pods.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
Expand Down Expand Up @@ -522,6 +528,12 @@ type Content struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
NodeSelector map[string]string `json:"node_selector,omitempty"`

// PodSecurityContext defines the pod-level security attributes for the pulp-content pods.
// If unset, runAsUser and fsGroup default to 700.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
PodSecurityContext *corev1.PodSecurityContext `json:"pod_security_context,omitempty"`

// Node tolerations for the Pulp pods.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
Expand Down Expand Up @@ -619,6 +631,12 @@ type Worker struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
NodeSelector map[string]string `json:"node_selector,omitempty"`

// PodSecurityContext defines the pod-level security attributes for the pulp-worker pods.
// If unset, runAsUser and fsGroup default to 700.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
PodSecurityContext *corev1.PodSecurityContext `json:"pod_security_context,omitempty"`

// Node tolerations for the Pulp pods.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
Expand Down Expand Up @@ -704,6 +722,12 @@ type Web struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
NodeSelector map[string]string `json:"node_selector,omitempty"`

// PodSecurityContext defines the pod-level security attributes for the pulp-web pods.
// If unset, runAsUser and fsGroup default to 700.
// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
PodSecurityContext *corev1.PodSecurityContext `json:"pod_security_context,omitempty"`

// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
// +optional
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:hidden"}
Expand Down
20 changes: 20 additions & 0 deletions apis/repo-manager.pulpproject.org/v1/zz_generated.deepcopy.go

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

26 changes: 25 additions & 1 deletion bundle/manifests/pulp-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ metadata:
capabilities: Full Lifecycle
categories: Integration & Delivery
containerImage: quay.io/pulp/pulp-operator:v1.0.0
createdAt: "2026-03-17T12:18:57Z"
createdAt: "2026-11-06T20:34:38Z"
description: Pulp is a platform for managing repositories of software packages
and making them available to a large number of consumers.
operators.operatorframework.io/builder: operator-sdk-v1.31.0
Expand Down Expand Up @@ -273,6 +273,12 @@ spec:
path: api.pod_labels
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: PodSecurityContext defines the pod-level security attributes
for the pulp-api pods. If unset, runAsUser and fsGroup default to 700.
displayName: Pod Security Context
path: api.pod_security_context
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: Periodic probe of container service readiness. Container will
be removed from service endpoints if the probe fails.
displayName: Readiness Probe
Expand Down Expand Up @@ -489,6 +495,12 @@ spec:
path: content.pod_labels
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: PodSecurityContext defines the pod-level security attributes
for the pulp-content pods. If unset, runAsUser and fsGroup default to 700.
displayName: Pod Security Context
path: content.pod_security_context
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: Periodic probe of container service readiness. Container will
be removed from service endpoints if the probe fails.
displayName: Readiness Probe
Expand Down Expand Up @@ -1010,6 +1022,12 @@ spec:
path: web.pod_labels
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: PodSecurityContext defines the pod-level security attributes
for the pulp-web pods. If unset, runAsUser and fsGroup default to 700.
displayName: Pod Security Context
path: web.pod_security_context
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: Periodic probe of container service readiness. Container will
be removed from service endpoints if the probe fails.
displayName: Readiness Probe
Expand Down Expand Up @@ -1094,6 +1112,12 @@ spec:
path: worker.pod_labels
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: PodSecurityContext defines the pod-level security attributes
for the pulp-worker pods. If unset, runAsUser and fsGroup default to 700.
displayName: Pod Security Context
path: worker.pod_security_context
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- description: Periodic probe of container service readiness. Container will
be removed from service endpoints if the probe fails.
displayName: Readiness Probe
Expand Down
Loading
Loading