@@ -195,57 +195,6 @@ install_openshift_gitops() {
195
195
fi
196
196
}
197
197
198
- install_minio () {
199
- local APP=" minio"
200
-
201
- # ############################################################################
202
- # Install the minio operator
203
- # ############################################################################
204
-
205
- echo -n " - Secret: "
206
- TEKTON_RESULTS_MINIO_USER=" $( yq ' .tekton_results_log.user // "minio"' " $CONFIG " ) "
207
- TEKTON_RESULTS_MINIO_PASSWORD=" $( yq " .tekton_results_log.password // \" $( openssl rand -base64 20) \" " " $CONFIG " ) "
208
-
209
- COMPUTE_DIR=" $WORK_DIR " /credentials/manifests/compute/tekton-results
210
- mkdir -p " $COMPUTE_DIR "
211
-
212
- minio_configuration_secret=" minio-storage-configuration"
213
- # secret with minio tenant configuration
214
- results_minio_conf_secret_path=" $COMPUTE_DIR /${minio_configuration_secret} .yaml"
215
-
216
- minio_credentials_secret=" s3-credentials"
217
- # secret with minio credentials for tekton-results api server
218
- results_minio_cred_secret_path=" $COMPUTE_DIR /${minio_credentials_secret} .yaml"
219
-
220
- export TEKTON_RESULTS_MINIO_USER
221
- export TEKTON_RESULTS_MINIO_PASSWORD
222
- minio_conf_template=" $DEV_DIR /gitops/argocd/pipeline-service/tekton-results/templates/${minio_configuration_secret} .yaml"
223
- envsubst < " $minio_conf_template " > " $results_minio_conf_secret_path "
224
- # unset env variables, but save their values
225
- export -n TEKTON_RESULTS_MINIO_USER
226
- export -n TEKTON_RESULTS_MINIO_PASSWORD
227
-
228
- kubectl create secret generic " ${minio_credentials_secret} " \
229
- --from-literal=S3_ACCESS_KEY_ID=" $TEKTON_RESULTS_MINIO_USER " \
230
- --from-literal=S3_SECRET_ACCESS_KEY=" $TEKTON_RESULTS_MINIO_PASSWORD " \
231
- -n tekton-results --dry-run=client -o yaml >> " $results_minio_cred_secret_path "
232
-
233
- kubectl apply -f " $PROJECT_DIR /operator/gitops/argocd/pipeline-service/tekton-results/base/namespace.yaml" > /dev/null
234
- kubectl apply -f " $results_minio_conf_secret_path " > /dev/null
235
- kubectl apply -f " $results_minio_cred_secret_path " > /dev/null
236
- echo " OK"
237
-
238
- echo -n " - Installing minio: "
239
- kubectl apply -f " $DEV_DIR /gitops/argocd/$APP /application.yaml" > /dev/null
240
- echo " OK"
241
-
242
- # Subscription information for potential debug
243
- mkdir -p " $WORK_DIR /logs/$APP "
244
-
245
- echo " - Checking deployment status:"
246
- check_deployments " openshift-operators" " minio-operator" | indent 2
247
- check_pod_by_label " tekton-results" " app=minio" | indent 2
248
- }
249
198
250
199
setup_compute_access () {
251
200
if [ -n " ${USE_CURRENT_BRANCH:- } " ]; then
@@ -263,10 +212,18 @@ setup_compute_access() {
263
212
264
213
install_pipeline_service () {
265
214
215
+ # ############################################################################
216
+ # Setup working directory
217
+ # ############################################################################
218
+
266
219
TEKTON_RESULTS_DATABASE_USER=" $( yq ' .tekton_results_db.user' " $CONFIG " ) "
267
220
TEKTON_RESULTS_DATABASE_PASSWORD=" $( yq ' .tekton_results_db.password' " $CONFIG " ) "
268
221
export TEKTON_RESULTS_DATABASE_USER
269
222
export TEKTON_RESULTS_DATABASE_PASSWORD
223
+ TEKTON_RESULTS_S3_USER=" $( yq ' .tekton_results_s3.user // "minio"' " $CONFIG " ) "
224
+ TEKTON_RESULTS_S3_PASSWORD=" $( yq " .tekton_results_s3.password // \" $( openssl rand -base64 20) \" " " $CONFIG " ) "
225
+ export TEKTON_RESULTS_S3_USER
226
+ export TEKTON_RESULTS_S3_PASSWORD
270
227
271
228
echo " - Setup working directory:"
272
229
" $PROJECT_DIR /operator/images/access-setup/content/bin/setup_work_dir.sh" \
@@ -275,8 +232,9 @@ install_pipeline_service() {
275
232
--kustomization " git::$GIT_URL /developer/openshift/gitops/argocd?ref=$GIT_REF " |
276
233
indent 2
277
234
278
- echo " - Installing local postgres DB for tekton results:"
279
- kubectl apply -f " $PROJECT_DIR /developer/local/postgres" | indent 4
235
+ # ############################################################################
236
+ # Deploy Applications
237
+ # ############################################################################
280
238
281
239
echo " - Deploy applications:"
282
240
if [ -n " ${USE_CURRENT_BRANCH:- } " ]; then
0 commit comments