Skip to content

Move webhook testing package to core module - #6041

Merged
jetstack-bot merged 1 commit into
cert-manager:masterfrom
SgtCoDFish:webhooktesting
May 9, 2023
Merged

jetstack-bot merged 1 commit into
cert-manager:masterfrom
SgtCoDFish:webhooktesting

Conversation

@SgtCoDFish

Copy link
Copy Markdown
Member

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

Kind

/kind bug

Release Note

NONE

@jetstack-bot jetstack-bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. area/testing Issues relating to testing approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 9, 2023
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]>
@irbekrm

irbekrm commented May 9, 2023

Copy link
Copy Markdown
Contributor

/cherry-pick release-1.12

@jetstack-bot

Copy link
Copy Markdown
Contributor

@irbekrm: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-1.12

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.

@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.

Thanks for the quick fix @SgtCoDFish !

/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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irbekrm, SgtCoDFish

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 merged commit 8f00e0e into cert-manager:master May 9, 2023
@jetstack-bot jetstack-bot added this to the v1.12 milestone May 9, 2023
@SgtCoDFish
SgtCoDFish deleted the webhooktesting branch May 9, 2023 17:54
@jetstack-bot

Copy link
Copy Markdown
Contributor

@irbekrm: new pull request created: #6042

Details

In response to this:

/cherry-pick release-1.12

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.

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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. 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