Skip to content

Commit c1326c2

Browse files
committed
replace version with compile-time constant
1 parent f3be8ef commit c1326c2

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

rust/operator-binary/src/controller/validate.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,18 @@ pub struct ValidatedRoleGroupConfig {
6464
pub fn validate_cluster(
6565
hbase: &v1alpha1::HbaseCluster,
6666
image_repository: &str,
67-
pkg_version: &str,
6867
product_config_manager: &ProductConfigManager,
6968
zookeeper_connection_information: ZookeeperConnectionInformation,
7069
hbase_opa_config: Option<HbaseOpaConfig>,
7170
) -> Result<ValidatedCluster, Error> {
7271
let resolved_product_image = hbase
7372
.spec
7473
.image
75-
.resolve(CONTAINER_IMAGE_BASE_NAME, image_repository, pkg_version)
74+
.resolve(
75+
CONTAINER_IMAGE_BASE_NAME,
76+
image_repository,
77+
crate::built_info::PKG_VERSION,
78+
)
7679
.context(ResolveProductImageSnafu)?;
7780

7881
let roles = hbase.build_role_properties().context(RolePropertiesSnafu)?;

rust/operator-binary/src/hbase_controller.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ pub async fn reconcile_hbase(
319319
let validated = crate::controller::validate::validate_cluster(
320320
hbase,
321321
&ctx.operator_environment.image_repository,
322-
crate::built_info::PKG_VERSION,
323322
&ctx.product_config,
324323
dereferenced.zookeeper_connection_information,
325324
dereferenced.hbase_opa_config,

0 commit comments

Comments
 (0)