From ee28d691f7a7fa592f97309015dbf2370ee16f6c Mon Sep 17 00:00:00 2001 From: Sebastian Florek Date: Thu, 23 Jan 2025 13:09:42 +0100 Subject: [PATCH] cleanup chart --- .../templates/registry/certificate.yaml | 34 ------------------- .../osbuilder/templates/registry/service.yaml | 2 ++ 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 charts/osbuilder/templates/registry/certificate.yaml diff --git a/charts/osbuilder/templates/registry/certificate.yaml b/charts/osbuilder/templates/registry/certificate.yaml deleted file mode 100644 index cd375e7..0000000 --- a/charts/osbuilder/templates/registry/certificate.yaml +++ /dev/null @@ -1,34 +0,0 @@ -{{- if not .Values.registry.ingress.enabled }} - -apiVersion: cert-manager.io/v1 -kind: Issuer -metadata: - name: {{ include "helm-chart.fullname" . }}-registry-selfsigned-issuer - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/component: registry - {{- include "helm-chart.labels" . | nindent 4 }} -spec: - selfSigned: {} ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: {{ include "helm-chart.fullname" . }}-registry-tls - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/component: registry - {{- include "helm-chart.labels" . | nindent 4 }} -spec: - secretName: {{ include "helm-chart.fullname" . }}-registry-tls - isCA: false - usages: - - server auth - - client auth - dnsNames: - - "{{ include "helm-chart.fullname" . }}-registry.{{.Release.Namespace}}.svc.cluster.local" - - "{{ include "helm-chart.fullname" . }}-registry" - issuerRef: - name: {{ include "helm-chart.fullname" . }}-registry-selfsigned-issuer - -{{- end }} \ No newline at end of file diff --git a/charts/osbuilder/templates/registry/service.yaml b/charts/osbuilder/templates/registry/service.yaml index ed100dd..2218699 100644 --- a/charts/osbuilder/templates/registry/service.yaml +++ b/charts/osbuilder/templates/registry/service.yaml @@ -15,7 +15,9 @@ spec: port: 5000 protocol: TCP targetPort: registry + {{- if .Values.registry.debug }} - name: debug port: 5001 protocol: TCP targetPort: debug + {{- end }}