From 962d1c9e73f399e552e5cc36898d200ec5bf1c68 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 18 Nov 2023 13:13:55 +0100 Subject: [PATCH] add some linting test and fix mistake on certificate object --- library/common-test/ci/namespace-values.yaml | 49 +++++++++++++++++++ .../common/templates/class/_certificate.tpl | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 library/common-test/ci/namespace-values.yaml diff --git a/library/common-test/ci/namespace-values.yaml b/library/common-test/ci/namespace-values.yaml new file mode 100644 index 00000000..c1f57263 --- /dev/null +++ b/library/common-test/ci/namespace-values.yaml @@ -0,0 +1,49 @@ +service: + main: + enabled: true + primary: true + ports: + main: + enabled: true + primary: true + protocol: http + port: 8080 + +workload: + main: + enabled: true + primary: true + type: Deployment + podSpec: + containers: + main: + enabled: true + primary: true + args: + - --port + - "8080" + probes: + liveness: + enabled: true + type: http + port: "{{ .Values.service.main.ports.main.port }}" + readiness: + enabled: true + type: http + port: "{{ .Values.service.main.ports.main.port }}" + startup: + enabled: true + type: http + port: "{{ .Values.service.main.ports.main.port }}" + +namespace: + labels: + somelabel: somelabelvalue + +global: + namespace: + labels: + somegloballabel: someglobalvalue + +manifestManager: + enabled: false diff --git a/library/common/templates/class/_certificate.tpl b/library/common/templates/class/_certificate.tpl index f7494cbb..523e4e84 100644 --- a/library/common/templates/class/_certificate.tpl +++ b/library/common/templates/class/_certificate.tpl @@ -13,7 +13,7 @@ apiVersion: {{ include "tc.v1.common.capabilities.cert-manager.certificate.apiVe kind: Certificate metadata: name: {{ $name }} - namespace: {{ include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "certificate") }} + namespace: {{ include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $root "objectData" $objectData "caller" "certificate") }} spec: secretName: {{ $name }} dnsNames: