fix invalid helm chart
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
This commit is contained in:
parent
7c96e0db54
commit
7ce81f3458
|
@ -27,6 +27,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: ${{ env.HELM_VERSION }}
|
version: ${{ env.HELM_VERSION }}
|
||||||
|
|
||||||
|
- name: Run chart-testing (template)
|
||||||
|
run: |
|
||||||
|
helm template --set components={"search,descheduler,schedulerEstimator"} --dependency-update ./charts/karmada --debug > /dev/null
|
||||||
|
helm template --set components={"search,descheduler,schedulerEstimator"},installMode=component --dependency-update ./charts/karmada --debug > /dev/null
|
||||||
|
helm template --set installMode=agent --dependency-update ./charts/karmada --debug > /dev/null
|
||||||
|
helm template --dependency-update ./charts/karmada-operator --debug > /dev/null
|
||||||
|
|
||||||
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
|
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
|
||||||
# yamllint (https://github.com/adrienverge/yamllint) which require Python
|
# yamllint (https://github.com/adrienverge/yamllint) which require Python
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
|
|
|
@ -273,6 +273,10 @@ app: {{- include "karmada.name" .}}-search
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.search.kubeconfig }}
|
secretName: {{ .Values.search.kubeconfig }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "karmada.search.etcd.cert.volume" -}}
|
||||||
|
{{ $name := include "karmada.name" . }}
|
||||||
- name: etcd-certs
|
- name: etcd-certs
|
||||||
secret:
|
secret:
|
||||||
{{- if eq .Values.etcd.mode "internal" }}
|
{{- if eq .Values.etcd.mode "internal" }}
|
||||||
|
|
|
@ -91,6 +91,7 @@ spec:
|
||||||
{{- toYaml .Values.apiServer.resources | nindent 12 }}
|
{{- toYaml .Values.apiServer.resources | nindent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- include "karmada.search.kubeconfig.volume" . | nindent 8 }}
|
{{- include "karmada.search.kubeconfig.volume" . | nindent 8 }}
|
||||||
|
{{- include "karmada.search.etcd.cert.volume" . | nindent 8 }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -165,7 +166,8 @@ spec:
|
||||||
- name: {{ $name }}-search-apiservice
|
- name: {{ $name }}-search-apiservice
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ $name }}-search-apiservice
|
name: {{ $name }}-search-apiservice
|
||||||
{{ include "karmada.search.kubeconfig.volume" . | nindent 8 }}
|
{{- include "karmada.search.kubeconfig.volume" . | nindent 8 }}
|
||||||
|
{{- include "karmada.search.etcd.cert.volume" . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ if .Values.search.podDisruptionBudget }}
|
{{ if .Values.search.podDisruptionBudget }}
|
||||||
|
|
Loading…
Reference in New Issue