helm / kind-action

A GitHub Action for Kubernetes IN Docker - local clusters for testing Kubernetes
https://kind.sigs.k8s.io/
Apache License 2.0
306 stars 76 forks source link

can't see pod in all namespaces #124

Closed patsevanton closed 1 month ago

patsevanton commented 1 month ago

Hello! I try see pod in all namespaces in github action

      - name: Create kind cluster
        if: steps.list-changed.outputs.changed == 'true'
        uses: helm/kind-action@v1.10.0

      - name: Run chart-testing (install)
        if: steps.list-changed.outputs.changed == 'true'
        run: ct install --target-branch ${{ github.event.repository.default_branch }} --helm-extra-args "--timeout 1000s"

      - name: View all pods
        if: steps.list-changed.outputs.changed == 'true'
        run: |
          kubectl get pods --all-namespaces

but i can't see pod in all namespaces

Run kubectl get pods --all-namespaces
NAMESPACE            NAME                                                  READY   STATUS    RESTARTS   AGE
kube-system          coredns-76f75df574-684hx                              1/1     Running   0          11m
kube-system          coredns-76f75df574-sf7px                              1/1     Running   0          11m
kube-system          etcd-chart-testing-control-plane                      1/1     Running   0          11m
kube-system          kindnet-7mmk5                                         1/1     Running   0          11m
kube-system          kube-apiserver-chart-testing-control-plane            1/1     Running   0          11m
kube-system          kube-controller-manager-chart-testing-control-plane   1/1     Running   0          11m
kube-system          kube-proxy-wd55x                                      1/1     Running   0          11m
kube-system          kube-scheduler-chart-testing-control-plane            1/1     Running   0          11m
local-path-storage   local-path-provisioner-7577fdbbfb-xsswh               1/1     Running   0          11m

Full log here https://github.com/sentry-kubernetes/charts/actions/runs/11345668376/job/31553067955

Code here https://github.com/sentry-kubernetes/charts/pull/1546

How do I fix this? Maybe I made a mistake somewhere?

cpanato commented 1 month ago

afaik, when you run ct install, it will install, run the tests if they exist and uninstall so you will not see created namespaces or any other thing.

as you can see in the logs

========================================================================================================================
Deleting release "sentry-v7tgrpi6ua"...
release "sentry-v7tgrpi6ua" uninstalled
Deleting namespace "sentry-v7tgrpi6ua"...
namespace "sentry-v7tgrpi6ua" deleted
Namespace "sentry-v7tgrpi6ua" terminated.

https://github.com/sentry-kubernetes/charts/actions/runs/11345668376/job/31553067955#step:10:45588

patsevanton commented 1 month ago

Thanks!