-
Notifications
You must be signed in to change notification settings - Fork 244
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
Validate parameters on odo service create from swagger/csv #5074
Validate parameters on odo service create from swagger/csv #5074
Conversation
e1295b5
to
3ca2cd7
Compare
Tests pass locally /test v4.8-integration-e2e
|
75b8004
to
5088b22
Compare
/test psi-unit-test-windows
|
/test v4.8-integration-e2e
|
✔️ Deploy Preview for odo-docusaurus-preview ready! 🔨 Explore the source changes: 76b63e7 🔍 Inspect the deploy log: https://app.netlify.com/sites/odo-docusaurus-preview/deploys/61486d321e2fe500070dbfc0 😎 Browse the preview: https://deploy-preview-5074--odo-docusaurus-preview.netlify.app |
818ea6b
to
8460c87
Compare
/test v4.8-integration-e2e
|
eb7de1e
to
efdcb9e
Compare
/test psi-kubernetes-integration-e2e Is the test using previous source?
|
efdcb9e
to
a38e1ba
Compare
d7c8ca9
to
76b63e7
Compare
/test ci/prow/v4.8-integration-e2e
|
@feloy: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test v4.8-integration-e2e |
76b63e7
to
5d4fa0a
Compare
$ odo service create redis-operator.v0.8.0/Redis -p kubernetesConfig.imagePullPolicy=Always -p kubernetesConfig.image=quay.io/opstree/redis:v6.2.5 -p kubernetesConfig.serviceType=ClusterIP -p noSuchParam=junkValue --dry-run
apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: Redis
metadata:
name: redis
spec:
kubernetesConfig:
image: quay.io/opstree/redis:v6.2.5
imagePullPolicy: Always
serviceType: ClusterIP
noSuchParam: junkValue I purposefully added |
I agree that this is a change in the behaviour, but now we use the swagger spec to validate the params, we should rely on the swagger spec. And the Redis swagger spec allows additional parameters (there is an |
+1 this works as I would expect. If there is an
|
The new output is great. Much better than before. @feloy 👍 great work! /approve |
/test psi-kubernetes-integration-e2e |
/lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/hold @feloy can you PTAL at the |
/lgtm cancel |
64b9f60
to
fd7ba20
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/test v4.8-integration-e2e
|
@feloy: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/test v4.8-integration-e2e
|
/hold cancel |
/lgtm |
What type of PR is this?
/kind feature
What does this PR do / why we need it:
odo catalog describe service
human-readable output is similar tokubectl explain
outputodo service create
,github.com/go-openapi/validate
is used to validate input parameters against the schema (directly from CRD or built from CSV x-descriptors)Which issue(s) this PR fixes:
Fixes #4850
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer: