charts/karmada: fix the creation condition of metrics-adapter related APIService
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
This commit is contained in:
parent
c575d4f211
commit
f134f7fc6b
|
@ -32,6 +32,8 @@ metadata:
|
|||
spec:
|
||||
type: ExternalName
|
||||
externalName: {{ $name }}-aggregated-apiserver.{{ include "karmada.namespace" . }}.svc.{{ .Values.clusterDomain }}
|
||||
{{- end }}
|
||||
{{- if has "metricsAdapter" .Values.components }}
|
||||
---
|
||||
apiVersion: apiregistration.k8s.io/v1
|
||||
kind: APIService
|
||||
|
|
Loading…
Reference in New Issue