diff --git a/.ci/clusters/values-prometheus-grafana.yaml b/.ci/clusters/values-prometheus-grafana.yaml index b442662..c7fd6db 100644 --- a/.ci/clusters/values-prometheus-grafana.yaml +++ b/.ci/clusters/values-prometheus-grafana.yaml @@ -27,4 +27,32 @@ kube-prometheus-stack: alertmanager: enabled: false prometheus-node-exporter: - enabled: true \ No newline at end of file + enabled: true + +zookeeper: + podMonitor: + enabled: true + +bookkeeper: + podMonitor: + enabled: true + +broker: + podMonitor: + enabled: true + +autorecovery: + podMonitor: + enabled: true + +proxy: + podMonitor: + enabled: true + +oxia: + coordinator: + podMonitor: + enabled: true + server: + podMonitor: + enabled: true diff --git a/.github/workflows/pulsar-helm-chart-ci.yaml b/.github/workflows/pulsar-helm-chart-ci.yaml index f4cff1c..7bbb2b1 100644 --- a/.github/workflows/pulsar-helm-chart-ci.yaml +++ b/.github/workflows/pulsar-helm-chart-ci.yaml @@ -127,7 +127,7 @@ jobs: --validate-maintainers=false \ --target-branch ${{ github.event.repository.default_branch }} - - name: Run kubeconform check for helm template with every major k8s version 1.23.0-1.30.0 + - name: Run kubeconform check for helm template with every major k8s version 1.23.0-1.32.0 if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | PULSAR_CHART_HOME=$(pwd) @@ -151,11 +151,14 @@ jobs: kubeconform -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' -strict -kubernetes-version $kube_version -summary } set -o pipefail - for k8s_version_part in {23..30}; do + for k8s_version_part in {23..32}; do k8s_version="1.${k8s_version_part}.0" + echo "Validating default values with k8s version $k8s_version" validate_helm_template_with_k8s_version $k8s_version - echo "Validating with Oxia enabled" - validate_helm_template_with_k8s_version $k8s_version --set components.zookeeper=false --set components.oxia=true + for config in .ci/clusters/*.yaml; do + echo "Validating $config with k8s version $k8s_version" + validate_helm_template_with_k8s_version $k8s_version --values .ci/values-common.yaml --values $config + done done - name: Validate kustomize yaml for extra new lines in pulsar-init commands diff --git a/README.md b/README.md index 0f655b2..12b29db 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,20 @@ helm upgrade -f pulsar.yaml \ For more detailed information, see our [Upgrading](http://pulsar.apache.org/docs/helm-upgrade/) guide. +## Upgrading from Helm Chart version 3.x.x to 4.0.0 version and above + +The kube-prometheus-stack version has been upgraded to 69.x.x in Pulsar Helm Chart version 4.0.0 . +Before running "helm upgrade", you should first upgrade the Prometheus Operator CRDs as [instructed +in kube-prometheus-stack upgrade notes](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#from-68x-to-69x). + +There's a script to run the required commands: + +```shell +./scripts/kube-prometheus-stack/upgrade_prometheus_operator_crds.sh 0.80.0 +``` + +After, this you can proceed with `helm upgrade`. + ## Upgrading from Helm Chart version 3.0.0-3.6.0 to 3.7.0 version and above The kube-prometheus-stack version has been upgraded to 65.x.x in Pulsar Helm Chart version 3.7.0 . diff --git a/charts/pulsar/Chart.yaml b/charts/pulsar/Chart.yaml index 79a6ca0..9d96741 100644 --- a/charts/pulsar/Chart.yaml +++ b/charts/pulsar/Chart.yaml @@ -21,7 +21,7 @@ apiVersion: v2 appVersion: "4.0.3" description: Apache Pulsar Helm chart for Kubernetes name: pulsar -version: 3.9.0 +version: 4.0.0 kubeVersion: ">=1.23.0-0" home: https://pulsar.apache.org sources: @@ -33,6 +33,6 @@ maintainers: email: dev@pulsar.apache.org dependencies: - name: kube-prometheus-stack - version: 65.x.x + version: 67.x.x repository: https://prometheus-community.github.io/helm-charts condition: kube-prometheus-stack.enabled diff --git a/scripts/kube-prometheus-stack/upgrade_prometheus_operator_crds.sh b/scripts/kube-prometheus-stack/upgrade_prometheus_operator_crds.sh index ebf4ae3..de3c4f3 100755 --- a/scripts/kube-prometheus-stack/upgrade_prometheus_operator_crds.sh +++ b/scripts/kube-prometheus-stack/upgrade_prometheus_operator_crds.sh @@ -21,7 +21,7 @@ # This script is used to upgrade the Prometheus Operator CRDs before running "helm upgrade" # source: https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#upgrading-an-existing-release-to-a-new-major-version # "Run these commands to update the CRDs before applying the upgrade." -PROMETHEUS_OPERATOR_VERSION="${1:-"0.77.1"}" +PROMETHEUS_OPERATOR_VERSION="${1:-"0.80.0"}" PREFIX_URL="https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v${PROMETHEUS_OPERATOR_VERSION}/example/prometheus-operator-crd" for crd in alertmanagerconfigs alertmanagers podmonitors probes prometheusagents prometheuses prometheusrules scrapeconfigs servicemonitors thanosrulers; do # "--force-conflicts" is required to upgrade the CRDs. Following instructions from https://github.com/prometheus-community/helm-charts/issues/2489