test(ci): update UI E2E tests configuration and improve Kubernetes context setup

- Updated the Kubernetes context and kubeconfig path in the E2E tests workflow to use secrets for better security.
- Added a step to create the kubeconfig file from the secret, ensuring proper configuration for Kubernetes provider tests.
- Changed the "Add Kubernetes Provider" test to run serially for improved execution flow.
This commit is contained in:
StylusFrost committed 2025-10-23 13:03:53 +02:00
1 parent 642efecd37
commit 5af7c950ac
2 files changed
+7 -3

No files matched your search

+6 -2
View File
@@ -37,11 +37,15 @@ jobs:
E2E_M365_SECRET_ID: ${{ secrets.E2E_M365_SECRET_ID }}
E2E_M365_TENANT_ID: ${{ secrets.E2E_M365_TENANT_ID }}
E2E_M365_CERTIFICATE_CONTENT: ${{ secrets.E2E_M365_CERTIFICATE_CONTENT }}
E2E_KUBERNETES_CONTEXT: 'kind-kind'
E2E_KUBERNETES_KUBECONFIG_PATH: '/home/runner/.kube/config'
E2E_KUBERNETES_CONTEXT: ${{ secrets.E2E_KUBERNETES_CONTEXT }}
E2E_KUBERNETES_KUBECONFIG_PATH: /home/runner/.kube/config
E2E_KUBERNETES_KUBECONFIG: ${{ secrets.E2E_KUBERNETES_KUBECONFIG }}
E2E_NEW_PASSWORD: ${{ secrets.E2E_NEW_PASSWORD }}
steps:
- name: create kubeconfig file
run: |
echo "${{ secrets.E2E_KUBERNETES_KUBECONFIG }}" > /home/runner/.kube/config
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Fix API data directory permissions