Implement pruning for Azure blob storage

This commit is contained in:
Frederik Ring
2022-12-24 09:06:51 +01:00
parent a253fdfbec
commit fdce7ee454
3 changed files with 73 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ type Config struct {
AzureStorageAccountName string `split_words:"true"`
AzureStoragePrimaryAccountKey string `split_words:"true"`
AzureStorageContainerName string `split_words:"true"`
AzureStorageEndpoint string `split_words:"true" default:"https://%s.blob.core.windows.net/"`
AzureStorageEndpoint string `split_words:"true" default:"https://{{ .AccountName }}.blob.core.windows.net/"`
}
func (c *Config) resolveSecret(envVar string, secretPath string) (string, error) {