Skip to content

Commit

Permalink
Format milvus helm charts (#99)
Browse files Browse the repository at this point in the history
* Add ct.yaml

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Format Milvus charts

Signed-off-by: quicksilver <[email protected]>

* Add release.yml in Github Action

Signed-off-by: quicksilver <[email protected]>

* Add release.yml in Github Action

Signed-off-by: quicksilver <[email protected]>

* Add release.yml in Github Action

Signed-off-by: quicksilver <[email protected]>

* Add release.yml in Github Action

Signed-off-by: quicksilver <[email protected]>

* Add release.yml in Github Action

Signed-off-by: quicksilver <[email protected]>

* Update README.md

Signed-off-by: quicksilver <[email protected]>

* Update README.md

Signed-off-by: quicksilver <[email protected]>

* Update README.md

Signed-off-by: quicksilver <[email protected]>

* Update README.md

Signed-off-by: quicksilver <[email protected]>

* Update README.md

Signed-off-by: quicksilver <[email protected]>

* Update lint-test.yml

Signed-off-by: quicksilver <[email protected]>
  • Loading branch information
jeffoverflow authored Jun 28, 2020
1 parent 6b9396e commit a3ac21f
Show file tree
Hide file tree
Showing 31 changed files with 347 additions and 259 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@ on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'templates/**'
- 'Chart.yaml'
- 'requirements.yaml'
- 'values.yaml'
- '.github/workflows/helm.yml'
- 'charts/**'
- 'ct.yaml'
- '.github/workflows/lint-test.yml'
- '!**.md'
- '!**.txt'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'templates/**'
- 'Chart.yaml'
- 'requirements.yaml'
- 'values.yaml'
- '.github/workflows/helm.yml'
- 'charts/**'
- 'ct.yaml'
- '.github/workflows/lint-test.yml'
- '!**.md'
- '!**.txt'

jobs:
Expand All @@ -34,14 +32,20 @@ jobs:
run: git fetch --prune --unshallow
- name: Run chart-testing (lint)
id: lint
uses: helm/[email protected].1
uses: helm/[email protected].2
with:
command: lint
config: ct.yaml
- name: Create kind cluster
uses: helm/[email protected]
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'
- name: Modify Values Yaml file
shell: bash
run: |
sed -i '/^mysql:/{n;s/true/false/;}' charts/milvus/values.yaml
- name: Run chart-testing (install)
uses: helm/[email protected].1
uses: helm/[email protected].2
with:
command: install
config: ct.yaml
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Charts

# This workflow is triggered on pushes or pull request to the repository.
on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Fetch history
run: git fetch --prune --unshallow

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
258 changes: 43 additions & 215 deletions README.md

Large diffs are not rendered by default.

File renamed without changes.
9 changes: 4 additions & 5 deletions Chart.yaml → charts/milvus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ sources:
- https://github.com/milvus-io/milvus
- https://github.com/milvus-io/milvus-helm
maintainers:
- name: milvus-dev
email: [email protected]
- name: community
email: [email protected]
engine: gotpl
- email: [email protected]
name: community
url: www.zilliz.com
engine: gotpl
218 changes: 218 additions & 0 deletions charts/milvus/README.md

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ cache:
insertBufferSize: 1GB
cacheSize: 8GB

resources:
limits:
memory: "12Gi"
cpu: "4.0"
aliyun.com/gpu-mem: 2 # GiB
requests:
memory: "8Gi"
cpu: "2.0"
image:
resources:
limits:
memory: "12Gi"
cpu: "4.0"
aliyun.com/gpu-mem: 2 # GiB
requests:
memory: "8Gi"
cpu: "2.0"

gpu:
enabled: true
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ cache:
insertBufferSize: 1GB
cacheSize: 8GB

resources:
limits:
memory: "12Gi"
cpu: "4.0"
aliyun.com/gpu-mem: 2 # GiB
requests:
memory: "8Gi"
cpu: "2.0"
image:
resources:
limits:
memory: "12Gi"
cpu: "4.0"
aliyun.com/gpu-mem: 2 # GiB
requests:
memory: "8Gi"
cpu: "2.0"

gpu:
enabled: true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
port: 19530
{{ toYaml .Values.readinessProbe | indent 10 }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- toYaml .Values.image.resources | nindent 10 }}
volumeMounts:
- name: milvus-data-disk
mountPath: {{ .Values.persistence.mountPath | quote }}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
port: 19530
{{ toYaml .Values.readinessProbe | indent 10 }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- toYaml .Values.image.resources | nindent 10 }}
volumeMounts:
- name: milvus-data-disk
mountPath: {{ .Values.persistence.mountPath | quote }}
Expand Down
File renamed without changes.
19 changes: 10 additions & 9 deletions values.yaml → charts/milvus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ storage:

wal:
enabled: true
recoveryErrorIgnore: false
recoveryErrorIgnore: false
bufferSize: 256MB
path: /var/lib/milvus/db/wal

Expand Down Expand Up @@ -186,14 +186,15 @@ image:
##
# pullSecrets:
# - myRegistryKeySecretName
resources:
limits:
memory: "6Gi"
cpu: "2.0"
requests:
memory: "4Gi"
cpu: "1.0"

replicas: 1
resources:
limits:
memory: "12Gi"
cpu: "4.0"
requests:
memory: "8Gi"
cpu: "2.0"
livenessProbe:
initialDelaySeconds: 30
periodSeconds: 15
Expand Down Expand Up @@ -365,4 +366,4 @@ mysql:
# "helm.sh/resource-policy": keep
storageClass:
accessMode: ReadWriteOnce
size: 8Gi
size: 4Gi
9 changes: 9 additions & 0 deletions ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See https://github.com/helm/chart-testing#configuration
remote: origin
chart-dirs:
- charts/
validate-maintainers: false
chart-repos:
- incubator=https://kubernetes-charts-incubator.storage.googleapis.com/
- stable=https://kubernetes-charts.storage.googleapis.com/
helm-extra-args: --timeout 300s

0 comments on commit a3ac21f

Please sign in to comment.