Skip to content
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

Fixed Labels with sha256 image ref #2238

Merged
merged 7 commits into from
Oct 19, 2023

Conversation

yuriolisa
Copy link
Contributor

@yuriolisa yuriolisa commented Oct 17, 2023

Description:

Fixed the labeling process which was broken at the moment to capture the current image tag when the users set the sha256 reference.

Link to tracking Issue:
resolves #1982

Testing:
Created a test using an image being declared with a sha256 and checked if there was a label with only the version number.

Documentation:

@yuriolisa yuriolisa requested a review from a team October 17, 2023 10:42
Namespace: collectorNamespace,
},
Spec: v1alpha1.OpenTelemetryCollectorSpec{
Image: "ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.81.0@sha256:c6671841470b83007e0553cdadbc9d05f6cfe17b3ebe9733728dc4a579a5b532",
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add a test case for otel/opentelemetry-collector-contrib@sha256:c6671841470b83007e0553cdadbc9d05f6cfe17b3ebe9733728dc4a579a5b532 - it was reported in the issue this PR resolves

Copy link

@tcoville-coveo tcoville-coveo left a comment

Choose a reason for hiding this comment

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

Thanks for addressing this issue ! :)

Signed-off-by: Yuri Sa <[email protected]>
Signed-off-by: Yuri Sa <[email protected]>
Signed-off-by: Yuri Sa <[email protected]>
@pavolloffay pavolloffay merged commit fbd620c into open-telemetry:main Oct 19, 2023
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* Fixed Labels with sha256 image ref

Signed-off-by: Yuri Sa <[email protected]>

* Fixed Labels with sha256 image ref

Signed-off-by: Yuri Sa <[email protected]>

* Added required unit tests

Signed-off-by: Yuri Sa <[email protected]>

* Added required unit tests

Signed-off-by: Yuri Sa <[email protected]>

* Changed unit tests

Signed-off-by: Yuri Sa <[email protected]>

* Changed unit tests

Signed-off-by: Yuri Sa <[email protected]>

* Changed unit tests

Signed-off-by: Yuri Sa <[email protected]>

---------

Signed-off-by: Yuri Sa <[email protected]>
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.

Image with digest causes labels validation error during reconcile (more than 63 characters)
4 participants