Skip to content

Commit f67151c

Browse files
committed
Use serde(rename)
1 parent c6b1da3 commit f67151c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub fn validate_cluster(
207207
ValidatedClusterConfig {
208208
authentication_config,
209209
opa_config,
210-
credentials_secret_name: cluster_config.credentials_secret.clone(),
210+
credentials_secret_name: cluster_config.credentials_secret_name.clone(),
211211
secret_key_secret_name: superset.shared_secret_key_secret_name(),
212212
mapbox_secret: cluster_config.mapbox_secret.clone(),
213213
metadata_database: cluster_config.metadata_database.clone(),

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ pub mod versioned {
245245
/// [getting started guide first steps](DOCS_BASE_URL_PLACEHOLDER/superset/getting_started/first_steps)
246246
/// to find out more.
247247
// TODO: In the future rename this to `credentialsSecretName`
248-
pub credentials_secret: String,
248+
#[serde(rename = "credentialsSecret")]
249+
pub credentials_secret_name: String,
249250

250251
/// Cluster operations like pause reconciliation or cluster stop.
251252
#[serde(default)]

0 commit comments

Comments
 (0)