I have the following use case
withMountedDirectory(
'/root/kubernetes/certificates',
client.host().directory('/root/kubernetes/certificates')
);
That I'd like to convert to using secrets.
Is there a way I can mark a folder and by extension all of its contents as being secret? Or is my only option to iterate through each item in the folder and do this:
for .... files in folder {
// add logic for setting up the correct path and filename
withMountedSecret()
}