│ Error: Dry-run failed for non-structured resource
│
│ with kubernetes_manifest.vault_secrets,
│ on apps.tf line 139, in resource "kubernetes_manifest" "vault_secrets":
│ 139: resource "kubernetes_manifest" "vault_secrets" {
│
│ A dry-run apply was performed for this resource but was unsuccessful:
│ ExternalSecret.kubernetes-client.io "vault-secrets" is invalid:
│ spec.template: Invalid value: "null": spec.template in body must be of type
│ object: "null"
I was trying all possible values, like:
"template" = null # <---- This is the problem
"template" = {} # <---- This is the problem
# "template" = null # <---- This is the problem
"template" = { null } # <---- Invalid hcl syntax
Terraform, Provider, Kubernetes versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
I was trying all possible values, like:
Expected Behavior
Manifest will be applied regarding to documentation: https://github.com/external-secrets/kubernetes-external-secrets
Example
spec.template
is not needed but should be present as nullActual Behavior
Manifest is invalid.
Important Factoids
References
https://github.com/external-secrets/kubernetes-external-secrets