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 57b8797 commit 77b8f1aCopy full SHA for 77b8f1a
rust/operator-binary/src/crd/mod.rs
@@ -98,6 +98,7 @@ pub const DS_DIRECTORY: &str = "druid.storage.storageDirectory";
98
pub const DS_BUCKET: &str = "druid.storage.bucket";
99
pub const DS_BASE_KEY: &str = "druid.storage.baseKey";
100
pub const S3_ENDPOINT_URL: &str = "druid.s3.endpoint.url";
101
+pub const S3_REGION_NAME: &str = "aws.region";
102
pub const S3_ACCESS_KEY: &str = "druid.s3.accessKey";
103
pub const S3_SECRET_KEY: &str = "druid.s3.secretKey";
104
pub const S3_PATH_STYLE_ACCESS: &str = "druid.s3.enablePathStyleAccess";
@@ -389,6 +390,7 @@ impl v1alpha1::DruidCluster {
389
390
Ok(result)
391
}
392
393
+ #[allow(clippy::type_complexity)]
394
pub fn build_role_properties(
395
&self,
396
) -> HashMap<
rust/operator-binary/src/druid_controller.rs
@@ -76,7 +76,8 @@ use crate::{
76
DRUID_CONFIG_DIRECTORY, DS_BUCKET, EXTENSIONS_LOADLIST, HDFS_CONFIG_DIRECTORY, JVM_CONFIG,
77
JVM_SECURITY_PROPERTIES_FILE, LOG_CONFIG_DIRECTORY, MAX_DRUID_LOG_FILES_SIZE,
78
OPERATOR_NAME, RUNTIME_PROPS, RW_CONFIG_DIRECTORY, S3_ACCESS_KEY, S3_ENDPOINT_URL,
79
- S3_PATH_STYLE_ACCESS, S3_SECRET_KEY, STACKABLE_LOG_DIR, ZOOKEEPER_CONNECTION_STRING,
+ S3_PATH_STYLE_ACCESS, S3_REGION_NAME, S3_SECRET_KEY, STACKABLE_LOG_DIR,
80
+ ZOOKEEPER_CONNECTION_STRING,
81
},
82
discovery::{self, build_discovery_configmaps},
83
extensions::get_extension_list,
@@ -734,6 +735,8 @@ fn build_rolegroup_config_map(
734
735
};
736
737
if let Some(s3) = s3_conn {
738
+ conf.insert(S3_REGION_NAME.to_string(), Some(s3.region.name.to_string()));
739
+
740
conf.insert(
741
S3_ENDPOINT_URL.to_string(),
742
Some(s3.endpoint().context(ConfigureS3Snafu)?.to_string()),
0 commit comments