Skip to content

Commit

Permalink
Minor helm chart fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Mar 6, 2024
1 parent dbda028 commit ef30750
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ the `RestateCluster` spec.

## Releasing

1. Update the app version in charts/restate-operator/Chart.yaml and the version in Cargo.{toml,lock} eg to `0.0.2`
1. Update the version in charts/restate-operator/Chart.yaml and the version in Cargo.{toml,lock} eg to `0.0.2`
2. Push a new tag `v0.0.2`
3. Accept the draft release once the workflow finishes
1 change: 0 additions & 1 deletion charts/restate-operator-helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ name: restate-operator-helm
description: An operator for Restate clusters
type: application
version: "0.3.2"
appVersion: "0.3.2"
4 changes: 2 additions & 2 deletions charts/restate-operator-helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
{{- define "controller.labels" -}}
{{- include "controller.selectorLabels" . }}
app.kubernetes.io/name: {{ include "controller.name" . }}
app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
app.kubernetes.io/version: {{ .Values.version | default .Chart.Version | quote }}
{{- end }}

{{- define "controller.selectorLabels" -}}
app: {{ include "controller.name" . }}
{{- end }}

{{- define "controller.tag" -}}
{{- .Values.version | default .Chart.AppVersion }}
{{- .Values.version | default .Chart.Version }}
{{- end }}
3 changes: 0 additions & 3 deletions charts/restate-operator-helm/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ spec:
selector:
matchLabels:
{{- include "controller.selectorLabels" . | nindent 6 }}
namespaceSelector:
matchNames:
- {{ .Values.namespace }}
{{- with .Values.serviceMonitor.targetLabels }}
targetLabels:
{{- toYaml . | nindent 4 }}
Expand Down

0 comments on commit ef30750

Please sign in to comment.