mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
chore: remove embedded fields
The new version of golangci-lint prefers embedded fields not to be included. Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
This commit is contained in:
parent
883cb4b65c
commit
d711a962e6
@ -40,9 +40,9 @@ const (
|
|||||||
func GetRestoreCABundleEnv(configuration *barmanapi.BarmanObjectStoreConfiguration) []string {
|
func GetRestoreCABundleEnv(configuration *barmanapi.BarmanObjectStoreConfiguration) []string {
|
||||||
var env []string
|
var env []string
|
||||||
|
|
||||||
if configuration.EndpointCA != nil && configuration.BarmanCredentials.AWS != nil {
|
if configuration.EndpointCA != nil && configuration.AWS != nil {
|
||||||
env = append(env, fmt.Sprintf("AWS_CA_BUNDLE=%s", BarmanBackupEndpointCACertificateLocation))
|
env = append(env, fmt.Sprintf("AWS_CA_BUNDLE=%s", BarmanBackupEndpointCACertificateLocation))
|
||||||
} else if configuration.EndpointCA != nil && configuration.BarmanCredentials.Azure != nil {
|
} else if configuration.EndpointCA != nil && configuration.Azure != nil {
|
||||||
env = append(env, fmt.Sprintf("REQUESTS_CA_BUNDLE=%s", BarmanBackupEndpointCACertificateLocation))
|
env = append(env, fmt.Sprintf("REQUESTS_CA_BUNDLE=%s", BarmanBackupEndpointCACertificateLocation))
|
||||||
}
|
}
|
||||||
return env
|
return env
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user