Skip to content

Commit

Permalink
Enable internal-tls on ocp-tls (knative#1203)
Browse files Browse the repository at this point in the history
* Enable internal-tls on OCP 4.8

* Use tls to match JOB name
  • Loading branch information
nak3 authored and mgencur committed Sep 6, 2022
1 parent 12d9276 commit 0d9b80e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openshift/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@ spec:
logging.enable-request-log: "true"
EOF

# TODO: Only one cluster enables internal-tls but it should be enabled by default when the feature is stable.
if [[ ${JOB_NAME} =~ "tls" ]]; then
oc patch knativeserving knative-serving \
-n "${SERVING_NAMESPACE}" \
--type merge --patch '{"spec": {"config": {"network": {"internal-encryption": "true"}}}}'
echo "internal-encryption is enabled"
fi

# Wait for 4 pods to appear first
timeout 600 '[[ $(oc get pods -n $SERVING_NAMESPACE --no-headers | wc -l) -lt 4 ]]' || return 1
wait_until_pods_running $SERVING_NAMESPACE || return 1
Expand Down

0 comments on commit 0d9b80e

Please sign in to comment.