Skip to content
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 the pulsar_coordinator in the values #1165

Merged
merged 5 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ metadata:
{{- with .Values.bookkeeper.bookKeeperCluster.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
{{- if not .Values.initialize }}
initialized: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ metadata:
{{- with .Values.broker.pulsarBroker.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
{{- if not .Values.initialize }}
initialized: true
Expand Down
3 changes: 3 additions & 0 deletions charts/sn-platform-slim/templates/proxy/proxy-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ metadata:
{{- with .Values.proxy.pulsarProxy.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
brokerAddress: {{ template "pulsar.proxy.broker.service.address" . }}
replicas: {{ .Values.proxy.replicaCount }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
# Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved.
#
{{- if .Values.components.pulsar_coordinator }}
apiVersion: cloud.streamnative.io/v1alpha1
apiVersion: k8s.streamnative.io/v1alpha1
kind: PulsarCoordinator
metadata:
name: "{{ template "pulsar.fullname" . }}"
name: "{{ template "pulsar.fullname" . }}-coordinator"
namespace: {{ template "pulsar.namespace" . }}
annotations:
helm.sh/hook: pre-install,pre-upgrade
spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
{{- if .Values.placement.availability_policy }}
placement:
availabilityPolicy: {{ .Values.placement.availability_policy }}
{{- end }}
toolSet:
enabled: false
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ metadata:
{{- with .Values.zookeeper.zooKeeperCluster.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
replicas: {{ .Values.zookeeper.replicaCount }}
image: "{{ .Values.images.zookeeper.repository }}:{{ .Values.images.zookeeper.tag }}"
Expand Down
3 changes: 3 additions & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ components:
streamnative_console: true
# pulsar detector
pulsar_detector: true
# pulsar_coordinator is a new CRD from the sn-operator, make sure you already installed the sn-operator or
# upgrade from the pulsar-operator with the documentation of https://docs.streamnative.io/private/upgrade-from-pulsar-operators
pulsar_coordinator: false

## Monitoring Components
##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ metadata:
{{- with .Values.bookkeeper.bookKeeperCluster.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
{{- if not .Values.initialize }}
initialized: true
Expand Down
3 changes: 3 additions & 0 deletions charts/sn-platform/templates/broker/broker-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ metadata:
{{- with .Values.broker.pulsarBroker.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
{{- if not .Values.initialize }}
initialized: true
Expand Down
3 changes: 3 additions & 0 deletions charts/sn-platform/templates/proxy/proxy-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ metadata:
{{- with .Values.proxy.pulsarProxy.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
brokerAddress: {{ template "pulsar.proxy.broker.service.address" . }}
replicas: {{ .Values.proxy.replicaCount }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
# Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved.
#
{{- if .Values.components.pulsar_coordinator }}
apiVersion: cloud.streamnative.io/v1alpha1
apiVersion: k8s.streamnative.io/v1alpha1
kind: PulsarCoordinator
metadata:
name: "{{ template "pulsar.fullname" . }}"
name: "{{ template "pulsar.fullname" . }}-coordinator"
namespace: {{ template "pulsar.namespace" . }}
annotations:
helm.sh/hook: pre-install,pre-upgrade
spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
{{- if .Values.placement.availability_policy }}
placement:
availabilityPolicy: {{ .Values.placement.availability_policy }}
{{- end }}
toolSet:
enabled: false
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ metadata:
{{- with .Values.zookeeper.zooKeeperCluster.labels -}}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.components.pulsar_coordinator }}
k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator"
{{- end }}
spec:
replicas: {{ .Values.zookeeper.replicaCount }}
image: "{{ .Values.images.zookeeper.repository }}:{{ .Values.images.zookeeper.tag }}"
Expand Down
3 changes: 3 additions & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ components:
superset: false
# custom_metric_server
custom_metric_server: false
# pulsar_coordinator is a new CRD from the sn-operator, make sure you already installed the sn-operator or
# upgrade from the pulsar-operator with the documentation of https://docs.streamnative.io/private/upgrade-from-pulsar-operators
pulsar_coordinator: false

## Monitoring Components
##
Expand Down
Loading