Skip to content

Commit

Permalink
feat(cryptpad): Cryptpad port (truecharts#9240)
Browse files Browse the repository at this point in the history
**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
Port Cryptpad to new common.

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

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [X] ⚠️ 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
-->
Tested with CI on my fork prior to creating PR.

**📃 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
- [X] ⚠️ 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.
- [ ] 🖼️ 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._
  • Loading branch information
MaverickD650 authored May 29, 2023
1 parent a27f28f commit 8a8269c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
6 changes: 3 additions & 3 deletions charts/incubator/cryptpad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ appVersion: "latest"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
version: 12.10.4
deprecated: false
description: CryptPad is the Zero Knowledge realtime collaborative editor.[br]mkdir -p /mnt/user/appdata/cryptpad/config [/br]wget -O /mnt/user/appdata/cryptpad/config/config.js https://raw.githubusercontent.com/xwiki-labs/cryptpad/main/config/config.example.js
description: CryptPad is the Zero Knowledge realtime collaborative editor.
home: https://truecharts.org/charts/incubator/cryptpad
icon: https://truecharts.org/img/hotlink-ok/chart-icons/cryptpad.png
keywords:
Expand All @@ -27,4 +27,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/cryptpad
- https://cryptpad.fr/
type: application
version: 2.0.26
version: 3.0.0
1 change: 1 addition & 0 deletions charts/incubator/cryptpad/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ questions:
# Include{containerAdvanced}

# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
- variable: main
label: "Main Service"
Expand Down
1 change: 1 addition & 0 deletions charts/incubator/cryptpad/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
2 changes: 1 addition & 1 deletion charts/incubator/cryptpad/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{/* Render the templates */}}
{{ include "tc.common.loader.all" . }}
{{ include "tc.v1.common.loader.all" . }}
40 changes: 30 additions & 10 deletions charts/incubator/cryptpad/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
env: {}
image:
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/cryptpad
tag: latest@sha256:34094a8d0491a70f4debb669779a2fef671b1c25d58daf55e5b446e03420a52b

securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsGroup: 0
runAsUser: 0

workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: http
path: /
readiness:
type: http
path: /
startup:
type: http
path: /
env: {}

persistence:
blobpath:
enabled: true
Expand All @@ -22,27 +46,23 @@ persistence:
datastorepath:
enabled: true
mountPath: /cryptpad/datastore
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false

service:
main:
ports:
main:
port: 3000
protocol: HTTP
protocol: http
targetPort: 3000
port2:
enabled: true
ports:
port2:
enabled: true
port: 3001
protocol: TCP
protocol: tcp
targetPort: 3001

portal:
enabled: true
open:
enabled: true

0 comments on commit 8a8269c

Please sign in to comment.