Skip to content
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

BREAKING: chore: align BundleCondition with upstream metav1.Condition #249

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Nov 28, 2023

This is a PR that replaces #240. Since we decided to not migrate to the upstream metav1.Condition, I have tried to align our own BundleCondition as much as possible the the current upstream struct. Personally, I think it's an improvement that first and foremost will add more API spec validations better protecting us from controller bugs. This is technically breaking changes, but since the trust-manager controller should be the only actor modifying Bundle status, I think it's fine.

Also removing the obsolete validation in the webhook for duplicate conditions. This was code is not needed after #173.

@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 28, 2023
Copy link
Member

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/hold

This looks like an improvement to me. A lot of these changes are technically breaking if we nitpick, but I suspect that it'd be worthwhile to make the changes anyway - I don't feel like we need to wait for v1alpha2 or v1beta1 for these changes.

The hold is either for us to change this PR to be non-breaking (which I absolutely don't expect us to do) or to add an indidator to the PR description that it might be breaking (and thus would be worth mentioning in release notes)

@jetstack-bot jetstack-bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 29, 2023
@SgtCoDFish SgtCoDFish changed the title chore: align BundleCondition with upstream metav1.Condition BREAKING: chore: align BundleCondition with upstream metav1.Condition Nov 30, 2023
@jetstack-bot jetstack-bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 30, 2023
Copy link
Member

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thanks for this 😁 Took a bit of discussion to get here but I think this is a worthwhile improvement!

@jetstack-bot jetstack-bot added lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 30, 2023
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@jetstack-bot jetstack-bot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Dec 4, 2023
@erikgb
Copy link
Contributor Author

erikgb commented Dec 4, 2023

/test pull-trust-manager-verify

@SgtCoDFish
Copy link
Member

/lgtm
/approve
/unhold

Thanks!

@jetstack-bot jetstack-bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Dec 5, 2023
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

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

@jetstack-bot jetstack-bot merged commit 25f303a into cert-manager:main Dec 5, 2023
4 checks passed
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. 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. 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.

None yet

4 participants