Skip to content

Commit 34aa239

Browse files
authored
feat: add Stackit provider support (#34)
thanks
1 parent 558ab25 commit 34aa239

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ other providers too when using additional flags.
1818
- Synology C2
1919
- Wasabi
2020
- Yandex
21+
- Stackit
2122

2223
## Inputs
2324

@@ -31,7 +32,7 @@ other providers too when using additional flags.
3132

3233
Supported values: `aws`, `digitalocean`, `linode`, `scaleway`,
3334
`cloudflare`, `vultr`, `clevercloud`, `hcloud`, `synologyc2`, `wasabi`,
34-
`yandex`.
35+
`yandex`, `stackit`.
3536

3637
### `secret_key`
3738

src/providers.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,23 @@ tests.yandex = {
228228
"website_endpoint = ",
229229
],
230230
};
231+
232+
exports.stackit = ({ region = "US" }) => ({
233+
bucket_location: region,
234+
host_base: `object.storage.eu01.onstackit.cloud`,
235+
host_bucket: `object.storage.eu01.onstackit.cloud/%(bucket)`,
236+
website_endpoint: "",
237+
});
238+
239+
tests.stackit = {
240+
giveInputs: {
241+
provider: "stackit",
242+
region: "US",
243+
},
244+
wantLines: [
245+
"bucket_location = US",
246+
"host_base = object.storage.eu01.onstackit.cloud",
247+
"host_bucket = object.storage.eu01.onstackit.cloud/%(bucket)",
248+
"website_endpoint = ",
249+
],
250+
};

0 commit comments

Comments
 (0)