Skip to content

Commit

Permalink
Merge pull request #9 from getditto/feature/live-query
Browse files Browse the repository at this point in the history
add: live-query to big-peer chart
  • Loading branch information
ChrisMcKenzie authored Nov 21, 2024
2 parents b0ad6ca + caf65af commit 3b94873
Show file tree
Hide file tree
Showing 15 changed files with 1,172 additions and 3 deletions.
7 changes: 5 additions & 2 deletions charts/big-peer/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ dependencies:
- name: dummy-auth-webhook
repository: oci://quay.io/ditto-external
version: 0.1.1
digest: sha256:15b4bb1cc780a48d43a97b5aa1ec9a92ae929ea46f1d9ef566b85cfc6080995f
generated: "2024-11-12T16:35:51.590322745-05:00"
- name: live-query-resource-controller
repository: oci://quay.io/ditto-external
version: 0.1.0-002c59
digest: sha256:241c4da54c53eaf4b53397243ca2fc133f304b2320e674e806dd8d74e5db7248
generated: "2024-11-19T15:20:57.960082134-06:00"
17 changes: 16 additions & 1 deletion charts/big-peer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ home: https://docs.ditto.live/
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.9
version: 0.2.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down Expand Up @@ -87,3 +87,18 @@ dependencies:
version: "0.1.1"
tags:
- dummy-auth-webhook
- name: live-query-resource-controller
alias: live-query
repository: "oci://quay.io/ditto-external"
condition: live-query.enabled
version: "0.1.0-002c59"
tags:
- live-query
- name: kafka
alias: live-query-kafka
version: "0.2.2"
repository: "oci://quay.io/ditto-external"
condition: live-query.enabled
tags:
- kafka

154 changes: 154 additions & 0 deletions charts/big-peer/crds/ditto_v1alpha2_livequerycores.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: livequerycores.cloud.app.ditto.live
spec:
group: cloud.app.ditto.live
names:
categories:
- livequery
kind: LiveQueryCore
plural: livequerycores
shortNames:
- lqc
singular: livequerycore
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: The name of the RegistryApp
jsonPath: ".spec.appId"
name: RegistryApp
type: string
- description: The name of the HydraCluster
jsonPath: ".spec.hydraClusterRef.name"
name: HydraCluster
type: string
- description: The namespace of the HydraCluster
jsonPath: ".spec.hydraClusterRef.namespace"
name: HydraClusterNS
type: string
- description: The name of the CDCKafka cluster
jsonPath: ".spec.cdcKafkaClusterRef.name"
name: CDCKafka
type: string
- description: The namespace of the CDCKafka cluster
jsonPath: ".spec.cdcKafkaClusterRef.namespace"
name: CDCKafkaNS
type: string
name: v1alpha2
schema:
openAPIV3Schema:
description: "Live Query Core represents the core workloads for the Change Data Capture (CDC) subsystem, including the CDC transformer, the stream splitter, and the CDC heartbeat. The CDC heartbeat pushes heartbeat data through the internal database's transaction log and consumes it to ensure the database is healthy. The CDC transformer consumes transaction data off of the internal database's transaction log directly, computing a DocumentDiff and sending it downstream to the stream splitter. The stream splitter splits the input stream into the target format and fans the data out to downstream LiveQuerySource Kafka Topics. LiveQuerySource and LiveQuerySink objects require a deployed LiveQueryCore to function."
properties:
spec:
properties:
appId:
description: "Stable, unique ID of the Ditto app this object belongs to"
type: string
cdcKafkaClusterRef:
description: "Kubernetes ref to the `Kafka` CR where the CDC pipeline is hosted"
properties:
name:
description: "Name of the `Kafka` CR object"
type: string
namespace:
description: "Namespace where the `Kafka` CR is located"
type: string
required:
- name
- namespace
type: object
description:
description: Optional description of this object
nullable: true
type: string
httpApiServerPoolRef:
description: "Kubernetes ref to an `HttpApiServerPool` available to this app"
nullable: true
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
hydraClusterRef:
description: "Kubernetes ref to the `HydraCluster` this app belongs to"
properties:
name:
description: "Name of the `HydraCluster` CR object"
type: string
namespace:
description: "Namespace where the `HydraCluster` CR is located"
type: string
required:
- name
- namespace
type: object
subscriptionPoolRef:
description: "Kubernetes ref to the `SubscriptionPool` this app uses"
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
required:
- appId
- cdcKafkaClusterRef
- hydraClusterRef
- subscriptionPoolRef
type: object
status:
nullable: true
properties:
conditions:
properties:
kafka_resources_created:
properties:
message:
nullable: true
type: string
status:
nullable: true
type: boolean
type: object
ready:
properties:
message:
nullable: true
type: string
status:
nullable: true
type: boolean
type: object
workloads_deployed:
properties:
message:
nullable: true
type: string
status:
nullable: true
type: boolean
type: object
required:
- kafka_resources_created
- ready
- workloads_deployed
type: object
required:
- conditions
type: object
required:
- spec
title: LiveQueryCore
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit 3b94873

Please sign in to comment.