From 680aa33502d6094f5ed741e1387126dd755e6e03 Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Thu, 21 Dec 2023 11:14:11 +0100 Subject: [PATCH] Don't create ns for billing --- component/component/billing.jsonnet | 7 ------- .../vshn/appcat/appcat/billing/00_namespace.yaml | 11 ----------- 2 files changed, 18 deletions(-) delete mode 100644 component/tests/golden/vshn/appcat/appcat/billing/00_namespace.yaml diff --git a/component/component/billing.jsonnet b/component/component/billing.jsonnet index 2ab0360d3..40443b07d 100644 --- a/component/component/billing.jsonnet +++ b/component/component/billing.jsonnet @@ -186,13 +186,6 @@ local billingCronjobs = std.flattenArrays(std.flatMap(function(r) [ generateClou if params.billing.vshn.enableCronjobs then { - 'billing/00_namespace': kube.Namespace(params.billing.namespace) { - metadata+: { - labels+: common.Labels { - 'openshift.io/cluster-monitoring': 'true', - }, - }, - }, [if std.length(std.filter(function(name) params.billing.network_policies.target_namespaces[name] == true, std.objectFields(params.billing.network_policies.target_namespaces))) > 0 then 'billing/01_netpol']: netPol.Policies, 'billing/10_odoo_secret': odooSecret, 'billing/11_backfill': billingCronjobs, diff --git a/component/tests/golden/vshn/appcat/appcat/billing/00_namespace.yaml b/component/tests/golden/vshn/appcat/appcat/billing/00_namespace.yaml deleted file mode 100644 index b40608366..000000000 --- a/component/tests/golden/vshn/appcat/appcat/billing/00_namespace.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: {} - labels: - app.kubernetes.io/managed-by: commodore - app.kubernetes.io/name: appuio-reporting - app.kubernetes.io/part-of: syn - name: syn-appcat - openshift.io/cluster-monitoring: 'true' - name: syn-appcat