Skip to content

Commit

Permalink
feat(rsshub): fix template error
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jan 8, 2024
1 parent ec28f7d commit 58c63b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/rsshub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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: 0.2.0
version: 0.2.1

# 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
Expand Down
12 changes: 12 additions & 0 deletions charts/rsshub/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,16 @@ Selector labels
{{- define "rsshub.puppeteer.selectorLabels" -}}
app.kubernetes.io/name: {{ include "rsshub.name" . }}-{{ .Values.puppeteer.name }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "rsshub.puppeteer.labels" -}}
helm.sh/chart: {{ include "rsshub.chart" . }}
{{ include "rsshub.puppeteer.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
3 changes: 1 addition & 2 deletions charts/rsshub/templates/puppeteer/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ kind: Service
metadata:
name: {{ include "rsshub.puppeteer.fullname" . }}
labels:
{{- include "rsshub.labels" . | nindent 4 }}
{{- include "rsshub.puppeteer.selectorLabels" . | nindent 4 }}
{{- include "rsshub.puppeteer.labels" . | nindent 4 }}
{{- with .Values.puppeteer.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down

0 comments on commit 58c63b3

Please sign in to comment.