Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Generate extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
akucharska committed Sep 4, 2024
1 parent bd8a0e1 commit 1265595
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 87 deletions.
64 changes: 35 additions & 29 deletions environments/dev/dist/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ details:
visibility: $exists(spec.issuerRef)
resource:
namespace: $root.spec.issuerRef.namespace
kind: '''Issuer'''
kind: "'Issuer'"
name: $root.spec.issuerRef.name
- name: secret
source: spec.secretRef.name
widget: ResourceLink
resource:
namespace: $root.spec.secretRef.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.secretRef.name
- name: spec.secretName
source: spec.secretName
Expand Down Expand Up @@ -179,7 +179,7 @@ details:
$count($jksSecret().items)>0
resource:
namespace: $jksSecret().items.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.keystores.jks.passwordSecretRef.secretName
- name: spec.keystores.secretName
source: spec.keystores.jks.passwordSecretRef.secretName
Expand Down Expand Up @@ -208,7 +208,7 @@ details:
and $count($pkcs12Secret().items)>0
resource:
namespace: $pkcs12Secret().items.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.keystores.pkcs12.passwordSecretRef.secretName
- name: spec.keystores.secretName
source: spec.keystores.pkcs12.passwordSecretRef.secretName
Expand Down Expand Up @@ -356,6 +356,7 @@ translations:
spec.secretName: Secret Name
certificateCN: Certificate CN (max 64 characters)
secret: Secret
conditions: Conditions
---
dataSources:
targetServices:
Expand All @@ -364,21 +365,26 @@ dataSources:
version: v1
filter: $exists($item.status.loadBalancer.ingress)
details:
header:
- source: 'status.state ? status.state : "UNKNOWN"'
highlights:
informative:
- UNKNOWN
type: string
name: status
widget: Badge
description: status.message
resourceGraph:
dataSources:
- source: relatedService
status:
header:
- source: 'status.state ? status.state : "UNKNOWN"'
highlights:
informative:
- UNKNOWN
type: string
name: status
widget: Badge
description: status.message
body:
- name: Provider
source: status.provider
type: long
- name: Observed Generation
source: status.observedGeneration
body:
- name: Provider
widget: Panel
children:
- name: Provider
source: status.provider
- name: Specification
widget: Panel
children:
Expand Down Expand Up @@ -1388,7 +1394,7 @@ injections:
design: information-1
children:
- widget: ResourceButton
source: '''Add Modules'''
source: "'Add Modules'"
resource:
customUrl: kymamodules
- widget: ExternalLinkButton
Expand Down Expand Up @@ -1480,7 +1486,7 @@ details:
children:
- name: Custom
widget: CodeViewer
language: '''plaintext'''
language: "'plaintext'"
source: spec.output.custom
visibility: $exists(spec.output.custom)
- name: Grafana-Loki
Expand Down Expand Up @@ -1909,7 +1915,7 @@ details:
resource:
name: spec.secretName
namespace: $root.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
- name: spec.tokenEndpointAuthMethod
source: spec.tokenEndpointAuthMethod
widget: Labels
Expand Down Expand Up @@ -2032,7 +2038,7 @@ list:
resource:
name: spec.secretName
namespace: $root.metadata.namespace
kind: '''secret'''
kind: "'secret'"
- source: 'status.state ? "error" : "ok"'
highlights:
positive:
Expand All @@ -2053,7 +2059,7 @@ injections:
order: 1
children:
- widget: Alert
source: '''deprecation.long'''
source: "'deprecation.long'"
severity: warning
- widget: ExternalLink
name: Migration blogpost
Expand Down Expand Up @@ -2160,14 +2166,14 @@ details:
widget: ResourceLink
resource:
namespace: $root.metadata.namespace
kind: '''ServiceInstance'''
kind: "'ServiceInstance'"
name: $root.spec.serviceInstanceName
- name: spec.secretName
source: spec.secretName
widget: ResourceLink
resource:
namespace: $root.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.secretName
- name: spec.externalName
source: spec.externalName
Expand Down Expand Up @@ -2209,7 +2215,7 @@ form:
- path: spec.secretName
- path: spec.parameters
widget: CodeEditor
language: '''json'''
language: "'json'"
- path: spec.parametersFrom
widget: SimpleList
defaultExpanded: true
Expand Down Expand Up @@ -2248,7 +2254,7 @@ list:
widget: ResourceLink
resource:
namespace: $root.metadata.namespace
kind: '''ServiceInstance'''
kind: "'ServiceInstance'"
name: $root.spec.serviceInstanceName
- name: spec.externalName
source: spec.externalName
Expand Down Expand Up @@ -2336,7 +2342,7 @@ form:
placeholder: spec.externalNamePlaceholder
- path: spec.parameters
widget: CodeEditor
language: '''json'''
language: "'json'"
general:
resource:
kind: ServiceInstance
Expand Down Expand Up @@ -2692,7 +2698,7 @@ details:
resource:
name: $substringBefore($substringAfter(spec.sink, "http://"), ".")
namespace: $root.metadata.namespace
kind: '''Service'''
kind: "'Service'"
body:
- source: status.conditions
widget: Table
Expand Down
64 changes: 35 additions & 29 deletions environments/prod/dist/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ details:
visibility: $exists(spec.issuerRef)
resource:
namespace: $root.spec.issuerRef.namespace
kind: '''Issuer'''
kind: "'Issuer'"
name: $root.spec.issuerRef.name
- name: secret
source: spec.secretRef.name
widget: ResourceLink
resource:
namespace: $root.spec.secretRef.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.secretRef.name
- name: spec.secretName
source: spec.secretName
Expand Down Expand Up @@ -179,7 +179,7 @@ details:
$count($jksSecret().items)>0
resource:
namespace: $jksSecret().items.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.keystores.jks.passwordSecretRef.secretName
- name: spec.keystores.secretName
source: spec.keystores.jks.passwordSecretRef.secretName
Expand Down Expand Up @@ -208,7 +208,7 @@ details:
and $count($pkcs12Secret().items)>0
resource:
namespace: $pkcs12Secret().items.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.keystores.pkcs12.passwordSecretRef.secretName
- name: spec.keystores.secretName
source: spec.keystores.pkcs12.passwordSecretRef.secretName
Expand Down Expand Up @@ -356,6 +356,7 @@ translations:
spec.secretName: Secret Name
certificateCN: Certificate CN (max 64 characters)
secret: Secret
conditions: Conditions
---
dataSources:
targetServices:
Expand All @@ -364,21 +365,26 @@ dataSources:
version: v1
filter: $exists($item.status.loadBalancer.ingress)
details:
header:
- source: 'status.state ? status.state : "UNKNOWN"'
highlights:
informative:
- UNKNOWN
type: string
name: status
widget: Badge
description: status.message
resourceGraph:
dataSources:
- source: relatedService
status:
header:
- source: 'status.state ? status.state : "UNKNOWN"'
highlights:
informative:
- UNKNOWN
type: string
name: status
widget: Badge
description: status.message
body:
- name: Provider
source: status.provider
type: long
- name: Observed Generation
source: status.observedGeneration
body:
- name: Provider
widget: Panel
children:
- name: Provider
source: status.provider
- name: Specification
widget: Panel
children:
Expand Down Expand Up @@ -1388,7 +1394,7 @@ injections:
design: information-1
children:
- widget: ResourceButton
source: '''Add Modules'''
source: "'Add Modules'"
resource:
customUrl: kymamodules
- widget: ExternalLinkButton
Expand Down Expand Up @@ -1480,7 +1486,7 @@ details:
children:
- name: Custom
widget: CodeViewer
language: '''plaintext'''
language: "'plaintext'"
source: spec.output.custom
visibility: $exists(spec.output.custom)
- name: Grafana-Loki
Expand Down Expand Up @@ -1909,7 +1915,7 @@ details:
resource:
name: spec.secretName
namespace: $root.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
- name: spec.tokenEndpointAuthMethod
source: spec.tokenEndpointAuthMethod
widget: Labels
Expand Down Expand Up @@ -2032,7 +2038,7 @@ list:
resource:
name: spec.secretName
namespace: $root.metadata.namespace
kind: '''secret'''
kind: "'secret'"
- source: 'status.state ? "error" : "ok"'
highlights:
positive:
Expand All @@ -2053,7 +2059,7 @@ injections:
order: 1
children:
- widget: Alert
source: '''deprecation.long'''
source: "'deprecation.long'"
severity: warning
- widget: ExternalLink
name: Migration blogpost
Expand Down Expand Up @@ -2160,14 +2166,14 @@ details:
widget: ResourceLink
resource:
namespace: $root.metadata.namespace
kind: '''ServiceInstance'''
kind: "'ServiceInstance'"
name: $root.spec.serviceInstanceName
- name: spec.secretName
source: spec.secretName
widget: ResourceLink
resource:
namespace: $root.metadata.namespace
kind: '''Secret'''
kind: "'Secret'"
name: $root.spec.secretName
- name: spec.externalName
source: spec.externalName
Expand Down Expand Up @@ -2209,7 +2215,7 @@ form:
- path: spec.secretName
- path: spec.parameters
widget: CodeEditor
language: '''json'''
language: "'json'"
- path: spec.parametersFrom
widget: SimpleList
defaultExpanded: true
Expand Down Expand Up @@ -2248,7 +2254,7 @@ list:
widget: ResourceLink
resource:
namespace: $root.metadata.namespace
kind: '''ServiceInstance'''
kind: "'ServiceInstance'"
name: $root.spec.serviceInstanceName
- name: spec.externalName
source: spec.externalName
Expand Down Expand Up @@ -2336,7 +2342,7 @@ form:
placeholder: spec.externalNamePlaceholder
- path: spec.parameters
widget: CodeEditor
language: '''json'''
language: "'json'"
general:
resource:
kind: ServiceInstance
Expand Down Expand Up @@ -2692,7 +2698,7 @@ details:
resource:
name: $substringBefore($substringAfter(spec.sink, "http://"), ".")
namespace: $root.metadata.namespace
kind: '''Service'''
kind: "'Service'"
body:
- source: status.conditions
widget: Table
Expand Down
Loading

0 comments on commit 1265595

Please sign in to comment.