Skip to content

Commit d3fea97

Browse files
zjx20apecloud-bot
authored andcommitted
chore: add azureblob storage provider (#9492)
(cherry picked from commit 1a0b47f)
1 parent cd0c255 commit d3fea97

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# azureblob is a storage provider for [Azure Blob Storage](https://azure.microsoft.com/en-us/products/storage/blobs).
2+
apiVersion: dataprotection.kubeblocks.io/v1alpha1
3+
kind: StorageProvider
4+
metadata:
5+
name: azureblob
6+
labels:
7+
{{- include "kubeblocks.labels" . | nindent 4 }}
8+
spec:
9+
datasafedConfigTemplate: |
10+
[storage]
11+
type = azureblob
12+
account = {{ `{{ index .Parameters "accountName" }}` }}
13+
key = {{ `{{ index .Parameters "accountKey" }}` }}
14+
{{ `{{- $endpoint := index .Parameters "endpoint" }}` }}
15+
{{ `{{- if $endpoint }}` }}
16+
endpoint = {{ `{{ $endpoint }}` }}
17+
{{ `{{- end }}` }}
18+
root = {{ `{{ index .Parameters "container" }}` }}
19+
no_check_container = {{ `{{ index .Parameters "noCheckContainer" }}` }}
20+
chunk_size = 50Mi
21+
22+
parametersSchema:
23+
openAPIV3Schema:
24+
type: "object"
25+
properties:
26+
container:
27+
type: string
28+
description: "Azure Blob Storage container"
29+
accountName:
30+
type: string
31+
description: "Azure Blob Storage account name"
32+
accountKey:
33+
type: string
34+
description: "Azure Blob Storage account key"
35+
endpoint:
36+
type: string
37+
description: "Azure Blob Storage endpoint (optional)"
38+
noCheckContainer:
39+
type: boolean
40+
default: false
41+
description: "Do not check if the container exists, and do not try to create it"
42+
43+
required:
44+
- container
45+
- accountName
46+
- accountKey
47+
48+
credentialFields:
49+
- accountName
50+
- accountKey

0 commit comments

Comments
 (0)