GoogleCloudPlatform / gcr-cleaner

Delete untagged image refs in Google Container Registry or Artifact Registry
Apache License 2.0
805 stars 112 forks source link

[Question] Running using community terraform module / cloud run result #95

Closed mo3athi closed 2 years ago

mo3athi commented 2 years ago

TL;DR

After running it using cloudrun & cloudscheduler, I can't find any useful logs which show what's going on. For instance when I enabled dry-run, I couldn't find the output! I only see that job has succeeded!

Expected behavior

Getting the stdout

Observed behavior

unuseful logs

Debug log output

No response

Additional information

No response

sethvargo commented 2 years ago

Hi @mo3athi

Make sure you've set a log level environment variable (GCRCLEANER_LOG=debug). Then the log messages will be for the Cloud Run Service, not the Cloud Scheduler job. You can find them in the Logs Viewer on the Google Cloud console.

mo3athi commented 2 years ago

@sethvargo Thank you so much! I've managed to add through the gcp console, and it worked! is there any way to add it within the tf module ?

sethvargo commented 2 years ago

Hi @mo3athi - I do not manage the Terraform module. You would need to contact the author.