Skip to content

Add app label to Results api deployment #1018

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pratap0007
Copy link

This will add a app label to the Results api deployment
which will be reference in the ServiceMonitor

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you review them:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Tested your changes locally (if this is a code change)
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user-facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contain the string "action required" if the change requires additional action from users switching to the new release

Release Notes

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 21, 2025
@tekton-robot tekton-robot requested review from avinal and khrm May 21, 2025 13:26
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign khrm after the PR has been reviewed.
You can assign the PR to them by writing /assign @khrm in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 21, 2025
@aThorp96
Copy link

aThorp96 commented May 21, 2025

Any reason we can't reference the app.kubernetes.io/name label a service monitor?

@pratap0007
Copy link
Author

pratap0007 commented May 21, 2025

Any reason we can't reference the app.kubernetes.io/name label a service monitor?

yes, we can refer app.kubernetes.io/name label , other existing ServiceMonitor are referencing by lable app so I thought to add this label. Shall I close the PR?

@enarha
Copy link
Contributor

enarha commented May 21, 2025

I'm OK either way. If all other Tekton components have that label, I'm OK to have it on Results as well as it standardize things. You should add that for each component though, not just the api, but watcher and retention-policy-agent as well. And app: tekton-results-api-controller is not strictly correct, as the api is not a controller, so it should be app: tekton-results-api. If you or other reviewers prefer to omit that extra label and use app.kubernetes.io/name, that's fine as well.

@aThorp96
Copy link

@pratap0007 where is this service monitor defined?

@pratap0007
Copy link
Author

@pratap0007 where is this service monitor defined?
There is an operator upstream issue to add the ServiceMonitor for missing components

@@ -29,6 +29,7 @@ spec:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
labels:
app.kubernetes.io/name: tekton-results-api
app: tekton-results-api-controller

Choose a reason for hiding this comment

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

Suggested change
app: tekton-results-api-controller
app: tekton-results-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants