the default GitOps source repository for booting up Jenkins X
修訂 | b6aba273eb4d46e4a66d77732c12c6f905f6ec79 (tree) |
---|---|
時間 | 2019-08-28 18:42:55 |
作者 | Cosmin Cojocar <cosmin.cojocar@gmx....> |
Commiter | Cosmin Cojocar |
fix: disable the optional charts installation
Disable the installation of the cert-manager, external-dns and acme charts when
they are disable in the jx-requirements.yml file.
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
@@ -63,7 +63,7 @@ pipelineConfig: | ||
63 | 63 | dir: /workspace/source/env |
64 | 64 | command: jx |
65 | 65 | args: ['step', 'create', 'values', '--name', 'parameters'] |
66 | - - name: | |
66 | + - name: install-env | |
67 | 67 | dir: /workspace/source/env |
68 | 68 | command: jx |
69 | 69 | args: ['step','helm','apply', '--boot', '--remote', '--name', 'jenkins-x', '--provider-values-dir', '../kubeProviders'] |
@@ -1,3 +1,4 @@ | ||
1 | +{{- if .Values.certmanager.enabled }} | |
1 | 2 | {{- if eq .Values.certmanager.production "true" }} |
2 | 3 | apiVersion: certmanager.k8s.io/v1alpha1 |
3 | 4 | kind: Certificate |
@@ -10,4 +11,5 @@ spec: | ||
10 | 11 | commonName: "*.{{ .Values.cluster.domain }}" |
11 | 12 | dnsNames: |
12 | 13 | - "*.{{ .Values.cluster.domain }}" |
13 | -{{- end }} | |
\ No newline at end of file | ||
14 | +{{- end }} | |
15 | +{{- end }} |
@@ -1,3 +1,4 @@ | ||
1 | +{{- if .Values.certmanager.enabled }} | |
1 | 2 | {{- if eq .Values.certmanager.production "true" }} |
2 | 3 | apiVersion: certmanager.k8s.io/v1alpha1 |
3 | 4 | kind: Issuer |
@@ -24,4 +25,5 @@ spec: | ||
24 | 25 | serviceAccountSecretRef: |
25 | 26 | name: external-dns-gcp-sa |
26 | 27 | key: credentials.json |
27 | -{{- end }} | |
\ No newline at end of file | ||
28 | +{{- end }} | |
29 | +{{- end }} |
@@ -1,3 +1,4 @@ | ||
1 | +{{- if .Values.certmanager.enabled }} | |
1 | 2 | {{- if eq .Values.certmanager.production "false" }} |
2 | 3 | apiVersion: certmanager.k8s.io/v1alpha1 |
3 | 4 | kind: Certificate |
@@ -10,4 +11,5 @@ spec: | ||
10 | 11 | commonName: "*.{{ .Values.cluster.domain }}" |
11 | 12 | dnsNames: |
12 | 13 | - "*.{{ .Values.cluster.domain }}" |
13 | -{{- end }} | |
\ No newline at end of file | ||
14 | +{{- end }} | |
15 | +{{- end }} |
@@ -1,3 +1,4 @@ | ||
1 | +{{- if .Values.certmanager.enabled }} | |
1 | 2 | {{- if eq .Values.certmanager.production "false" }} |
2 | 3 | apiVersion: certmanager.k8s.io/v1alpha1 |
3 | 4 | kind: Issuer |
@@ -24,4 +25,6 @@ spec: | ||
24 | 25 | serviceAccountSecretRef: |
25 | 26 | name: external-dns-gcp-sa |
26 | 27 | key: credentials.json |
27 | -{{- end }} | |
\ No newline at end of file | ||
28 | +{{- end }} | |
29 | +{{- end }} | |
30 | + |
@@ -9,9 +9,6 @@ cluster: | ||
9 | 9 | {{- if .Requirements.ingress.tls }} |
10 | 10 | certmanager: |
11 | 11 | production: "{{ .Requirements.ingress.tls.production }}" |
12 | -{{- if .Requirements.ingress.tls.enabled }} | |
13 | 12 | email: "{{ .Requirements.ingress.tls.email }}" |
14 | -{{- else }} | |
15 | - enabled: false | |
16 | -{{- end }} | |
13 | + enabled: {{ .Requirements.ingress.tls.enabled }} | |
17 | 14 | {{- end }} |
@@ -1,4 +1,5 @@ | ||
1 | 1 | dependencies: |
2 | 2 | - alias: cert-manager |
3 | + condition: cert-manager.enabled | |
3 | 4 | name: cert-manager |
4 | 5 | repository: https://charts.jetstack.io |
@@ -1,4 +1,5 @@ | ||
1 | 1 | cert-manager: |
2 | + enabled: {{ .Requirements.ingress.tls.enabled }} | |
2 | 3 | rbac: |
3 | 4 | create: true |
4 | 5 | webhook: |