From 4f49b45b77b728d1ee1f4469dc8356a90d6b889a Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 15 Sep 2025 19:09:53 +0200 Subject: [PATCH] [cozystack-controller] Add workloadmonitors to lineage webhook; track UPDATE operations Signed-off-by: Andrei Kvapil --- .../templates/mutatingwebhookconfiguration.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/system/cozystack-controller/templates/mutatingwebhookconfiguration.yaml b/packages/system/cozystack-controller/templates/mutatingwebhookconfiguration.yaml index a00983a3..215cc2df 100644 --- a/packages/system/cozystack-controller/templates/mutatingwebhookconfiguration.yaml +++ b/packages/system/cozystack-controller/templates/mutatingwebhookconfiguration.yaml @@ -16,10 +16,14 @@ webhooks: namespace: {{ .Release.Namespace }} path: /mutate-lineage rules: - - operations: ["CREATE"] + - operations: ["CREATE", "UPDATE"] apiGroups: [""] apiVersions: ["v1"] resources: ["pods","secrets", "services", "persistentvolumeclaims"] + - operations: ["CREATE", "UPDATE"] + apiGroups: ["cozystack.io"] + apiVersions: ["v1alpha1"] + resources: ["workloadmonitors"] failurePolicy: Fail namespaceSelector: matchExpressions: