-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2d94e1
commit f6afe34
Showing
30 changed files
with
1,176 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for the resources for JX Boot | ||
icon: https://avatars2.githubusercontent.com/u/47602533 | ||
name: jxboot-resources | ||
version: 0.0.44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# jxboot-resources helm chart | ||
|
||
this chart is used as part of [jx boot](https://jenkins-x.io/getting-started/boot/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if .Values.namespace.enabled }} | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
jenkins-x.io/created-by: Jenkins X | ||
labels: | ||
env: dev | ||
team: jx | ||
certmanager.k8s.io/disable-validation: "true" | ||
name: jx | ||
spec: | ||
finalizers: | ||
- kubernetes | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.bucketrepo.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.bucketrepo.ingress.annotations }} | ||
{{ toYaml .Values.bucketrepo.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
name: bucketrepo | ||
spec: | ||
rules: | ||
- host: bucketrepo{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: bucketrepo | ||
servicePort: 80 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- bucketrepo{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.bucketrepo.ingress.tls.secretName }} | ||
secretName: "{{ .Values.bucketrepo.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
38 changes: 38 additions & 0 deletions
38
charts/jxboot-resources/templates/700-chartmuseum-ing.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if index .Values "jenkins-x-platform" "chartmuseum" "enabled" }} | ||
{{- if index .Values "jenkins-x-platform" "chartmuseum" "ingress" }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.chartmuseum.ingress.annotations }} | ||
{{ toYaml .Values.chartmuseum.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
name: {{.Release.Name}}-chartmuseum | ||
spec: | ||
rules: | ||
- host: chartmuseum{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: {{.Release.Name}}-chartmuseum | ||
servicePort: 8080 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- chartmuseum{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.chartmuseum.ingress.tls.secretName }} | ||
secretName: "{{ .Values.chartmuseum.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if .Values.prow.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/auth-secret: jx-basic-auth | ||
nginx.ingress.kubernetes.io/auth-type: basic | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.deck.ingress.annotations }} | ||
{{ toYaml .Values.deck.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
name: deck | ||
spec: | ||
rules: | ||
- host: deck{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: deck | ||
servicePort: 80 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- deck{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.deck.ingress.tls.secretName }} | ||
secretName: "{{ .Values.deck.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if index .Values "docker-registry" "enabled" }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/auth-secret: jx-basic-auth | ||
nginx.ingress.kubernetes.io/auth-type: basic | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if index .Values "docker-registry" "ingress" "annotations" }} | ||
{{ toYaml (index .Values "docker-registry" "ingress" "annotations") | indent 4 }} | ||
{{- end }} | ||
name: docker-registry | ||
spec: | ||
rules: | ||
- host: docker-registry{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: jenkins-x-docker-registry | ||
servicePort: 5000 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- docker-registry{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if index .Values "docker-registry" "ingress" "tls" "secretName" }} | ||
secretName: "{{ index .Values "docker-registry" "ingress" "tls" "secretName" }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{- if or .Values.prow.enabled .Values.lighthouse.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: hook | ||
annotations: | ||
kubernetes.io/ingress.class: {{ .Values.hook.ingress.class }} | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.hook.ingress.annotations }} | ||
{{ toYaml .Values.hook.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
- host: hook{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: hook | ||
port: | ||
number: 80 | ||
pathType: ImplementationSpecific | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- hook{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.hook.ingress.tls.secretName }} | ||
secretName: "{{ .Values.hook.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.jenkins.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.jenkins.ingress.annotations }} | ||
{{ toYaml .Values.jenkins.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
name: jenkins | ||
spec: | ||
rules: | ||
- host: jenkins{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: jenkins | ||
servicePort: 8080 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- jenkins{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.jenkins.ingress.tls.secretName }} | ||
secretName: "{{ .Values.jenkins.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.nexus.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.nexus.ingress.annotations }} | ||
{{ toYaml .Values.nexus.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
name: nexus | ||
spec: | ||
rules: | ||
- host: nexus{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: nexus | ||
servicePort: 80 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- nexus{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.nexus.ingress.tls.secretName }} | ||
secretName: "{{ .Values.nexus.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if .Values.prow.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/auth-secret: jx-basic-auth | ||
nginx.ingress.kubernetes.io/auth-type: basic | ||
{{- if .Values.cluster.ingress.annotations }} | ||
{{ toYaml .Values.cluster.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.tide.ingress.annotations }} | ||
{{ toYaml .Values.tide.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
name: tide | ||
spec: | ||
rules: | ||
- host: tide{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: tide | ||
servicePort: 80 | ||
{{- if .Values.cluster.tls }} | ||
tls: | ||
- hosts: | ||
- tide{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }} | ||
{{- if .Values.tide.ingress.tls.secretName }} | ||
secretName: "{{ .Values.tide.ingress.tls.secretName }}" | ||
{{- else if .Values.cluster.ingress.tls.secretName }} | ||
secretName: "{{ .Values.cluster.ingress.tls.secretName }}" | ||
{{- else if eq .Values.certmanager.production "true" }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p" | ||
{{- else }} | ||
secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
JX Boot Resources |
17 changes: 17 additions & 0 deletions
17
charts/jxboot-resources/templates/core-chartmuseum-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if .Values.CoreChartmuseum }} | ||
apiVersion: v1 | ||
data: | ||
BASIC_AUTH_PASS: {{ .Values.CoreChartmuseum.password | b64enc | quote }} | ||
BASIC_AUTH_USER: {{ .Values.CoreChartmuseum.username | b64enc | quote }} | ||
kind: Secret | ||
metadata: | ||
annotations: | ||
jenkins.io/credentials-keybinding-password: BASIC_AUTH_PASS | ||
jenkins.io/credentials-keybinding-username: BASIC_AUTH_USER | ||
jenkins.io/foo: bar | ||
labels: | ||
jenkins.io/credentials-type: usernamePassword | ||
release: jenkins-x | ||
name: jenkins-x-chartmuseum-core | ||
type: Opaque | ||
{{- end }} |
Oops, something went wrong.