Skip to content

Commit

Permalink
traefik: remove useless objects if useCertManager
Browse files Browse the repository at this point in the history
  • Loading branch information
armandgrillet committed Jan 14, 2020
1 parent 6bf01cf commit a11f3f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion staging/traefik/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.72.10
version: 1.72.11
appVersion: 1.7.12
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
Expand Down
3 changes: 2 additions & 1 deletion staging/traefik/templates/certificate.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.ssl.useCertManager }}
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
Expand Down Expand Up @@ -31,4 +32,4 @@ spec:
# The commonName will get replaced by kubeaddons-config
# init-container for traefik
commonName: traefik.localhost.localdomain

{{- end }}
2 changes: 2 additions & 0 deletions staging/traefik/templates/init-cert-job.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.ssl.useCertManager }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -39,3 +40,4 @@ spec:
value: "konvoyconfig-kubeaddons"
- name: "TRAEFIK_CLUSTER_HOSTNAME_KEY"
value: "clusterHostname"
{{- end }}

0 comments on commit a11f3f6

Please sign in to comment.