Skip to content

schema location does not function. #345

Description

@Breee
---
apiVersion: gravitee.io/v1alpha1
kind: ApiDefinition
metadata:
  name: echo-api-declarative-qa
spec:
  name: "Echo API Declarative my test"
  version: "2.0"
  contextRef:
    name: "qa"
  state: "STARTED"
  lifecycle_state: "PUBLISHED"
  description: "Gravitee Kubernetes Operator sample"
  local: false
  plans:
    - name: "KEY_LESS"
      description: "FREE"
      security: "KEY_LESS"
      tags:
        - "test"
  visibility: "PRIVATE"
  tags:
    - "test"
  proxy:
    virtual_hosts:
      - host: "gravitee-poc.example.com"
        override_entrypoint: true
        path: "/echo-api"
    groups:
      - endpoints:
          - name: "Default"
            target: "https://api.gravitee.io/echo"

api definitions in crd-catalog: https://github.com/datreeio/CRDs-catalog/tree/main/gravitee.io

kubeconform:

$ kubeconform -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' api-one/api-qa.yaml 
api-one/api-qa.yaml - ApiDefinition echo-api-declarative-qa failed validation: could not find schema for ApiDefinition

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions