Skip to content

Commit

Permalink
Add UI for NATS module
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobebway committed Sep 26, 2023
1 parent fec61bc commit a2b8b2b
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions config/ui-extensions/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- nats
31 changes: 31 additions & 0 deletions config/ui-extensions/nats/details
Original file line number Diff line number Diff line change
@@ -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
Empty file added config/ui-extensions/nats/form
Empty file.
15 changes: 15 additions & 0 deletions config/ui-extensions/nats/general
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 14 additions & 0 deletions config/ui-extensions/nats/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 6 additions & 0 deletions config/ui-extensions/nats/list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: State
source: status.state
widget: Badge
highlights:
positive:
- 'Ready'

0 comments on commit a2b8b2b

Please sign in to comment.