Skip to content

Commit f9f8c7e

Browse files
committed
add serde cache defaults
1 parent 499d02c commit f9f8c7e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

deploy/helm/superset-operator/crds/crds.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ spec:
8282
description: Configure the OPA stacklet [discovery ConfigMap](https://docs.stackable.tech/home/nightly/concepts/service_discovery) and the name of the Rego package containing your authorization rules. Consult the [OPA authorization documentation](https://docs.stackable.tech/home/nightly/concepts/opa) to learn how to deploy Rego authorization rules with OPA.
8383
properties:
8484
cache:
85+
default:
86+
entryTimeToLive: 30s
87+
maxEntries: 10000
8588
description: Configuration for an Superset internal cache for calls to OPA
8689
properties:
8790
entryTimeToLive:
@@ -103,7 +106,6 @@ spec:
103106
nullable: true
104107
type: string
105108
required:
106-
- cache
107109
- configMapName
108110
type: object
109111
required:

rust/crd/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ pub struct SupersetOpaRoleMappingConfig {
276276
pub opa: OpaConfig,
277277

278278
/// Configuration for an Superset internal cache for calls to OPA
279+
#[serde(default)]
279280
pub cache: UserInformationCache,
280281
}
281282

0 commit comments

Comments
 (0)