-
Notifications
You must be signed in to change notification settings - Fork 569
add image pull secrets in otel collector spec #4377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Hritik003 <[email protected]>
|
|
Signed-off-by: Hritik003 <[email protected]>
Signed-off-by: Hritik003 <[email protected]>
|
@atoulme @iblancasa @TylerHelmuth @yuriolisa |
iblancasa
left a comment
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 != ""?
Description:
This pull request adds support for specifying
ImagePullSecretsin 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:
ImagePullSecretsfield to theOpenTelemetryCommonFieldsstruct, enabling users to specify secrets for image pulls in the custom resource definition.DeepCopyIntomethod to handle deep copying of the newImagePullSecretsfield.Resource Generation Updates:
Deployment,DaemonSet, andStatefulSetmanifest generation functions to set theImagePullSecretsfield in the resulting Kubernetes resource specs, based on the custom resource configuration. [1] [2] [3]Testing Improvements:
Added new unit tests for
Deployment,DaemonSet, andStatefulSetresource generation to verify correct handling of theImagePullSecretsfield, including both default (unset) and explicitly set scenarios. [1] [2] [3]Ex. Adding a feature - Explain what this achieves.-->
Resolves: Support for Image pull secret in the open telemetry collector spec #4376
Testing:
Documentation: