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

Validar quando um CRD usa uma version que não existe #20

Open
daltonmatos opened this issue Oct 11, 2024 · 0 comments
Open

Validar quando um CRD usa uma version que não existe #20

daltonmatos opened this issue Oct 11, 2024 · 0 comments

Comments

@daltonmatos
Copy link
Collaborator

Exemplo de CRD:

apiVersion: tf-gapi.lukerops.com/v1alpha3
kind: CustomResourceDefinition
metadata:
  name: user.gcp.iam
spec:
  group: gcp.iam
  kind: User
  versions:
    - name: v1alpha2
      specSchema:
        type: object
        properties:
          email:
            type: string
          active:
            type: bool
            default: false

Se a verĩon v1alpha3 não existe no manifest.tf um erro não amigável é mostrado.
Captura de tela de 2024-10-11 08-57-31

Poderíamos validar e mostrar um erro amigável explicando o que aconteceu.

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