Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

implement gardenctl diag like what we have in gardener-robot ./diag shoot_url #407

Closed
neo-liang-sap opened this issue Oct 22, 2020 · 3 comments · Fixed by #413
Closed

implement gardenctl diag like what we have in gardener-robot ./diag shoot_url #407

neo-liang-sap opened this issue Oct 22, 2020 · 3 comments · Fixed by #413
Assignees

Comments

@neo-liang-sap
Copy link
Contributor

in gardener-robot we have ./diag shoot_url and shoot information is displayed, we would like to implement sth like this in gardenctl

@neo-liang-sap
Copy link
Contributor Author

investigate whether it's easier to use gardener-robot docker image

@neo-liang-sap
Copy link
Contributor Author

Hi @dansible ,
i checked whether it's more easy to use gardener-robot image to implement the diag command.

if i understand correctly, the image url is eu.gcr.io/sap-se-gcp-scp-k8s/gardener/robot:latest

i tried run this image but found several problems:

  1. python2 needs to be uninstalled otherwise error looks like these
    image
    i googled information related to this error but indicates i need to uninstall python2 https://superuser.com/questions/1537784/how-to-fix-errorrootcode-for-hash-md5-was-not-found-when-using-autojump-on

  2. after uninstall python2 i still met problem i don't have permission with eu.gcr.io/sap-se-gcp-scp-k8s/
    image

  3. even we have the permission, say user run gardenctl diag to enter docker runtime of robot image, and then type ./diag shoot_url and then exit the docker runtime, it requires more effort compared with 1) gardenctl target shoot 2) gardenctl diag and then get all information from a shoot....

So personally i would prefer to use native go k8s client to pull information from shoot/seed, it's easy / no dependency / quick ...what do you think?

@neo-liang-sap
Copy link
Contributor Author

will follow up to make the output looks like a table

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

Successfully merging a pull request may close this issue.

1 participant