Skip to content

Commit

Permalink
fix: lets add support for defining the source repositories in git
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Jun 27, 2019
1 parent fe8ecfd commit bf9dde5
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 194 deletions.
6 changes: 0 additions & 6 deletions bootstrap.sh

This file was deleted.

19 changes: 0 additions & 19 deletions env/templates/env-group.yaml

This file was deleted.

87 changes: 0 additions & 87 deletions env/templates/prow-config.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions env/templates/prow-plugins.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions env/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ gitops:
owner: cb-kubecd

dev:
repo: environment-jstrachan-ad1
repo: environment-simple-tekton
owner: jstrachan
server: ""
owner: ""
staging:
repo: environment-jstrachan-ad1-staging
server: ""
owner: ""
server: ""
production:
repo: environment-jstrachan-ad1-production
server: ""
owner: ""
server: ""

controllerbuild:
enabled: true
Expand Down
21 changes: 21 additions & 0 deletions jenkins-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ pipelineConfig:
dir: /workspace/source/env
command: jx
args: ['step','helm','apply', '--remote', '--name', 'jenkins-x']
- name: log-repos
dir: /workspace/source/repositories
command: echo
args:
- ""
- ""
- "now populating projects...."
- ""
- ""
- name: apply-repositories
dir: /workspace/source/repositories
command: jx
args: ['step','helm','apply', '--name', 'repos']
- name: apply-pipeline-schedulers
dir: /workspace/source/prowConfig
command: jx
args: ['step','scheduler','config', 'apply', '--direct=true']
- name: update-webhooks
dir: /workspace/source/repositories
command: jx
args: ['update','webhooks','--verbose', '--warn-on-fail']
- name: verify-install
dir: /workspace/source/env
command: jx
Expand Down
1 change: 1 addition & 0 deletions prowConfig/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Prow `ConfigMap` resources called `config` and `plugins` are generated here in case you wish to store them in git
5 changes: 5 additions & 0 deletions repositories/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Source Repositories Chart
maintainers:
- name: Team
name: repositories
version: "1"
13 changes: 13 additions & 0 deletions repositories/templates/default-group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: jenkins.io/v1
kind: SourceRepositoryGroup
metadata:
name: default-group
spec:
scheduler:
apiVersion: jenkins.io/v1
kind: Scheduler
name: default-scheduler
repositories:
- apiVersion: jenkins.io/v1
kind: SourceRepository
name: jstrachan-nodey126
9 changes: 9 additions & 0 deletions repositories/templates/dev-repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: jenkins.io/v1
kind: SourceRepository
metadata:
name: jstrachan-nodey126
spec:
provider: https://github.com
providerName: github
org: jstrachan
repo: nodey126

0 comments on commit bf9dde5

Please sign in to comment.