diff --git a/.github/workflows/e2e_aks_runtime.yml b/.github/workflows/e2e_aks_runtime.yml index 54ee53995..c7ae37188 100644 --- a/.github/workflows/e2e_aks_runtime.yml +++ b/.github/workflows/e2e_aks_runtime.yml @@ -6,6 +6,7 @@ on: - cron: "16 6 * * 6" # 6:16 on Saturdays pull_request: paths: + - .github/workflows/e2e_aks_runtime.yml - e2e/aks-runtime/** env: @@ -40,6 +41,7 @@ jobs: cat < justfile.env container_registry=${{ env.container_registry }} azure_resource_group=${{ env.azure_resource_group }} + default_platform=AKS-CLH-SNP EOF - name: Get credentials for CI cluster run: | @@ -52,7 +54,7 @@ jobs: echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV" - name: Build and prepare deployments run: | - nix shell .#just --command just coordinator initializer port-forwarder openssl cryptsetup service-mesh-proxy node-installer AKS-CLH-SNP + nix shell .#just --command just coordinator initializer port-forwarder openssl cryptsetup service-mesh-proxy node-installer # steps taken from https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-2-step-by-step-installation-instructions - name: Install `az` with extensions run: | diff --git a/e2e/aks-runtime/aks_runtime_test.go b/e2e/aks-runtime/aks_runtime_test.go index 6738d8492..3a5c5922e 100644 --- a/e2e/aks-runtime/aks_runtime_test.go +++ b/e2e/aks-runtime/aks_runtime_test.go @@ -118,10 +118,10 @@ func TestAKSRuntime(t *testing.T) { } }) - pods, err := c.Client.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{}) + pods, err := c.PodsFromDeployment(ctx, namespace, testContainer) require.NoError(err) - require.Len(pods.Items, 1) - pod := pods.Items[0] // only one pod was deployed + require.Len(pods, 1) + pod := pods[0] logs, err := c.Client.CoreV1().Pods(namespace).GetLogs(pod.Name, &corev1.PodLogOptions{}).DoRaw(ctx) require.NoError(err)