Skip to content

Commit 51c75c4

Browse files
committed
remove credentials secret from product config
1 parent 1dfaa8e commit 51c75c4

3 files changed

Lines changed: 0 additions & 29 deletions

File tree

deploy/config-spec/properties.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@ version: 0.1.0
33
spec:
44
units: []
55
properties:
6-
- property: &credentialsSecretName
7-
propertyNames:
8-
- name: "credentialsSecretName"
9-
kind:
10-
type: "env"
11-
datatype:
12-
type: "string"
13-
roles:
14-
- name: "node"
15-
required: true
16-
asOfVersion: "0.0.0"
17-
description: "The name of the Secret where the Superset credentials are stored."
186
- property: &rowLimit
197
propertyNames:
208
- name: "ROW_LIMIT"

deploy/helm/superset-operator/configs/properties.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@ version: 0.1.0
33
spec:
44
units: []
55
properties:
6-
- property: &credentialsSecretName
7-
propertyNames:
8-
- name: "credentialsSecretName"
9-
kind:
10-
type: "env"
11-
datatype:
12-
type: "string"
13-
roles:
14-
- name: "node"
15-
required: true
16-
asOfVersion: "0.0.0"
17-
description: "The name of the Secret where the Superset credentials are stored."
186
- property: &rowLimit
197
propertyNames:
208
- name: "ROW_LIMIT"

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ impl FlaskAppConfigOptions for SupersetConfigOptions {
444444
}
445445

446446
impl v1alpha1::SupersetConfig {
447-
pub const CREDENTIALS_SECRET_NAME_PROPERTY: &'static str = "credentialsSecretName";
448447
pub const MAPBOX_SECRET_PROPERTY: &'static str = "mapboxSecret";
449448

450449
fn default_config(cluster_name: &str, role: &SupersetRole) -> v1alpha1::SupersetConfigFragment {
@@ -478,10 +477,6 @@ impl Configuration for v1alpha1::SupersetConfigFragment {
478477
_role_name: &str,
479478
) -> Result<BTreeMap<String, Option<String>>, product_config_utils::Error> {
480479
let mut result = BTreeMap::new();
481-
result.insert(
482-
v1alpha1::SupersetConfig::CREDENTIALS_SECRET_NAME_PROPERTY.to_string(),
483-
Some(cluster.spec.cluster_config.credentials_secret_name.clone()),
484-
);
485480
if let Some(msec) = &cluster.spec.cluster_config.mapbox_secret {
486481
result.insert(
487482
v1alpha1::SupersetConfig::MAPBOX_SECRET_PROPERTY.to_string(),

0 commit comments

Comments
 (0)