We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc437e commit 742dcd8Copy full SHA for 742dcd8
crates/stackable-operator/src/commons/s3/crd.rs
@@ -56,6 +56,12 @@ pub struct S3ConnectionSpec {
56
#[serde(default, skip_serializing_if = "Option::is_none")]
57
pub port: Option<u16>,
58
59
+ /// Region to connect to when using AWS S3.
60
+ ///
61
+ /// This defaults to us-east-1, and can be ignored if not using AWS S3.
62
+ #[serde(default = "s3_region_default")]
63
+ region: String,
64
+
65
/// Which access style to use.
66
/// Defaults to virtual hosted-style as most of the data products out there.
67
/// Have a look at the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html).
@@ -85,3 +91,7 @@ pub enum S3AccessStyle {
85
91
#[default]
86
92
VirtualHosted,
87
93
}
94
95
+fn s3_region_default() -> String {
96
+ "us-east-1".to_owned()
97
+}
0 commit comments