Skip to content

add image pull secrets in otel collector spec - #4377

Closed
Hritik003 wants to merge 6 commits into
open-telemetry:mainfrom
Hritik003:dev
Closed

add image pull secrets in otel collector spec#4377
Hritik003 wants to merge 6 commits into
open-telemetry:mainfrom
Hritik003:dev

Conversation

@Hritik003

Copy link
Copy Markdown

Description:
This pull request adds support for specifying ImagePullSecrets in the OpenTelemetry Collector Kubernetes resources, allowing users to configure secrets for pulling container images from private registries. The implementation includes updates to the API, resource generation logic, and comprehensive unit tests to verify the new functionality.

API and Struct Enhancements:

  • Added an ImagePullSecrets field to the OpenTelemetryCommonFields struct, enabling users to specify secrets for image pulls in the custom resource definition.
  • Updated the autogenerated DeepCopyInto method to handle deep copying of the new ImagePullSecrets field.

Resource Generation Updates:

  • Modified the Deployment, DaemonSet, and StatefulSet manifest generation functions to set the ImagePullSecrets field in the resulting Kubernetes resource specs, based on the custom resource configuration. [1] [2] [3]

Testing Improvements:

Testing:

Documentation:

Signed-off-by: Hritik003 <hritik.raj@nutanix.com>
@Hritik003
Hritik003 requested a review from a team as a code owner September 23, 2025 07:00
@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 23, 2025

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Hritik003 / name: Hritik Raj (7bb09f0)

@Hritik003 Hritik003 changed the title add image pull secrets in all otel collector spec add image pull secrets in otel collector spec Sep 23, 2025
@Hritik003
Hritik003 marked this pull request as draft September 23, 2025 07:04
Signed-off-by: Hritik003 <hritik.raj@nutanix.com>
Signed-off-by: Hritik003 <hritik.raj@nutanix.com>
@Hritik003
Hritik003 marked this pull request as ready for review November 17, 2025 04:56
@Hritik003

Copy link
Copy Markdown
Author

@atoulme @iblancasa @TylerHelmuth @yuriolisa
A reminder to review the PR and suggest any changes for the same thanks.

@iblancasa iblancasa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

I would like to see some E2E tests. Can you add them?

Also: why support for sidecar is not being added?

var imagePullSecrets []corev1.LocalObjectReference

// Check each instrumentation type for imagePullSecrets
if insts.Java.Instrumentation != nil && len(insts.Java.Instrumentation.Spec.ImagePullSecrets) > 0 {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to not insts.Java.Instrumentation.Spec.ImagePullSecrets != ""?

@yuriolisa

Copy link
Copy Markdown
Contributor

@Hritik003, are you still aware of this PR?

@Hritik003

Copy link
Copy Markdown
Author

@Hritik003, are you still aware of this PR?

MIssed updating the PR, will work on it

@Hritik003 Hritik003 closed this May 5, 2026
@dmpe

dmpe commented May 29, 2026

Copy link
Copy Markdown

Why was this closed ? Do we have more info when #4376 will be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Image pull secret in the open telemetry collector spec

4 participants