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.
I'm creating this issue because the original issue was solved and closed. But current version still reporting there is no OpenAPI definition even when the schema is defined.
resource"kubernetes_manifest""app_admin_ssm_envs" {
manifest={
apiVersion ="kubernetes-client.io/v1"
kind ="ExternalSecret"
metadata = {
name ="admin-ssm-envs"
namespace = var.environment
}
spec = {
backendType ="systemManager"
region = var.aws_region
data = [
{
key = aws_ssm_parameter.apps_admin_sentry_dsn.name
name ="SENTRY_DSN"
}
]
}
}
}
Steps to Reproduce
terraform apply
Expected Behavior
There should be no warning.
Actual Behavior
╷
│ Warning: This custom resource does not have an associated OpenAPI schema.
│
│ with kubernetes_manifest.app_admin_ssm_envs,
│ on apps_admin.tf line 71, in resource "kubernetes_manifest" "app_admin_ssm_envs":
│ 71: resource "kubernetes_manifest" "app_admin_ssm_envs" {
│
│ We could not find an OpenAPI schema for this custom resource. Updates to
│ this resource will cause a forced replacement.
│
│ (and 7 more similar warnings elsewhere)
╵
I have faced with the same issue: terraform shows this warning, but the resource is able to be created.
The more actual problem is I cannot update this resource or even run terraform plan after creation without errors:
terraform plan
Acquiring state lock. This may take a few moments...
kubernetes_manifest.elasticsearch: Refreshing state...
╷
│ Warning: This custom resource does not have an associated OpenAPI schema.
│
│ with kubernetes_manifest.elasticsearch,
│ on main.tf line 1, in resource "kubernetes_manifest" "elasticsearch":
│ 1: resource "kubernetes_manifest" "elasticsearch" {
│
│ We could not find an OpenAPI schema for this custom resource. Updates to this resource will cause a forced replacement.
╵
╷
│ Error: Dry-run failed for non-structured resource
│
│ with kubernetes_manifest.elasticsearch,
│ on main.tf line 1, in resource "kubernetes_manifest" "elasticsearch":
│ 1: resource "kubernetes_manifest" "elasticsearch" {
│
│ A dry-run apply was performed for this resource but was unsuccessful: Apply failed with 1 conflict: conflict with "elastic-operator" using elasticsearch.k8s.elastic.co/v1: .spec.nodeSets
╵
I'm creating this issue because the original issue was solved and closed. But current version still reporting there is no OpenAPI definition even when the schema is defined.
Terraform, Provider, Kubernetes versions
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terraform apply
Expected Behavior
There should be no warning.
Actual Behavior
Important Factoids
This CRD has OpenAPI definition
References
Community Note
The text was updated successfully, but these errors were encountered: