diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index d2c0fb82..515012c7 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -18,6 +18,7 @@ resources: - ../crd - ../rbac - ../manager +- ../ui-extensions # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in # crd/kustomization.yaml #- ../webhook diff --git a/config/ui-extensions/kustomization.yaml b/config/ui-extensions/kustomization.yaml new file mode 100644 index 00000000..db0801e1 --- /dev/null +++ b/config/ui-extensions/kustomization.yaml @@ -0,0 +1,2 @@ +resources: +- nats diff --git a/config/ui-extensions/nats/details b/config/ui-extensions/nats/details new file mode 100644 index 00000000..0b1fdb83 --- /dev/null +++ b/config/ui-extensions/nats/details @@ -0,0 +1,31 @@ +header: + - name: State + source: status.state + widget: Badge + +body: + - name: Conditions + source: status.conditions + widget: Table + 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 + - name: Events + widget: EventList + filter: '$matchEvents($$, $root.kind, $root.metadata.name)' + defaultType: information diff --git a/config/ui-extensions/nats/form b/config/ui-extensions/nats/form new file mode 100644 index 00000000..e69de29b diff --git a/config/ui-extensions/nats/general b/config/ui-extensions/nats/general new file mode 100644 index 00000000..f2d4832e --- /dev/null +++ b/config/ui-extensions/nats/general @@ -0,0 +1,15 @@ +resource: + kind: NATS + group: operator.kyma-project.io + version: v1alpha1 +urlPath: nats +category: Kyma +name: NATS +scope: namespace +features: + actions: + disableCreate: false + disableDelete: false +description: >- + {{[NATS CR](https://github.com/kyma-project/nats-manager/blob/main/config/samples/default.yaml)}} + specifies NATS module. diff --git a/config/ui-extensions/nats/kustomization.yaml b/config/ui-extensions/nats/kustomization.yaml new file mode 100644 index 00000000..6af208b2 --- /dev/null +++ b/config/ui-extensions/nats/kustomization.yaml @@ -0,0 +1,14 @@ +configMapGenerator: +- name: operator.kyma-project.io + namespace: kube-public + files: + - general + - form + - list + - details + options: + disableNameSuffixHash: true + labels: + app.kubernetes.io/name: nats.operator.kyma-project.io + busola.io/extension: resource + busola.io/extension-version: "0.5" diff --git a/config/ui-extensions/nats/list b/config/ui-extensions/nats/list new file mode 100644 index 00000000..5bc7f82d --- /dev/null +++ b/config/ui-extensions/nats/list @@ -0,0 +1,6 @@ +- name: State + source: status.state + widget: Badge + highlights: + positive: + - 'Ready'