Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

k8s schema validation error: could not find schema for Ingress #141

Answered by dimabru
rekibnikufesin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rekibnikufesin,
My guess is that you are trying to run an ingress yaml on the wrong k8s version schema validator.
Datree sets the default version to 1.18, and it looks like this ingress file is matching versions 1.19 and above.
You can try and run datree test --schema-version 1.19.0 <file>.

Here's some info on how you can change the default schema version for datree: https://hub.datree.io/schema-validation

Alternatively, you can change your yaml file to match k8s 1.18 version. Should look like this:

# Kibana HTTP Port
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: kibana
  namespace: core-services
spec:
  rules:
    - http:
        paths:
          - path: /kiba…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rekibnikufesin
Comment options

@rekibnikufesin
Comment options

@dimabru
Comment options

Answer selected by eyarz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants