mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
docs: minor fixes
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
This commit is contained in:
parent
6d2d3eb925
commit
cdb893a70d
@ -5,11 +5,11 @@ const MetadataNamespace = "barmancloud.cnpg.io"
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// UseDefaultAzureCredentialsAnnotationName is an annotation that can be set
|
// UseDefaultAzureCredentialsAnnotationName is an annotation that can be set
|
||||||
// on an ObjectStore resource to enable the use DefaultAzureCredentials
|
// on an ObjectStore resource to enable the authentication to Azure via DefaultAzureCredentials.
|
||||||
// to authenticate to Azure. This is meant to be used with inheritFromAzureAD enabled.
|
// This is meant to be used with inheritFromAzureAD enabled.
|
||||||
UseDefaultAzureCredentialsAnnotationName = MetadataNamespace + "/useDefaultAzureCredentials"
|
UseDefaultAzureCredentialsAnnotationName = MetadataNamespace + "/useDefaultAzureCredentials"
|
||||||
|
|
||||||
// UseDefaultAzureCredentialsTrueValue is the value for the annotation
|
// UseDefaultAzureCredentialsTrueValue is the value for the annotation
|
||||||
// barmancloud.cnpg.io/useDefaultAzureCredentials to enable the use of DefaultAzureCredentials
|
// barmancloud.cnpg.io/useDefaultAzureCredentials to enable the DefaultAzureCredentials auth mechanism.
|
||||||
UseDefaultAzureCredentialsTrueValue = "true"
|
UseDefaultAzureCredentialsTrueValue = "true"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -233,7 +233,7 @@ Barman Cloud supports the following authentication methods:
|
|||||||
- Storage Account Name + [Access Key](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage)
|
- Storage Account Name + [Access Key](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage)
|
||||||
- Storage Account Name + [SAS Token](https://learn.microsoft.com/en-us/azure/storage/blobs/sas-service-create)
|
- Storage Account Name + [SAS Token](https://learn.microsoft.com/en-us/azure/storage/blobs/sas-service-create)
|
||||||
- [Azure AD Workload Identity](https://azure.github.io/azure-workload-identity/docs/introduction.html)
|
- [Azure AD Workload Identity](https://azure.github.io/azure-workload-identity/docs/introduction.html)
|
||||||
- [Azure Default Credentials](https://learn.microsoft.com/en-us/azure/developer/go/sdk/authentication/credential-chains#defaultazurecredential-overview)
|
- [DefaultAzureCredential](https://learn.microsoft.com/en-us/azure/developer/go/sdk/authentication/credential-chains#defaultazurecredential-overview)
|
||||||
|
|
||||||
### Azure AD Workload Identity
|
### Azure AD Workload Identity
|
||||||
|
|
||||||
@ -253,10 +253,11 @@ spec:
|
|||||||
[...]
|
[...]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Azure Default Credentials
|
### DefaultAzureCredential
|
||||||
|
|
||||||
To authenticate using Azure Default Credentials, set the annotation
|
To authenticate using `DefaultAzureCredential`, set the annotation
|
||||||
`barmancloud.cnpg.io/useDefaultAzureCredentials="true"` on the ObjectStore:
|
`barmancloud.cnpg.io/useDefaultAzureCredential="true"` on the ObjectStore in
|
||||||
|
conjunction with the `.spec.configuration.inheritFromAzureAD` option:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: barmancloud.cnpg.io/v1
|
apiVersion: barmancloud.cnpg.io/v1
|
||||||
@ -264,7 +265,7 @@ kind: ObjectStore
|
|||||||
metadata:
|
metadata:
|
||||||
name: azure-store
|
name: azure-store
|
||||||
annotations:
|
annotations:
|
||||||
barmancloud.cnpg.io/useDefaultAzureCredentials: "true"
|
barmancloud.cnpg.io/useDefaultAzureCredential: "true"
|
||||||
spec:
|
spec:
|
||||||
configuration:
|
configuration:
|
||||||
destinationPath: "<destination path here>"
|
destinationPath: "<destination path here>"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user