Skip to content

Commit

Permalink
Merge pull request #59 from empathyco/chore/cache
Browse files Browse the repository at this point in the history
fix: review motive-cache selector
  • Loading branch information
jmsantorum authored May 28, 2024
2 parents f2a3c8e + a8b4ec6 commit f3984d1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
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

0 comments on commit f3984d1

Please sign in to comment.