• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

the default GitOps source repository for booting up Jenkins X


Commit MetaInfo

修訂b6aba273eb4d46e4a66d77732c12c6f905f6ec79 (tree)
時間2019-08-28 18:42:55
作者Cosmin Cojocar <cosmin.cojocar@gmx....>
CommiterCosmin Cojocar

Log Message

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>

Change Summary

差異

--- a/jenkins-x.yml
+++ b/jenkins-x.yml
@@ -63,7 +63,7 @@ pipelineConfig:
6363 dir: /workspace/source/env
6464 command: jx
6565 args: ['step', 'create', 'values', '--name', 'parameters']
66- - name:
66+ - name: install-env
6767 dir: /workspace/source/env
6868 command: jx
6969 args: ['step','helm','apply', '--boot', '--remote', '--name', 'jenkins-x', '--provider-values-dir', '../kubeProviders']
--- a/systems/acme/templates/cert-manager-prod-certificate.yaml
+++ b/systems/acme/templates/cert-manager-prod-certificate.yaml
@@ -1,3 +1,4 @@
1+{{- if .Values.certmanager.enabled }}
12 {{- if eq .Values.certmanager.production "true" }}
23 apiVersion: certmanager.k8s.io/v1alpha1
34 kind: Certificate
@@ -10,4 +11,5 @@ spec:
1011 commonName: "*.{{ .Values.cluster.domain }}"
1112 dnsNames:
1213 - "*.{{ .Values.cluster.domain }}"
13-{{- end }}
\ No newline at end of file
14+{{- end }}
15+{{- end }}
--- a/systems/acme/templates/cert-manager-prod-issuer.yaml
+++ b/systems/acme/templates/cert-manager-prod-issuer.yaml
@@ -1,3 +1,4 @@
1+{{- if .Values.certmanager.enabled }}
12 {{- if eq .Values.certmanager.production "true" }}
23 apiVersion: certmanager.k8s.io/v1alpha1
34 kind: Issuer
@@ -24,4 +25,5 @@ spec:
2425 serviceAccountSecretRef:
2526 name: external-dns-gcp-sa
2627 key: credentials.json
27-{{- end }}
\ No newline at end of file
28+{{- end }}
29+{{- end }}
--- a/systems/acme/templates/cert-manager-staging-certificate.yaml
+++ b/systems/acme/templates/cert-manager-staging-certificate.yaml
@@ -1,3 +1,4 @@
1+{{- if .Values.certmanager.enabled }}
12 {{- if eq .Values.certmanager.production "false" }}
23 apiVersion: certmanager.k8s.io/v1alpha1
34 kind: Certificate
@@ -10,4 +11,5 @@ spec:
1011 commonName: "*.{{ .Values.cluster.domain }}"
1112 dnsNames:
1213 - "*.{{ .Values.cluster.domain }}"
13-{{- end }}
\ No newline at end of file
14+{{- end }}
15+{{- end }}
--- a/systems/acme/templates/cert-manager-staging-issuer.yaml
+++ b/systems/acme/templates/cert-manager-staging-issuer.yaml
@@ -1,3 +1,4 @@
1+{{- if .Values.certmanager.enabled }}
12 {{- if eq .Values.certmanager.production "false" }}
23 apiVersion: certmanager.k8s.io/v1alpha1
34 kind: Issuer
@@ -24,4 +25,6 @@ spec:
2425 serviceAccountSecretRef:
2526 name: external-dns-gcp-sa
2627 key: credentials.json
27-{{- end }}
\ No newline at end of file
28+{{- end }}
29+{{- end }}
30+
--- a/systems/acme/values.tmpl.yaml
+++ b/systems/acme/values.tmpl.yaml
@@ -9,9 +9,6 @@ cluster:
99 {{- if .Requirements.ingress.tls }}
1010 certmanager:
1111 production: "{{ .Requirements.ingress.tls.production }}"
12-{{- if .Requirements.ingress.tls.enabled }}
1312 email: "{{ .Requirements.ingress.tls.email }}"
14-{{- else }}
15- enabled: false
16-{{- end }}
13+ enabled: {{ .Requirements.ingress.tls.enabled }}
1714 {{- end }}
--- a/systems/cm/requirements.yaml
+++ b/systems/cm/requirements.yaml
@@ -1,4 +1,5 @@
11 dependencies:
22 - alias: cert-manager
3+ condition: cert-manager.enabled
34 name: cert-manager
45 repository: https://charts.jetstack.io
--- a/systems/cm/values.yaml
+++ b/systems/cm/values.tmpl.yaml
@@ -1,4 +1,5 @@
11 cert-manager:
2+ enabled: {{ .Requirements.ingress.tls.enabled }}
23 rbac:
34 create: true
45 webhook: