Skip to content

Commit

Permalink
Configure the client account information as parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sswguo committed Dec 20, 2024
1 parent 43cb638 commit 1ffa688
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
8 changes: 8 additions & 0 deletions deploy/pipeline/mw-pipeline-v0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
type: string
- name: ENABLE_INDY_PROXY
type: string
- name: INDY_PROXY_CLIENT_ID
type: string
- name: INDY_PROXY_CLIENT_CREDENTIAL
type: string
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
type: string
- name: NOTIFICATION_CONTEXT
Expand Down Expand Up @@ -125,6 +129,10 @@ spec:
value: $(params.caTrustConfigMapName)
- name: ENABLE_INDY_PROXY
value: $(params.ENABLE_INDY_PROXY)
- name: INDY_PROXY_CLIENT_ID
value: $(params.INDY_PROXY_CLIENT_ID)
- name: INDY_PROXY_CLIENT_CREDENTIAL
value: $(params.INDY_PROXY_CLIENT_CREDENTIAL)
- name: BUILD_ARGS #TODO this should be baked in the OCI source image only a ACCESS_TOKEN should be passed
value:
- PROXY_URL=$(params.MVN_REPO_DEPENDENCIES_URL)
Expand Down
6 changes: 3 additions & 3 deletions deploy/tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Adds Domain Proxy to the build:

### Indy Sidecar
Adds Indy configuration to the build:
* https://github.com/redhat-appstudio/jvm-build-service/blob/main/deploy/tasks/buildah-oci-ta.yaml#L190-L193
* https://github.com/redhat-appstudio/jvm-build-service/blob/main/deploy/tasks/buildah-oci-ta.yaml#L226-L236
* https://github.com/redhat-appstudio/jvm-build-service/blob/main/deploy/tasks/buildah-oci-ta.yaml#L864-L884
* https://github.com/redhat-appstudio/jvm-build-service/blob/main/deploy/tasks/buildah-oci-ta.yaml#L190-L201
* https://github.com/redhat-appstudio/jvm-build-service/blob/main/deploy/tasks/buildah-oci-ta.yaml#L234-L244
* https://github.com/redhat-appstudio/jvm-build-service/blob/main/deploy/tasks/buildah-oci-ta.yaml#L872-L894


### Trusted CA
Expand Down
12 changes: 11 additions & 1 deletion deploy/tasks/buildah-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ spec:
type: string
description: Enable the indy generic proxy (true/false)
default: "false"
- name: INDY_PROXY_CLIENT_ID
type: string
description: The client ID used by indy proxy to communicate with Indy.
default: ""
- name: INDY_PROXY_CLIENT_CREDENTIAL
type: string
description: The client credential used by indy proxy to communicate with Indy.
default: ""
results:
- name: IMAGE_DIGEST
description: Digest of the image just built
Expand Down Expand Up @@ -880,5 +888,7 @@ spec:
memory: 512Mi
script: |
if [ "$(params.ENABLE_INDY_PROXY)" == "true" ]; then
/usr/local/bin/dumb-init /deployment/start-service.sh
export QUARKUS_OIDC_CLIENT_CLIENT_ID="$(params.INDY_PROXY_CLIENT_ID)"
export QUARKUS_OIDC_CLIENT_CREDENTIALS_SECRET="$(params.INDY_PROXY_CLIENT_CREDENTIAL)"
/deployment/start-service.sh
fi

0 comments on commit 1ffa688

Please sign in to comment.