mirror of
https://github.com/outbackdingo/qdrant-helm.git
synced 2026-01-27 10:20:18 +00:00
Add support for additional annotations in Kubernetes resource templates (#359)
* Add support for additional annotations in Kubernetes resource templates * Bumping changelog * Fixing version * Reverting version bumps
This commit is contained in:
@@ -4,6 +4,10 @@ metadata:
|
||||
name: {{ include "qdrant.fullname" . }}
|
||||
labels:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
initialize.sh: |
|
||||
#!/bin/sh
|
||||
|
||||
@@ -8,10 +8,15 @@ metadata:
|
||||
{{- with .Values.ingress.additionalLabels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
{{- if or .Values.ingress.annotations .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.ingress.ingressClassName }}
|
||||
ingressClassName: {{ .Values.ingress.ingressClassName }}
|
||||
|
||||
@@ -5,6 +5,10 @@ metadata:
|
||||
name: {{ include "qdrant.fullname" . }}
|
||||
labels:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- with .Values.podDisruptionBudget.maxUnavailable}}
|
||||
maxUnavailable: {{ . }}
|
||||
|
||||
@@ -5,6 +5,10 @@ metadata:
|
||||
name: {{ include "qdrant.fullname" . }}-apikey
|
||||
labels:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
{{ include "qdrant.secret" . | indent 2}}
|
||||
{{- end }}
|
||||
|
||||
@@ -8,9 +8,14 @@ metadata:
|
||||
{{- with .Values.service.additionalLabels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.service.annotations }}
|
||||
{{- if or .Values.service.annotations .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.service.annotations | indent 4 }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.service.annotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
clusterIP: None
|
||||
|
||||
@@ -7,9 +7,14 @@ metadata:
|
||||
{{- with .Values.service.additionalLabels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.service.annotations }}
|
||||
{{- if or .Values.service.annotations .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.service.annotations | indent 4 }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.service.annotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type | default "ClusterIP" }}
|
||||
|
||||
@@ -2,9 +2,14 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "qdrant.fullname" . }}
|
||||
{{- if .Values.serviceAccount.annotations }}
|
||||
{{- if or .Values.serviceAccount.annotations .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
@@ -8,6 +8,10 @@ metadata:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "qdrant.fullname" . }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
endpoints:
|
||||
- honorLabels: true
|
||||
|
||||
@@ -7,6 +7,10 @@ metadata:
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
podManagementPolicy: {{ .Values.podManagementPolicy }}
|
||||
|
||||
@@ -8,6 +8,9 @@ metadata:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
containers:
|
||||
- name: test-script
|
||||
@@ -45,6 +48,9 @@ metadata:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
entrypoint.sh: |
|
||||
#!/bin/bash
|
||||
|
||||
@@ -82,6 +82,8 @@ startupProbe:
|
||||
successThreshold: 1
|
||||
|
||||
additionalLabels: {}
|
||||
# additionalAnnotations will be added to all top-level resources (StatefulSet, Service, ConfigMap, etc.)
|
||||
additionalAnnotations: {}
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user