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

Unable to validate due to problem loading schema from Github #66

Closed
Yggdrasil opened this issue Mar 26, 2018 · 4 comments
Closed

Unable to validate due to problem loading schema from Github #66

Yggdrasil opened this issue Mar 26, 2018 · 4 comments
Labels

Comments

@Yggdrasil
Copy link

With the current latest kubeval 0.7.1 (from Homebrew) I get the following error:

$ kubeval example.yaml
1 error occurred:

* Problem loading schema from the network at https://raw.githubusercontent.com/garethr/kubernetes-json-schema/master/master-standalone/issuer.json: Could not read schema from HTTP, response status is 404 Not Found

Checking the mentioned URL in a browser indeed returns a 404 as well.

@guusvw
Copy link

guusvw commented Mar 27, 2018

👍 same for me

@garethr
Copy link
Collaborator

garethr commented Mar 30, 2018

Could you provide the Kubernetes config file you're seeing this fail with? I don't see issuer as a resource type in the OpenAPI description of the API https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json

@garethr garethr added the bug label Mar 30, 2018
@Yggdrasil
Copy link
Author

I was trying to validate yaml for certmanager, the automated TLS certificate thing.

It was similar to this:

apiVersion: certmanager.k8s.io/v1alpha1
kind: Issuer
metadata:
  name: letsencrypt-staging
  namespace: default
spec:
  acme:
    # The ACME server URL
    server: https://acme-staging.api.letsencrypt.org/directory
    # Email address used for ACME registration
    email: [email protected]
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt-staging
    # Enable the HTTP-01 challenge provider
    http01: {}

Source: https://github.com/jetstack/cert-manager/blob/master/docs/user-guides/acme-http-validation.md

@garethr
Copy link
Collaborator

garethr commented Mar 31, 2018

@Yggdrasil ah, at present kuveval doesn't support custom resources. I'll close this as I'm tracking that in #47. Thanks for the details.

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

No branches or pull requests

3 participants