cleanup chart

This commit is contained in:
Sebastian Florek 2025-01-23 13:09:42 +01:00
parent 0694ce3050
commit ee28d691f7
No known key found for this signature in database
GPG Key ID: DBC7C083B0200A0F
2 changed files with 2 additions and 34 deletions

View File

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

View File

@ -15,7 +15,9 @@ spec:
port: 5000 port: 5000
protocol: TCP protocol: TCP
targetPort: registry targetPort: registry
{{- if .Values.registry.debug }}
- name: debug - name: debug
port: 5001 port: 5001
protocol: TCP protocol: TCP
targetPort: debug targetPort: debug
{{- end }}