pulsar-helm-chart icon indicating copy to clipboard operation
pulsar-helm-chart copied to clipboard

Updating existing pulsar helm setup results to an error

Open imunhatep opened this issue 5 years ago • 1 comments

Describe the bug Updating existing pulsar helm setup (e.g. changing replicas count) results to an error

To Reproduce

helm upgrade --install pulsar -n pulsar -f values.yaml apache/pulsar

Error: UPGRADE FAILED: cannot patch "pulsar-bookie-init" with kind Job: Job.batch "pulsar-bookie-init" is invalid: spec.template:
... : field is immutable

Expected behavior Pulsar setup is updated

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux

Additional context Probably Jobs should be handled with helm hooks i.e.:

apiVersion: batch/v1
kind: Job
metadata:
  name: example-job
  labels:
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
  annotations:
    helm.sh/hook: post-install
    helm.sh/hook-delete-policy: hook-succeeded
spec: ...

imunhatep avatar Sep 25 '20 14:09 imunhatep

Same story with pulsar-init job..

imunhatep avatar Sep 25 '20 14:09 imunhatep

Closing outdated issues.

lhotari avatar Feb 14 '24 18:02 lhotari