-
Notifications
You must be signed in to change notification settings - Fork 3
add gcp image list command to CLI #37
add gcp image list command to CLI #37
Conversation
@miyunari Yup that is correct! It isn't necessary to reference the ENV in code. A small hint though: The env needs to be mapped to "GOOGLE_APPLICATION_CREDENTIALS" in the workflow context as well for it to properly work. Hope this helps a little! |
4c0307c
to
e086b71
Compare
Thank you @FKolwa ! That was exactly the information I was looking for 😄 But now, there is another issue 😅 Unfortunately it's now unclear to me, how to test my changes. |
@miyunari Haha yes this is a bit confusing tbh! The gcloud implementation is pretty rough at this point. get_google_images currently queries all images in the rhel-cloud project and returns everything that isn't deprecated. In the scope of this ticket, my requirement for an end to end test would be
For the offline test
Now for the tricky part: How do you know what data structure to expect from the google API?
At this point we don't extract any specific information from this returned data (like we do for AWS) and this is not within the scope of your ticket so feel free to create a minimal test mockup version of this data structure that only contains something like |
Oh boy, that was my mistake. I must have been looking at two things at the same time and put the wrong variable name in the actions workflow. 🤦🏻♂️ Sorry about that. |
@major I think you were right 😄 . I shortened the variable name, because I thought we have to store it in @FKolwa thank you for your detailed explanation! That really helped! 😄 |
c3bed81
to
42bdb97
Compare
Oh, I see I have some merge conflicts, will try to resolve |
Signed-off-by: Janine Olear <pninak@web.de>
2d29845
to
32bbc19
Compare
Signed-off-by: Janine Olear <pninak@web.de>
32bbc19
to
2a7ae17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the implementation @miyunari ! Changes look great 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
Hey @major @FKolwa ,
I am a bit confused right now. We assign the registered github secret
secrets.GOOGLE_APPLICATION_CREDENTIALS
to an environment variableGCP_APP_CREDENTIALS
, but we never use it.In the
get_google_images
function we create ancompute_v1.ImagesClient
client, is he supposed to use those credentials?I went to the google docs, but it also didn't really helped me. :)
Can you give me some hints? 😅
closes #17