Skip to content

Commit

Permalink
apply review patch 2
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan committed Dec 2, 2024
1 parent 9cdf652 commit 8c4387a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,15 @@ impl HbaseRole {
};

let graceful_shutdown_timeout = match &self {
HbaseRole::Master => Some(Self::DEFAULT_MASTER_GRACEFUL_SHUTDOWN_TIMEOUT),
HbaseRole::RegionServer => Some(Self::DEFAULT_REGION_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT),
HbaseRole::RestServer => Some(Self::DEFAULT_REST_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT),
HbaseRole::Master => Self::DEFAULT_MASTER_GRACEFUL_SHUTDOWN_TIMEOUT,
HbaseRole::RegionServer => Self::DEFAULT_REGION_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT,
HbaseRole::RestServer => Self::DEFAULT_REST_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT,
};

let requested_secret_lifetime = match &self {
HbaseRole::Master => Some(Self::DEFAULT_MASTER_SECRET_LIFETIME),
HbaseRole::RegionServer => Some(Self::DEFAULT_REGION_SECRET_LIFETIME),
HbaseRole::RestServer => Some(Self::DEFAULT_REST_SECRET_LIFETIME),
HbaseRole::Master => Self::DEFAULT_MASTER_SECRET_LIFETIME,
HbaseRole::RegionServer => Self::DEFAULT_REGION_SECRET_LIFETIME,
HbaseRole::RestServer => Self::DEFAULT_REST_SECRET_LIFETIME,
};

HbaseConfigFragment {
Expand All @@ -327,8 +327,8 @@ impl HbaseRole {
resources,
logging: product_logging::spec::default_logging(),
affinity: get_affinity(cluster_name, self, hdfs_discovery_cm_name),
graceful_shutdown_timeout,
requested_secret_lifetime,
graceful_shutdown_timeout: Some(graceful_shutdown_timeout),
requested_secret_lifetime: Some(requested_secret_lifetime),
}
}

Expand Down

0 comments on commit 8c4387a

Please sign in to comment.