mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
refactor: mispelled auth method naming
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
This commit is contained in:
parent
cdb893a70d
commit
2cb76ef622
@ -105,8 +105,8 @@ func BuildCertificateFilePath(objectStoreName string) string {
|
|||||||
// ContextWithProviderOptions enriches the context with cloud service provider specific options
|
// ContextWithProviderOptions enriches the context with cloud service provider specific options
|
||||||
// based on the ObjectStore resource
|
// based on the ObjectStore resource
|
||||||
func ContextWithProviderOptions(ctx context.Context, objectStore apiv1.ObjectStore) context.Context {
|
func ContextWithProviderOptions(ctx context.Context, objectStore apiv1.ObjectStore) context.Context {
|
||||||
if objectStore.GetAnnotations()[pluginmetadata.UseDefaultAzureCredentialsAnnotationName] ==
|
if objectStore.GetAnnotations()[pluginmetadata.UseDefaultAzureCredentialAnnotationName] ==
|
||||||
pluginmetadata.UseDefaultAzureCredentialsTrueValue {
|
pluginmetadata.UseDefaultAzureCredentialTrueValue {
|
||||||
return command.ContextWithDefaultAzureCredentials(ctx, true)
|
return command.ContextWithDefaultAzureCredentials(ctx, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,12 +4,12 @@ package metadata
|
|||||||
const MetadataNamespace = "barmancloud.cnpg.io"
|
const MetadataNamespace = "barmancloud.cnpg.io"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// UseDefaultAzureCredentialsAnnotationName is an annotation that can be set
|
// UseDefaultAzureCredentialAnnotationName is an annotation that can be set
|
||||||
// on an ObjectStore resource to enable the authentication to Azure via DefaultAzureCredentials.
|
// on an ObjectStore resource to enable the authentication to Azure via DefaultAzureCredential.
|
||||||
// This is meant to be used with inheritFromAzureAD enabled.
|
// This is meant to be used with inheritFromAzureAD enabled.
|
||||||
UseDefaultAzureCredentialsAnnotationName = MetadataNamespace + "/useDefaultAzureCredentials"
|
UseDefaultAzureCredentialAnnotationName = MetadataNamespace + "/useDefaultAzureCredential"
|
||||||
|
|
||||||
// UseDefaultAzureCredentialsTrueValue is the value for the annotation
|
// UseDefaultAzureCredentialTrueValue is the value for the annotation
|
||||||
// barmancloud.cnpg.io/useDefaultAzureCredentials to enable the DefaultAzureCredentials auth mechanism.
|
// barmancloud.cnpg.io/useDefaultAzureCredential to enable the DefaultAzureCredentials auth mechanism.
|
||||||
UseDefaultAzureCredentialsTrueValue = "true"
|
UseDefaultAzureCredentialTrueValue = "true"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user