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

Adicionar todos os CRDs no agrupamento do output #10

Open
lukerops opened this issue Oct 6, 2023 · 0 comments
Open

Adicionar todos os CRDs no agrupamento do output #10

lukerops opened this issue Oct 6, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@lukerops
Copy link
Owner

lukerops commented Oct 6, 2023

Hoje apenas os CRDs que possuem manifestos de recursos aparecem no agrupamento do output. Isso obriga quem está usando o módulo a fazer o acesso usando o try para garantir que o código não quebre.

Um comportamento melhor seria todos os CRDs estarem nesse output e caso não exista nenhum manifesto desse CRD, adicionar apenas um objeto vazio.


Exemplo do uso atual:

locals {
  v1alpha1 = {
    for name, resource in try(module.tf_gapi.resources["<apiGroup>"]["<kind>"], {}) : name => resource
    if resource.apiVersionName == "v1alpha1"
  }
}
@lukerops lukerops added the enhancement New feature or request label Oct 6, 2023
@lukerops lukerops added this to the v0.2.0 milestone Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant