Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: review motive-cache selector #59

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/motive-cache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A Helm chart for Kubernetes

type: application

version: 0.1.2
version: 0.1.3

appVersion: "1.0.0"
2 changes: 1 addition & 1 deletion charts/motive-cache/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# motive-cache

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
11 changes: 0 additions & 11 deletions charts/motive-cache/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ app.kubernetes.io/name: {{ include "motive-cache.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "motive-cache.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "motive-cache.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Common affinity definition
Pod affinity
Expand Down
4 changes: 2 additions & 2 deletions charts/motive-cache/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ spec:
protocol: TCP
targetPort: ctrl-metrics
selector:
varnish-component: varnish
statefulset.kubernetes.io/pod-name: {{ include "motive-cache.fullname" $ }}-varnish-{{ . }}
{{- include "motive-cache.selectorLabels" $ | nindent 4 }}
apps.kubernetes.io/pod-index: {{ . | quote }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/motive-cache/templates/varnish-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: VarnishCluster
metadata:
name: {{ include "motive-cache.fullname" . }}
labels:
{{- include "motive-cache.labels" . | nindent 4 }}
{{- include "motive-cache.selectorLabels" . | nindent 4 }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
Loading