Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible task has incorrect command #2274

Open
ituyakbayev opened this issue Apr 11, 2024 · 0 comments
Open

Ansible task has incorrect command #2274

ituyakbayev opened this issue Apr 11, 2024 · 0 comments

Comments

@ituyakbayev
Copy link

RESOURCE=$({{ bin_dir }}/kubectl -n {{ item.ns }} get {{ item.kind }} {{ item.resource }} 2> /dev/null | head -n 1);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant