From 6e103fdf263cc470e857d8e347d8ff99e9289e53 Mon Sep 17 00:00:00 2001 From: Diego Braga Date: Mon, 15 Sep 2025 14:58:12 +0200 Subject: [PATCH] fix: manually adjust enum for allowedResources --- crd-chart/templates/Column.crd.yaml | 36 +++++++++++------------ crd-chart/templates/DataGrid.crd.yaml | 30 +++++++++---------- crd-chart/templates/NavMenu.crd.yaml | 4 +-- crd-chart/templates/NavMenuItem.crd.yaml | 4 +-- crd-chart/templates/Page.crd.yaml | 36 +++++++++++------------ crd-chart/templates/RoutesLoader.crd.yaml | 4 +-- crd-chart/templates/Row.crd.yaml | 36 +++++++++++------------ crd-chart/templates/TabList.crd.yaml | 36 +++++++++++------------ crd-chart/templates/Table.crd.yaml | 20 ++++++------- 9 files changed, 103 insertions(+), 103 deletions(-) diff --git a/crd-chart/templates/Column.crd.yaml b/crd-chart/templates/Column.crd.yaml index 68edb4c..1edb33c 100644 --- a/crd-chart/templates/Column.crd.yaml +++ b/crd-chart/templates/Column.crd.yaml @@ -148,26 +148,26 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - barcharts - - buttons - - columns - - datagrids - - eventlists - - filters - - flowcharts - - forms - - linecharts - - markdowns - - panels - - paragraphs - - piecharts - - rows - - tables - - tablists - - yamlviewers items: type: string + enum: + - barcharts + - buttons + - columns + - datagrids + - eventlists + - filters + - flowcharts + - forms + - linecharts + - markdowns + - panels + - paragraphs + - piecharts + - rows + - tables + - tablists + - yamlviewers type: array items: description: the items of the column diff --git a/crd-chart/templates/DataGrid.crd.yaml b/crd-chart/templates/DataGrid.crd.yaml index ff1abc4..1f020d5 100644 --- a/crd-chart/templates/DataGrid.crd.yaml +++ b/crd-chart/templates/DataGrid.crd.yaml @@ -148,23 +148,23 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - barcharts - - buttons - - eventlists - - filters - - flowcharts - - forms - - linecharts - - markdowns - - panels - - paragraphs - - piecharts - - tables - - tablists - - yamlviewers items: type: string + enum: + - barcharts + - buttons + - eventlists + - filters + - flowcharts + - forms + - linecharts + - markdowns + - panels + - paragraphs + - piecharts + - tables + - tablists + - yamlviewers type: array asGrid: description: to show children as list or grid diff --git a/crd-chart/templates/NavMenu.crd.yaml b/crd-chart/templates/NavMenu.crd.yaml index c436c1b..942e54b 100644 --- a/crd-chart/templates/NavMenu.crd.yaml +++ b/crd-chart/templates/NavMenu.crd.yaml @@ -148,10 +148,10 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - navmenuitems items: type: string + enum: + - navmenuitems type: array items: description: list of navigation entries each pointing to a k8s diff --git a/crd-chart/templates/NavMenuItem.crd.yaml b/crd-chart/templates/NavMenuItem.crd.yaml index cd87ded..07cdb32 100644 --- a/crd-chart/templates/NavMenuItem.crd.yaml +++ b/crd-chart/templates/NavMenuItem.crd.yaml @@ -148,10 +148,10 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - pages items: type: string + enum: + - pages type: array icon: description: 'name of the icon to display alongside the label diff --git a/crd-chart/templates/Page.crd.yaml b/crd-chart/templates/Page.crd.yaml index 6848638..c523776 100644 --- a/crd-chart/templates/Page.crd.yaml +++ b/crd-chart/templates/Page.crd.yaml @@ -148,26 +148,26 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - barcharts - - buttons - - columns - - datagrids - - eventlists - - filters - - flowcharts - - forms - - linecharts - - markdowns - - panels - - paragraphs - - piecharts - - rows - - tables - - tablists - - yamlviewers items: type: string + enum: + - barcharts + - buttons + - columns + - datagrids + - eventlists + - filters + - flowcharts + - forms + - linecharts + - markdowns + - panels + - paragraphs + - piecharts + - rows + - tables + - tablists + - yamlviewers type: array items: description: list of resources to be rendered within the route diff --git a/crd-chart/templates/RoutesLoader.crd.yaml b/crd-chart/templates/RoutesLoader.crd.yaml index 6f3b526..a0ec185 100644 --- a/crd-chart/templates/RoutesLoader.crd.yaml +++ b/crd-chart/templates/RoutesLoader.crd.yaml @@ -148,10 +148,10 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - routes items: type: string + enum: + - routes type: array required: - allowedResources diff --git a/crd-chart/templates/Row.crd.yaml b/crd-chart/templates/Row.crd.yaml index 88b531f..3ad8657 100644 --- a/crd-chart/templates/Row.crd.yaml +++ b/crd-chart/templates/Row.crd.yaml @@ -149,26 +149,26 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - barcharts - - buttons - - columns - - datagrids - - eventlists - - filters - - flowcharts - - forms - - linecharts - - markdowns - - panels - - paragraphs - - piecharts - - rows - - tables - - tablists - - yamlviewers items: type: string + enum: + - barcharts + - buttons + - columns + - datagrids + - eventlists + - filters + - flowcharts + - forms + - linecharts + - markdowns + - panels + - paragraphs + - piecharts + - rows + - tables + - tablists + - yamlviewers type: array items: description: the items of the row diff --git a/crd-chart/templates/TabList.crd.yaml b/crd-chart/templates/TabList.crd.yaml index ce582dc..3cfe491 100644 --- a/crd-chart/templates/TabList.crd.yaml +++ b/crd-chart/templates/TabList.crd.yaml @@ -149,26 +149,26 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - barcharts - - buttons - - columns - - datagrids - - eventlists - - filters - - flowcharts - - forms - - linecharts - - markdowns - - panels - - paragraphs - - piecharts - - rows - - tables - - tablists - - yamlviewers items: type: string + enum: + - barcharts + - buttons + - columns + - datagrids + - eventlists + - filters + - flowcharts + - forms + - linecharts + - markdowns + - panels + - paragraphs + - piecharts + - rows + - tables + - tablists + - yamlviewers type: array items: description: the items of the tab list diff --git a/crd-chart/templates/Table.crd.yaml b/crd-chart/templates/Table.crd.yaml index b9a05ca..902562d 100644 --- a/crd-chart/templates/Table.crd.yaml +++ b/crd-chart/templates/Table.crd.yaml @@ -148,18 +148,18 @@ spec: allowedResources: description: the list of resources that are allowed to be children of this widget or referenced by it - enum: - - barcharts - - buttons - - filters - - flowcharts - - linecharts - - markdowns - - paragraphs - - piecharts - - yamlviewers items: type: string + enum: + - barcharts + - buttons + - filters + - flowcharts + - linecharts + - markdowns + - paragraphs + - piecharts + - yamlviewers type: array columns: description: configuration of the table's columns