diff --git a/crd-chart/templates/Button.crd.yaml b/crd-chart/templates/Button.crd.yaml index 226e551..8f64993 100644 --- a/crd-chart/templates/Button.crd.yaml +++ b/crd-chart/templates/Button.crd.yaml @@ -155,6 +155,49 @@ spec: actions: description: the actions of the widget properties: + externalNavigate: + description: actions to navigate to an external URL + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + navigating + type: boolean + target: + default: _blank + description: 'specifies where to open the URL (default: + _blank)' + enum: + - _blank + - _self + - _parent + - _top + type: string + type: + description: type of action to execute + enum: + - externalNavigate + type: string + url: + description: the external URL to navigate to; supports + JQ expressions using ${ } syntax + type: string + required: + - id + - type + - url + type: object + type: array navigate: description: client-side navigation actions items: @@ -290,6 +333,48 @@ spec: - type type: object type: array + refresh: + description: actions to invalidate and reload cached data + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + refreshing + type: boolean + resourcesRefsIds: + description: list of resourcesRefs item IDs whose widget + queries should be invalidated; each ID must match + an entry in resourcesRefs.items + items: + type: string + type: array + type: + description: type of action to execute + enum: + - refresh + type: string + widgetKinds: + description: list of widget kind names (e.g. Table, + Panel) whose queries should be invalidated; all widgets + of those kinds on the page are re-fetched + items: + type: string + type: array + required: + - id + - type + type: object + type: array rest: description: rest api call actions triggered by the widget items: diff --git a/crd-chart/templates/EventList.crd.yaml b/crd-chart/templates/EventList.crd.yaml index a8dec52..bbb0c9c 100644 --- a/crd-chart/templates/EventList.crd.yaml +++ b/crd-chart/templates/EventList.crd.yaml @@ -168,10 +168,8 @@ spec: format: date-time type: string event_type: - description: type of the event, e.g., normal or warning - enum: - - Normal - - Warning + description: type of the event, e.g., Normal, Warning, or + Error type: string global_uid: description: unique identifier of the event diff --git a/crd-chart/templates/Form.crd.yaml b/crd-chart/templates/Form.crd.yaml index 3ee01dd..30d151d 100644 --- a/crd-chart/templates/Form.crd.yaml +++ b/crd-chart/templates/Form.crd.yaml @@ -156,6 +156,49 @@ spec: actions: description: the actions of the widget properties: + externalNavigate: + description: actions to navigate to an external URL + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + navigating + type: boolean + target: + default: _blank + description: 'specifies where to open the URL (default: + _blank)' + enum: + - _blank + - _self + - _parent + - _top + type: string + type: + description: type of action to execute + enum: + - externalNavigate + type: string + url: + description: the external URL to navigate to; supports + JQ expressions using ${ } syntax + type: string + required: + - id + - type + - url + type: object + type: array navigate: description: client-side navigation actions items: @@ -291,6 +334,48 @@ spec: - type type: object type: array + refresh: + description: actions to invalidate and reload cached data + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + refreshing + type: boolean + resourcesRefsIds: + description: list of resourcesRefs item IDs whose widget + queries should be invalidated; each ID must match + an entry in resourcesRefs.items + items: + type: string + type: array + type: + description: type of action to execute + enum: + - refresh + type: string + widgetKinds: + description: list of widget kind names (e.g. Table, + Panel) whose queries should be invalidated; all widgets + of those kinds on the page are re-fetched + items: + type: string + type: array + required: + - id + - type + type: object + type: array rest: description: rest api call actions triggered by the widget items: diff --git a/crd-chart/templates/Notifications.crd.yaml b/crd-chart/templates/Notifications.crd.yaml deleted file mode 100644 index 5a7c9df..0000000 --- a/crd-chart/templates/Notifications.crd.yaml +++ /dev/null @@ -1,191 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.18.0 - name: notifications.widgets.templates.krateo.io -spec: - group: widgets.templates.krateo.io - names: - categories: - - widgets - - krateo - kind: Notifications - listKind: NotificationsList - plural: notifications - singular: notifications - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: AGE - type: date - name: v1beta1 - schema: - openAPIV3Schema: - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - properties: - apiRef: - properties: - name: - type: string - namespace: - type: string - required: - - name - - namespace - type: object - resourcesRefs: - properties: - items: - items: - properties: - apiVersion: - type: string - id: - type: string - name: - type: string - namespace: - type: string - payload: - type: object - x-kubernetes-preserve-unknown-fields: true - resource: - type: string - slice: - properties: - continue: - type: boolean - offset: - format: int32 - type: integer - page: - format: int32 - type: integer - perPage: - format: int32 - type: integer - required: - - perPage - type: object - verb: - enum: - - POST - - PUT - - PATCH - - DELETE - - GET - type: string - required: - - id - type: object - type: array - slice: - properties: - continue: - type: boolean - offset: - format: int32 - type: integer - page: - format: int32 - type: integer - perPage: - format: int32 - type: integer - required: - - perPage - type: object - required: - - items - type: object - resourcesRefsTemplate: - items: - properties: - iterator: - type: string - template: - properties: - apiVersion: - type: string - id: - type: string - name: - type: string - namespace: - type: string - payload: - type: object - x-kubernetes-preserve-unknown-fields: true - resource: - type: string - verb: - enum: - - POST - - PUT - - PATCH - - DELETE - - GET - type: string - type: object - type: object - type: array - widgetData: - properties: - queryParams: - description: list of query parameters to add to the notifications - call - items: - properties: - name: - description: the name of the query parameter - type: string - value: - description: the value of the query parameter - type: string - required: - - name - - value - type: object - type: array - type: object - widgetDataTemplate: - items: - properties: - expression: - type: string - forPath: - type: string - type: object - type: array - required: - - widgetData - type: object - status: - type: object - x-kubernetes-preserve-unknown-fields: true - type: object - served: true - storage: true - subresources: - status: {} diff --git a/crd-chart/templates/Panel.crd.yaml b/crd-chart/templates/Panel.crd.yaml index 89baedd..364694c 100644 --- a/crd-chart/templates/Panel.crd.yaml +++ b/crd-chart/templates/Panel.crd.yaml @@ -155,6 +155,49 @@ spec: actions: description: the actions of the widget properties: + externalNavigate: + description: actions to navigate to an external URL + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + navigating + type: boolean + target: + default: _blank + description: 'specifies where to open the URL (default: + _blank)' + enum: + - _blank + - _self + - _parent + - _top + type: string + type: + description: type of action to execute + enum: + - externalNavigate + type: string + url: + description: the external URL to navigate to; supports + JQ expressions using ${ } syntax + type: string + required: + - id + - type + - url + type: object + type: array navigate: description: client-side navigation actions items: @@ -290,6 +333,48 @@ spec: - type type: object type: array + refresh: + description: actions to invalidate and reload cached data + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + refreshing + type: boolean + resourcesRefsIds: + description: list of resourcesRefs item IDs whose widget + queries should be invalidated; each ID must match + an entry in resourcesRefs.items + items: + type: string + type: array + type: + description: type of action to execute + enum: + - refresh + type: string + widgetKinds: + description: list of widget kind names (e.g. Table, + Panel) whose queries should be invalidated; all widgets + of those kinds on the page are re-fetched + items: + type: string + type: array + required: + - id + - type + type: object + type: array rest: description: rest api call actions triggered by the widget items: diff --git a/crd-chart/templates/Table.crd.yaml b/crd-chart/templates/Table.crd.yaml index dbdfe34..ad22e8a 100644 --- a/crd-chart/templates/Table.crd.yaml +++ b/crd-chart/templates/Table.crd.yaml @@ -155,6 +155,49 @@ spec: actions: description: the actions of the widget properties: + externalNavigate: + description: actions to navigate to an external URL + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + navigating + type: boolean + target: + default: _blank + description: 'specifies where to open the URL (default: + _blank)' + enum: + - _blank + - _self + - _parent + - _top + type: string + type: + description: type of action to execute + enum: + - externalNavigate + type: string + url: + description: the external URL to navigate to; supports + JQ expressions using ${ } syntax + type: string + required: + - id + - type + - url + type: object + type: array navigate: description: client-side navigation actions items: @@ -290,6 +333,48 @@ spec: - type type: object type: array + refresh: + description: actions to invalidate and reload cached data + items: + properties: + id: + description: unique identifier for the action + type: string + loading: + properties: + display: + type: boolean + required: + - display + type: object + requireConfirmation: + description: whether user confirmation is required before + refreshing + type: boolean + resourcesRefsIds: + description: list of resourcesRefs item IDs whose widget + queries should be invalidated; each ID must match + an entry in resourcesRefs.items + items: + type: string + type: array + type: + description: type of action to execute + enum: + - refresh + type: string + widgetKinds: + description: list of widget kind names (e.g. Table, + Panel) whose queries should be invalidated; all widgets + of those kinds on the page are re-fetched + items: + type: string + type: array + required: + - id + - type + type: object + type: array rest: description: rest api call actions triggered by the widget items: