generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Subscription Busola UI, eventing default CRs and health+metrics…
… service (#121) * Update kustomize files * updated default CR
- Loading branch information
Showing
9 changed files
with
214 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: subscriptions | ||
namespace: kube-public | ||
labels: | ||
app.kubernetes.io/name: subscriptions | ||
busola.io/extension: resource | ||
busola.io/extension-version: '0.5' | ||
data: | ||
general: |- | ||
resource: | ||
kind: Subscription | ||
group: eventing.kyma-project.io | ||
version: v1alpha2 | ||
name: Subscriptions | ||
category: Configuration | ||
scope: namespace | ||
description: >- | ||
{{"{{[Subscription](https://kyma-project.io/docs/kyma/latest/05-technical-reference/00-custom-resources/evnt-01-subscription#documentation-content)}}"}} is used to subscribe to events. | ||
urlPath: subscriptions | ||
details: |- | ||
header: | ||
- name: status.conditions.status | ||
source: 'status.ready = false ? "error" : "ready"' | ||
widget: Badge | ||
description: status.conditions.message | ||
- name: spec.typeMatching | ||
source: spec.typeMatching | ||
- name: spec.source | ||
source: spec.source | ||
- name: spec.sink | ||
source: spec.sink | ||
widget: ResourceLink | ||
resource: | ||
name: '$substringBefore($substringAfter(spec.sink, "http://"), ".")' | ||
namespace: $root.metadata.namespace | ||
kind: "'Service'" | ||
body: | ||
- source: status.conditions | ||
widget: Table | ||
name: status.conditions | ||
children: | ||
- source: '$item.type' | ||
name: status.conditions.type | ||
- source: '$item.status' | ||
widget: Badge | ||
name: status.conditions.status | ||
- source: '$item.reason' | ||
name: status.conditions.reason | ||
- source: '$item.message' | ||
name: status.conditions.message | ||
- source: '$readableTimestamp($item.lastTransitionTime)' | ||
name: status.conditions.lastTransitionTime | ||
- name: spec.types | ||
source: spec.types | ||
widget: Table | ||
children: | ||
- name: Type | ||
search: true | ||
source: '$item' | ||
sort: false | ||
- widget: EventList | ||
filter: "$matchEvents($$, $root.kind, $root.metadata.name)" | ||
name: events | ||
defaultType: NORMAL | ||
hideInvolvedObjects: true | ||
form: |- | ||
- path: spec.config | ||
widget: KeyValuePair | ||
defaultExpanded: false | ||
- path: spec.types | ||
simple: true | ||
widget: SimpleList | ||
defaultExpanded: true | ||
children: | ||
- path: '[]' | ||
simple: true | ||
- simple: true | ||
type: string | ||
var: service | ||
name: Service | ||
widget: Resource | ||
resource: | ||
kind: Service | ||
version: v1 | ||
scope: namespace | ||
trigger: [sink] | ||
- path: spec.sink | ||
name: spec.sink | ||
simple: true | ||
inputInfo: inputInfo.sink | ||
placeholder: placeholder.sink | ||
subscribe: | ||
sink: '"http://" & $service & "." & $root.metadata.namespace & ".svc.cluster.local"' | ||
- path: spec.typeMatching | ||
simple: true | ||
enum: | ||
- standard | ||
- exact | ||
required: true | ||
- path: spec.source | ||
name: spec.source | ||
simple: true | ||
required: true | ||
visibility: "spec.typeMatching = 'standard'" | ||
widget: Resource | ||
resource: | ||
kind: Application | ||
group: applicationconnector.kyma-project.io | ||
version: v1alpha1 | ||
list: |- | ||
- name: status.conditions.status | ||
source: 'status.ready = false ? "error" : "ready"' | ||
widget: Badge | ||
description: status.conditions.message | ||
presets: |- | ||
- name: Default Type Matching | ||
default: true | ||
value: | ||
spec: | ||
typeMatching: standard | ||
translations: |- | ||
en: | ||
inputInfo.sink: Sink structure, 'http://{SERVICE}.{NAMESPACE}.svc.cluster.local' | ||
inputInfo.eventType: Event Type structure, 'sap.kyma.custom.{APP}.{EVENT.NAME}.{VERSION}' | ||
events: Events | ||
placeholder.eventType: Enter the event type, for example, sap.kyma.custom.test-app.order.cancelled.v1 | ||
placeholder.sink: Enter the sink, for example, http://service.default.svc.cluster.local | ||
spec.filters: Filters | ||
spec.filter.eventType: Event Type | ||
spec.filter.eventSource: Event Source | ||
spec.filter.event.property: Property | ||
spec.filter.event.type: Type | ||
spec.filter.event.value: Value | ||
spec.types: Types | ||
spec.source: Source | ||
spec.typeMatching: Type Matching | ||
spec.sink: Sink | ||
spec.service: Service | ||
spec.sink.controlledBy: Controlled By | ||
status.cleanEventTypes: Event Types | ||
status.conditions: Conditions | ||
status.conditions.lastTransitionTime: Last Transition | ||
status.conditions.reason: Reason | ||
status.conditions.status: Status | ||
status.conditions.type: Type | ||
status.conditions.message: Message | ||
status.type: Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- busola-extension.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
resources: | ||
- manager.yaml | ||
- service.yaml | ||
|
||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: eventing-manager-metrics | ||
labels: | ||
control-plane: eventing-manager | ||
app.kubernetes.io/name: eventing-manager | ||
app.kubernetes.io/instance: eventing-manager | ||
app.kubernetes.io/component: eventing-manager | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/scheme: http | ||
prometheus.io/port: "8080" | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
control-plane: eventing-manager | ||
app.kubernetes.io/name: eventing-manager | ||
app.kubernetes.io/instance: eventing-manager | ||
app.kubernetes.io/component: eventing-manager | ||
ports: | ||
- name: http-metrics | ||
protocol: TCP | ||
port: 80 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: eventing-manager-health | ||
labels: | ||
control-plane: eventing-manager | ||
app.kubernetes.io/name: eventing-manager | ||
app.kubernetes.io/instance: eventing-manager | ||
app.kubernetes.io/component: eventing-manager | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
control-plane: eventing-manager | ||
app.kubernetes.io/name: eventing-manager | ||
app.kubernetes.io/instance: eventing-manager | ||
app.kubernetes.io/component: eventing-manager | ||
ports: | ||
- name: http-status | ||
protocol: TCP | ||
port: 15020 | ||
targetPort: 15020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters