Skip to content

Commit

Permalink
Cleanup Serverless CR details view (#1367)
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 6cb0961 commit f25920b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 73 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: functions
namespace: kube-public
namespace: {{ .Release.Namespace }}
labels:
{{- include "tplValue" ( dict "value" .Values.global.commonLabels "context" . ) | nindent 4 }}
busola.io/extension: resource
Expand Down

0 comments on commit f25920b

Please sign in to comment.