Skip to content
Snippets Groups Projects
Commit 545f68b7 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add endpointslice template

parent 5450b67f
No related branches found
No related tags found
{{- define "common.endpointslice" -}}
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: {{ .Values.name }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- with .Values.serviceName }}
kubernetes.io/service-name: {{ . }}
{{- end }}
{{- include "common.variables.labels" . | nindent 4 }}
addressType: {{ .Values.addressType | default "IPv4" }}
{{- with .Values.ports }}
ports:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.endpoints }}
endpoints:
{{- toYaml . | nindent 2 }}
{{- end }}
---
{{- end }}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment