feat(mongo-express): Add mongo-express (#8158)

**Description**

Add Mongo-Express, since we need something in the catalog to
access/manage mongodb files in container format

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [X] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [X] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
StevenMcElligott
2023-04-30 11:58:08 +03:00
committed by GitHub
co-authored by Stavros Kois
parent e5dba87f4b
commit 87f0cfc89d
10 changed files with 319 additions and 0 deletions
@@ -0,0 +1,30 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
# docs folder
/docs
# icon
icon.png
@@ -0,0 +1 @@
## Changelog
+35
View File
@@ -0,0 +1,35 @@
apiVersion: v2
appVersion: "latest"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 12.6.1
- condition: mongodb.enabled
name: mongodb
repository: https://deps.truecharts.org/
version: 6.0.15
deprecated: false
description: mongo-express is a web-based MongoDB admin interface written in Node.js, Express.js, and Bootstrap3.
home: https://truecharts.org/charts/incubator
icon: https://truecharts.org/img/hotlink-ok/chart-icons/mongo-express.png
keywords:
- mongo
- mongodb
- database
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: mongo-express
sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/mongo-express
- https://hub.docker.com/_/mongo-express/
- https://github.com/mongo-express/mongo-express
type: application
version: 0.0.1
annotations:
truecharts.org/catagories: |
- database
- utilities
truecharts.org/SCALE-support: "true"
+27
View File
@@ -0,0 +1,27 @@
# README
## General Info
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
However only installations using the TrueNAS SCALE Apps system are supported.
For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/stable/)
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE%20Apps/Important-MUST-READ).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/charts/issues/new/choose)
---
## Sponsor TrueCharts
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
*All Rights Reserved - The TrueCharts Project*
@@ -0,0 +1,26 @@
mongodb:
enabled: true
mongodbUsername: mongoexpress
mongodbDatabase: mongoexpress
workload:
main:
podSpec:
containers:
main:
env:
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_MONGODB_AUTH_DATABASE: "{{ .Values.mongodb.mongodbDatabase }}"
ME_CONFIG_MONGODB_AUTH_USERNAME: "{{ .Values.mongodb.mongodbUsername }}"
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: pass
ME_CONFIG_MONGODB_SERVER:
secretKeyRef:
expandObjectName: false
name: '{{ printf "%s-%s" .Release.Name "mongodbcreds" }}'
key: plainhost
ME_CONFIG_MONGODB_AUTH_PASSWORD:
secretKeyRef:
expandObjectName: false
name: '{{ printf "%s-%s" .Release.Name "mongodbcreds" }}'
key: mongodb-password
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

@@ -0,0 +1,145 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: App Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: ME_CONFIG_BASICAUTH_USERNAME
label: WebUI Basic Auth Username
description: Basic Auth Username
schema:
type: string
default: ""
required: true
- variable: ME_CONFIG_BASICAUTH_PASSWORD
label: WebUI Basic Auth Password
description: Basic Auth Password
schema:
type: string
default: ""
required: true
private: true
- variable: ME_CONFIG_MONGODB_SERVER
label: MongoDB Database Server
description: Database Server
schema:
type: string
default: ""
- variable: ME_CONFIG_MONGODB_PORT
label: MongoDB Database Port
description: Database Port
schema:
type: int
default: 27017
- variable: ME_CONFIG_MONGODB_AUTH_DATABASE
label: MongoDB Database name
description: Database name
schema:
type: string
required: true
default: mongo-express
- variable: ME_CONFIG_MONGODB_AUTH_USERNAME
label: MongoDB Database username
description: Database username
schema:
type: string
required: true
default: mongo-express
- variable: ME_CONFIG_MONGODB_AUTH_PASSWORD
label: MongoDB Database Password
description: Database password
schema:
type: string
default: ""
private: true
- variable: ME_CONFIG_OPTIONS_EDITORTHEME
label: Editor Theme
description: Pick a theme from https://codemirror.net/5/demo/theme.html
schema:
type: string
required: true
default: default
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{serviceRoot}
# Include{serviceMain}
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: main
label: Main Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 18081
required: true
# Include{serviceExpertRoot}
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: Main Ingress
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressList}
# Include{securityContextRoot}
- variable: runAsUser
label: runAsUser
description: The UserID of the user running the application
schema:
type: int
default: 568
- variable: runAsGroup
label: runAsGroup
description: The groupID this App of the user running the application
schema:
type: int
default: 568
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
- variable: fsGroup
label: fsGroup
description: The group that should own ALL storage.
schema:
type: int
default: 568
# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -0,0 +1 @@
{{ include "tc.v1.common.loader.all" . }}
@@ -0,0 +1,53 @@
image:
repository: docker.io/mongo-express
pullPolicy: IfNotPresent
tag: latest@sha256:d5cee110909938c99cf8800b9379494c190d8fecaec70a4ce3886facdee6ef8e
service:
main:
ports:
main:
protocol: http
targetPort: 8081
port: 18081
securityContext:
container:
readOnlyRootFilesystem: false
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: http
httpHeaders:
Authorization: '{{ printf "Basic %s" ((printf "%s:%s" .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_USERNAME .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_PASSWORD) | b64enc) }}'
readiness:
type: http
httpHeaders:
Authorization: '{{ printf "Basic %s" ((printf "%s:%s" .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_USERNAME .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_PASSWORD) | b64enc) }}'
startup:
type: http
httpHeaders:
Authorization: '{{ printf "Basic %s" ((printf "%s:%s" .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_USERNAME .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_PASSWORD) | b64enc) }}'
env:
ME_CONFIG_MONGODB_PORT: ""
ME_CONFIG_MONGODB_SERVER: ""
ME_CONFIG_BASICAUTH_USERNAME: ""
ME_CONFIG_BASICAUTH_PASSWORD: ""
# https://codemirror.net/5/demo/theme.html
ME_CONFIG_OPTIONS_EDITORTHEME: default
ME_CONFIG_MONGODB_AUTH_DATABASE: ""
ME_CONFIG_MONGODB_AUTH_USERNAME: ""
ME_CONFIG_MONGODB_AUTH_PASSWORD: ""
mongodb:
enabled: false
portal:
open:
enabled: true