From 96fac144974d4159ae22fea3ba1aae370bb15588 Mon Sep 17 00:00:00 2001 From: Dan Pock Date: Tue, 10 Sep 2024 11:08:16 -0400 Subject: [PATCH] Capture namespaces managed by rancher (created by fleet) --- .../files/default-resourceset-contents/fleet.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/charts/rancher-backup/files/default-resourceset-contents/fleet.yaml b/charts/rancher-backup/files/default-resourceset-contents/fleet.yaml index a14125fe..7909be63 100644 --- a/charts/rancher-backup/files/default-resourceset-contents/fleet.yaml +++ b/charts/rancher-backup/files/default-resourceset-contents/fleet.yaml @@ -1,6 +1,13 @@ - apiVersion: "v1" kindsRegexp: "^namespaces$" resourceNameRegexp: "^fleet-" +- apiVersion: "v1" + kindsRegexp: "^namespaces$" + labelSelectors: + matchExpressions: + - key: "app.kubernetes.io/managed-by" + operator: "In" + values: ["rancher"] - apiVersion: "v1" kindsRegexp: "^secrets$" namespaceRegexp: "^cattle-fleet-|^fleet-"