add some linting test and fix mistake on certificate object

This commit is contained in:
Kjeld Schouten
2023-11-18 13:13:55 +01:00
parent 2ed68eb788
commit 962d1c9e73
2 changed files with 50 additions and 1 deletions

View File

@@ -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

View File

@@ -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: