Skip to content

[cherry-pick/v0.50.x] Mutate tekton-pipelines namespace for ClusterRoles#477

Merged
tekton-robot merged 1 commit intotektoncd:release-v0.50.xfrom
vdemeester:release-v0.50.x
Oct 28, 2021
Merged

[cherry-pick/v0.50.x] Mutate tekton-pipelines namespace for ClusterRoles#477
tekton-robot merged 1 commit intotektoncd:release-v0.50.xfrom
vdemeester:release-v0.50.x

Conversation

@vdemeester
Copy link
Member

Changes

This adds a new transformer that mutate tekton-pipelines namespaces
references in ClusterRoles rules to use the targetNamespace.

This fixes the webhook errors on OpenShift or if the operator uses a
different targetNamespace than tekton-pipelines

Signed-off-by: Vincent Demeester vdemeest@redhat.com
(cherry picked from commit 132c03b)
Signed-off-by: Vincent Demeester vdemeest@redhat.com

Cherry picks of #474

/cc @nikhil-thomas @sm43

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

mutate tekton-pipelines namespaces reference in ClusterRoles. This fixes the webhook errors when using a different targetNamespace (such as, on the OpenShift target)

This adds a new transformer that mutate tekton-pipelines namespaces
references in ClusterRoles rules to use the targetNamespace.

This fixes the webhook errors on OpenShift or if the operator uses a
different `targetNamespace` than `tekton-pipelines`

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
(cherry picked from commit 132c03b)
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@vdemeester vdemeester added this to the 0.50 milestone Oct 28, 2021
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 28, 2021
@sm43
Copy link
Member

sm43 commented Oct 28, 2021

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 28, 2021
@nikhil-thomas
Copy link
Member

/approve
/lgtm

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nikhil-thomas

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

The pull request process is described here

Details 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 Oct 28, 2021
@tekton-robot tekton-robot merged commit df6d30e into tektoncd:release-v0.50.x Oct 28, 2021
@vdemeester vdemeester deleted the release-v0.50.x branch October 28, 2021 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants