-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ditto operator support #19
base: main
Are you sure you want to change the base?
Changes from all commits
45d005f
28f7968
9806aef
9a6e04e
9ee075b
18f9bc6
4e41973
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.2.14 | ||
version: 0.3.0-alpha.2 | ||
|
||
# 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 | ||
|
@@ -32,30 +32,13 @@ maintainers: | |
email: [email protected] | ||
dependencies: | ||
# Both longhorn and minio are used for storage, longhorn seems to be more robust | ||
- name: hades | ||
version: "1.39.2-4b6e4e" | ||
repository: "oci://quay.io/ditto-external" | ||
condition: hades.enabled | ||
tags: | ||
- hades | ||
- name: hydra-consul | ||
- name: ditto-operator | ||
version: "0.1.0" | ||
repository: "oci://quay.io/ditto-external" | ||
condition: hydra-consul.enabled | ||
tags: | ||
- hydra-consul | ||
- name: hydra-store | ||
version: "1.39.2-4b6e4e" | ||
repository: "oci://quay.io/ditto-external" | ||
condition: hydra-store.enabled | ||
tags: | ||
- hydra-store | ||
- name: hydra-subscription | ||
version: "1.39.2-4b6e4e" | ||
repository: "oci://quay.io/ditto-external" | ||
condition: hydra-subscription.enabled | ||
# repository: "file://../../../ditto/charts/operator" | ||
condition: ditto-operator.enabled | ||
tags: | ||
- hydra-subscription | ||
- ditto-operator | ||
- name: service-token-validator | ||
version: "0.2.1" | ||
repository: "oci://quay.io/ditto-external" | ||
|
@@ -83,10 +66,10 @@ dependencies: | |
- kafka | ||
- name: dummy-auth-webhook | ||
repository: "oci://quay.io/ditto-external" | ||
condition: dummy-auth-webhook.enabled | ||
condition: big-peer-auth-webhook.enabled | ||
version: "0.1.1" | ||
tags: | ||
- dummy-auth-webhook | ||
- big-peer-auth-webhook | ||
- name: live-query-resource-controller | ||
alias: live-query | ||
repository: "oci://quay.io/ditto-external" | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ include "common.bigpeer" . }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{{- define "common.bigpeer" -}} | ||
{{- /* Generate big peer deployment config driven by ditto operator */ -}} | ||
{{- $fullname := include "common.names.fullname" . -}} | ||
{{- $values := index .Values "ditto-deployment" -}} | ||
{{- $storageClassName := default "local-path" $values.storage.storage_class_name -}} | ||
--- | ||
apiVersion: ditto.live/v1alpha1 | ||
kind: BigPeer | ||
metadata: | ||
name: {{ $values.name | default "big-peer" }} | ||
spec: | ||
version: {{ $values.version | default "1.40.3" }} | ||
image: | ||
namePrefix: {{ $values.image.namePrefix }} | ||
pullPolicy: {{ $values.image.pullPolicy | default "IfNotPresent" }} | ||
pullSecrets: {{ $values.image.pullSecrets | default "[]" }} | ||
network: | ||
hostname: {{ if (($values.network).hostname) }}{{ $values.network.hostname }}{{ else }}localhost{{ end }} | ||
auth: | ||
keys: | ||
ca: | ||
secretRef: | ||
name: {{ tpl $values.pki.device.secretName . }} | ||
certificate: tls.crt | ||
key: tls.key | ||
optional: true | ||
inBand: | ||
secretRef: | ||
name: {{ tpl $values.pki.inband.secretName . }} | ||
certificate: tls.crt | ||
key: tls.key | ||
optional: true | ||
jwt: | ||
secretRef: | ||
name: {{ tpl $values.pki.jwt.secretName . }} | ||
certificate: tls.crt | ||
key: tls.key | ||
optional: true | ||
providers: | ||
{{- toYaml $values.providers | nindent 6 }} | ||
api: | ||
image: {{ $values.image.namePrefix }}/big-peer-subscription:{{ $values.version }} | ||
imagePullPolicy: {{ $values.image.pullPolicy }} | ||
imagePullSecrets: [] | ||
resources: | ||
limits: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we expose these resource settings as values instead of hardcoding. |
||
cpu: 2000m | ||
memory: 4Gi | ||
requests: | ||
cpu: 100m | ||
memory: 256Mi | ||
storage: | ||
storage_class_name: {{ $storageClassName }} | ||
size: 10Gi | ||
replicas: 1 | ||
subscriptions: | ||
image: {{ $values.image.namePrefix }}/big-peer-subscription:{{ $values.version }} | ||
imagePullPolicy: {{ $values.image.pullPolicy }} | ||
imagePullSecrets: [] | ||
resources: | ||
limits: | ||
cpu: 2000m | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
memory: 4Gi | ||
requests: | ||
cpu: 100m | ||
memory: 256Mi | ||
storage: | ||
storage_class_name: {{ $storageClassName }} | ||
size: 10Gi | ||
replicas: 1 | ||
store: | ||
image: {{ $values.image.namePrefix }}/big-peer-store:{{ $values.version }} | ||
imagePullPolicy: {{ $values.image.pullPolicy }} | ||
imagePullSecrets: [] | ||
resources: | ||
limits: | ||
cpu: 2000m | ||
memory: 4Gi | ||
requests: | ||
cpu: 100m | ||
memory: 256Mi | ||
storage: | ||
storage_class_name: {{ $storageClassName }} | ||
size: 10Gi | ||
partitions: 2 | ||
replicas: 1 | ||
hashingScheme: ByDocumentId | ||
transactions: | ||
kafka: | ||
bootstrapHost: {{ $values.transactions.kafka.bootstrapHost }} | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
name: {{ $values.transactions.kafka.topic.name }} | ||
labels: | ||
strimzi.io/cluster: {{ tpl .Release.Name . }}-kafka | ||
spec: | ||
partitions: {{ $values.transactions.kafka.topic.partitions }} | ||
replicas: {{ $values.transactions.kafka.topic.replicas }} | ||
config: | ||
cleanup.policy: delete | ||
max.message.bytes: 104857600 | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StorageClass should be left blank by default, so that the cluster default is used.
local-path
will not be compatible with most clusters.