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: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,7 @@ stringData:
128
128
| `organization_id` | The [organization ID](https://console.scaleway.com/organization/settings) that will be used as default value for organization-scoped resources. |
129
129
| `region` | The [region](https://developers.scaleway.com/en/quickstart/#region-and-zone) that will be used as default value for all resources. (`fr-par` if none specified) |
130
130
| `zone` | The [zone](https://developers.scaleway.com/en/quickstart/#region-and-zone) that will be used as default value for all resources. (`fr-par-1` if none specified) |
131
+
| `api_url` | The URL of the API |
131
132
132
133
### Create a ProviderConfig
133
134
@@ -160,6 +161,23 @@ The `spec.secretRef` describes the parameters of the secret to use.
160
161
* `name` is the name of the Kubernetes `secret` object.
161
162
* `key` is the `Data` field from `kubectl describe secret`.
162
163
164
+
### SCW config support
165
+
166
+
This provider can read the standard SCW config file (`~/.config/scw/config.yaml`) and environment variables. Precedence is:
167
+
168
+
1. ProviderConfig credentials
169
+
2. Environment variables (`SCW_*`)
170
+
3. SCW config file
171
+
172
+
You can control behavior in `ProviderConfig.spec.scw`:
173
+
174
+
```yaml
175
+
spec:
176
+
scw:
177
+
useScwConfig: true
178
+
# path: /home/me/.config/scw/config.yaml
179
+
# profile: myProfile
180
+
```
163
181
### Create a managed resource
164
182
165
183
1. Create a managed resource to see if the provider is properly functioning.
0 commit comments