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

kubeval failing with EOF error when trying to mirror the schema to local artifcatory URL as below #315

Open
shilpakarthik opened this issue Sep 9, 2021 · 1 comment

Comments

@shilpakarthik
Copy link

[shilpa@Centos helm]$ ./kubeval --skip-kinds BrPolicy /tmp/test.yaml --schema-location https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone
ERR - EventProcessingService/charts/efsesymac/charts/esymacservice/templates/netactsecrets.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/secret-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/secret-v1.json": unexpected EOF
ERR - EventProcessingService/charts/efsesymac/charts/efsmonitor/templates/configmapefsmonitor.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/configmap-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/configmap-v1.json": unexpected EOF
ERR - EventProcessingService/charts/pmprocessor/templates/servicepersistance_pvc.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/persistentvolumeclaim-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/persistentvolumeclaim-v1.json": unexpected EOF
ERR - EventProcessingService/charts/efsclient/templates/efsclient-role.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/role-rbac-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/role-rbac-v1.json": unexpected EOF
ERR - EventProcessingService/charts/eventreceiver/templates/svceventreceiver.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/service-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/service-v1.json": unexpected EOF
ERR - EventProcessingService/charts/efsesymac/charts/efsmonitor/templates/deploymentefsmonitor.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/deployment-apps-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/deployment-apps-v1.json": unexpected EOF
ERR - EventProcessingService/charts/efsesymac/charts/esymacservice/templates/esymacservice-ss.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/statefulset-apps-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/statefulset-apps-v1.json": unexpected EOF
ERR - EventProcessingService/charts/efsesymac/charts/efsmonitor/templates/post-upgrade-job.yaml: Failed initializing schema https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/job-batch-v1.json: Get "https://repo.lab.pl.alcatel-lucent.com/artifactory/github/instrumenta/kubernetes-json-schema/tree/master/master-standalone/master-standalone/job-batch-v1.json": unexpected EOF

@shilpakarthik
Copy link
Author

Each time our CI runs we do not want to point to this schema hence we mirror the github schema to our local artifactory URL and tried using schema location option .

Can anyone please suggest what can be possible solution fo validating charts locally without downloading the entire schema but to use reference URL to github from local repo is it possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant