Skip to content

[release-1.12] Move webhook testing package to core module - #6042

Merged
jetstack-bot merged 1 commit into
cert-manager:release-1.12from
jetstack-bot:cherry-pick-6041-to-release-1.12
May 10, 2023
Merged

jetstack-bot merged 1 commit into
cert-manager:release-1.12from
jetstack-bot:cherry-pick-6041-to-release-1.12

Conversation

@jetstack-bot

Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #6041

/assign irbekrm

NONE

This package was used by at least one external importer [1] and so the
change to make the webhook live in a separate package caused an issue
which @irbekrm reported on slack. [2]

This PR moves the webhook testing code into the core cert-manager module
so it'll be importable anywhere (albeit under a new name). This change
also requires moving the webhook options into the core cert-manager
module since they're required by the webhook testing logic.

[1] https://github.com/cert-manager/approver-policy/blob/268cd2fdba78d616a67a97c07d6ecb211f3da346/test/env/env.go#L25

[2] https://kubernetes.slack.com/archives/CDEQJ0Q8M/p1683650224483169

Signed-off-by: Ashley Davis <[email protected]>
@jetstack-bot jetstack-bot added the release-note-none Denotes a PR that doesn't merit a release note. label May 9, 2023
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/testing Issues relating to testing labels May 9, 2023

@irbekrm irbekrm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label May 9, 2023
@jetstack-bot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irbekrm, jetstack-bot

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

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2023
@irbekrm

irbekrm commented May 10, 2023

Copy link
Copy Markdown
Contributor

/test pull-cert-manager-release-1.12-e2e-v1-27-upgrade

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. area/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants