Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Commit 74253d5

Browse files
authored
Update cd-pr.yml
1 parent 1a991d3 commit 74253d5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/cd-pr.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ jobs:
9898
echo "--- Run provider directly ---"
9999
timeout 5 $PROVIDER --help 2>&1 || true
100100
101+
- name: Test TLS with CA verification like Terraform does
102+
run: |
103+
kubectl config view --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}' | base64 -d > /tmp/ca.crt
104+
kubectl config view --raw -o jsonpath='{.users[0].user.client-certificate-data}' | base64 -d > /tmp/client.crt
105+
kubectl config view --raw -o jsonpath='{.users[0].user.client-key-data}' | base64 -d > /tmp/client.key
106+
107+
echo "--- Test with CA verification (exactly like Terraform) ---"
108+
curl -v \
109+
--cacert /tmp/ca.crt \
110+
--cert /tmp/client.crt \
111+
--key /tmp/client.key \
112+
https://191.252.159.227:6443/api/v1/namespaces/tasknote-stg 2>&1 | grep -E "TLS|SSL|Connected|error|timeout|HTTP|issuer|subject"
113+
101114
- name: Terraform Plan
102115
id: check-changes
103116
working-directory: terraform-stg

0 commit comments

Comments
 (0)