You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/10/02 23:47:19 UTC
(pulsar-helm-chart) branch master updated: Remove Pulsar Manager support from the chart (#718)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new e5ebe7e Remove Pulsar Manager support from the chart (#718)
e5ebe7e is described below
commit e5ebe7eacc1e8f3247421b5f418155727c151ae9
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Fri Oct 2 18:47:13 2026 -0500
Remove Pulsar Manager support from the chart (#718)
Pulsar Manager is no longer maintained and isn't supported by this Helm chart.
Please see https://github.com/apache/pulsar-manager#apache-pulsar-manager-no-longer-maintained
and https://pulsar.apache.org/docs/administration-ui/ for replacements.
The Pulsar Helm chart supports Dekaf as a replacement.
Drop the component from the chart and fail fast with a migration message
when it is still enabled so that the removal is explicit instead of silently
dropping deployed resources.
Removed:
- the pulsar-manager StatefulSet, Services, ConfigMap, Ingress, admin Secret
and the pulsar-manager-init Job templates
- the `pulsar_manager` values section, `images.pulsar_manager`,
`components.pulsar_manager` and the `auth.superUsers.manager` role
- the Pulsar Manager CI job, values files and helm.sh test function
Added `pulsar-manager-removed-validation.yaml`, which fails the render when
`components.pulsar_manager` is truthy and points users at Dekaf, the supported
web UI in this chart.
README.md documents the removal under "Upgrading to Helm chart version 4.8.0",
including that the `components.pulsar_manager` key must be removed or set to
false before upgrading, and how to migrate to Dekaf.
---
.ci/chart_test.sh | 5 -
.ci/clusters/values-jwt-asymmetric.yaml | 5 -
.ci/clusters/values-jwt-generated.yaml | 5 -
.ci/clusters/values-jwt-symmetric.yaml | 5 -
.ci/clusters/values-openid.yaml | 2 -
.ci/clusters/values-pulsar-manager.yaml | 21 ---
.ci/clusters/values-standalone.yaml | 2 -
.ci/helm.sh | 59 -------
.ci/kustomization.yaml | 1 -
.ci/templates-all-values-patch1.yaml | 5 -
.ci/templates-all-values.yaml | 71 +-------
.ci/values-common.yaml | 3 +-
.github/workflows/pulsar-helm-chart-ci.yaml | 5 +-
README.md | 81 ++++++---
.../templates/pulsar-manager-admin-secret.yaml | 52 ------
.../pulsar-manager-cluster-initialize.yaml | 192 ---------------------
.../pulsar/templates/pulsar-manager-configmap.yaml | 44 -----
.../pulsar/templates/pulsar-manager-ingress.yaml | 68 --------
.../pulsar-manager-removed-validation.yaml | 28 +++
.../pulsar/templates/pulsar-manager-service.yaml | 78 ---------
.../templates/pulsar-manager-statefulset.yaml | 177 -------------------
charts/pulsar/values.yaml | 119 +------------
examples/README.md | 6 +-
examples/values-bookkeeper-aws.yaml | 2 -
examples/values-cs.yaml | 2 -
examples/values-init-containers.yaml | 2 -
examples/values-local-cluster.yaml | 3 +-
examples/values-minikube.yaml | 3 +-
examples/values-zookeeper-aws.yaml | 2 -
29 files changed, 93 insertions(+), 955 deletions(-)
diff --git a/.ci/chart_test.sh b/.ci/chart_test.sh
index 3cef385..002a2ad 100755
--- a/.ci/chart_test.sh
+++ b/.ci/chart_test.sh
@@ -108,10 +108,5 @@ if [[ "$(ci::helm_values_for_deployment | yq .components.functions)" == "true" ]
ci::test_pulsar_function
fi
-if [[ "$(ci::helm_values_for_deployment | yq .components.pulsar_manager)" == "true" ]]; then
- # test manager
- ci::test_pulsar_manager
-fi
-
# delete the cluster
ci::delete_cluster
diff --git a/.ci/clusters/values-jwt-asymmetric.yaml b/.ci/clusters/values-jwt-asymmetric.yaml
index 7ebe4d1..71d4f9e 100644
--- a/.ci/clusters/values-jwt-asymmetric.yaml
+++ b/.ci/clusters/values-jwt-asymmetric.yaml
@@ -36,9 +36,4 @@ auth:
proxy: "proxy-admin"
# pulsar-admin client to broker/proxy communication
client: "admin"
- # pulsar-manager to broker communication
- manager: "manager-admin"
-
-components:
- pulsar_manager: true
diff --git a/.ci/clusters/values-jwt-generated.yaml b/.ci/clusters/values-jwt-generated.yaml
index 9d29a10..d3bace3 100644
--- a/.ci/clusters/values-jwt-generated.yaml
+++ b/.ci/clusters/values-jwt-generated.yaml
@@ -38,9 +38,4 @@ auth:
proxy: "proxy-admin"
# pulsar-admin client to broker/proxy communication
client: "admin"
- # pulsar-manager to broker communication
- manager: "manager-admin"
-
-components:
- pulsar_manager: true
diff --git a/.ci/clusters/values-jwt-symmetric.yaml b/.ci/clusters/values-jwt-symmetric.yaml
index 014268a..5262e21 100644
--- a/.ci/clusters/values-jwt-symmetric.yaml
+++ b/.ci/clusters/values-jwt-symmetric.yaml
@@ -36,8 +36,3 @@ auth:
proxy: "proxy-admin"
# pulsar-admin client to broker/proxy communication
client: "admin"
- # pulsar manager to broker
- manager: "manager-admin"
-
-components:
- pulsar_manager: true
diff --git a/.ci/clusters/values-openid.yaml b/.ci/clusters/values-openid.yaml
index 5ba62c5..cbbfe7b 100644
--- a/.ci/clusters/values-openid.yaml
+++ b/.ci/clusters/values-openid.yaml
@@ -90,5 +90,3 @@ auth:
proxy: "proxy-admin"
# pulsar-admin client to broker/proxy communication
client: "admin"
- # pulsar manager to broker
- manager: "manager-admin"
diff --git a/.ci/clusters/values-pulsar-manager.yaml b/.ci/clusters/values-pulsar-manager.yaml
deleted file mode 100644
index 25271d4..0000000
--- a/.ci/clusters/values-pulsar-manager.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-components:
- pulsar_manager: true
\ No newline at end of file
diff --git a/.ci/clusters/values-standalone.yaml b/.ci/clusters/values-standalone.yaml
index f38bd08..7bf90de 100644
--- a/.ci/clusters/values-standalone.yaml
+++ b/.ci/clusters/values-standalone.yaml
@@ -39,6 +39,4 @@ auth:
proxy: "proxy-admin"
# pulsar-admin client to broker/proxy communication
client: "admin"
- # pulsar-manager to broker communication
- manager: "manager-admin"
diff --git a/.ci/helm.sh b/.ci/helm.sh
index 342f13c..851293a 100755
--- a/.ci/helm.sh
+++ b/.ci/helm.sh
@@ -462,65 +462,6 @@ function ci::test_pulsar_function() {
${KUBECTL} exec -n "${NAMESPACE}" "${CLUSTER}"-toolset-0 -- bin/pulsar-client consume -s test pulsar-ci/test/test_output
}
-function ci::test_pulsar_manager() {
- echo "Testing pulsar manager"
-
- until ${KUBECTL} get jobs -n "${NAMESPACE}" "${CLUSTER}"-pulsar-manager-init -o json | jq -r '.status.conditions[] | select (.type | test("Complete")).status' | grep True; do sleep 3; done
- ${KUBECTL} describe job -n "${NAMESPACE}" "${CLUSTER}"-pulsar-manager-init
- ${KUBECTL} logs -n "${NAMESPACE}" job.batch/"${CLUSTER}"-pulsar-manager-init
- ${KUBECTL} exec -n "${NAMESPACE}" "${CLUSTER}"-pulsar-manager-0 -- cat /pulsar-manager/pulsar-manager.log
- echo "Checking Podname"
- podname=$(${KUBECTL} get pods -n "${NAMESPACE}" -l component=pulsar-manager --no-headers -o custom-columns=":metadata.name")
- echo "Getting pulsar manager UI password"
- PASSWORD=$(${KUBECTL} get secret -n "${NAMESPACE}" -l component=pulsar-manager -o=jsonpath="{.items[0].data.UI_PASSWORD}" | base64 --decode)
-
- echo "Getting CSRF_TOKEN"
- CSRF_TOKEN=$(${KUBECTL} exec -n "${NAMESPACE}" "${podname}" -- curl http://127.0.0.1:7750/pulsar-manager/csrf-token)
-
- echo "Performing login"
- ${KUBECTL} exec -n "${NAMESPACE}" "${podname}" -- curl -X POST http://127.0.0.1:9527/pulsar-manager/login \
- -H 'Accept: application/json, text/plain, */*' \
- -H 'Content-Type: application/json' \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN" \
- -sS -D headers.txt \
- -d '{"username": "pulsar", "password": "'"${PASSWORD}"'"}'
- LOGIN_TOKEN=$(${KUBECTL} exec -n "${NAMESPACE}" "${podname}" -- grep "token:" headers.txt | sed 's/^.*: //')
- LOGIN_JSESSIONID=$(${KUBECTL} exec -n "${NAMESPACE}" "${podname}" -- grep -o "JSESSIONID=[a-zA-Z0-9_]*" headers.txt | sed 's/^.*=//')
-
- echo "Checking environment"
- envs=$(${KUBECTL} exec -n "${NAMESPACE}" "${podname}" -- curl -X GET http://127.0.0.1:9527/pulsar-manager/environments \
- -H 'Content-Type: application/json' \
- -H "token: $LOGIN_TOKEN" \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "username: pulsar" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN; JSESSIONID=$LOGIN_JSESSIONID;")
- echo "$envs"
- number_of_envs=$(echo "$envs" | jq '.total')
- if [ "$number_of_envs" -ne 1 ]; then
- echo "Error: Did not find expected environment"
- exit 1
- fi
-
- # Force manager to query broker for tenant info. This will require use of the manager's JWT, if JWT authentication is enabled.
- echo "Checking tenants"
- pulsar_env=$(echo "$envs" | jq -r '.data[0].name')
- tenants=$(${KUBECTL} exec -n "${NAMESPACE}" "${podname}" -- curl -X GET http://127.0.0.1:9527/pulsar-manager/admin/v2/tenants \
- -H 'Content-Type: application/json' \
- -H "token: $LOGIN_TOKEN" \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "username: pulsar" \
- -H "tenant: pulsar" \
- -H "environment: ${pulsar_env}" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN; JSESSIONID=$LOGIN_JSESSIONID;")
- echo "$tenants"
- number_of_tenants=$(echo "$tenants" | jq '.total')
- if [ "$number_of_tenants" -lt 1 ]; then
- echo "Error: Found no tenants!"
- exit 1
- fi
-}
-
function ci::check_loadbalancers() {
(
set +e
diff --git a/.ci/kustomization.yaml b/.ci/kustomization.yaml
index 1c4a7b9..e8a52a9 100644
--- a/.ci/kustomization.yaml
+++ b/.ci/kustomization.yaml
@@ -28,5 +28,4 @@ helmCharts:
victoria-metrics-k8s-stack:
enabled: false
components:
- pulsar_manager: true
zookeeper: true
\ No newline at end of file
diff --git a/.ci/templates-all-values-patch1.yaml b/.ci/templates-all-values-patch1.yaml
index 52e62c6..15508a7 100644
--- a/.ci/templates-all-values-patch1.yaml
+++ b/.ci/templates-all-values-patch1.yaml
@@ -199,9 +199,6 @@ certs:
# - JWT (symmetric) -> OpenID Connect (exercises the openid path in
# broker/proxy/standalone configmaps; jwt-secret-init.yaml renders
# nothing because JWT is fully off)
-# - drop manager superuser (exercises the `if .auth.superUsers.manager`
-# branches in pulsar-manager-cluster-initialize.yaml /
-# broker-configmap.yaml that omit the manager-token wiring)
# -----------------------------------------------------------------------------
auth:
authentication:
@@ -219,5 +216,3 @@ auth:
- pulsar
openIDRoleClaim: sub
openIDRequireIssuersUseHttps: "true"
- superUsers:
- manager: ""
diff --git a/.ci/templates-all-values.yaml b/.ci/templates-all-values.yaml
index e6aaaf2..5638e85 100644
--- a/.ci/templates-all-values.yaml
+++ b/.ci/templates-all-values.yaml
@@ -47,7 +47,7 @@
# -----------------------------------------------------------------------------
# Components -- enable every optional component
-# Exercises: pulsar-manager-*.yaml, dekaf-*.yaml, broker-rbac.yaml,
+# Exercises: dekaf-*.yaml, broker-rbac.yaml,
# broker-cluster-role-binding.yaml, jwt-secret-init.yaml
# -----------------------------------------------------------------------------
components:
@@ -59,7 +59,6 @@ components:
functions: true # exercises function RBAC / serviceaccount paths
proxy: true
toolset: true
- pulsar_manager: true # exercises pulsar-manager-*.yaml
dekaf: true # exercises dekaf-*.yaml
# -----------------------------------------------------------------------------
@@ -236,7 +235,6 @@ auth:
broker: "broker-admin"
proxy: "proxy-admin"
client: "admin"
- manager: "manager-admin"
# -----------------------------------------------------------------------------
# Job TTL -- exercises `if and .Values.job.ttl.enabled` in *-cluster-initialize
@@ -845,73 +843,6 @@ oxia:
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
-# -----------------------------------------------------------------------------
-# Pulsar Manager -- enabled with ingress + admin secret credentials
-# Exercises: pulsar-manager-statefulset.yaml, pulsar-manager-service.yaml,
-# pulsar-manager-ingress.yaml (TLS branch),
-# pulsar-manager-admin-secret.yaml,
-# pulsar-manager-cluster-initialize.yaml.
-# -----------------------------------------------------------------------------
-pulsar_manager:
- priorityClassName: high-priority-nonpreempting
- appAnnotations:
- deploy/owner: pulsar-team
- deploy/policy: rolling
- annotations:
- prometheus.io/scrape: "true"
- audit.k8s.io/log: "true"
- tolerations:
- - key: dedicated
- operator: Equal
- value: pulsar-manager
- effect: NoSchedule
- - key: arch
- operator: Equal
- value: amd64
- effect: NoSchedule
- topologySpreadConstraints:
- - maxSkew: 1
- topologyKey: topology.kubernetes.io/zone
- whenUnsatisfiable: DoNotSchedule
- - maxSkew: 1
- topologyKey: kubernetes.io/hostname
- whenUnsatisfiable: ScheduleAnyway
- extraVolumes:
- - name: extra-cm-pm-1
- configMap:
- name: extra-cm-1
- - name: extra-cm-pm-2
- configMap:
- name: extra-cm-2
- extraVolumeMounts:
- - name: extra-cm-pm-1
- mountPath: /extra/cm1
- readOnly: true
- - name: extra-cm-pm-2
- mountPath: /extra/cm2
- readOnly: true
- service:
- annotations:
- service.beta.kubernetes.io/aws-load-balancer-scheme: internal
- service.beta.kubernetes.io/aws-load-balancer-type: nlb
- ingress:
- enabled: true
- annotations:
- kubernetes.io/ingress.class: nginx
- cert-manager.io/cluster-issuer: ca-issuer
- ingressClassName: nginx
- tls:
- enabled: true
- secretName: pulsar-manager-ingress-tls
- hostname: pulsar-manager.example.com
- path: /
- pathType: Prefix
- admin:
- ui_username: pulsar
- ui_password: change-me # pragma: allowlist secret
- db_username: pulsar
- db_password: change-me-db # pragma: allowlist secret
-
# -----------------------------------------------------------------------------
# Dekaf UI -- enabled with persistence + multi-element extras
# Exercises: dekaf-deployment.yaml (extraContainers `range`),
diff --git a/.ci/values-common.yaml b/.ci/values-common.yaml
index 92eda2c..9b3b275 100644
--- a/.ci/values-common.yaml
+++ b/.ci/values-common.yaml
@@ -52,10 +52,9 @@ victoria-metrics-k8s-stack:
affinity:
anti_affinity: false
-# disable auto recovery and pulsar manager
+# disable auto recovery
components:
autorecovery: false
- pulsar_manager: false
# enable functions by default in CI
functions: true
diff --git a/.github/workflows/pulsar-helm-chart-ci.yaml b/.github/workflows/pulsar-helm-chart-ci.yaml
index 154233a..f5a1f8b 100644
--- a/.github/workflows/pulsar-helm-chart-ci.yaml
+++ b/.github/workflows/pulsar-helm-chart-ci.yaml
@@ -164,7 +164,7 @@ jobs:
fi
# render to a file so that validation can be retried without re-running helm
local rendered_manifests="$RUNNER_TEMP/kubeconform-input.yaml"
- helm template charts/pulsar --set victoria-metrics-k8s-stack.enabled=false --set components.pulsar_manager=true --kube-version $kube_version "$@" > "$rendered_manifests"
+ helm template charts/pulsar --set victoria-metrics-k8s-stack.enabled=false --kube-version $kube_version "$@" > "$rendered_manifests"
hack::kubeconform_with_retries -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' -strict -kubernetes-version $kube_version -summary "$rendered_manifests"
}
set -o pipefail
@@ -303,9 +303,6 @@ jobs:
- name: Dekaf
values_file: .ci/clusters/values-dekaf.yaml
shortname: dekaf
- - name: Pulsar Manager
- values_file: .ci/clusters/values-pulsar-manager.yaml
- shortname: pulsar-manager
- name: Oxia + FileSystemPackagesStorage
values_file: .ci/clusters/values-oxia.yaml
shortname: oxia
diff --git a/README.md b/README.md
index f12e77a..31964e3 100644
--- a/README.md
+++ b/README.md
@@ -135,8 +135,7 @@ This Helm Chart includes all the components of Apache Pulsar for a complete expe
- [x] Functions
- [x] Proxies
- [x] Management & monitoring components:
- - [x] Dekaf UI
- - [x] Pulsar Manager
+ - [x] Dekaf UI (the supported web UI; Pulsar Manager support was removed in 4.8.0)
- [x] Optional PodMonitors for each component (enabled by default)
- [x] [victoria-metrics-k8s-stack](hhttps://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-k8s-stack) (as of 4.0.0)
@@ -340,7 +339,10 @@ This is shown in some [examples/values-disable-monitoring.yaml](examples/values-
## Dekaf UI
-[Dekaf](https://github.com/visortelle/dekaf) is a new open-source UI for Apache Pulsar.
+[Dekaf](https://github.com/visortelle/dekaf) is an open-source UI for Apache Pulsar and the
+**supported web UI in this chart**. It is the recommended alternative for users migrating away
+from Pulsar Manager, whose support was
+[removed in chart version 4.8.0](#pulsar-manager-support-has-been-removed).
> :warning: At this moment Dekaf doesn't have built-in authentication. In order to prevent unwanted access, it relies on authentication on the Pulsar broker side.
> If your Pulsar instance stores sensitive data, make sure that:
@@ -362,28 +364,6 @@ kubectl port-forward svc/$(kubectl get svc -l component=dekaf -o jsonpath='{.ite
- Open <http://localhost:8090> in browser.
-## Pulsar Manager
-
-> :warning: Pulsar Manager has been poorly maintained for a long time. Consider the Dekaf UI instead.
-
-The Pulsar Manager can be deployed alongside the pulsar cluster instance.
-Depending on the given settings it uses an existing Secret within the given namespace or creates a new one, with random
-passwords for both, the UI and the internal database.
-
-To forward the UI use (assumes you did not change the namespace):
-
-```
-kubectl port-forward $(kubectl get pods -l component=pulsar-manager -o jsonpath='{.items[0].metadata.name}') 9527:9527
-```
-
-And then opening the browser to http://localhost:9527
-
-The default user is `pulsar` and you can find out the password with this command
-
-```
-kubectl get secret -l component=pulsar-manager -o=jsonpath="{.items[0].data.UI_PASSWORD}" | base64 --decode
-```
-
## Pulsar Functions package storage (required for Oxia)
The Pulsar **Packages Management Service** — which stores uploaded function packages
@@ -495,6 +475,57 @@ helm upgrade -n <namespace> -f values.yaml <pulsar-release-name> apachepulsar/pu
For more detailed information, see our [Upgrading](http://pulsar.apache.org/docs/helm-upgrade/) guide.
+## Upgrading to Helm chart version 4.8.0
+
+### Pulsar Manager support has been removed
+
+**Pulsar Manager support has been removed from this Helm chart.** The upstream
+[Apache Pulsar Manager](https://github.com/apache/pulsar-manager) project has been poorly maintained for a
+long time, so all of its chart resources (StatefulSet, Services, ConfigMap, Ingress, admin Secret and the
+`pulsar-manager-init` Job) are gone, together with the `pulsar_manager` values section, the
+`images.pulsar_manager` entry and the `auth.superUsers.manager` role.
+
+#### What you must change before upgrading
+
+The chart **fails fast** when the component is still enabled, so a `helm upgrade` with a leftover
+`components.pulsar_manager: true` aborts with:
+
+```
+ERROR: Pulsar Manager support has been removed from the Apache Pulsar Helm chart. ...
+```
+
+To allow the upgrade to proceed, remove the `components.pulsar_manager` key from your `values.yaml`
+(or set it to `false`):
+
+```yaml
+components:
+ # remove this key entirely, or set it to false
+ pulsar_manager: false
+```
+
+While you are at it, also drop these now-unused keys if you set them:
+
+- the whole `pulsar_manager:` section
+- `images.pulsar_manager`
+- `auth.superUsers.manager`
+
+The Pulsar Manager workloads and its `data` PersistentVolumeClaim are removed by the upgrade. If you want to
+keep the Pulsar Manager database contents, back up the PVC before upgrading.
+
+#### Migrating to Dekaf
+
+[Dekaf](https://github.com/visortelle/dekaf) is the supported web UI in this chart and the recommended
+replacement. Enable it with:
+
+```yaml
+components:
+ dekaf: true
+```
+
+See the [Dekaf UI](#dekaf-ui) section for details, including the security caveats. Pulsar's own
+[`pulsar-admin` CLI](https://pulsar.apache.org/docs/admin-api-overview/) — available from the `toolset`
+component — remains available for administration tasks as well.
+
## Upgrading to Helm chart version 4.6.0
### ZooKeeper and Broker Services split into ClusterIP + headless
diff --git a/charts/pulsar/templates/pulsar-manager-admin-secret.yaml b/charts/pulsar/templates/pulsar-manager-admin-secret.yaml
deleted file mode 100755
index 4c88352..0000000
--- a/charts/pulsar/templates/pulsar-manager-admin-secret.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-{{- if and .Values.components.pulsar_manager ( not .Values.pulsar_manager.admin.existingSecret ) }}
-apiVersion: v1
-kind: Secret
-metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
- namespace: {{ template "pulsar.namespace" . }}
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
- "helm.sh/resource-policy": "keep" # do not remove when uninstalling to keep it for next install
-type: Opaque
-data:
- {{/* https://itnext.io/manage-auto-generated-secrets-in-your-helm-charts-5aee48ba6918 */}}
- {{- $namespace := include "pulsar.namespace" . -}}
- {{- $fullname := include "pulsar.fullname" . -}}
- {{- $secretName := printf "%s-%s-secret" $fullname .Values.pulsar_manager.component -}}
- {{- $secretObj := lookup "v1" "Secret" $namespace $secretName | default dict }}
- {{- $secretData := (get $secretObj "data") | default dict }}
-
- {{- $ui_user := ((get $secretData "UI_USERNAME") | b64dec) | default (.Values.pulsar_manager.admin.ui_username) | default ("pulsar") | b64enc }}
- {{- $ui_password := ((get $secretData "UI_PASSWORD") | b64dec) | default (.Values.pulsar_manager.admin.ui_password) | default (randAlphaNum 32) | b64enc }}
- UI_USERNAME: {{ $ui_user | quote }}
- UI_PASSWORD: {{ $ui_password | quote }}
-
- {{- $db_user := ((get $secretData "DB_USERNAME") | b64dec) | default (.Values.pulsar_manager.admin.db_username) | default ("pulsar") | b64enc }}
- {{- $db_password := ((get $secretData "DB_PASSWORD") | b64dec) | default (.Values.pulsar_manager.admin.db_password) | default (randAlphaNum 32) | b64enc }}
- DB_USERNAME: {{ $db_user | quote }}
- DB_PASSWORD: {{ $db_password | quote }}
-
-{{- end }}
-
-
-
diff --git a/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml b/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
deleted file mode 100755
index c7eb4f6..0000000
--- a/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
+++ /dev/null
@@ -1,192 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-{{- if or (and .Values.useReleaseStatus .Release.IsInstall) .Values.initialize }}
-{{- if .Values.components.pulsar_manager }}
-apiVersion: batch/v1
-kind: Job
-metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-init"
- namespace: {{ template "pulsar.namespace" . }}
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}-init
- {{- with .Values.job.annotations }}
- annotations:
- {{- toYaml . | nindent 4 }}
- {{- end }}
-spec:
- {{- if and .Values.job.ttl.enabled (semverCompare ">=1.23-0" .Capabilities.KubeVersion.Version) }}
- ttlSecondsAfterFinished: {{ .Values.job.ttl.secondsAfterFinished | default 600 }}
- {{- end }}
- template:
- metadata:
- labels:
- {{- include "pulsar.template.labels" . | nindent 8 }}
- component: {{ .Values.pulsar_manager.component }}-init
- spec:
- {{- include "pulsar.imagePullSecrets" . | nindent 6 }}
- nodeSelector:
- {{- if .Values.pulsar_metadata.nodeSelector }}
-{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
- {{- end }}
- tolerations:
- {{- if .Values.pulsar_metadata.tolerations }}
-{{ toYaml .Values.pulsar_metadata.tolerations | indent 8 }}
- {{- end }}
- restartPolicy: OnFailure
- initContainers:
- - name: wait-pulsar-manager-ready
- image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
- imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
- resources: {{ toYaml .Values.initContainer.resources | nindent 12 }}
- command: [ "sh", "-c" ]
- args:
- - |
- ADMIN_URL={{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-admin:{{ .Values.pulsar_manager.adminService.port }}
- until $(curl -sS --fail -X GET http://${ADMIN_URL} > /dev/null 2>&1); do
- sleep 3;
- done;
- # This init container will wait for at least one broker to be ready before
- # initializing the pulsar-manager
- {{- if .Values.components.broker }}
- - name: wait-broker-ready
- image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
- imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
- resources: {{ toYaml .Values.initContainer.resources | nindent 12 }}
- command: [ "sh", "-c" ]
- args:
- - |
- set -e;
- brokerServiceNumber="$(nslookup -timeout=10 {{ template "pulsar.fullname" . }}-{{ .Values.broker.component }} | grep Name | wc -l)";
- until [ ${brokerServiceNumber} -ge 1 ]; do
- echo "pulsar cluster {{ template "pulsar.cluster.name" . }} isn't initialized yet ... check in 10 seconds ...";
- sleep 10;
- brokerServiceNumber="$(nslookup -timeout=10 {{ template "pulsar.fullname" . }}-{{ .Values.broker.component }} | grep Name | wc -l)";
- done;
- {{- end }}
- containers:
- - name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-init"
- image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
- imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
- {{- if .Values.pulsar_metadata.resources }}
- resources: {{ toYaml .Values.pulsar_metadata.resources | nindent 12 }}
- {{- end }}
- command: [ "sh", "-c" ]
- args:
- - |
- cd /tmp
- ADMIN_URL={{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-admin:{{ .Values.pulsar_manager.adminService.port }}
- CSRF_TOKEN=$(curl http://${ADMIN_URL}/pulsar-manager/csrf-token)
- UI_URL={{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}:{{ .Values.pulsar_manager.service.port }}
-
- {{/* check if account is already existing */}}
- LOGIN_REPLY=$(curl -v \
- -X POST http://${UI_URL}/pulsar-manager/login \
- -H 'Accept: application/json, text/plain, */*' \
- -H 'Content-Type: application/json' \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN" \
- -sS -D headers.txt \
- -d '{"username": "'${USERNAME}'", "password": "'${PASSWORD}'"}')
- echo "$LOGIN_REPLY"
-
- if [ -n "$(echo "$LOGIN_REPLY" | grep 'success')" ]; then
- echo "account already exists"
- else
- echo "creating account"
- {{/* set admin credentials */}}
- curl -v \
- -X PUT http://${ADMIN_URL}/pulsar-manager/users/superuser \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN;" \
- -H 'Content-Type: application/json' \
- -d '{"name": "'"${USERNAME}"'", "password": "'"${PASSWORD}"'", "description": "Helm-managed Admin Account", "email": "'"${USERNAME}"'@pulsar.org"}'
- {{/* login as admin */}}
- LOGIN_REPLY=$(curl -v \
- -X POST http://${UI_URL}/pulsar-manager/login \
- -H 'Accept: application/json, text/plain, */*' \
- -H 'Content-Type: application/json' \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN" \
- -sS -D headers.txt \
- -d '{"username": "'${USERNAME}'", "password": "'${PASSWORD}'"}')
- echo "$LOGIN_REPLY"
- fi
-
- {{- if .Values.components.broker }}
- LOGIN_TOKEN=$(grep "token:" headers.txt | sed 's/^.*: //')
- LOGIN_JSESSSIONID=$(grep -o "JSESSIONID=[a-zA-Z0-9_]*" headers.txt | sed 's/^.*=//')
-
- {{/* create environment */}}
- {{- if or (not .Values.tls.enabled) (not .Values.tls.broker.enabled) }}
- BROKER_URL="http://{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}:{{ .Values.broker.ports.http }}"
- {{- else }}
- BROKER_URL="https://{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}:{{ .Values.broker.ports.https }}"
- {{- end }}
- BOOKIE_URL="http://{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}:{{ .Values.bookkeeper.ports.http }}"
- echo '{ "name": "{{ template "pulsar.fullname" . }}", "broker": "'$BROKER_URL'", "bookie": "'$BOOKIE_URL'"}'
-
- ENVIRONMENT_REPLY=$(curl -v \
- -X PUT http://${UI_URL}/pulsar-manager/environments/environment \
- -H 'Content-Type: application/json' \
- -H "token: $LOGIN_TOKEN" \
- -H "X-XSRF-TOKEN: $CSRF_TOKEN" \
- -H "username: $USERNAME" \
- -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN; JSESSIONID=$LOGIN_JSESSSIONID;" \
- -d '{ "name": "{{ template "pulsar.fullname" . }}", "broker": "'$BROKER_URL'", "bookie": "'$BOOKIE_URL'"}')
- echo "$ENVIRONMENT_REPLY"
-
- if [ -n "$(echo "$ENVIRONMENT_REPLY" | grep -e 'success' -e 'exist')" ]; then
- echo "Successfully created / found existing environment"
- exit 0
- else
- echo "Error creating environment"
- exit 1
- fi
- {{- else }}
- if [ -n "$(echo "$LOGIN_REPLY" | grep 'success')" ]; then
- echo "Successfully created / found existing account"
- exit 0
- else
- echo "Error creating account"
- exit 1
- fi
- {{- end }}
- env:
- - name: USERNAME
- valueFrom:
- secretKeyRef:
- {{- if .Values.pulsar_manager.admin.existingSecret }}
- name: {{ .Values.pulsar_manager.admin.existingSecret | quote }}
- {{- else }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
- {{- end }}
- key: UI_USERNAME
- - name: PASSWORD
- valueFrom:
- secretKeyRef:
- {{- if .Values.pulsar_manager.admin.existingSecret }}
- name: {{ .Values.pulsar_manager.admin.existingSecret | quote }}
- {{- else }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
- {{- end }}
- key: UI_PASSWORD
-{{- end }}
-{{- end }}
diff --git a/charts/pulsar/templates/pulsar-manager-configmap.yaml b/charts/pulsar/templates/pulsar-manager-configmap.yaml
deleted file mode 100644
index e5ebef9..0000000
--- a/charts/pulsar/templates/pulsar-manager-configmap.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-{{- if .Values.components.pulsar_manager }}
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- namespace: {{ template "pulsar.namespace" . }}
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
-data:
- PULSAR_CLUSTER: {{ template "pulsar.fullname" . }}
- PULSAR_MANAGER_OPTS: "-Dlog4j2.formatMsgNoLookups=true"
- {{- if .Values.auth.authentication.enabled }}
- # auth
- {{- if .Values.auth.authentication.jwt.enabled }}
- {{- if .Values.auth.authentication.jwt.usingSecretKey }}
- SECRET_KEY: "file:///pulsar-manager/keys/token/secret.key"
- {{- else }}
- PRIVATE_KEY: "file:///pulsar-manager/keys/token/private.key"
- PUBLIC_KEY: "file:///pulsar-manager/keys/token/public.key"
- {{- end }}
- {{- end }}
- {{- end }}
-{{ toYaml .Values.pulsar_manager.configData | indent 2}}
-{{- end }}
diff --git a/charts/pulsar/templates/pulsar-manager-ingress.yaml b/charts/pulsar/templates/pulsar-manager-ingress.yaml
deleted file mode 100644
index 603a1d5..0000000
--- a/charts/pulsar/templates/pulsar-manager-ingress.yaml
+++ /dev/null
@@ -1,68 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-{{- if .Values.pulsar_manager.ingress.enabled }}
-{{- if semverCompare "<1.19-0" .Capabilities.KubeVersion.Version }}
-apiVersion: extensions/v1beta1
-{{- else }}
-apiVersion: networking.k8s.io/v1
-{{- end }}
-kind: Ingress
-metadata:
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
- annotations:
-{{- with .Values.pulsar_manager.ingress.annotations }}
-{{ toYaml . | indent 4 }}
-{{- end }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- namespace: {{ template "pulsar.namespace" . }}
-spec:
- {{- with .Values.pulsar_manager.ingress.ingressClassName }}
- ingressClassName: {{ . }}
- {{- end }}
-{{- if .Values.pulsar_manager.ingress.tls.enabled }}
- tls:
- - hosts:
- - {{ .Values.pulsar_manager.ingress.hostname }}
- {{- with .Values.pulsar_manager.ingress.tls.secretName }}
- secretName: {{ . }}
- {{- end }}
-{{- end }}
- rules:
- - http:
- paths:
- - path: {{ .Values.pulsar_manager.ingress.path }}
- {{- if semverCompare "<1.19-0" .Capabilities.KubeVersion.Version }}
- backend:
- serviceName: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- servicePort: {{ .Values.pulsar_manager.service.targetPort }}
- {{- else }}
- pathType: {{ .Values.pulsar_manager.ingress.pathType }}
- backend:
- service:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- port:
- number: {{ .Values.pulsar_manager.service.targetPort }}
- {{- end }}
- {{- if .Values.pulsar_manager.ingress.hostname }}
- host: {{ .Values.pulsar_manager.ingress.hostname }}
- {{- end }}
-{{- end }}
diff --git a/charts/pulsar/templates/pulsar-manager-removed-validation.yaml b/charts/pulsar/templates/pulsar-manager-removed-validation.yaml
new file mode 100644
index 0000000..3fd4492
--- /dev/null
+++ b/charts/pulsar/templates/pulsar-manager-removed-validation.yaml
@@ -0,0 +1,28 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+{{- /*
+Pulsar Manager support was removed from the chart. Fail fast when a user still enables the
+component so that the removal is explicit instead of silently dropping the deployed resources.
+
+This check lives in a rendered template (not a `_`-prefixed partial) so that the `fail` is executed.
+*/ -}}
+{{- if .Values.components.pulsar_manager }}
+{{- fail "ERROR: Pulsar Manager support has been removed from the Apache Pulsar Helm chart. Remove the `components.pulsar_manager` key from your values (or set it to false), together with the `pulsar_manager` section, `images.pulsar_manager` and `auth.superUsers.manager`, to continue. Dekaf is the supported alternative UI in this chart: set `components.dekaf: true`. See the 'Pulsar Manager support has been removed' section in README.md." }}
+{{- end }}
diff --git a/charts/pulsar/templates/pulsar-manager-service.yaml b/charts/pulsar/templates/pulsar-manager-service.yaml
deleted file mode 100644
index f663590..0000000
--- a/charts/pulsar/templates/pulsar-manager-service.yaml
+++ /dev/null
@@ -1,78 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-{{- if .Values.components.pulsar_manager }}
-apiVersion: v1
-kind: Service
-metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- namespace: {{ template "pulsar.namespace" . }}
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
-{{- with .Values.pulsar_manager.service.annotations }}
- annotations:
-{{ toYaml . | indent 4 }}
-{{- end }}
-spec:
- type: {{ .Values.pulsar_manager.service.type }}
- {{- if .Values.pulsar_manager.service.externalTrafficPolicy }}
- externalTrafficPolicy: {{ .Values.pulsar_manager.service.externalTrafficPolicy }}
- {{- end }}
- {{- with .Values.pulsar_manager.service.loadBalancerClass }}
- loadBalancerClass: {{ . }}
- {{- end }}
- {{- if .Values.pulsar_manager.service.loadBalancerSourceRanges }}
- loadBalancerSourceRanges: {{ toYaml .Values.pulsar_manager.service.loadBalancerSourceRanges | nindent 4 }}
- {{- end }}
- ports:
- - name: server
- port: {{ .Values.pulsar_manager.service.port }}
- targetPort: {{ .Values.pulsar_manager.service.targetPort }}
- protocol: TCP
- selector:
- {{- include "pulsar.matchLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-admin"
- namespace: {{ template "pulsar.namespace" . }}
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
-{{- with .Values.pulsar_manager.adminService.annotations }}
- annotations:
-{{ toYaml . | indent 4 }}
-{{- end }}
-spec:
- type: {{ .Values.pulsar_manager.adminService.type }}
- ports:
- - port: {{ .Values.pulsar_manager.adminService.port }}
- targetPort: {{ .Values.pulsar_manager.adminService.targetPort }}
- protocol: TCP
- selector:
- {{- include "pulsar.matchLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
-
-{{- end }}
-
diff --git a/charts/pulsar/templates/pulsar-manager-statefulset.yaml b/charts/pulsar/templates/pulsar-manager-statefulset.yaml
deleted file mode 100755
index 5dfd06e..0000000
--- a/charts/pulsar/templates/pulsar-manager-statefulset.yaml
+++ /dev/null
@@ -1,177 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-{{- if .Values.components.pulsar_manager }}
-apiVersion: apps/v1
-kind: StatefulSet
-metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- namespace: {{ template "pulsar.namespace" . }}
- annotations: {{ .Values.pulsar_manager.appAnnotations | toYaml | nindent 4 }}
- labels:
- {{- include "pulsar.standardLabels" . | nindent 4 }}
- component: {{ .Values.pulsar_manager.component }}
-spec:
- serviceName: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- replicas: 1
- selector:
- matchLabels:
- {{- include "pulsar.matchLabels" . | nindent 6 }}
- component: {{ .Values.pulsar_manager.component }}
- template:
- metadata:
- labels:
- {{- include "pulsar.template.labels" . | nindent 8 }}
- component: {{ .Values.pulsar_manager.component }}
- annotations:
- {{- if .Values.pulsar_manager.restartPodsOnConfigMapChange }}
- checksum/config: {{ include (print $.Template.BasePath "/pulsar-manager-configmap.yaml") . | sha256sum }}
- {{- end }}
-{{- with .Values.pulsar_manager.annotations }}
-{{ toYaml . | indent 8 }}
-{{- end }}
- spec:
- {{- if .Values.pulsar_manager.nodeSelector }}
- nodeSelector:
-{{ toYaml .Values.pulsar_manager.nodeSelector | indent 8 }}
- {{- end }}
- {{- if .Values.pulsar_manager.priorityClassName }}
- priorityClassName: {{ .Values.pulsar_manager.priorityClassName }}
- {{- end }}
- {{- if .Values.pulsar_manager.tolerations }}
- tolerations:
-{{ toYaml .Values.pulsar_manager.tolerations | indent 8 }}
- {{- end }}
- {{- if .Values.pulsar_manager.topologySpreadConstraints }}
- topologySpreadConstraints:
- {{- toYaml .Values.pulsar_manager.topologySpreadConstraints | nindent 8 }}
- {{- end }}
- terminationGracePeriodSeconds: {{ .Values.pulsar_manager.gracePeriod }}
- {{- if .Values.pulsar_manager.initContainers }}
- initContainers:
- {{- toYaml .Values.pulsar_manager.initContainers | nindent 6 }}
- {{- end }}
- containers:
- - name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- image: "{{ .Values.images.pulsar_manager.repository }}:{{ .Values.images.pulsar_manager.tag }}"
- imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.images.pulsar_manager "root" .) }}"
- {{- if .Values.pulsar_manager.resources }}
- resources:
-{{ toYaml .Values.pulsar_manager.resources | indent 12 }}
- {{- end }}
- ports:
- - containerPort: {{ .Values.pulsar_manager.service.targetPort }}
- - containerPort: {{ .Values.pulsar_manager.adminService.targetPort }}
- volumeMounts:
- - name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-{{ .Values.pulsar_manager.volumes.data.name }}"
- mountPath: /data
- {{- if .Values.pulsar_manager.extraVolumeMounts }}
-{{ toYaml .Values.pulsar_manager.extraVolumeMounts | indent 10 }}
- {{- end }}
- {{- if .Values.auth.authentication.enabled }}
- {{- if .Values.auth.authentication.jwt.enabled }}
- - name: pulsar-manager-keys
- mountPath: /pulsar-manager/keys
- {{- end }}
- {{- end }}
- envFrom:
- - configMapRef:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
- env:
- - name: USERNAME
- valueFrom:
- secretKeyRef:
- {{- if .Values.pulsar_manager.admin.existingSecret }}
- name: {{ .Values.pulsar_manager.admin.existingSecret | quote }}
- {{- else }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
- {{- end }}
- key: DB_USERNAME
- - name: PASSWORD
- valueFrom:
- secretKeyRef:
- {{- if .Values.pulsar_manager.admin.existingSecret }}
- name: {{ .Values.pulsar_manager.admin.existingSecret | quote }}
- {{- else }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
- {{- end }}
- key: DB_PASSWORD
- {{- if .Values.auth.authentication.enabled }}
- {{- if .Values.auth.authentication.jwt.enabled }}
- {{- if .Values.auth.superUsers.manager }}
- - name: JWT_TOKEN
- valueFrom:
- secretKeyRef:
- key: TOKEN
- name: "{{ .Release.Name }}-token-{{ .Values.auth.superUsers.manager }}"
- {{- end }}
- {{- end }}
- {{- end }}
- {{- include "pulsar.imagePullSecrets" . | nindent 6}}
- volumes:
- {{- if .Values.pulsar_manager.extraVolumes }}
-{{ toYaml .Values.pulsar_manager.extraVolumes | indent 8 }}
- {{- end }}
- {{- if .Values.auth.authentication.enabled }}
- {{- if .Values.auth.authentication.jwt.enabled }}
- - name: pulsar-manager-keys
- secret:
- defaultMode: 420
- {{- if .Values.auth.authentication.jwt.usingSecretKey }}
- secretName: "{{ .Release.Name }}-token-symmetric-key"
- {{- else }}
- secretName: "{{ .Release.Name }}-token-asymmetric-key"
- {{- end }}
- items:
- {{- if .Values.auth.authentication.jwt.usingSecretKey }}
- - key: SECRETKEY
- path: token/secret.key
- {{- else }}
- - key: PRIVATEKEY
- path: token/private.key
- - key: PUBLICKEY
- path: token/public.key
- {{- end }}
- {{- end }}
- {{- end }}
- {{- if not (and (and .Values.persistence .Values.volumes.persistence) .Values.pulsar_manager.volumes.persistence) }}
- - name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-{{ .Values.pulsar_manager.volumes.data.name }}"
- emptyDir: {}
- {{- end }}
-{{- if and (and .Values.persistence .Values.volumes.persistence) .Values.pulsar_manager.volumes.persistence }}
- volumeClaimTemplates:
- - metadata:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-{{ .Values.pulsar_manager.volumes.data.name }}"
- spec:
- accessModes: [ "ReadWriteOnce" ]
- resources:
- requests:
- storage: {{ .Values.pulsar_manager.volumes.data.size }}
- {{- if .Values.pulsar_manager.volumes.data.storageClassName }}
- storageClassName: "{{ .Values.pulsar_manager.volumes.data.storageClassName }}"
- {{- else if and .Values.volumes.local_storage .Values.pulsar_manager.volumes.data.local_storage }}
- storageClassName: "local-storage"
- {{- end }}
- {{- with .Values.pulsar_manager.volumes.data.selector }}
- selector:
- {{- toYaml . | nindent 8 }}
- {{- end }}
-{{- end }}
-
-{{- end }}
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index 7b3c24b..4d1c2d8 100755
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -146,8 +146,6 @@ components:
proxy: true
# toolset
toolset: true
- # pulsar manager
- pulsar_manager: false
# dekaf UI
dekaf: false
@@ -226,12 +224,6 @@ images:
tag:
# uses defaultPullPolicy when unspecified
pullPolicy:
- pulsar_manager:
- repository: apachepulsar/pulsar-manager
- tag: v0.4.0
- # uses defaultPullPolicy when unspecified
- pullPolicy:
- hasCommand: false
dekaf:
repository: visortelle/dekaf
tag: 1.1.0
@@ -435,7 +427,7 @@ auth:
# Annotations added to the signing key secret (asymmetric-key or symmetric-key)
key: {}
# Per-role annotations for token secrets. Map of auth.superUsers role key to annotation map
- # (for example: broker, proxy, client, manager).
+ # (for example: broker, proxy, client).
# Example:
# client:
# reflector.v1.k8s.emberstack.com/reflection-allowed: "true"
@@ -467,8 +459,6 @@ auth:
proxy: "proxy-admin"
# pulsar-admin client to broker/proxy communication
client: "admin"
- # pulsar-manager to broker communication. If left empty, no jwt setup will be performed in the manager
- manager: ""
# omits the above proxy role from superusers on the proxy
# and configures it as a proxy role on the broker in addition to the superusers
useProxyRoles: true
@@ -2249,112 +2239,6 @@ victoria-metrics-k8s-stack:
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecureSkipVerify: true # For development environments like minikube
-## Pulsar Manager has been poorly maintained for a long time. Consider the Dekaf UI instead.
-## Components Stack: pulsar_manager
-## templates/pulsar-manager.yaml
-##
-pulsar_manager:
- component: pulsar-manager
- replicaCount: 1
- initContainers: []
- # True includes annotation for statefulset that contains hash of corresponding configmap, which will cause pods to restart on configmap change
- restartPodsOnConfigMapChange: false
- # nodeSelector:
- # cloud.google.com/gke-nodepool: default-pool
- # priorityClassName: high-priority-nonpreempting
- # set topologySpreadConstraint to deploy pods across different zones
- topologySpreadConstraints: []
- # annotations for the app (statefulset/deployment)
- appAnnotations: {}
- annotations: {}
- tolerations: []
- extraVolumes: []
- extraVolumeMounts: []
- gracePeriod: 30
- resources:
- requests:
- memory: 250Mi
- cpu: 0.1
- configData:
- REDIRECT_HOST: "http://127.0.0.1"
- REDIRECT_PORT: "9527"
- LOG_LEVEL: "INFO"
- # DB
- URL: "jdbc:postgresql://127.0.0.1:5432/pulsar_manager"
- DRIVER_CLASS_NAME: "org.postgresql.Driver"
- # enables the "message peeking" feature
- PULSAR_PEEK_MESSAGE: "true"
- volumes:
- # use a persistent volume or emptyDir
- persistence: true
- data:
- name: data
- size: 128Mi
- local_storage: true
- ## If you already have an existent storage class and want to reuse it, you can specify its name with the option below
- ##
- # storageClassName: existent-storage-class,
- ## If you want to bind static persistent volumes via selectors, e.g.:
- # selector:
- # matchLabels:
- # app: pulsar-bookkeeper-journal
- selector: {}
- ## Pulsar manager service
- ## templates/pulsar-manager-service.yaml
- ##
- service:
- type: ClusterIP
- port: 9527
- targetPort: 9527
- annotations: {}
- ## Set external traffic policy to: "Local" to preserve source IP on providers supporting it.
- ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
- # externalTrafficPolicy: Local
- ## Restrict traffic through the load balancer to specified IPs on providers supporting it.
- # loadBalancerSourceRanges:
- # - 10.0.0.0/8
- # Set a loadBalancerClass for loadbalancer service. (example: loadBalancerClass is needed by metallb)
- # loadBalancerClass: ""
- adminService:
- type: ClusterIP
- port: 7750
- targetPort: 7750
- annotations: {}
- ## Pulsar manager ingress
- ## templates/pulsar-manager-ingress.yaml
- ##
- ingress:
- enabled: false
- annotations: {}
- ingressClassName: ""
- tls:
- enabled: false
-
- ## Optional. Leave it blank if your Ingress Controller can provide a default certificate.
- secretName: ""
-
- hostname: ""
- path: "/"
- pathType: ImplementationSpecific
-
- ## On first install, the helm chart tries to reuse an existing secret with matching name by default
- ## if this should fail it uses the given username and password to create a new secret
- ## if either are missing the default value of "pulsar" is used for the username or a random password is generated
- ## And decode any key by using:
- ## kubectl get secret -l component=pulsar-manager -o=jsonpath="{.items[0].data.UI_PASSWORD}" | base64 --decode
- admin:
- ## Setting a value at existingSecret disables automatic creation of the secret for pulsar_manager admin credentials and instead uses an existing secret to initialize pulsar-manager
- ## The existing secret should have the following keys:
- ## DB_PASSWORD: <database password>
- ## DB_USERNAME: <database username>
- ## UI_PASSWORD: <UI password>
- ## UI_USERNAME: <UI username>
- existingSecret: ""
- ui_username: "pulsar"
- ui_password: "" # leave empty for random password
- db_username: "pulsar"
- db_password: "" # leave empty for random password
-
# Dekaf is an open-source web-based UI for Apache Pulsar https://pulsar.apache.org/docs/next/administration-dekaf-ui/
dekaf:
component: dekaf
@@ -2404,7 +2288,6 @@ dekaf:
# These are jobs where job ttl configuration is used / annotations are applied
# pulsar-helm-chart/charts/pulsar/templates/pulsar-cluster-initialize.yaml
# pulsar-helm-chart/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
-# pulsar-helm-chart/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
job:
annotations: {}
ttl:
diff --git a/examples/README.md b/examples/README.md
index 59a8fa0..9440e06 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -117,9 +117,9 @@ cluster is shut down — use it only for ephemeral testing/CI.
## A note on the management UI
These examples use [Dekaf](https://pulsar.apache.org/docs/next/administration-dekaf-ui/)
-(`components.dekaf: true`) as the web UI rather than the legacy
-`pulsar-manager`. Dekaf connects directly to the broker, so it is only enabled
-in examples that deploy a broker.
+(`components.dekaf: true`) as the web UI. Dekaf connects directly to the broker,
+so it is only enabled in examples that deploy a broker. The legacy
+`pulsar-manager` component has been removed from this chart.
## Examples by category
diff --git a/examples/values-bookkeeper-aws.yaml b/examples/values-bookkeeper-aws.yaml
index 17a3807..a0135e4 100644
--- a/examples/values-bookkeeper-aws.yaml
+++ b/examples/values-bookkeeper-aws.yaml
@@ -33,8 +33,6 @@ components:
proxy: true
# toolset
toolset: false
- # pulsar manager
- pulsar_manager: false
## disable monitoring stack
victoria-metrics-k8s-stack:
diff --git a/examples/values-cs.yaml b/examples/values-cs.yaml
index 9a21563..a010a84 100644
--- a/examples/values-cs.yaml
+++ b/examples/values-cs.yaml
@@ -33,8 +33,6 @@ components:
proxy: false
# toolset
toolset: false
- # pulsar manager
- pulsar_manager: false
## disable monitoring stack
victoria-metrics-k8s-stack:
diff --git a/examples/values-init-containers.yaml b/examples/values-init-containers.yaml
index 46f0919..511d9a5 100644
--- a/examples/values-init-containers.yaml
+++ b/examples/values-init-containers.yaml
@@ -33,8 +33,6 @@ components:
proxy: true
# toolset
toolset: true
- # pulsar manager (replaced by the Dekaf UI)
- pulsar_manager: false
# dekaf UI
dekaf: true
diff --git a/examples/values-local-cluster.yaml b/examples/values-local-cluster.yaml
index 669beef..8edec87 100644
--- a/examples/values-local-cluster.yaml
+++ b/examples/values-local-cluster.yaml
@@ -23,9 +23,8 @@ pulsar_metadata:
configurationStore: pulsar-cs-zookeeper
configurationStoreMetadataPrefix: "/configuration-store"
-## use the Dekaf UI instead of pulsar-manager
+## enable the Dekaf UI
components:
- pulsar_manager: false
dekaf: true
## disable monitoring stack
diff --git a/examples/values-minikube.yaml b/examples/values-minikube.yaml
index 4c8ab8e..59ed555 100644
--- a/examples/values-minikube.yaml
+++ b/examples/values-minikube.yaml
@@ -24,8 +24,7 @@ affinity:
# disable auto recovery
components:
autorecovery: false
- # use the Dekaf UI instead of pulsar-manager
- pulsar_manager: false
+ # Dekaf UI
dekaf: true
zookeeper:
diff --git a/examples/values-zookeeper-aws.yaml b/examples/values-zookeeper-aws.yaml
index 7635758..c0ca2fe 100644
--- a/examples/values-zookeeper-aws.yaml
+++ b/examples/values-zookeeper-aws.yaml
@@ -33,8 +33,6 @@ components:
proxy: false
# toolset
toolset: false
- # pulsar manager
- pulsar_manager: false
## disable monitoring stack
victoria-metrics-k8s-stack: