feat(pushbits-server) add pushbits-server (#13138)

**Description**
Send push notifications via a simple web API, and delivers them to your
users.
⚒️ 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
- [ ] ⬆️ 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.

- [X] 🪞 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: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com>
Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Co-authored-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
Xstar97TheNoob
2023-12-20 13:08:07 +01:00
committed by GitHub
co-authored by Kjeld Schouten
parent 417ba65c2e
commit 045ecd632a
10 changed files with 264 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
@@ -0,0 +1,29 @@
apiVersion: v2
appVersion: "0.10.1"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 16.2.7
deprecated: false
description: Send push notifications via a simple web API, and delivers them to your users.
home: https://truecharts.org/charts/incubator/pushbits-server
icon: https://truecharts.org/img/hotlink-ok/chart-icons/pushbits-server.png
keywords:
- pushbits-server
- notifications
- matrix
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: pushbits-server
sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/pushbits-server
- https://github.com/pushbits/server
type: application
version: 0.0.1
annotations:
truecharts.org/catagories: |
- notifications
truecharts.org/SCALE-support: "true"
@@ -0,0 +1 @@
# README
Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

@@ -0,0 +1,135 @@
# Include{groups}
portals: {}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
- variable: pushbits
group: App Configuration
label: PushBits Server
schema:
additional_attrs: true
type: dict
attrs:
- variable: admin
label: Admin Credentials
schema:
additional_attrs: true
type: dict
attrs:
- variable: id
label: Admin Id
description: The Matrix account on which the admin will receive their notifications.
schema:
type: string
default: ""
- variable: password
label: Admin Password
description: The login password of the admin account.
schema:
type: string
private: true
default: ""
- variable: matrix
label: Matrix Credentials
schema:
additional_attrs: true
type: dict
attrs:
- variable: user
label: Matrix User
description: The Matrix account from which notifications are sent to all users.
schema:
type: string
default: ""
- variable: password
label: Matrix Password
description: The login password of the Matrix account.
schema:
type: string
private: true
default: ""
# Include{containerConfig}
# Include{podOptions}
# 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: 8080
required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: data
label: "App Data Storage"
description: "Stores the Application Data."
schema:
additional_attrs: true
type: dict
attrs:
# 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{ingressAdvanced}
# 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 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,65 @@
image:
repository: tccr.io/truecharts/pushbits-server
pullPolicy: IfNotPresent
tag: v0.10.1@sha256:6020128d995a0054b7104f5a383408a773c5914dbc2d073a71501524f8b79b87
service:
main:
ports:
main:
protocol: http
port: 8080
pushbits:
admin:
id: ""
password: ""
matrix:
user: ""
password: ""
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
path: "/health"
readiness:
path: "/health"
startup:
path: "/health"
env:
PUSHBITS_HTTP_PORT: "{{ .Values.service.main.ports.main.port }}"
PUSHBITS_DATABASE_DIALECT: "postgres"
PUSHBITS_DATABASE_CONNECTION:
secretKeyRef:
name: cnpg-main-urls
key: std
POSTGRES_PASSWORD:
secretKeyRef:
name: cnpg-main-user
key: password
POSTGRES_USER: "{{ .Values.cnpg.main.user }}"
POSTGRES_DB: "{{ .Values.cnpg.main.database }}"
PUSHBITS_ADMIN_MATRIXID: "{{ .Values.pushbits.admin.id }}"
PUSHBITS_ADMIN_PASSWORD: "{{ .Values.pushbits.admin.password }}"
PUSHBITS_MATRIX_USERNAME: "{{ .Values.pushbits.matrix.user }}"
PUSHBITS_MATRIX_PASSWORD: "{{ .Values.pushbits.matrix.password }}"
persistence:
data:
enabled: true
mountPath: "/data"
# Enabled postgres
cnpg:
main:
enabled: true
user: pushbits
database: pushbits
portal:
open:
enabled: false