Skip to content

Commit

Permalink
feat: support installing mongodb in the helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: rick <[email protected]>
  • Loading branch information
LinuxSuRen committed Apr 9, 2024
1 parent e32cd16 commit 5b8b177
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ cmd/data/index.js
cmd/data/index.css
operator/bundle
helm/*.tgz
helm/api-testing/*.tgz
oryxBuildBinary
/helm/api-testing/charts/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TOOLEXEC?= #-toolexec="skywalking-go-agent"
BUILD_FLAG?=-ldflags "-w -s -X github.com/linuxsuren/api-testing/pkg/version.version=$(shell git describe --tags) \
-X github.com/linuxsuren/api-testing/pkg/version.date=$(shell date +%Y-%m-%d)"
GOPROXY?=direct
HELM_VERSION?=v0.0.2
HELM_VERSION?=v0.0.3
APP_VERSION?=v0.0.13
HELM_REPO?=docker.io/linuxsuren

Expand Down
39 changes: 39 additions & 0 deletions go.work.sum

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions helm/api-testing/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: mongodb
repository: oci://registry-1.docker.io/bitnamicharts
version: 15.1.0
digest: sha256:5714f35ab590a15ee13582d889dceb7ac1d117af79f6e36129af2d999a3d41f1
generated: "2024-03-22T11:37:25.2034558+08:00"
6 changes: 6 additions & 0 deletions helm/api-testing/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ version: v0.0.4
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.0.15"

dependencies:
- name: mongodb
version: ^15.0.1
repository: oci://registry-1.docker.io/bitnamicharts
condition: mongodb.enabled
5 changes: 1 addition & 4 deletions helm/api-testing/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
command:
- atest
- server
- --local-storage=/var/www/sample/*.yaml
- --local-storage=/root/.atest/data/*.yaml
{{- if .Values.skywalking.endpoint.http }}
- --skywalking={{ .Values.skywalking.endpoint.http }}
{{- end }}
Expand Down Expand Up @@ -66,9 +66,6 @@ spec:
path: /healthz
port: http
volumeMounts:
- name: data
mountPath: /var/www/sample
subPath: {{ $core.subPath }}
- name: data
mountPath: /root
subPath: config
Expand Down
1 change: 1 addition & 0 deletions helm/api-testing/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ spec:
storageClassName: {{ $core.storageClass }}
{{- end }}
{{- end }}
volumeMode: {{ $core.volumeMode }}
{{- end }}
8 changes: 6 additions & 2 deletions helm/api-testing/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
registry: linuxsuren.docker.scarf.sh
registry: docker.io
repository: linuxsuren/api-testing
tag: ""
digest: ""
Expand Down Expand Up @@ -89,8 +89,9 @@ persistence:
existingClaim: ""
storageClass: ""
subPath: ""
accessMode: ReadWriteMany
accessMode: ReadWriteOnce
size: 500Mi
volumeMode: Filesystem

skywalking:
endpoint:
Expand All @@ -102,3 +103,6 @@ nodeSelector: {}
tolerations: []

affinity: {}

mongodb:
enabled: false

0 comments on commit 5b8b177

Please sign in to comment.