You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
resource"kubernetes_manifest""vault_secrets" {
provider=kubernetes-alpha.redmanifest={
"apiVersion"="kubernetes-client.io/v1""kind"="ExternalSecret""metadata"= {
"name"="vault-secrets""namespace"= var.environment
}
"spec"= {
"backendType"="vault""dataFrom"= [
"${var.vault_kv2_base}/data/${var.environment}/services/secrets",
]
"kvVersion"=2"template"=null# <---- This is the problem"vaultMountPoint"= var.vault_kube_auth_mount
"vaultRole"= var.vault_kube_role
}
}
depends_on=[module.kube_namespace_red]
}
Debug Output
│ 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
The text was updated successfully, but these errors were encountered: