88 NAMESPACE : " kubeflow"
99 USER_NAMESPACE : " kubeflow-user-example-com"
1010 PYTHON_VERSION : " 3.9"
11+ CA_CERT_PATH : " "
1112
1213on :
1314 push :
@@ -58,15 +59,19 @@ jobs:
5859 proxy : [ "true", "false" ]
5960 argo_version : [ "v3.7.1", "v3.6.10" ]
6061 pipeline_store : [ "database" ]
62+ pod_to_pod_tls_enabled : [ "false" ]
6163 include :
6264 - k8s_version : " v1.29.2"
6365 cache_enabled : " true"
6466 argo_version : " v3.6.10"
6567 - k8s_version : " v1.29.2"
6668 cache_enabled : " true"
6769 argo_version : " v3.5.15"
70+ - k8s_version : " v1.31.0"
71+ cache_enabled : " true"
72+ pod_to_pod_tls_enabled : " true"
6873 fail-fast : false # So that failure in 1 type of parameterized job does not cause other jobs to terminate prematurely
69- name : KFP API Server tests Standalone - K8sVersion=${{ matrix.k8s_version }} argo_version=${{ matrix.argo_version }} cacheEnabled=${{ matrix.cache_enabled }} proxyEnabled=${{ matrix.proxy }}
74+ name : KFP API Server tests Standalone - K8sVersion=${{ matrix.k8s_version }} argo_version=${{ matrix.argo_version }} cacheEnabled=${{ matrix.cache_enabled }} proxyEnabled=${{ matrix.proxy }} pod_to_pod_tls_enabled=${{ matrix.pod_to_pod_tls_enabled }}
7075
7176 steps :
7277 - name : Checkout code
@@ -88,10 +93,18 @@ jobs:
8893 cache_enabled : ${{ matrix.cache_enabled }}
8994 proxy : ${{ matrix.proxy }}
9095 argo_version : ${{ matrix.argo_version }}
96+ pod_to_pod_tls_enabled : ${{ matrix.pod_to_pod_tls_enabled }}
9197 image_path : ${{ needs.build.outputs.IMAGE_PATH }}
9298 image_tag : ${{ needs.build.outputs.IMAGE_TAG }}
9399 image_registry : ${{ needs.build.outputs.IMAGE_REGISTRY }}
94100
101+ - name : Configure Cluster CA Cert for TLS-Enabled Tests
102+ shell : bash
103+ id : configure-cluster-ca-cert
104+ if : ${{ matrix.pod_to_pod_tls_enabled == "true"}}
105+ run : |
106+ kubectl get secret kfp-api-tls-cert -n kubeflow -o jsonpath='{.data.ca\.crt}' | base64 -d > ca.crt
107+
95108 - name : Configure Input Variables
96109 shell : bash
97110 id : configure
@@ -110,7 +123,12 @@ jobs:
110123 if [ -z "${PROXY:-}" ]; then
111124 PROXY=false
112125 fi
113-
126+
127+ if [ "${{ matrix.pod_to_pod_tls_enabled }}" == "true" ]; then
128+ CA_CERT_PATH="../../../../ca.crt"
129+ fi
130+
131+ echo "CA_CERT_PATH=$CA_CERT_PATH" >> $GITHUB_OUTPUT
114132 echo "NUMBER_OF_NODES=$NUMBER_OF_NODES" >> $GITHUB_OUTPUT
115133 echo "TEST_LABEL=$TEST_LABEL" >> $GITHUB_OUTPUT
116134 echo "NAMESPACE=$NAMESPACE" >> $GITHUB_OUTPUT
@@ -129,6 +147,8 @@ jobs:
129147 default_namespace : ${{ steps.configure.outputs.NAMESPACE }}
130148 python_version : ${{ env.PYTHON_VERSION }}
131149 report_name : " Standalone_k8sVersion=${{ matrix.k8s_version }}_argoVersion=${{ matrix.argo_version }}_cacheEnabled=${{ matrix.cache_enabled }}_proxyEnabled=${{ matrix.proxy }}"
150+ tls_enabled : ${{ matrix.pod_to_pod_tls_enabled }}
151+ ca_cert_path : ${{ steps.configure-cluster-ca-cert.outputs.CA_CERT_PATH}}
132152
133153 - name : Notify test reports
134154 shell : bash
@@ -148,6 +168,13 @@ jobs:
148168 uploadPipelinesWithKubernetesClient : [ "true", "false" ]
149169 argo_version : [ "v3.7.1", "v3.6.10" ]
150170 pipeline_store : [ "kubernetes" ]
171+ pod_to_pod_tls_enabled : [ "false" ]
172+ include :
173+ - k8s_version : " v1.31.0"
174+ cache_enabled : " true"
175+ pipeline_store : " kubernetes"
176+ pod_to_pod_tls_enabled : " true"
177+ uploadPipelinesWithKubernetesClient : " true"
151178 fail-fast : false # So that failure in 1 type of parameterized job does not cause other jobs to terminate prematurely
152179 name : KFP API Server tests K8s Native API - K8sVersion=${{ matrix.k8s_version }} cacheEnabled=${{ matrix.cache_enabled }} argoVersion=${{ matrix.argo_version }} uploadPipelinesWithKubernetesClient=${{ matrix.uploadPipelinesWithKubernetesClient }}
153180
0 commit comments