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

fix: pulsar create failed in huawei cloud #5623

Merged
merged 2 commits into from
Oct 25, 2023
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
7 changes: 7 additions & 0 deletions deploy/helm/templates/addons/pulsar-addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ spec:
version: {{ default .Chart.Version .Values.versionOverride }}
{{- end }}

installValues:
{{- $cloudProvider := (include "kubeblocks.cloudProvider" .) }}
{{- if eq $cloudProvider "huaweiCloud" }}
setValues:
- cloudProvider=huaweiCloud
{{- end }}

installable:
autoInstall: true

Expand Down
3 changes: 3 additions & 0 deletions deploy/pulsar/templates/pulsar-config-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ metadata:
data:
broker.conf: |-
{{- .Files.Get "config/broker-config.tpl" | nindent 4 }}
{{- if eq .Values.cloudProvider "huaweiCloud" }}
loadBalancerOverrideBrokerNicSpeedGbps=2
{{- end }}
---

apiVersion: v1
Expand Down
4 changes: 3 additions & 1 deletion deploy/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ metrics:
port: 1234


clusterDomain: ".cluster.local"
clusterDomain: ".cluster.local"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document known cloud provider enum names

cloudProvider: ""