Skip to content

Commit

Permalink
Configure ingress certificate for downstream testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Sep 20, 2024
1 parent 5106fe0 commit e53b92d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ function downstream_serving_e2e_tests {
--imagetemplate "${IMAGE_TEMPLATE}" \
"$@"

certName=$(oc get ingresscontroller.operator.openshift.io -n openshift-ingress-operator \
default -o=jsonpath='{.spec.defaultCertificate.name}')
if [[ "$certName" != "" ]]; then
configure_cm network openshift-ingress-default-certificate:"${certName}"
fi

# Enable Serving encryption (only supported on Kourier - at least for now)
configure_cm network system-internal-tls:enabled
configure_cm network cluster-local-domain-tls:enabled
Expand All @@ -168,6 +174,10 @@ function downstream_serving_e2e_tests {
--imagetemplate "${IMAGE_TEMPLATE}" \
"$@"

# Put back default ingress certificate.
if [[ "$certName" != "" ]]; then
configure_cm network openshift-ingress-default-certificate:router-certs-default
fi
# Disable Serving encryption for following tests
configure_cm network system-internal-tls:disabled
configure_cm network cluster-local-domain-tls:disabled
Expand Down

0 comments on commit e53b92d

Please sign in to comment.