concourse / hush-house

Concourse k8s-based environment
https://hush-house.pivotal.io
29 stars 23 forks source link

Tests importing `https://github.com/google/go-containerregistry/tree/master/pkg/authn/k8schain` hang on Wings #66

Open thisisnotashwin opened 4 years ago

thisisnotashwin commented 4 years ago

We are running into an issue where our go code seems to get stuck because an underlying k8s library looks for the file /sys/class/dmi/id/product_name on the container, and if it finds it, tries to reach out to google's credential server with an exponential backoff that never exits. This causes our job to freeze indefinitely. Is there a way we can prevent that file from being mounted on the container when the job runs? https://github.com/kubernetes/kubernetes/blob/5a4c6c2b34a011ca1801354395538df5b8e8cd66/pkg/credentialprovider/gcp/metadata.go#L134