Skip to content

Commit

Permalink
add serde cache defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan committed Feb 26, 2025
1 parent 499d02c commit f9f8c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/helm/superset-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ spec:
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.
properties:
cache:
default:
entryTimeToLive: 30s
maxEntries: 10000
description: Configuration for an Superset internal cache for calls to OPA
properties:
entryTimeToLive:
Expand All @@ -103,7 +106,6 @@ spec:
nullable: true
type: string
required:
- cache
- configMapName
type: object
required:
Expand Down
1 change: 1 addition & 0 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ pub struct SupersetOpaRoleMappingConfig {
pub opa: OpaConfig,

/// Configuration for an Superset internal cache for calls to OPA
#[serde(default)]
pub cache: UserInformationCache,
}

Expand Down

0 comments on commit f9f8c7e

Please sign in to comment.