Skip to content

Commit

Permalink
add busola UI extension
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed Oct 4, 2023
1 parent 2ee331d commit 6116a0c
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/ui-extensions/applicationconnectors/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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"
58 changes: 58 additions & 0 deletions config/ui-extensions/details.yaml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions config/ui-extensions/form.yaml
Original file line number Diff line number Diff line change
@@ -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']

15 changes: 15 additions & 0 deletions config/ui-extensions/general.yaml
Original file line number Diff line number Diff line change
@@ -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.
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:
- applicationconnectors
6 changes: 6 additions & 0 deletions config/ui-extensions/list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: Ready
source: status.state
widget: Badge
highlights:
positive:
- 'Ready'

0 comments on commit 6116a0c

Please sign in to comment.