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

enhancement: include operator version in CRD annotations #6050

Merged
merged 3 commits into from Oct 31, 2023

Conversation

rexagod
Copy link
Contributor

@rexagod rexagod commented Oct 30, 2023

Description

Include operator version in CRD annotations, PTAL #4498 for details.

Fixes: #4344.


This patch builds on top of @paulfantom's PR by (a) rebasing it against main and (b) adding support for the corresponding GNU sed-based behavior in MacOS using BSD sed.


Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

- Include operator version in CRD annotations ("prometheus-operator.dev/version").

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
@rexagod rexagod requested a review from a team as a code owner October 30, 2023 00:49
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if [[ "$OSTYPE" == "darwin"* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest use the label as we have on the managed resources: operator.prometheus.io
WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, makes sense! 👍🏼

Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

LGTM!

@ArthurSens ArthurSens merged commit ddfea89 into prometheus-operator:main Oct 31, 2023
17 checks passed
adinhodovic pushed a commit to adinhodovic/prometheus-operator that referenced this pull request Nov 13, 2023
…operator#6050)

* *: include operator version in CRD annotations

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>

* example,jsonnet: regenerate

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>

* fixup! example,jsonnet: regenerate

---------

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
Co-authored-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add labels to CRDs
4 participants