Skip to content

Commit

Permalink
Use condition lists in busola (#1370)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Dobrochowski <[email protected]>
  • Loading branch information
kwiatekus and anoipm authored Jan 9, 2025
1 parent 4f9a303 commit 830bca8
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 251 deletions.
2 changes: 1 addition & 1 deletion components/runtimes/nodejs/nodejs22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM europe-docker.pkg.dev/kyma-project/prod/external/library/alpine:3.21.0

# https://pkgs.alpinelinux.org/packages?name=nodejs&branch=v3.21&repo=main&arch=&maintainer=
ENV NODE_VERSION=22.11.0-r0
ENV NODE_VERSION=22.11.0-r1

RUN apk add --no-cache openssl3 nodejs=${NODE_VERSION} npm

Expand Down
77 changes: 6 additions & 71 deletions config/operator/base/ui-extensions/serverless/details
Original file line number Diff line number Diff line change
@@ -1,57 +1,14 @@
header:
- name: Ready
source: status.state
widget: Badge
highlights:
positive:
- 'Ready'
status:
body:
- name: Condition details
widget: ConditionList
source: status.conditions
body:
- widget: Alert
severity: warning
source: '"alert.internalregistry"'
visibility: $root.spec.dockerRegistry.enableInternal = true
- name: Desired Specification
widget: Panel
children:
- name: Docker Registry
visibility: $root.spec.dockerRegistry.enableInternal = true
source: spec.dockerRegistry.enableInternal?"INTERNAL":""
- name: Docker Registry
visibility: '$exists($value)'
source: spec.dockerRegistry.secretName
widget: ResourceLink
resource:
name: spec.dockerRegistry.secretName
namespace: $root.metadata.namespace
kind: "'Secret'"
- name: Eventing Endpoint
source: spec.eventing.endpoint
visibility: '$exists($value)'
- name: OTLP Trace Endpoint
source: spec.tracing.endpoint
visibility: '$exists($value)'
- name: Default Resources Preset (Build-time)
source: spec.defaultBuildJobPreset
visibility: '$exists($value)'
- name: Default Resources Preset (Runtime)
source: spec.defaultRuntimePodPreset
visibility: '$exists($value)'
- name: Custom Build Execution Args
source: spec.functionBuildExecutorArgs
visibility: '$exists($value)'
- name: Max Simultaneous Builds
source: spec.functionBuildMaxSimultaneousJobs
visibility: '$exists($value)'
- name: Function Requeue Duration
source: spec.functionRequeueDuration
visibility: '$exists($value)'
- name: Controller Liveness Timeout
source: spec.healthzLivenessTimeout
visibility: '$exists($value)'
- name: Target CPU utilisation for HPA
source: spec.targetCPUUtilizationPercentage
visibility: '$exists($value)'
- name: Status
- name: Configuration
widget: Panel
children:
- name: Docker Registry
Expand All @@ -66,28 +23,6 @@ body:
source: status.defaultBuildJobPreset
- name: Default Function Preset
source: status.defaultRuntimePodPreset
- 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
configMapGenerator:
- name: operator.kyma-project.io
namespace: kyma-system
files:
- general
- form
Expand Down
Loading

0 comments on commit 830bca8

Please sign in to comment.