Skip to content

Commit fa6d164

Browse files
committed
refactor(collector): moves 'hostPID' from common types to collector
fields in v1beta1/common.go area for all component types. for now the hostPID support is only for the collector --------- on-behalf-of: @SAP Simon Olander ([email protected])
1 parent a732ae0 commit fa6d164

13 files changed

+15
-42
lines changed

apis/v1alpha1/convert.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ func tov1beta1(in OpenTelemetryCollector) (v1beta1.OpenTelemetryCollector, error
9595
TerminationGracePeriodSeconds: copy.Spec.TerminationGracePeriodSeconds,
9696
TopologySpreadConstraints: copy.Spec.TopologySpreadConstraints,
9797
HostNetwork: copy.Spec.HostNetwork,
98-
HostPID: copy.Spec.HostPID,
9998
ShareProcessNamespace: copy.Spec.ShareProcessNamespace,
10099
PriorityClassName: copy.Spec.PriorityClassName,
101100
InitContainers: copy.Spec.InitContainers,
@@ -338,7 +337,6 @@ func tov1alpha1(in v1beta1.OpenTelemetryCollector) (*OpenTelemetryCollector, err
338337
},
339338
},
340339
HostNetwork: copy.Spec.HostNetwork,
341-
HostPID: copy.Spec.HostPID,
342340
ShareProcessNamespace: copy.Spec.ShareProcessNamespace,
343341
PriorityClassName: copy.Spec.PriorityClassName,
344342
Affinity: copy.Spec.Affinity,

apis/v1beta1/common.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ type OpenTelemetryCommonFields struct {
186186
// HostNetwork indicates if the pod should run in the host networking namespace.
187187
// +optional
188188
HostNetwork bool `json:"hostNetwork,omitempty"`
189-
// HostPID indicates if the pod should have access to the host process ID namespace.
190-
// +optional
191-
HostPID bool `json:"hostPID,omitempty"`
192189
// ShareProcessNamespace indicates if the pod's containers should share process namespace.
193190
// +optional
194191
ShareProcessNamespace bool `json:"shareProcessNamespace,omitempty"`

apis/v1beta1/opentelemetrycollector_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ type OpenTelemetryCollectorSpec struct {
143143
// If not specified, it will default to "<name>-headless".
144144
// +optional
145145
ServiceName string `json:"serviceName,omitempty"`
146+
// HostPID indicates if the pod should have access to the host process ID namespace.
147+
// +optional
148+
HostPID bool `json:"hostPID,omitempty"`
146149
}
147150

148151
// TargetAllocatorEmbedded defines the configuration for the Prometheus target allocator, embedded in the

bundle/community/manifests/opentelemetry-operator.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metadata:
9999
categories: Logging & Tracing,Monitoring
100100
certified: "false"
101101
containerImage: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
102-
createdAt: "2025-08-15T13:11:29Z"
102+
createdAt: "2025-08-26T14:39:19Z"
103103
description: Provides the OpenTelemetry components, including the Collector
104104
operators.operatorframework.io/builder: operator-sdk-v1.29.0
105105
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -540,7 +540,7 @@ spec:
540540
valueFrom:
541541
fieldRef:
542542
fieldPath: metadata.namespace
543-
image: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.131.0-18-gc38ec617
543+
image: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.131.0-36-ga732ae06
544544
livenessProbe:
545545
httpGet:
546546
path: /healthz

bundle/community/manifests/opentelemetry.io_targetallocators.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,8 +1275,6 @@ spec:
12751275
type: object
12761276
hostNetwork:
12771277
type: boolean
1278-
hostPID:
1279-
type: boolean
12801278
image:
12811279
type: string
12821280
imagePullPolicy:

bundle/openshift/manifests/opentelemetry-operator.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metadata:
9999
categories: Logging & Tracing,Monitoring
100100
certified: "false"
101101
containerImage: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
102-
createdAt: "2025-08-15T13:11:30Z"
102+
createdAt: "2025-08-26T14:39:25Z"
103103
description: Provides the OpenTelemetry components, including the Collector
104104
operators.operatorframework.io/builder: operator-sdk-v1.29.0
105105
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -545,7 +545,7 @@ spec:
545545
valueFrom:
546546
fieldRef:
547547
fieldPath: metadata.namespace
548-
image: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.131.0-18-gc38ec617
548+
image: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.131.0-36-ga732ae06
549549
livenessProbe:
550550
httpGet:
551551
path: /healthz

bundle/openshift/manifests/opentelemetry.io_targetallocators.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,8 +1275,6 @@ spec:
12751275
type: object
12761276
hostNetwork:
12771277
type: boolean
1278-
hostPID:
1279-
type: boolean
12801278
image:
12811279
type: string
12821280
imagePullPolicy:

config/crd/bases/opentelemetry.io_targetallocators.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,6 @@ spec:
12721272
type: object
12731273
hostNetwork:
12741274
type: boolean
1275-
hostPID:
1276-
type: boolean
12771275
image:
12781276
type: string
12791277
imagePullPolicy:

config/manager/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
images:
66
- name: controller
7-
newName: docker.io/pavolloffay/opentelemetry-operator
8-
newTag: dev-e6d96f00-1755261473
7+
newName: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
8+
newTag: 0.131.0-36-ga732ae06

docs/api/targetallocators.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,6 @@ For more info, see https://prometheus.io/docs/prometheus/latest/configuration/co
178178
HostNetwork indicates if the pod should run in the host networking namespace.<br/>
179179
</td>
180180
<td>false</td>
181-
</tr><tr>
182-
<td><b>hostPID</b></td>
183-
<td>boolean</td>
184-
<td>
185-
HostPID indicates if the pod should have access to the host process ID namespace.<br/>
186-
</td>
187-
<td>false</td>
188181
</tr><tr>
189182
<td><b>image</b></td>
190183
<td>string</td>

0 commit comments

Comments
 (0)