File tree Expand file tree Collapse file tree 4 files changed +35
-5
lines changed
gitops/argocd/pipeline-service
test/manifests/test/tekton-chains Expand file tree Collapse file tree 4 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ metadata:
8
8
# the CRD will be applied and the resource can be created once the required dependencies are met.
9
9
argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
10
10
spec :
11
- # params:
12
- # - name: createRbacResource
13
- # value: "false"
11
+ params :
12
+ - name : createRbacResource
13
+ value : " false"
14
14
platforms :
15
15
openshift :
16
16
pipelinesAsCode :
Original file line number Diff line number Diff line change @@ -161,3 +161,34 @@ spec:
161
161
terminationGracePeriodSeconds : 30
162
162
serviceAccount : chains-secrets-admin
163
163
serviceAccountName : chains-secrets-admin
164
+ ---
165
+ apiVersion : batch/v1
166
+ kind : Job
167
+ metadata :
168
+ name : tekton-chains-trusted-cabundle
169
+ namespace : tekton-chains
170
+ annotations :
171
+ spec :
172
+ template :
173
+ spec :
174
+ containers :
175
+ - name : config-trusted-cabundle-generation
176
+ image : registry.redhat.io/openshift4/ose-cli:v4.12@sha256:9f0cdc00b1b1a3c17411e50653253b9f6bb5329ea4fb82ad983790a6dbf2d9ad
177
+ imagePullPolicy : Always
178
+ command :
179
+ - /bin/bash
180
+ - -c
181
+ - |
182
+ if oc get cm config-trusted-cabundle -n tekton-chains; then
183
+ echo "ConfigMap config-trusted-cabundle found"
184
+ else
185
+ echo "Create ConfigMap config-trusted-cabundle"
186
+ oc create configmap config-trusted-cabundle --namespace tekton-chains
187
+ oc label configmap config-trusted-cabundle config.openshift.io/inject-trusted-cabundle="true"
188
+ fi
189
+ echo "Done"
190
+ dnsPolicy : ClusterFirst
191
+ restartPolicy : OnFailure
192
+ terminationGracePeriodSeconds : 30
193
+ serviceAccount : chains-secrets-admin
194
+ serviceAccountName : chains-secrets-admin
Original file line number Diff line number Diff line change 20
20
set -x
21
21
PUBLIC_KEY=$(oc get secret public-key -n tekton-chains -o jsonpath='{.data.cosign\.pub}')
22
22
echo "$PUBLIC_KEY" | base64 -d
23
- serviceAccountName : pipeline
23
+ serviceAccountName : chains-test
Original file line number Diff line number Diff line change 67
67
fi
68
68
securityContext :
69
69
runAsNonRoot : true
70
- runAsUser : 65532
71
70
params :
72
71
- name : IMAGE_SRC
73
72
value : $(params.image-src)
You can’t perform that action at this time.
0 commit comments