You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/feature_flag_source.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,12 +91,32 @@ Given below is an example configuration with provider type `azblob` and supporte
91
91
sources:
92
92
- source: azblob://my-bucket/test.json # my-bucket - container name
93
93
provider: azblob
94
-
envVars:
95
-
- name: AZURE_STORAGE_ACCOUNT
96
-
value: <account_name>
97
-
- name: AZURE_STORAGE_SAS_TOKEN
98
-
value: <SAS token>
94
+
envVars:
95
+
- name: AZURE_STORAGE_ACCOUNT
96
+
value: <account_name>
97
+
- name: AZURE_STORAGE_SAS_TOKEN
98
+
value: <SAS token>
99
99
```
100
+
101
+
Alternative way to provide credentials is to use Kubernetes secrets, for example:
102
+
103
+
```yaml
104
+
sources:
105
+
- source: azblob://my-bucket/test.json # my-bucket - container name
106
+
provider: azblob
107
+
envVars:
108
+
- name: AZURE_STORAGE_ACCOUNT
109
+
valueFrom:
110
+
secretKeyRef:
111
+
name: my-secret
112
+
key: account_name
113
+
- name: AZURE_STORAGE_SAS_TOKEN
114
+
valueFrom:
115
+
secretKeyRef:
116
+
name: my-secret
117
+
key: sas_token
118
+
```
119
+
100
120
Other type of credentials for Azure Blob Storage are supported, for details (see [AZ credentials config](https://pkg.go.dev/gocloud.dev/blob/azureblob#hdr-URLs))
0 commit comments