Skip to content

verify: add require api-approved.openshift.io annotation to all CRD's#931

Merged
openshift-merge-robot merged 2 commits into
openshift:masterfrom
mfojtik:verify-crds
May 27, 2021
Merged

verify: add require api-approved.openshift.io annotation to all CRD's#931
openshift-merge-robot merged 2 commits into
openshift:masterfrom
mfojtik:verify-crds

Conversation

@mfojtik
Copy link
Copy Markdown
Contributor

@mfojtik mfojtik commented May 27, 2021

From now on, every CRD included in this repository will require to have the api-approved.openshift.io annotation that is set to a pull request URL where that CRD was introduced.

This follows upstream pattern of https://github.com/kubernetes/enhancements/blob/0e4d5df19d396511fe41ed0860b0ab9b96f46a2d/keps/sig-api-machinery/2337-k8s.io-group-protection/README.md

This is to make sure that every *.openshift.io CRD in OCP is coming from this repository.
As a follow-up to this, there will be an e2e test that makes sure every openshift.io CRD in the cluster has this annotation set.

NOTE: The normalization of existing CRD's is a consequence of oc annotate bug where in addition to annotation the YAML file is normalized as well. These are just reshuffles and should cause no harm to CRD's.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 27, 2021
@sttts
Copy link
Copy Markdown
Contributor

sttts commented May 27, 2021

Forgot to add the verify target?

@mfojtik
Copy link
Copy Markdown
Contributor Author

mfojtik commented May 27, 2021

Forgot to add the verify target?

victim of git checkout :-) added it back... goland "undo from disk" rocks!

@mfojtik mfojtik force-pushed the verify-crds branch 2 times, most recently from 616d405 to f5e8d31 Compare May 27, 2021 11:48
Comment thread hack/verify-crds.sh Outdated
@sttts
Copy link
Copy Markdown
Contributor

sttts commented May 27, 2021

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label May 27, 2021
@mfojtik mfojtik added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 27, 2021
@mfojtik
Copy link
Copy Markdown
Contributor Author

mfojtik commented May 27, 2021

(adding valid-bug manually as this is not bug fix)

@sttts
Copy link
Copy Markdown
Contributor

sttts commented May 27, 2021

/hold

until all CRDs are verified

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 27, 2021
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label May 27, 2021
@mfojtik
Copy link
Copy Markdown
Contributor Author

mfojtik commented May 27, 2021

/retest

1 similar comment
@mfojtik
Copy link
Copy Markdown
Contributor Author

mfojtik commented May 27, 2021

/retest

@sttts
Copy link
Copy Markdown
Contributor

sttts commented May 27, 2021

/lgtm

@sttts
Copy link
Copy Markdown
Contributor

sttts commented May 27, 2021

/hold cancel

@openshift-ci openshift-ci 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 May 27, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mfojtik, sttts

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

@openshift-merge-robot openshift-merge-robot merged commit efd9d59 into openshift:master May 27, 2021
kikisdeliveryservice added a commit to kikisdeliveryservice/api that referenced this pull request Nov 30, 2021
Annotation required in openshift/api repo
as of May 2021. See: openshift#931
kikisdeliveryservice added a commit to kikisdeliveryservice/api that referenced this pull request Dec 1, 2021
Annotation required in openshift/api repo
as of May 2021. See: openshift#931
jkyros pushed a commit to jkyros/api that referenced this pull request Jan 12, 2023
Annotation required in openshift/api repo
as of May 2021. See: openshift#931
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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants