Skip to content

Commit

Permalink
fix: force_conflicts by default for crds managed by server side apply
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Feb 13, 2023
1 parent bbe3745 commit a88a532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions kong-crds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ resource "kubectl_manifest" "kong_crds" {
for_each = local.kong.enabled && local.kong.manage_crds ? { for v in local.kong_crds_apply : lower(join("/", compact([v.data.apiVersion, v.data.kind, lookup(v.data.metadata, "namespace", ""), v.data.metadata.name]))) => v.content } : {}
yaml_body = each.value
server_side_apply = true
force_conflicts = true
}
1 change: 1 addition & 0 deletions kube-prometheus-crd.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ resource "kubectl_manifest" "prometheus-operator_crds" {
for_each = (local.victoria-metrics-k8s-stack.enabled && local.victoria-metrics-k8s-stack.install_prometheus_operator_crds) || (local.kube-prometheus-stack.enabled && local.kube-prometheus-stack.manage_crds) ? local.prometheus-operator_crds_apply : {}
yaml_body = each.value
server_side_apply = true
force_conflicts = true
}

0 comments on commit a88a532

Please sign in to comment.