Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
feat: make some configuration changes for Openshift
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Gozalo <[email protected]>
  • Loading branch information
Daniel Gozalo authored and jenkins-x-bot committed Apr 22, 2020
1 parent 2e8a392 commit e8916fd
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
54 changes: 54 additions & 0 deletions env/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,60 @@ tekton:
{{- else }}
enabled: false
{{- end }}
{{- if eq .Requirements.cluster.provider "openshift" }}
rbac:
cluster: false
cluster:
crds:
create: false
resources:
create: false
{{- end }}

{{- if eq .Requirements.cluster.provider "openshift" }}
jenkins-x-platform:
gcpreviews:
clusterrole:
enabled: false

gcactivities:
clusterrole:
enabled: false

gcpods:
clusterrole:
enabled: false

postinstalljob:
clusterrole:
enabled: false

controllerworkflow:
clusterrole:
enabled: false

controllerbuild:
clusterrole:
enabled: false

controllercommitstatus:
clusterrole:
enabled: false

controllerrole:
clusterrole:
enabled: false

controllerteam:
clusterrole:
enabled: false

heapster:
enabled: false
rbac:
create: false
{{- end }}


# Use cert-manager 0.11 CRDs/APIs with Dex
dex:
Expand Down
17 changes: 17 additions & 0 deletions kubeProviders/openshift/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ monocular:
docker-registry:
enabled: false

jenkins-x-platform:
PipelineSecrets:
{{- if eq .Parameters.enableDocker true }}
DockerConfig: |-
{
"auths":{
{{ .Parameters.docker.url | quote }}:
{
"auth": {{ printf "%s:%s" .Parameters.docker.username .Parameters.docker.password | b64enc | quote}},
"email": {{ .Parameters.docker.email | quote}}
}
}
}
{{- else}}
DockerConfig: ""
{{- end}}

jenkins:
Master:
Image: "davidconde/jenkinsx-openshift"
Expand Down

0 comments on commit e8916fd

Please sign in to comment.