File tree Expand file tree Collapse file tree 4 files changed +32
-4
lines changed
developer/openshift/gitops/argocd/pipeline-service Expand file tree Collapse file tree 4 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ resources:
7
7
8
8
patchesStrategicMerge :
9
9
- tekton-results/minio-create-bucket.yaml
10
+ - tekton-results/minio-tls.yaml
10
11
11
12
# Skip applying the Tekton operands while the Tekton operator is being installed.
12
13
# See more information about this option, here:
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ resources:
6
6
7
7
patchesStrategicMerge :
8
8
- minio-create-bucket.yaml
9
+ - minio-tls.yaml
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ spec:
18
18
args :
19
19
- ' -c'
20
20
- |
21
- mc --config-dir /tmp config host add minio "$S3_ENDPOINT" "$S3_ACCESS_KEY_ID" "$S3_SECRET_ACCESS_KEY";
22
- if [ -z "$(mc --config-dir /tmp ls minio | grep tekton-results )" ]; then
23
- mc --config-dir /tmp mb --with-lock --region "$S3_REGION" minio/"$S3_BUCKET_NAME";
24
- echo "Minio bucket $S3_BUCKET_NAME successfully created.";
21
+ mc --config-dir /tmp config host add minio "$S3_ENDPOINT" "$S3_ACCESS_KEY_ID" "$S3_SECRET_ACCESS_KEY" &&
22
+ if [ -z "$(mc --config-dir /tmp ls minio | grep "$S3_BUCKET_NAME" )" ]; then
23
+ mc --config-dir /tmp mb --with-lock --region "$S3_REGION" minio/"$S3_BUCKET_NAME" &&
24
+ echo "Minio bucket $S3_BUCKET_NAME successfully created."
25
25
fi
26
26
imagePullPolicy : Always
27
27
env :
50
50
secretKeyRef :
51
51
key : endpoint
52
52
name : tekton-results-s3
53
+ volumeMounts :
54
+ - name : ca-s3
55
+ mountPath : /etc/ssl/certs/s3-cert.crt
56
+ subPath : s3-cert.crt
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : apps/v1
3
+ kind : Deployment
4
+ metadata :
5
+ name : tekton-results-api
6
+ namespace : tekton-results
7
+ spec :
8
+ template :
9
+ spec :
10
+ volumes :
11
+ - name : ca-s3
12
+ secret :
13
+ secretName : storage-tls
14
+ items :
15
+ - key : public.crt
16
+ path : s3-cert.crt
17
+ containers :
18
+ - name : api
19
+ volumeMounts :
20
+ - name : ca-s3
21
+ mountPath : /etc/ssl/certs/s3-cert.crt
22
+ subPath : s3-cert.crt
You can’t perform that action at this time.
0 commit comments