source-controller/internal/util
Hidde Beydals 3bda2c931d internal/util: introduce temp dir/path helpers
In most of the reconcilers we have a repetative pattern of using part of
the object metadata to construct a temporary file path.

This commit introduces helpers as an abstraction, for both the creation
of a temporary directory based on `client.Object` type and object
metadata, and the generation of an arbitrary random temporary path
string.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-02-15 15:40:58 +05:30
..
temp.go internal/util: introduce temp dir/path helpers 2022-02-15 15:40:58 +05:30
temp_test.go internal/util: introduce temp dir/path helpers 2022-02-15 15:40:58 +05:30