Skip to content

Commit

Permalink
chore: upgrade the chart to 0.4.6 (#183)
Browse files Browse the repository at this point in the history
* chore: upgrade the chart to 0.4.6

Signed-off-by: ericsyh <[email protected]>

* fix lint

Signed-off-by: ericsyh <[email protected]>

---------

Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh authored Jan 22, 2024
1 parent 16438ed commit 24d1187
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/pulsar-resources-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: v0.4.5
version: v0.4.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.4.5"
appVersion: "v0.4.6"

# This is a semver range of compatible Kubernetes versions. Helm will validate the version
# constraints when installing the chart and fail if the cluster runs an unsupported Kubernetes version
Expand Down
5 changes: 5 additions & 0 deletions charts/pulsar-resources-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ spec:
- --leader-elect
command:
- /manager
{{- if .Values.features.alwaysUpdatePulsarResource }}
env:
- name: ALWAYS_UPDATE_PULSAR_RESOURCE
value: "true"
{{- end }}
name: manager
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
Expand Down
6 changes: 3 additions & 3 deletions charts/pulsar-resources-operator/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tests:
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.14.4
- equal:
path: spec.template.spec.containers[1].image
value: docker.streamnative.io/streamnative/operators/pulsar-resources-operator:v0.4.5
value: docker.streamnative.io/streamnative/operators/pulsar-resources-operator:v0.4.6
- equal:
path: spec.template.spec.containers[1].imagePullPolicy
value: IfNotPresent
Expand All @@ -57,11 +57,11 @@ tests:

- it: should update the image version successfully
set:
image.manager.tag: v0.4.5
image.manager.tag: v0.4.6
asserts:
- equal:
path: spec.template.spec.containers[1].image
value: docker.streamnative.io/streamnative/operators/pulsar-resources-operator:v0.4.5
value: docker.streamnative.io/streamnative/operators/pulsar-resources-operator:v0.4.6

- it: should update the replicas successfully
set:
Expand Down
4 changes: 4 additions & 0 deletions charts/pulsar-resources-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ imagePullSecrets: []
# If you want to specify secrets, follow this format
# - name: test

features:
# Enable to force always sync k8s resource status to pulsar.
alwaysUpdatePulsarResource: false

# -- It will override the value of label `app.kubernetes.io/name` on pod
nameOverride: ""

Expand Down

0 comments on commit 24d1187

Please sign in to comment.