12 lines
537 B
HCL
12 lines
537 B
HCL
resource "kubernetes_manifest" "kyverno_policy_topology_spread" {
|
|
# To ensure the correct namespace is used, we could do a patch on the manifest
|
|
# For the sake of the demo and to ensure the kyverno tests are running correctly
|
|
# the namespace is hardcoded in the policy
|
|
manifest = yamldecode(file("${path.module}/kyvernoPolicies/rossumTopologySpread.yaml"))
|
|
depends_on = [
|
|
kubernetes_namespace.rossum,
|
|
kubernetes_deployment.pre_policy_sleeper,
|
|
kubernetes_deployment.pre_policy_sleeper_without_topology_spread,
|
|
]
|
|
}
|