Skip to content

Commit

Permalink
Fix converting YAML to JSON error for hpa.yaml (#204)
Browse files Browse the repository at this point in the history
Signed-off-by: quicksilver <[email protected]>
  • Loading branch information
jeffoverflow authored Aug 11, 2021
1 parent 64578e7 commit d8a9914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/milvus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: milvus
appVersion: "2.0.0-rc.2"
kubeVersion: "^1.10.0-0"
description: Milvus is an open-source vector database built to power AI applications and vector similarity search.
version: 2.1.1
version: 2.1.2
keywords:
- milvus
- elastic
Expand Down
20 changes: 4 additions & 16 deletions charts/milvus/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{{- if and (.Values.proxy.enabled) (.Values.proxy.autoscaling.enabled) }}
---
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "milvus.proxy.fullname" . }}
labels:
{{ include "milvus.labels" . | indent 4 }}
component: "proxy"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand All @@ -20,13 +17,10 @@ spec:

{{- if and (.Values.queryNode.enabled) (.Values.queryNode.autoscaling.enabled) }}
---
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "milvus.querynode.fullname" . }}
labels:
{{ include "milvus.labels" . | indent 4 }}
component: "querynode"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand All @@ -40,13 +34,10 @@ spec:

{{- if and (.Values.indexNode.enabled) (.Values.indexNode.autoscaling.enabled) }}
---
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "milvus.indexnode.fullname" . }}
labels:
{{ include "milvus.labels" . | indent 4 }}
component: "indexnode"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand All @@ -60,13 +51,10 @@ spec:

{{- if and (.Values.dataNode.enabled) (.Values.dataNode.autoscaling.enabled) }}
---
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "milvus.datanode.fullname" . }}
labels:
{{ include "milvus.labels" . | indent 4 }}
component: "datanode"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down

0 comments on commit d8a9914

Please sign in to comment.