mirror of
https://github.com/bvanroll/environment-ff-stage-euw1-gkecluster-primary-dev.git
synced 2025-08-29 12:02:41 +00:00
initial config based of jenkins-x/jenkins-x-boot-config with ref v1.0.82
This commit is contained in:
7
env/Chart.yaml
vendored
Normal file
7
env/Chart.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
description: GitOps Environment for this Environment
|
||||
icon: https://www.cloudbees.com/sites/default/files/Jenkins_8.png
|
||||
maintainers:
|
||||
- name: Team
|
||||
name: env
|
||||
version: "1"
|
13
env/Makefile
vendored
Normal file
13
env/Makefile
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
init:
|
||||
helm init --client-only
|
||||
helm repo add jenkins-x https://storage.googleapis.com/chartmuseum.jenkins-x.io
|
||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||
helm repo add stable https://kubernetes-charts.storage.googleapis.com
|
||||
|
||||
build: clean init
|
||||
jx step helm build --boot --provider-values-dir=../kubeProviders
|
||||
helm lint .
|
||||
|
||||
clean:
|
||||
rm -rf charts
|
||||
rm -rf requirements.lock
|
15
env/bucketrepo/values.tmpl.yaml
vendored
Normal file
15
env/bucketrepo/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{{- if and (hasKey .Requirements "repository") (eq .Requirements.repository "bucketrepo") }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
config:
|
||||
storage:
|
||||
{{- if .Requirements.storage.repository.url }}
|
||||
enabled: true
|
||||
{{- end }}
|
||||
bucketUrl: "{{ .Requirements.storage.repository.url }}"
|
||||
auth:
|
||||
username: "{{ .Parameters.adminUser.username }}"
|
||||
password: "{{ .Parameters.adminUser.password }}"
|
6
env/chartmuseum/values.tmpl.yaml
vendored
Normal file
6
env/chartmuseum/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{{- if and (hasKey .Requirements "repository") (eq .Requirements.repository "bucketrepo") }}
|
||||
enabled: false
|
||||
{{- else }}
|
||||
enabled: true
|
||||
{{- end }}
|
||||
|
1
env/controllerbuild/values.yaml
vendored
Normal file
1
env/controllerbuild/values.yaml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
enabled: true
|
1
env/controllerteam/values.yaml
vendored
Normal file
1
env/controllerteam/values.yaml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
enabled: false
|
1
env/controllerworkflow/values.yaml
vendored
Normal file
1
env/controllerworkflow/values.yaml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
enabled: false
|
2
env/docker-registry/README.MD
vendored
Normal file
2
env/docker-registry/README.MD
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# docker-registry
|
||||
|
5
env/docker-registry/values.tmpl.yaml
vendored
Normal file
5
env/docker-registry/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- if eq .Requirements.webhook "jenkins" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
7
env/jenkins-x-platform/README.MD
vendored
Normal file
7
env/jenkins-x-platform/README.MD
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# jenkins-x-platform
|
||||
|
||||
|App Metadata||
|
||||
|---|---|
|
||||
| **Version** | 0.0.3877 |
|
||||
| **Description** | Jenkins X next gen cloud CI / CD platform for Kubernetes |
|
||||
| **Chart Repository** | http://chartmuseum.jenkins-x.io |
|
12
env/jenkins-x-platform/templates/jenkins-x-platform-app.yaml
vendored
Normal file
12
env/jenkins-x-platform/templates/jenkins-x-platform-app.yaml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: jenkins.io/v1
|
||||
kind: App
|
||||
metadata:
|
||||
annotations:
|
||||
jenkins.io/chart-description: Jenkins X next gen cloud CI / CD platform for Kubernetes
|
||||
jenkins.io/chart-repository: http://chartmuseum.jenkins-x.io
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
jenkins.io/app-name: jenkins-x-platform
|
||||
jenkins.io/app-version: 0.0.3877
|
||||
name: jenkins-x-platform
|
||||
spec: {}
|
197
env/jenkins-x-platform/values.tmpl.yaml
vendored
Normal file
197
env/jenkins-x-platform/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,197 @@
|
||||
{{- if hasKey .Requirements.cluster "registry" }}
|
||||
dockerRegistry: "{{ .Requirements.cluster.registry }}"
|
||||
{{- end }}
|
||||
|
||||
|
||||
expose:
|
||||
enabled: false
|
||||
|
||||
JXBasicAuth: "{{ .Parameters.adminUser.username }}:{SHA}{{ .Parameters.adminUser.password | hashPassword }}"
|
||||
|
||||
cleanup:
|
||||
enabled: false
|
||||
|
||||
chartmuseum:
|
||||
{{- if and (hasKey .Requirements "repository") (eq .Requirements.repository "bucketrepo") }}
|
||||
enabled: false
|
||||
{{- else }}
|
||||
env:
|
||||
secret:
|
||||
BASIC_AUTH_USER: "{{ .Parameters.adminUser.username }}"
|
||||
BASIC_AUTH_PASS: "{{ .Parameters.adminUser.password }}"
|
||||
{{- end }}
|
||||
|
||||
nexus:
|
||||
defaultAdminPassword: "{{ .Parameters.adminUser.password }}"
|
||||
{{- if hasKey .Requirements "repository"}}
|
||||
{{- if or (eq .Requirements.repository "nexus") (eq .Requirements.repository "") }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
jenkins:
|
||||
Master:
|
||||
AdminPassword: "{{ .Parameters.adminUser.password }}"
|
||||
|
||||
PipelineSecrets:
|
||||
GitCreds: https://{{ .Parameters.pipelineUser.username }}:{{ .Parameters.pipelineUser.token }}@{{ trimPrefix "https://" .Requirements.cluster.gitServer | default "https://github.com" | }}
|
||||
GithubToken: "{{ .Parameters.pipelineUser.token }}"
|
||||
MavenSettingsXML: |-
|
||||
<settings>
|
||||
<localRepository>/home/jenkins/.mvnrepository</localRepository>
|
||||
<!--This sends everything else to /public -->
|
||||
{{- if and (hasKey .Requirements "repository") (eq .Requirements.repository "bucketrepo") }}
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>bucketrepo</id>
|
||||
<name>bucketrepo mirror</name>
|
||||
<mirrorOf>*</mirrorOf>
|
||||
<url>http://bucketrepo/bucketrepo/</url>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
{{- else if and (hasKey .Requirements "repository") (eq .Requirements.repository "none") }}
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>central</id>
|
||||
<name>US Central</name>
|
||||
<url>https://repo.maven.apache.org/maven2</url>
|
||||
<mirrorOf>central</mirrorOf>
|
||||
</mirror>
|
||||
<mirror>
|
||||
<id>UK</id>
|
||||
<name>UK Central</name>
|
||||
<url>https://uk.maven.org/maven2</url>
|
||||
<mirrorOf>central</mirrorOf>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
{{- else }}
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>nexus</id>
|
||||
<name>nexus mirror</name>
|
||||
<mirrorOf>external:*</mirrorOf>
|
||||
<url>http://nexus/repository/maven-group/</url>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
{{- end }}
|
||||
|
||||
<!-- lets disable the download progress indicator that fills up logs -->
|
||||
<interactiveMode>false</interactiveMode>
|
||||
|
||||
<servers>
|
||||
<server>
|
||||
<id>local-nexus</id>
|
||||
<username>{{ .Parameters.adminUser.username }}</username>
|
||||
<password>{{ .Parameters.adminUser.password }}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>nexus</id>
|
||||
<username>{{ .Parameters.adminUser.username }}</username>
|
||||
<password>{{ .Parameters.adminUser.password }}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>docker.io</id>
|
||||
</server>
|
||||
</servers>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>nexus</id>
|
||||
<properties>
|
||||
{{- if and (hasKey .Requirements "repository") (eq .Requirements.repository "bucketrepo") }}
|
||||
<altDeploymentRepository>local-nexus::default::http://bucketrepo/bucketrepo/deploy/maven-snapshots/</altDeploymentRepository>
|
||||
<altReleaseDeploymentRepository>local-nexus::default::http://bucketrepo/bucketrepo/deploy/maven-releases/</altReleaseDeploymentRepository>
|
||||
<altSnapshotDeploymentRepository>local-nexus::default::http://bucketrepo/bucketrepo/deploy/maven-snapshots/</altSnapshotDeploymentRepository>
|
||||
{{- else if and (hasKey .Requirements "repository") (eq .Requirements.repository "none") }}
|
||||
{{- else }}
|
||||
<altDeploymentRepository>local-nexus::default::http://nexus/repository/maven-snapshots/</altDeploymentRepository>
|
||||
<altReleaseDeploymentRepository>local-nexus::default::http://nexus/repository/maven-releases/</altReleaseDeploymentRepository>
|
||||
<altSnapshotDeploymentRepository>local-nexus::default::http://nexus/repository/maven-snapshots/</altSnapshotDeploymentRepository>
|
||||
{{- end }}
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<url>http://central</url>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>true</enabled></snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>central</id>
|
||||
<url>http://central</url>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>true</enabled></snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>repo.jenkins-ci.org</id>
|
||||
<properties>
|
||||
<altDeploymentRepository>repo.jenkins-ci.org::default::https://repo.jenkins-ci.org/releases/</altDeploymentRepository>
|
||||
<altReleaseDeploymentRepository>repo.jenkins-ci.org::default::https://repo.jenkins-ci.org/releases/</altReleaseDeploymentRepository>
|
||||
<altSnapshotDeploymentRepository>repo.jenkins-ci.org::default::https://repo.jenkins-ci.org/snapshots/</altSnapshotDeploymentRepository>
|
||||
</properties>
|
||||
|
||||
</profile>
|
||||
<profile>
|
||||
<id>maven.jenkins-ci.org</id>
|
||||
<properties>
|
||||
<altDeploymentRepository>maven.jenkins-ci.org::default::https://maven.jenkins-ci.org/releases/</altDeploymentRepository>
|
||||
<altReleaseDeploymentRepository>maven.jenkins-ci.org::default::https://maven.jenkins-ci.org/releases/</altReleaseDeploymentRepository>
|
||||
<altSnapshotDeploymentRepository>maven.jenkins-ci.org::default::https://maven.jenkins-ci.org/snapshots/</altSnapshotDeploymentRepository>
|
||||
</properties>
|
||||
|
||||
</profile>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<properties>
|
||||
<gpg.executable>gpg</gpg.executable>
|
||||
<!-- TODO use: .Parameters.gpg.passphrase when it is always populated -->
|
||||
<gpg.passphrase></gpg.passphrase>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<activeProfiles>
|
||||
<activeProfile>nexus</activeProfile>
|
||||
</activeProfiles>
|
||||
</settings>
|
||||
SSHConfig: |-
|
||||
Host github.com
|
||||
User git
|
||||
IdentityFile /root/.ssh-git/ssh-key
|
||||
StrictHostKeyChecking no
|
||||
|
||||
{{- if eq .Requirements.webhook "lighthouse" }}
|
||||
controllerbuild:
|
||||
enabled: true
|
||||
args:
|
||||
- "controller"
|
||||
- "build"
|
||||
- "--git-reporting"
|
||||
- "--batch-mode"
|
||||
- "--git-credentials"
|
||||
- "--verbose"
|
||||
{{- end }}
|
||||
|
||||
gcactivities:
|
||||
args:
|
||||
- "gc"
|
||||
- "activities"
|
||||
- "--batch-mode"
|
||||
- "--pr-history-limit=30"
|
||||
cronjob:
|
||||
enabled: true
|
||||
schedule: "0/30 * * * *"
|
||||
|
||||
gcpods:
|
||||
cronjob:
|
||||
enabled: true
|
||||
schedule: "0/30 * * * *"
|
5
env/jenkins/values.tmpl.yaml
vendored
Normal file
5
env/jenkins/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- if eq .Requirements.webhook "jenkins" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
6
env/jxboot-resources/README.MD
vendored
Normal file
6
env/jxboot-resources/README.MD
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# jxboot-resources
|
||||
|
||||
|App Metadata||
|
||||
|---|---|
|
||||
| **Version** | 0.0.1 |
|
||||
| **Chart Repository** | http://chartmuseum.jenkins-x.io |
|
216
env/jxboot-resources/values.tmpl.yaml
vendored
Normal file
216
env/jxboot-resources/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
cluster:
|
||||
domain: {{ .Requirements.ingress.domain }}
|
||||
{{- if hasKey .Requirements.ingress "exposer" }}
|
||||
exposer: {{ .Requirements.ingress.exposer }}
|
||||
{{- else if eq .Requirements.cluster.provider "openshift" }}
|
||||
exposer: Route
|
||||
{{- else if eq .Requirements.cluster.provider "minishift" }}
|
||||
exposer: Route
|
||||
{{- else }}
|
||||
exposer: Ingress
|
||||
{{- end }}
|
||||
namespace: {{ .Requirements.cluster.namespace | default "jx" }}
|
||||
namespaceSubDomain: {{ .Requirements.ingress.namespaceSubDomain | default ".jx." }}
|
||||
{{- if hasKey .Requirements.cluster "project" }}
|
||||
projectID: {{ .Requirements.cluster.project }}
|
||||
{{- else }}
|
||||
projectID: ""
|
||||
{{- end }}
|
||||
{{- if hasKey .Requirements.cluster "zone" }}
|
||||
zone: {{ .Requirements.cluster.zone }}
|
||||
{{- else }}
|
||||
zone: ""
|
||||
{{- end }}
|
||||
name: ""
|
||||
{{- if hasKey .Requirements.cluster "provider" }}
|
||||
provider: {{ .Requirements.cluster.provider }}
|
||||
{{- end }}
|
||||
serverUrl: ""
|
||||
{{- if .Requirements.ingress.tls.enabled }}
|
||||
tls: true
|
||||
{{- else }}
|
||||
tls: false
|
||||
{{- end }}
|
||||
|
||||
gitops:
|
||||
versionStreamUrl: {{ .Requirements.versionStream.url }}
|
||||
versionStreamRef: {{ .Requirements.versionStream.ref }}
|
||||
|
||||
gitKind: {{ .Requirements.cluster.gitKind | default "github" }}
|
||||
gitName: {{ .Requirements.cluster.gitName | default "github" }}
|
||||
{{- if hasKey .Requirements.cluster "gitPublic" }}
|
||||
gitPublic: {{ .Requirements.cluster.gitPublic }}
|
||||
{{- end }}
|
||||
server: {{ .Requirements.cluster.gitServer | default "https://github.com" }}
|
||||
owner: {{ .Requirements.cluster.environmentGitOwner }}
|
||||
webhook: {{ .Requirements.webhook | default "prow" | quote }}
|
||||
{{- if eq .Requirements.cluster.gitKind "bitbucketserver" }}
|
||||
gitUrlPathPrefix: "/scm"
|
||||
{{- else }}
|
||||
gitUrlPathPrefix: ""
|
||||
{{- end }}
|
||||
|
||||
dev:
|
||||
server: ""
|
||||
{{- if .Requirements.gitops }}
|
||||
repo: "{{ .Environments.dev.repository }}"
|
||||
owner: "{{ .Environments.dev.owner }}"
|
||||
envOrganisation: "{{ .Requirements.cluster.environmentGitOwner }}"
|
||||
{{- else }}
|
||||
repo: ""
|
||||
owner: ""
|
||||
envOrganisation: ""
|
||||
{{- end }}
|
||||
{{- if eq .Requirements.cluster.provider "gke" }}
|
||||
dockerRegistryOrg: "{{ .Requirements.cluster.project }}"
|
||||
{{- else }}
|
||||
dockerRegistryOrg: ""
|
||||
{{- end }}
|
||||
|
||||
|
||||
staging:
|
||||
repo: "{{ .Environments.staging.repository }}"
|
||||
owner: "{{ .Environments.staging.owner | default .Requirements.cluster.environmentGitOwner }}"
|
||||
server: ""
|
||||
namespace: {{ .Requirements.cluster.namespace | default "jx" }}-staging
|
||||
{{- if hasKey .Environments.staging "remoteCluster" }}
|
||||
remote: {{ .Environments.staging.remoteCluster | default "false" }}
|
||||
{{- end }}
|
||||
|
||||
production:
|
||||
repo: "{{ .Environments.production.repository }}"
|
||||
owner: "{{ .Environments.production.owner | default .Requirements.cluster.environmentGitOwner }}"
|
||||
server: ""
|
||||
namespace: {{ .Requirements.cluster.namespace | default "jx" }}-production
|
||||
{{- if hasKey .Environments.production "remoteCluster" }}
|
||||
remote: {{ .Environments.production.remoteCluster | default "false" }}
|
||||
{{- end }}
|
||||
|
||||
storage:
|
||||
logs:
|
||||
url: "{{ .Requirements.storage.logs.url }}"
|
||||
reports:
|
||||
url: "{{ .Requirements.storage.reports.url }}"
|
||||
repository:
|
||||
url: "{{ .Requirements.storage.repository.url }}"
|
||||
|
||||
expose:
|
||||
enabled: false
|
||||
|
||||
cleanup:
|
||||
enabled: false
|
||||
|
||||
controllerbuild:
|
||||
enabled: true
|
||||
controllerteam:
|
||||
enabled: false
|
||||
controllerworkflow:
|
||||
enabled: false
|
||||
jenkins:
|
||||
enabled: false
|
||||
jenkins-x-platform:
|
||||
chartmuseum:
|
||||
enabled: true
|
||||
env:
|
||||
open:
|
||||
AUTH_ANONYMOUS_GET: true
|
||||
DISABLE_API: false
|
||||
# STORAGE: google
|
||||
# STORAGE_GOOGLE_BUCKET: chartmuseum.jenkins-x.io
|
||||
# STORAGE_GOOGLE_PREFIX: charts
|
||||
# gcp:
|
||||
# secret:
|
||||
# enabled: true
|
||||
# key: gcs-chartmuseum.key.json
|
||||
# name: gcs-jenkinsx-chartmuseum
|
||||
image:
|
||||
tag: v0.7.1
|
||||
controllerbuild:
|
||||
enabled: true
|
||||
jenkins:
|
||||
Agent:
|
||||
PodTemplates:
|
||||
Go:
|
||||
Containers:
|
||||
Go:
|
||||
Image: jenkinsxio/builder-go:latest
|
||||
Maven:
|
||||
Containers:
|
||||
Maven:
|
||||
Image: jenkinsxio/builder-maven:latest
|
||||
volumes:
|
||||
- mountPath: /root/.m2/
|
||||
secretName: jenkins-maven-settings
|
||||
type: Secret
|
||||
- mountPath: /home/jenkins/.docker
|
||||
secretName: jenkins-docker-cfg
|
||||
type: Secret
|
||||
Nodejs:
|
||||
Containers:
|
||||
Nodejs:
|
||||
Image: jenkinsxio/builder-nodejs:latest
|
||||
monocular:
|
||||
api:
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 1000
|
||||
nexus:
|
||||
persistence:
|
||||
size: 100Gi
|
||||
postinstalljob:
|
||||
enabled: "true"
|
||||
|
||||
tekton:
|
||||
webhook:
|
||||
enabled: false
|
||||
|
||||
JenkinsXGitHub:
|
||||
username: "{{ .Parameters.pipelineUser.username }}"
|
||||
email: "{{ .Parameters.pipelineUser.email }}"
|
||||
password: "{{ .Parameters.pipelineUser.token }}"
|
||||
|
||||
{{- if .Requirements.ingress.tls }}
|
||||
certmanager:
|
||||
production: "{{ .Requirements.ingress.tls.production }}"
|
||||
{{- if .Requirements.ingress.tls.enabled }}
|
||||
email: "{{ .Requirements.ingress.tls.email }}"
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
lighthouse:
|
||||
{{- if eq .Requirements.webhook "lighthouse" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
nexus:
|
||||
{{- if eq .Requirements.repository "nexus" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
prow:
|
||||
{{- if eq .Requirements.webhook "prow" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
vault:
|
||||
{{- if eq .Requirements.secretStorage "vault" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
{{- if .Requirements.autoUpdate }}
|
||||
autoUpdate:
|
||||
schedule: {{ .Requirements.autoUpdate.schedule | quote }}
|
||||
enabled: {{ .Requirements.autoUpdate.enabled }}
|
||||
{{- end }}
|
||||
|
||||
versions:
|
||||
builders: {{ versionStream "docker" "gcr.io/jenkinsxio/builder-go" }}
|
6
env/lighthouse/README.MD
vendored
Normal file
6
env/lighthouse/README.MD
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# lighthouse
|
||||
|
||||
|App Metadata||
|
||||
|---|---|
|
||||
| **Version** | 0.0.39 |
|
||||
| **Chart Repository** | http://chartmuseum.jenkins-x.io |
|
33
env/lighthouse/values.tmpl.yaml
vendored
Normal file
33
env/lighthouse/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{{- if eq .Requirements.webhook "lighthouse" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
hmacToken: "{{ .Parameters.prow.hmacToken }}"
|
||||
|
||||
git:
|
||||
kind: {{ .Requirements.cluster.gitKind | default "github" }}
|
||||
name: {{ .Requirements.cluster.gitName | default "github" }}
|
||||
server: {{ .Requirements.cluster.gitServer | default "https://github.com" }}
|
||||
|
||||
service:
|
||||
name: hook
|
||||
|
||||
replicaCount: 2
|
||||
|
||||
image:
|
||||
repository: gcr.io/jenkinsxio/lighthouse
|
||||
|
||||
vault:
|
||||
{{- if eq .Requirements.secretStorage "vault" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
clusterName: {{ .Requirements.cluster.clusterName }}
|
||||
|
||||
user: "{{ .Parameters.pipelineUser.username }}"
|
||||
|
||||
oauthToken: "{{ .Parameters.pipelineUser.token }}"
|
5
env/nexus/values.tmpl.yaml
vendored
Normal file
5
env/nexus/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- if or (eq .Requirements.repository "nexus") (eq .Requirements.repository "") }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
155
env/parameters.tmpl.schema.json
vendored
Normal file
155
env/parameters.tmpl.schema.json
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
|
||||
{
|
||||
"$id": "https:/jenkins-x.io/tests/descriptionAndTitle.schema.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "install values.yaml",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"adminUser": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"username",
|
||||
"password"
|
||||
],
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string",
|
||||
"title": "Jenkins X Admin Username",
|
||||
"description": "The Admin Username will be used by all services installed by Jenkins X",
|
||||
"default": "admin"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"format": "password",
|
||||
"title": "Jenkins X Admin Password",
|
||||
"description": "The Admin Password will be used by all services installed by Jenkins X"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pipelineUser": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"username",
|
||||
"email",
|
||||
"token"
|
||||
],
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string",
|
||||
"title": "Pipeline bot Git username",
|
||||
"description": "The Git user that will perform git operations inside a pipeline. It should be a user within the Git organisation/owner where environment repositories will live. This is normally a bot."
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"title": "Pipeline bot Git email address",
|
||||
"description": "The email address of the Git user that will perform git operations inside a pipeline."
|
||||
},
|
||||
{{- if eq .GitKind "github" }}
|
||||
"token": {
|
||||
"type": "string",
|
||||
"format": "token",
|
||||
"title": "Pipeline bot Git token",
|
||||
"description": "A token for the Git user that will perform git operations inside a pipeline. This includes environment repository creation, and so this token should have full repository permissions. To create a token go to {{ .GitServer }}/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo then enter a name, click Generate token, and copy and paste the token into this prompt.",
|
||||
"minLength": 40,
|
||||
"maxLength": 40,
|
||||
"pattern": "^[0-9a-f]{40}$"
|
||||
}
|
||||
{{- else if eq .GitKind "bitbucketserver" }}
|
||||
"token": {
|
||||
"type": "string",
|
||||
"format": "token",
|
||||
"title": "Pipeline bot Git token",
|
||||
"description": "A token for the Git user that will perform git operations inside a pipeline. This includes environment repository creation, and so this token should have full repository permissions. To create a token go to {{ .GitServer }}/plugins/servlet/access-tokens/manage then enter a name, click Generate token, and copy and paste the token into this prompt.",
|
||||
"minLength": 8,
|
||||
"maxLength": 50
|
||||
}
|
||||
{{- else if eq .GitKind "gitlab" }}
|
||||
"token": {
|
||||
"type": "string",
|
||||
"format": "token",
|
||||
"title": "Pipeline bot Git token",
|
||||
"description": "A token for the Git user that will perform git operations inside a pipeline. This includes environment repository creation, and so this token should have full repository permissions. To create a token go to {{ .GitServer }}/profile/personal_access_tokens then enter a name, click Generate token, and copy and paste the token into this prompt.",
|
||||
"minLength": 8,
|
||||
"maxLength": 50
|
||||
}
|
||||
{{- else }}
|
||||
"token": {
|
||||
"type": "string",
|
||||
"format": "token",
|
||||
"title": "Pipeline bot Git token",
|
||||
"description": "A token for the Git user that will perform git operations inside a pipeline. This includes environment repository creation, and so this token should have full repository permissions. To create a token go to {{ .GitServer }}/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo then enter a name, click Generate token, and copy and paste the token into this prompt.",
|
||||
"minLength": 8,
|
||||
"maxLength": 50
|
||||
}
|
||||
{{- end }}
|
||||
}
|
||||
},
|
||||
"prow": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"hmacToken": {
|
||||
"type": "string",
|
||||
"format": "token",
|
||||
"title": "HMAC token, used to validate incoming webhooks. Press enter to use the generated token",
|
||||
"description": "The HMAC token is used by the Git Provider to create a hash signature for each webhook, and by Jenkins X to validate that the signature is from a trusted source. It's normally best to have Jenkins X generate a token for you if you don't already have one. You'll need to save it and use it with all the webhooks configured in your git provider for Jenkins X. For more detail see: https://en.wikipedia.org/wiki/HMAC",
|
||||
"default": "<generated:hmac>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"enableDocker": {
|
||||
"type": "boolean",
|
||||
"title": "Do you want to configure an external Docker Registry?",
|
||||
"description": "By default Jenkins X will use the docker registry from the cloud provider. If you want to configure an external docker registry such as Docker Hub or your own existing public docker registry enter Y"
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"enableDocker": {
|
||||
"const": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"properties": {
|
||||
"docker": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"url",
|
||||
"username",
|
||||
"password",
|
||||
"email"
|
||||
],
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"title": "Docker Registry Url",
|
||||
"default": "https://index.docker.io/v1/",
|
||||
"description": "The URL of the external docker registry",
|
||||
"format": "uri"
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"title": "Docker Registry username",
|
||||
"description": "The username used to access the external docker registry"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"format": "password",
|
||||
"title": "Docker Registry password",
|
||||
"description": "The password used to access the external docker registry"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"title": "Docker Registry email",
|
||||
"description": "The email used to configure the external docker registry"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
6
env/prow/README.MD
vendored
Normal file
6
env/prow/README.MD
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# prow
|
||||
|
||||
|App Metadata||
|
||||
|---|---|
|
||||
| **Version** | 0.0.465 |
|
||||
| **Chart Repository** | http://chartmuseum.jenkins-x.io |
|
37
env/prow/values.tmpl.yaml
vendored
Normal file
37
env/prow/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{{- if eq .Requirements.webhook "prow" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
hmacToken: "{{ .Parameters.prow.hmacToken }}"
|
||||
oauthToken: "{{ .Parameters.pipelineUser.token }}"
|
||||
user: "{{ .Parameters.pipelineUser.username }}"
|
||||
|
||||
buildnum:
|
||||
enabled: false
|
||||
pipelinerunner:
|
||||
enabled: "true"
|
||||
args:
|
||||
- controller
|
||||
- pipelinerunner
|
||||
tillerNamespace: ""
|
||||
|
||||
sinker:
|
||||
enabled: false
|
||||
replicaCount: 0
|
||||
|
||||
build:
|
||||
enabled: false
|
||||
|
||||
plank:
|
||||
enabled: false
|
||||
|
||||
vault:
|
||||
{{- if eq .Requirements.secretStorage "vault" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
clusterName: {{ .Requirements.cluster.clusterName }}
|
23
env/requirements.yaml
vendored
Normal file
23
env/requirements.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
dependencies:
|
||||
- name: jxboot-resources
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
- alias: tekton
|
||||
name: tekton
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
- alias: prow
|
||||
condition: prow.enabled
|
||||
name: prow
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
- alias: lighthouse
|
||||
condition: lighthouse.enabled
|
||||
name: lighthouse
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
- alias: bucketrepo
|
||||
condition: bucketrepo.enabled
|
||||
name: bucketrepo
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
- name: jenkins-x-platform
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
#- condition: chartmuseum.enabled
|
||||
# name: chartmuseum
|
||||
# repository: http://chartmuseum.jenkins-x.io
|
6
env/tekton/README.MD
vendored
Normal file
6
env/tekton/README.MD
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# tekton
|
||||
|
||||
|App Metadata||
|
||||
|---|---|
|
||||
| **Version** | 0.0.32 |
|
||||
| **Chart Repository** | http://chartmuseum.jenkins-x.io |
|
24
env/tekton/values.tmpl.yaml
vendored
Normal file
24
env/tekton/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- if eq .Requirements.webhook "prow" }}
|
||||
enabled: true
|
||||
{{- else if eq .Requirements.webhook "lighthouse" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
webhook:
|
||||
enabled: false
|
||||
|
||||
auth:
|
||||
git:
|
||||
username: "{{ .Parameters.pipelineUser.username }}"
|
||||
password: "{{ .Parameters.pipelineUser.token }}"
|
||||
url: {{ .Requirements.cluster.gitServer | default "https://github.com" }}
|
||||
{{- if hasKey .Parameters "docker" }}
|
||||
docker:
|
||||
username: "{{ .Parameters.docker.username }}"
|
||||
password: "{{ .Parameters.docker.password }}"
|
||||
url: "{{ .Parameters.docker.url }}"
|
||||
{{- end }}
|
||||
|
||||
tillerNamespace: ""
|
1
env/templates/.gitignore
vendored
Normal file
1
env/templates/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
13
env/values.tmpl.yaml
vendored
Normal file
13
env/values.tmpl.yaml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
tekton:
|
||||
{{- if eq .Requirements.webhook "prow" }}
|
||||
enabled: true
|
||||
{{- else if eq .Requirements.webhook "lighthouse" }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
{{- end }}
|
||||
|
||||
# Use cert-manager 0.11 CRDs/APIs with Dex
|
||||
dex:
|
||||
certs:
|
||||
newApi: true
|
Reference in New Issue
Block a user