Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[OpenShift] Fix metrics display issue #232

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

savitaashture
Copy link
Contributor

@savitaashture savitaashture commented Feb 4, 2021

Changes

Issue: Metrics are not visible on Openshift Console

RootCause: ServiceMonitor role binding uses SA from openshift-monitoring namespace and to avoid overriding of that ns we used annotation operator.tekton.dev/preserve-rb-subject-namespace to preserve openshift-monitoring ns
But in Transform function we are doing transformation on single manifest and because of that logic of preserving namespace is not working in case of RoleBinding

Changes: As of now modified Transform function to do transformation on 2 different manifest one for RoleBinding and another for remaining resources.

Note: Will do refactoring in another PR so that openshift specific changes can be avoided as part of common

/cc @vdemeester @khrm @pradeepitm12 @nikhil-thomas @piyush-garg

Submitter Checklist

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

See the contribution guide for more details.

Release Notes

NONE

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 4, 2021
@tekton-robot
Copy link
Contributor

@savitaashture: GitHub didn't allow me to request PR reviews from the following users: khrm, piyush-garg.

Note that only tektoncd members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

Changes

Issue: Metrics are not visible on Openshift Console

RootCause: ServiceMonitor role binding uses SA from openshift-monitoring namespace and to avoid overriding of that ns we used annotation operator.tekton.dev/preserve-rb-subject-namespace to preserve openshift-monitoring ns
But in Transform function we are doing transformation on single manifest and because of that logic of preserving namespace is not working in case of RoleBinding

Changes: As of now modified Transform function to do transformation on 2 different manifest one for RoleBinding and another for remaining resources.

Note: Will do refactoring in another PR so that openshift specific changes can be avoided as part of common

/cc @vdemeester @khrm @pradeepitm12 @nikhil-thomas @piyush-garg

Submitter Checklist

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

See the contribution guide for more details.

Release Notes

NONE

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 4, 2021
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/common/transformers.go 71.9% 64.5% -7.4

@savitaashture savitaashture changed the title Fix metrics display issue [OpenShift] Fix metrics display issue Feb 4, 2021
Copy link
Contributor

@pradeepitm12 pradeepitm12 left a comment

Choose a reason for hiding this comment

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

Thank You
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 4, 2021
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/meow

@tekton-robot
Copy link
Contributor

@vdemeester: cat image

In response to this:

/meow

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 4, 2021
@tekton-robot tekton-robot merged commit 633c5af into tektoncd:main Feb 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants