Skip to content

Commit

Permalink
chore(litmus): change to mongodb operator
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Steiner <[email protected]>
  • Loading branch information
kosmoz committed May 28, 2024
1 parent 6ac3a2d commit 20464f9
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/litmus-mongodb/v3.6.0+1/mongodb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDBCommunity
metadata:
name: litmus-db
spec:
members: 3
type: ReplicaSet
version: "6.0.5"
security:
authentication:
modes: ["SCRAM-SHA-1"]
users:
- name: litmus
passwordSecretRef:
name: litmus-db
scramCredentialsSecretName: litmus-db
roles:
- name: root
db: "admin"

---
apiVersion: v1
kind: Secret
metadata:
name: litmus-db
type: Opaque
stringData:
password: "litmus1234"
17 changes: 17 additions & 0 deletions packages/litmus-mongodb/v3.6.0+1/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://glasskube.dev/schemas/v1/package-manifest.json
name: litmus-mongodb
iconUrl: https://avatars.githubusercontent.com/u/45120
shortDescription: MongoDB instance for litmus
defaultNamespace: litmus
helm:
repositoryUrl: https://mongodb.github.io/helm-charts
chartName: community-operator
chartVersion: "0.9.0"
values:
community-operator-crds:
enabled: false
manifests:
- url: http://localhost:9090/packages/litmus-mongodb/v3.6.0+1/mongodb.yaml
dependencies:
- name: mongodb-operator-crds
version: ">=0.9.0"
3 changes: 3 additions & 0 deletions packages/litmus-mongodb/versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
latestVersion: v3.6.0+1
versions:
- version: v3.6.0+1
10 changes: 10 additions & 0 deletions packages/litmus/v3.6.0+1/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ helm:
repositoryUrl: https://litmuschaos.github.io/litmus-helm/
chartName: litmus
chartVersion: "3.6.0"
values:
mongodb:
enabled: false
adminConfig:
DBUSER: litmus
DBPASSWORD: "litmus1234"
DB_SERVER: "mongodb://litmus-db-svc:27017/admin"
dependencies:
- name: litmus-mongodb
version: ">=3.6.0"
entrypoints:
- name: frontend
serviceName: litmus-frontend-service
Expand Down

0 comments on commit 20464f9

Please sign in to comment.