From 6116a0cbdaed611af29fc4c375c90846d15eb063 Mon Sep 17 00:00:00 2001 From: m00g3n Date: Wed, 4 Oct 2023 17:00:58 +0200 Subject: [PATCH] add busola UI extension --- .../applicationconnectors/kustomization.yaml | 14 +++++ config/ui-extensions/details.yaml | 58 +++++++++++++++++++ config/ui-extensions/form.yaml | 19 ++++++ config/ui-extensions/general.yaml | 15 +++++ config/ui-extensions/kustomization.yaml | 2 + config/ui-extensions/list.yaml | 6 ++ 6 files changed, 114 insertions(+) create mode 100644 config/ui-extensions/applicationconnectors/kustomization.yaml create mode 100644 config/ui-extensions/details.yaml create mode 100644 config/ui-extensions/form.yaml create mode 100644 config/ui-extensions/general.yaml create mode 100644 config/ui-extensions/kustomization.yaml create mode 100644 config/ui-extensions/list.yaml diff --git a/config/ui-extensions/applicationconnectors/kustomization.yaml b/config/ui-extensions/applicationconnectors/kustomization.yaml new file mode 100644 index 00000000..41e4ffb6 --- /dev/null +++ b/config/ui-extensions/applicationconnectors/kustomization.yaml @@ -0,0 +1,14 @@ +configMapGenerator: +- name: applicationconnectors.operator.kyma-project.io + namespace: kube-public + files: + - general.yaml + - form.yaml + - list.yaml + - details.yaml + options: + disableNameSuffixHash: true + labels: + app.kubernetes.io/name: applicationconnectors.operator.kyma-project.io + busola.io/extension: resource + busola.io/extension-version: "0.5" diff --git a/config/ui-extensions/details.yaml b/config/ui-extensions/details.yaml new file mode 100644 index 00000000..accb80e3 --- /dev/null +++ b/config/ui-extensions/details.yaml @@ -0,0 +1,58 @@ +header: + - name: Ready + source: status.state + widget: Badge + highlights: + positive: + - 'Ready' +body: + - name: Configuration + widget: Panel + children: + - name: Domanin name + source: spec.domainName + - widget: Columns + children: + - name: Application Connnector Validator + widget: Panel + children: + - source: spec.appConnValidator.logLevel + name: Validator log level + - source: spec.appConnValidator.logFormat + name: Validator log format + - name: Application Connector Gateway + widget: Panel + children: + - source: spec.appGateway.proxyTimeout + name: Proxy timeout duration + - source: spec.appGateway.requestTimeout + name: Request timeout duration + - source: spec.appGateway.logLevel + name: Gateway log level + + - source: status.conditions + widget: Table + name: Reconciliation Conditions + children: + - source: type + name: Type + - source: status + name: Status + widget: Badge + highlights: + positive: + - 'True' + negative: + - 'False' + - source: reason + name: Reason + - source: message + name: Message + - source: '$readableTimestamp(lastTransitionTime)' + name: Last transition + sort: true + + - widget: EventList + filter: '$matchEvents($$, $root.kind, $root.metadata.name)' + name: events + defaultType: information diff --git a/config/ui-extensions/form.yaml b/config/ui-extensions/form.yaml new file mode 100644 index 00000000..de25ae61 --- /dev/null +++ b/config/ui-extensions/form.yaml @@ -0,0 +1,19 @@ +- path: spec.domainName + name: Domain name + +- path: spec.appConnValidator + widget: FormGroup + name: Application Connector Validator Configuration + children: + - widget: KeyValuePair + path: + keyEnum: ['logLevel', 'logFormat'] + +- path: spec.appGateway + widget: FormGroup + name: Application Connector Gateway Configuration + children: + - widget: KeyValuePair + path: requests + keyEnum: ['proxyTimeout', 'requestTimeout','logLevel'] + diff --git a/config/ui-extensions/general.yaml b/config/ui-extensions/general.yaml new file mode 100644 index 00000000..ff1d434e --- /dev/null +++ b/config/ui-extensions/general.yaml @@ -0,0 +1,15 @@ +resource: + kind: ApplicationConnector + group: operator.kyma-project.io + version: v1alpha1 +urlPath: applicationconnectors +category: Kyma +name: ApplicationConnector +scope: namespace +features: + actions: + disableCreate: true + disableDelete: true +description: >- + {{[ApplicationConnector CR](https://www.youtube.com/watch?v=v7ScGV5128A)}} + configures application connector installation. diff --git a/config/ui-extensions/kustomization.yaml b/config/ui-extensions/kustomization.yaml new file mode 100644 index 00000000..03f9fd35 --- /dev/null +++ b/config/ui-extensions/kustomization.yaml @@ -0,0 +1,2 @@ +resources: +- applicationconnectors diff --git a/config/ui-extensions/list.yaml b/config/ui-extensions/list.yaml new file mode 100644 index 00000000..982c583b --- /dev/null +++ b/config/ui-extensions/list.yaml @@ -0,0 +1,6 @@ +- name: Ready + source: status.state + widget: Badge + highlights: + positive: + - 'Ready'