-
Notifications
You must be signed in to change notification settings - Fork 521
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
schema validation warnings during mvn oc:resource and gradle k8sResource #1934
Comments
looks like it's talking about these keywords in the validation schema: {
"$module": "coordination" This is just a meta field for the Kubernetes model generator module that generated the schema (e.g. I think we should just add NonValidationKeyword for these in ResourceValidator: |
Please, go ahead |
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Jan 19, 2023
…in order to avoid schema validation warnings (eclipse-jkube#1934) Add additional NonValidationKeywords in ResourceValidator's JsonMetaSchema in order to avoid schema validation warnings about unknown keywords. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Jan 19, 2023
…in order to avoid schema validation warnings (eclipse-jkube#1934) Add additional NonValidationKeywords in ResourceValidator's JsonMetaSchema in order to avoid schema validation warnings about unknown keywords. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
17 tasks
manusa
pushed a commit
that referenced
this issue
Jan 23, 2023
…in order to avoid schema validation warnings (#1934) Add additional NonValidationKeywords in ResourceValidator's JsonMetaSchema in order to avoid schema validation warnings about unknown keywords. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
During mvn builds in the goal oc:resource the following warnings are displayed:
Unknown keyword $module - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword Unknown keyword existingJavaType - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword Unknown keyword javaOmitEmpty - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
This seems to be related to the schema validation, see discussion here:
#1932
Eclipse JKube version
other (please specify in additional context)
Component
OpenShift Maven Plugin
Apache Maven version
3.8.3
Gradle version
7.4.2
Steps to reproduce
in a project just run oc:resource
in a gradle project run k8sResource
see quickstart examples
Expected behavior
no schema validations are shown for keywords $module, existingjavaType, javaOmitEmpty
Runtime
OpenShift
Kubernetes API Server version
other (please specify in additional context)
Environment
Windows
Eclipse JKube Logs
Sample Reproducer Project
https://github.com/eclipse/jkube/tree/master/quickstarts/maven/webapp-jetty
Additional context
this is happening for maven and gradle
this is happening when running oc:resource task, k8sResource task possibly (not checked) when running k8s:resource and ocResource.
according to discussion this also is happening for a long time
#1932
The text was updated successfully, but these errors were encountered: