-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: shaoyue.chen <[email protected]> Signed-off-by: shaoyue.chen <[email protected]>
- Loading branch information
Showing
14 changed files
with
185 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
MilvusHelmUserConfigMountPath="/milvus/configs/user.yaml" | ||
MilvusHelmDefaultConfigMountPath="/milvus/configs/default.yaml" | ||
MilvusOriginalConfigPath="/milvus/configs/milvus.yaml" | ||
# merge config | ||
/milvus/tools/merge -s ${MilvusHelmDefaultConfigMountPath} -d ${MilvusOriginalConfigPath} | ||
/milvus/tools/merge -s ${MilvusHelmUserConfigMountPath} -d ${MilvusOriginalConfigPath} | ||
echo "helm default config:" | ||
cat /milvus/configs/default.yaml | ||
echo | ||
echo "helm user config:" | ||
cat /milvus/configs/user.yaml | ||
echo | ||
echo "config after merging:" | ||
cat /milvus/configs/milvus.yaml | ||
echo | ||
# run commands | ||
exec $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: milvus.io/v1beta1 | ||
kind: MilvusUpgrade | ||
metadata: | ||
name: my-release-upgrade | ||
spec: | ||
milvus: | ||
namespace: mc | ||
name: my-release | ||
sourceVersion: "v2.1.4" | ||
targetVersion: "v2.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: milvus.io/v1beta1 | ||
kind: MilvusUpgrade | ||
metadata: | ||
name: my-release-upgrade | ||
spec: | ||
milvus: | ||
namespace: default | ||
name: my-release | ||
sourceVersion: "v2.1.4" | ||
targetVersion: "v2.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM golang:1.16 as builder | ||
|
||
WORKDIR /workspace | ||
# ENV GOPROXY https://goproxy.cn | ||
# Copy the Go Modules manifests | ||
# # cache deps before building and copying source so that we don't need to re-download as much | ||
# # and so that source changes don't invalidate our downloaded layer | ||
# | ||
# # Copy the go source | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
RUN go mod download | ||
# | ||
# # Build | ||
COPY main.go main.go | ||
COPY apis/ apis/ | ||
COPY pkg/ pkg/ | ||
COPY tool/ tool/ | ||
COPY config/assets/templates out/config/assets/templates | ||
COPY scripts/ scripts/ | ||
COPY Makefile Makefile | ||
RUN make docker-tool-prepare | ||
# | ||
# # Use distroless as minimal base image to package the manager binary | ||
# # Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:nonroot | ||
WORKDIR / | ||
COPY --from=builder /workspace/out/tool / | ||
|
||
USER 65532:65532 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters