From f9f8c7ed817818483f81907d20dbe8b5a879b429 Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Wed, 26 Feb 2025 15:03:36 +0100 Subject: [PATCH] add serde cache defaults --- deploy/helm/superset-operator/crds/crds.yaml | 4 +++- rust/crd/src/lib.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/helm/superset-operator/crds/crds.yaml b/deploy/helm/superset-operator/crds/crds.yaml index ee836af7..686550e4 100644 --- a/deploy/helm/superset-operator/crds/crds.yaml +++ b/deploy/helm/superset-operator/crds/crds.yaml @@ -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: @@ -103,7 +106,6 @@ spec: nullable: true type: string required: - - cache - configMapName type: object required: diff --git a/rust/crd/src/lib.rs b/rust/crd/src/lib.rs index 0f2a5466..a33ea587 100644 --- a/rust/crd/src/lib.rs +++ b/rust/crd/src/lib.rs @@ -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, }