the default GitOps source repository for booting up Jenkins X
修訂 | bf9dde5e81762b31dd475e025e7d7c360aa2b27f (tree) |
---|---|
時間 | 2019-06-27 23:21:27 |
作者 | James Strachan <james.strachan@gmai...> |
Commiter | James Strachan |
fix: lets add support for defining the source repositories in git
@@ -1,6 +0,0 @@ | ||
1 | -#!/usr/bin/env bash | |
2 | - | |
3 | -echo "bootstrapping the cluster" | |
4 | -export JX_NO_TILLER="true" | |
5 | - | |
6 | -jx step create task --interpret --no-release-prepare |
@@ -1,19 +0,0 @@ | ||
1 | -apiVersion: jenkins.io/v1 | |
2 | -kind: SourceRepositoryGroup | |
3 | -metadata: | |
4 | - name: env-repos | |
5 | -spec: | |
6 | - scheduler: | |
7 | - apiVersion: jenkins.io/v1 | |
8 | - kind: Scheduler | |
9 | - name: env-scheduler | |
10 | - repositories: | |
11 | - - apiVersion: jenkins.io/v1 | |
12 | - kind: SourceRepository | |
13 | - name: "{{ .Values.gitops.dev.owner | default .Values.gitops.owner }}-{{ .Values.gitops.dev.repo }}" | |
14 | - - apiVersion: jenkins.io/v1 | |
15 | - kind: SourceRepository | |
16 | - name: "{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}-{{ .Values.gitops.staging.repo }}" | |
17 | - - apiVersion: jenkins.io/v1 | |
18 | - kind: SourceRepository | |
19 | - name: "{{ .Values.gitops.production.owner | default .Values.gitops.owner }}-{{ .Values.gitops.production.repo }}" |
@@ -1,87 +0,0 @@ | ||
1 | -apiVersion: v1 | |
2 | -kind: ConfigMap | |
3 | -metadata: | |
4 | - creationTimestamp: null | |
5 | - name: config | |
6 | -data: | |
7 | - config.yaml: | | |
8 | - branch-protection: | |
9 | - orgs: | |
10 | - cb-kubecd: | |
11 | - repos: | |
12 | - environment-jstrachan-ad2-staging: | |
13 | - required_status_checks: | |
14 | - contexts: | |
15 | - - promotion-build | |
16 | - jstrachan: | |
17 | - repos: | |
18 | - nodey126: | |
19 | - required_status_checks: | |
20 | - contexts: | |
21 | - - serverless-jenkins | |
22 | - protect-tested-repos: true | |
23 | - deck: | |
24 | - spyglass: {} | |
25 | - gerrit: {} | |
26 | - owners_dir_blacklist: | |
27 | - default: null | |
28 | - repos: null | |
29 | - plank: {} | |
30 | - pod_namespace: jx | |
31 | - postsubmits: | |
32 | - cb-kubecd/environment-jstrachan-ad2-staging: | |
33 | - - agent: tekton | |
34 | - branches: | |
35 | - - master | |
36 | - context: "" | |
37 | - name: promotion | |
38 | - jstrachan/nodey126: | |
39 | - - agent: tekton | |
40 | - branches: | |
41 | - - master | |
42 | - context: "" | |
43 | - name: release | |
44 | - presubmits: | |
45 | - cb-kubecd/environment-jstrachan-ad2-staging: | |
46 | - - agent: tekton | |
47 | - always_run: true | |
48 | - context: promotion-build | |
49 | - name: promotion-build | |
50 | - rerun_command: /test this | |
51 | - trigger: (?m)^/test( all| this),?(\s+|$) | |
52 | - jstrachan/nodey126: | |
53 | - - agent: tekton | |
54 | - always_run: true | |
55 | - context: serverless-jenkins | |
56 | - name: serverless-jenkins | |
57 | - rerun_command: /test this | |
58 | - trigger: (?m)^/test( all| this),?(\s+|$) | |
59 | - prowjob_namespace: jx | |
60 | - push_gateway: {} | |
61 | - sinker: {} | |
62 | - tide: | |
63 | - context_options: | |
64 | - from-branch-protection: true | |
65 | - required-if-present-contexts: null | |
66 | - skip-unknown-contexts: false | |
67 | - queries: | |
68 | - - labels: | |
69 | - - approved | |
70 | - missingLabels: | |
71 | - - do-not-merge | |
72 | - - do-not-merge/hold | |
73 | - - do-not-merge/work-in-progress | |
74 | - - needs-ok-to-test | |
75 | - - needs-rebase | |
76 | - repos: | |
77 | - - jstrachan/nodey126 | |
78 | - - missingLabels: | |
79 | - - do-not-merge | |
80 | - - do-not-merge/hold | |
81 | - - do-not-merge/work-in-progress | |
82 | - - needs-ok-to-test | |
83 | - - needs-rebase | |
84 | - repos: | |
85 | - - jenkins-x/dummy-environment | |
86 | - - cb-kubecd/environment-jstrachan-ad2-production | |
87 | - target_url: http://deck.jx.35.189.209.132.nip.io |
@@ -1,78 +0,0 @@ | ||
1 | -kind: ConfigMap | |
2 | -metadata: | |
3 | - creationTimestamp: null | |
4 | - name: plugins | |
5 | -apiVersion: v1 | |
6 | -data: | |
7 | - external-plugins.yaml: | | |
8 | - Items: null | |
9 | - plugins.yaml: | | |
10 | - approve: | |
11 | - - lgtm_acts_as_approve: true | |
12 | - repos: | |
13 | - - jenkins-x/dummy | |
14 | - require_self_approval: true | |
15 | - - lgtm_acts_as_approve: true | |
16 | - repos: | |
17 | - - cb-kubecd/environment-jstrachan-ad2-staging | |
18 | - require_self_approval: true | |
19 | - - lgtm_acts_as_approve: true | |
20 | - repos: | |
21 | - - cb-kubecd/environment-jstrachan-ad2-production | |
22 | - require_self_approval: true | |
23 | - - lgtm_acts_as_approve: true | |
24 | - repos: | |
25 | - - jstrachan/nodey126 | |
26 | - require_self_approval: true | |
27 | - blunderbuss: {} | |
28 | - cat: {} | |
29 | - cherry_pick_unapproved: {} | |
30 | - config_updater: {} | |
31 | - external_plugins: | |
32 | - cb-kubecd/environment-jstrachan-ad2-staging: null | |
33 | - jstrachan/nodey126: null | |
34 | - heart: {} | |
35 | - owners: {} | |
36 | - plugins: | |
37 | - cb-kubecd/environment-jstrachan-ad2-staging: | |
38 | - - config-updater | |
39 | - - approve | |
40 | - - assign | |
41 | - - blunderbuss | |
42 | - - help | |
43 | - - hold | |
44 | - - lgtm | |
45 | - - lifecycle | |
46 | - - size | |
47 | - - trigger | |
48 | - - wip | |
49 | - - heart | |
50 | - - cat | |
51 | - - override | |
52 | - jstrachan/nodey126: | |
53 | - - config-updater | |
54 | - - approve | |
55 | - - assign | |
56 | - - blunderbuss | |
57 | - - help | |
58 | - - hold | |
59 | - - lgtm | |
60 | - - lifecycle | |
61 | - - size | |
62 | - - trigger | |
63 | - - wip | |
64 | - - heart | |
65 | - - cat | |
66 | - - override | |
67 | - requiresig: {} | |
68 | - sigmention: {} | |
69 | - slack: {} | |
70 | - triggers: | |
71 | - - repos: | |
72 | - - cb-kubecd/environment-jstrachan-ad2-staging | |
73 | - trusted_org: cb-kubecd | |
74 | - - repos: | |
75 | - - jstrachan/nodey126 | |
76 | - trusted_org: jstrachan | |
77 | - welcome: | |
78 | - - message_template: Welcome |
@@ -13,17 +13,17 @@ gitops: | ||
13 | 13 | owner: cb-kubecd |
14 | 14 | |
15 | 15 | dev: |
16 | - repo: environment-jstrachan-ad1 | |
16 | + repo: environment-simple-tekton | |
17 | + owner: jstrachan | |
17 | 18 | server: "" |
18 | - owner: "" | |
19 | 19 | staging: |
20 | 20 | repo: environment-jstrachan-ad1-staging |
21 | - server: "" | |
22 | 21 | owner: "" |
22 | + server: "" | |
23 | 23 | production: |
24 | 24 | repo: environment-jstrachan-ad1-production |
25 | - server: "" | |
26 | 25 | owner: "" |
26 | + server: "" | |
27 | 27 | |
28 | 28 | controllerbuild: |
29 | 29 | enabled: true |
@@ -55,6 +55,27 @@ pipelineConfig: | ||
55 | 55 | dir: /workspace/source/env |
56 | 56 | command: jx |
57 | 57 | args: ['step','helm','apply', '--remote', '--name', 'jenkins-x'] |
58 | + - name: log-repos | |
59 | + dir: /workspace/source/repositories | |
60 | + command: echo | |
61 | + args: | |
62 | + - "" | |
63 | + - "" | |
64 | + - "now populating projects...." | |
65 | + - "" | |
66 | + - "" | |
67 | + - name: apply-repositories | |
68 | + dir: /workspace/source/repositories | |
69 | + command: jx | |
70 | + args: ['step','helm','apply', '--name', 'repos'] | |
71 | + - name: apply-pipeline-schedulers | |
72 | + dir: /workspace/source/prowConfig | |
73 | + command: jx | |
74 | + args: ['step','scheduler','config', 'apply', '--direct=true'] | |
75 | + - name: update-webhooks | |
76 | + dir: /workspace/source/repositories | |
77 | + command: jx | |
78 | + args: ['update','webhooks','--verbose', '--warn-on-fail'] | |
58 | 79 | - name: verify-install |
59 | 80 | dir: /workspace/source/env |
60 | 81 | command: jx |
@@ -0,0 +1 @@ | ||
1 | +The Prow `ConfigMap` resources called `config` and `plugins` are generated here in case you wish to store them in git | |
\ No newline at end of file |
@@ -0,0 +1,5 @@ | ||
1 | +description: Source Repositories Chart | |
2 | +maintainers: | |
3 | +- name: Team | |
4 | +name: repositories | |
5 | +version: "1" |
@@ -0,0 +1,13 @@ | ||
1 | +apiVersion: jenkins.io/v1 | |
2 | +kind: SourceRepositoryGroup | |
3 | +metadata: | |
4 | + name: default-group | |
5 | +spec: | |
6 | + scheduler: | |
7 | + apiVersion: jenkins.io/v1 | |
8 | + kind: Scheduler | |
9 | + name: default-scheduler | |
10 | + repositories: | |
11 | + - apiVersion: jenkins.io/v1 | |
12 | + kind: SourceRepository | |
13 | + name: jstrachan-nodey126 |
@@ -0,0 +1,9 @@ | ||
1 | +apiVersion: jenkins.io/v1 | |
2 | +kind: SourceRepository | |
3 | +metadata: | |
4 | + name: jstrachan-nodey126 | |
5 | +spec: | |
6 | + provider: https://github.com | |
7 | + providerName: github | |
8 | + org: jstrachan | |
9 | + repo: nodey126 | |
\ No newline at end of file |