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
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