Closed mgrzybek closed 2 years ago
Have you tried using server_side_apply
?
resource "kubectl_manifest" "kafka-clusters-crd" {
yaml_body = file("${path.module}/kafka-clusters.crds.yaml")
server_side_apply = true
}
That solves the problem.
Some CRDs have very long annotations that cannot be created using
kubectl apply
but usingkubectl create
.For example, this CRD is too long :
As a consequence, could you add an option in the resource definition ?
Example :