Skip to content

Commit ddba1bd

Browse files
committed
chore: Remove unused code
1 parent 8c56f24 commit ddba1bd

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • rust/operator-binary/src/crd

rust/operator-binary/src/crd/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ pub struct AirflowConfig {
935935
}
936936

937937
impl AirflowConfig {
938-
pub const CREDENTIALS_SECRET_PROPERTY: &'static str = "credentialsSecret";
939938
pub const GIT_CREDENTIALS_SECRET_PROPERTY: &'static str = "gitCredentialsSecret";
940939

941940
fn default_config(cluster_name: &str, role: &AirflowRole) -> AirflowConfigFragment {
@@ -959,15 +958,10 @@ impl Configuration for AirflowConfigFragment {
959958

960959
fn compute_env(
961960
&self,
962-
cluster: &Self::Configurable,
961+
_cluster: &Self::Configurable,
963962
_role_name: &str,
964963
) -> Result<BTreeMap<String, Option<String>>, product_config_utils::Error> {
965-
let mut env: BTreeMap<String, Option<String>> = BTreeMap::new();
966-
env.insert(
967-
AirflowConfig::CREDENTIALS_SECRET_PROPERTY.to_string(),
968-
Some(cluster.spec.cluster_config.credentials_secret.clone()),
969-
);
970-
Ok(env)
964+
Ok(BTreeMap::new())
971965
}
972966

973967
fn compute_cli(

0 commit comments

Comments
 (0)