Imunhatep opened a new issue #67:
URL: https://github.com/apache/pulsar-helm-chart/issues/67


   **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.:
   ```yaml
   apiVersion: batch/v1
   kind: Job
   metadata:
     name: example-job
     labels:
       release: {{ .Release.Name }}
       heritage: {{ .Release.Service }}
     annotations:
       helm.sh/hook: pre-install,pre-upgrade
       helm.sh/hook-delete-policy: hook-succeeded
   spec: ...
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to