-
Notifications
You must be signed in to change notification settings - Fork 468
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
Fixes for Verify CRDs script and invalid YAMLs #2362
Conversation
Signed-off-by: Nick Young <nick@isovalent.com>
Signed-off-by: Nick Young <nick@isovalent.com>
Signed-off-by: Nick Young <nick@isovalent.com>
Signed-off-by: Nick Young <nick@isovalent.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: youngnick 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 |
/hold for multiple review if necessary. |
@@ -14,7 +14,6 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
set -o errexit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to remove this so that a single kubectl command not succeeding won't terminate the script.
## with _only_ CEL validation | ||
|
||
|
||
for CHANNEL in experimental standard; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole block is duplicated, yes, but I didn't want to pull this into a bash function because it's more complex that way, and the webhook section has a limited lifespan.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @youngnick!
@@ -1,13 +0,0 @@ | |||
apiVersion: gateway.networking.k8s.io/v1alpha2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming equivalent examples already exist in v1beta1 for every example that's being removed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there are actually more examples in v1beta1, but all the ones being removed are covered already.
Signed-off-by: Nick Young <nick@isovalent.com>
6250ec4
to
b8136bc
Compare
Thanks @youngnick! /lgtm |
/hold cancel |
/kind cleanup
/kind test
What this PR does / why we need it:
This updates
verify-crds-kind.sh
with a few changes:gateway
,gatewayclass
, andhttproute
v1alpha2 examples). They were also invalid in the wrong way - this error case is also handled by the new script.Does this PR introduce a user-facing change?: