Skip to content

Commit 469071e

Browse files
committed
Integrate indy sidecar into buildah-oci-ta.
1 parent c18eb24 commit 469071e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

deploy/tasks/buildah-oci-ta.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ spec:
187187
description: The HTTP port to use for the domain proxy.
188188
type: string
189189
default: 8080
190+
- name: ENABLE_INDY_PROXY
191+
type: string
192+
description: Enable the indy generic proxy (true/false)
193+
default: "false"
190194
results:
191195
- name: IMAGE_DIGEST
192196
description: Digest of the image just built
@@ -219,6 +223,17 @@ spec:
219223
secretName: $(params.ENTITLEMENT_SECRET)
220224
- name: shared
221225
emptyDir: {}
226+
- name: indy-generic-proxy-secrets
227+
secret:
228+
optional: true
229+
secretName: indy-generic-proxy-secrets
230+
- name: indy-generic-proxy-config
231+
configMap:
232+
items:
233+
- key: application.yaml
234+
path: application.yaml
235+
name: indy-generic-proxy-config
236+
optional: true
222237
- name: trusted-ca
223238
configMap:
224239
items:
@@ -840,3 +855,24 @@ spec:
840855
requests:
841856
cpu: 100m
842857
memory: 256Mi
858+
sidecars:
859+
- name: indy-generic-proxy
860+
image: quay.io/factory2/indy-generic-proxy-service:latest-stage-mpplus
861+
volumeMounts:
862+
- name: indy-generic-proxy-secrets
863+
readOnly: true
864+
mountPath: /mnt/secrets-generic-proxy
865+
- name: indy-generic-proxy-config
866+
readOnly: true
867+
mountPath: /deployment/config
868+
computeResources:
869+
limits:
870+
cpu: 1
871+
memory: 2Gi
872+
requests:
873+
cpu: 200m
874+
memory: 512Mi
875+
script: |
876+
if [ "$(params.ENABLE_INDY_PROXY)" == "true" ]; then
877+
/usr/local/bin/dumb-init /deployment/start-service.sh
878+
fi

0 commit comments

Comments
 (0)