File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -23,24 +23,27 @@ jobs:
23
23
- name : Create Kubernetes cluster
24
24
run : kind create cluster --name test-cluster
25
25
26
+ - name : Create Namespace
27
+ run : kubectl create namespace xcermak5
28
+
26
29
- name : Helm Install
27
- run : helm install mychart ./manifests/mychart
30
+ run : helm install mychart ./manifests/mychart --namespace xcermak5
28
31
29
32
- name : Wait for Kubernetes resources to be ready
30
33
run : |
31
- kubectl wait --for=condition=available --timeout=600s deployment --all
32
- kubectl get all
34
+ kubectl wait --for=condition=available --timeout=600s deployment --namespace xcermak5 -- all
35
+ kubectl get all --namespace xcermak5
33
36
34
37
- name : Run Integration Tests
35
38
run : |
36
39
# Example integration test commands
37
40
# Replace these with your actual integration test commands
38
- kubectl get pods
39
- kubectl get services
41
+ kubectl get pods --namespace xcermak5
42
+ kubectl get services --namespace xcermak5
40
43
# You can add curl or other commands to test the endpoints
41
44
# For example:
42
- # POD_NAME=$(kubectl get pods -l app=mychart -o jsonpath="{.items[0].metadata.name}")
43
- # kubectl exec $POD_NAME -- curl -f http://localhost:8080/healthz
45
+ # POD_NAME=$(kubectl get pods --namespace xcermak5 - l app=mychart -o jsonpath="{.items[0].metadata.name}")
46
+ # kubectl exec --namespace xcermak5 $POD_NAME -- curl -f http://localhost:8080/healthz
44
47
45
48
- name : Delete Kubernetes cluster
46
49
run : kind delete cluster --name test-cluster
You can’t perform that action at this time.
0 commit comments