You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is related to the init function that sets up kubebuilder-envtest caching directory, see code.
The UserCacheDir is supposed to return the cache directory location. In the pod setup, HOME is set to / and XDG_CACHE_HOME is not set so UserCacheDir ends up returning //.cache without emitting error. However, the process doesn't have permission to create directory under that location and thus it paniced.
One walkaround is to manually set XDG_CACHE_HOME to /tmp in deployment spec. It would be great if we have logic that fall back to using /tmp on permission issues.
The text was updated successfully, but these errors were encountered:
Encountered following error:
controller-runtime version:
v0.9.6
golang version:
go1.17.7
The issue is related to the
init
function that sets upkubebuilder-envtest
caching directory, see code.The
UserCacheDir
is supposed to return the cache directory location. In the pod setup,HOME
is set to/
andXDG_CACHE_HOME
is not set soUserCacheDir
ends up returning//.cache
without emitting error. However, the process doesn't have permission to create directory under that location and thus it paniced.One walkaround is to manually set
XDG_CACHE_HOME
to/tmp
in deployment spec. It would be great if we have logic that fall back to using/tmp
on permission issues.The text was updated successfully, but these errors were encountered: