kubesphere / ks-installer

Install KubeSphere on existing Kubernetes cluster
https://kubesphere.io
Apache License 2.0
533 stars 746 forks source link

Ansible task has incorrect command #2274

Open ituyakbayev opened 7 months ago

ituyakbayev commented 7 months ago

https://github.com/kubesphere/ks-installer/blob/38055b318b8f805af65aedfa5ad4508128b5eb2c/roles/ks-devops/tasks/main.yaml#L136

If we run the command inside ks-installer we will see this result: /usr/local/bin/kubectl -n kubesphere-devops-system get secrets s2i-webhook-server-cert 2> /dev/null | head -n 1 NAME TYPE DATA AGE

I think the right command should be: /usr/local/bin/kubectl -n kubesphere-devops-system get secrets s2i-webhook-server-cert 2> /dev/null | tail -n 1 s2i-webhook-server-cert Opaque 3 25h