kubeval icon indicating copy to clipboard operation
kubeval copied to clipboard

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

Open shilpakarthik opened this issue 2 years ago • 1 comments

[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 avatar Sep 09 '21 16:09 shilpakarthik

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

shilpakarthik avatar Sep 09 '21 16:09 shilpakarthik