migrate(icloudpd): Migrate to new common (#12471)

**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.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ 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:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 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.

- [ ] 🪞 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._
This commit is contained in:
StevenMcElligott
2023-09-16 11:33:20 +03:00
committed by GitHub
parent 27ea3fcd6a
commit 7a09a19d09
5 changed files with 58 additions and 53 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ appVersion: "latest"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 11.1.2 version: 14.0.1
deprecated: false deprecated: false
description: iCloudPD, syncs photos from iDevices to a single directory on TrueNAS. description: iCloudPD, syncs photos from iDevices to a single directory on TrueNAS.
home: https://truecharts.org/charts/incubator/icloudpd home: https://truecharts.org/charts/incubator/icloudpd
@@ -23,7 +23,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/icloudpd - https://github.com/truecharts/charts/tree/master/charts/incubator/icloudpd
- https://github.com/Womabre/-TrueNAS-docker-templates - https://github.com/Womabre/-TrueNAS-docker-templates
type: application type: application
version: 2.0.16 version: 3.0.0
annotations: annotations:
truecharts.org/SCALE-support: "true" truecharts.org/SCALE-support: "true"
truecharts.org/catagories: | truecharts.org/catagories: |
+1
View File
@@ -212,6 +212,7 @@ questions:
- value: Bark - value: Bark
description: Bark description: Bark
# Include{containerConfig} # Include{containerConfig}
# Include{podOptions}
# Include{serviceExpertRoot} # Include{serviceExpertRoot}
# Include{serviceExpert} # Include{serviceExpert}
# Include{serviceList} # Include{serviceList}
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1,2 +1 @@
{{/* Render the templates */}} {{ include "tc.v1.common.loader.all" . }}
{{ include "tc.common.loader.all" . }}
+16 -12
View File
@@ -3,13 +3,12 @@ image:
repository: tccr.io/truecharts/icloudpd repository: tccr.io/truecharts/icloudpd
tag: latest@sha256:ab4b90c22a3bf93d6045cd26733447b143a66d5c9100a91c9bbea27f0443a838 tag: latest@sha256:ab4b90c22a3bf93d6045cd26733447b143a66d5c9100a91c9bbea27f0443a838
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext: securityContext:
container:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
runAsNonRoot: false runAsNonRoot: false
runAsGroup: 0
runAsUser: 0
icloudpd: icloudpd:
apple_id: your@appleid.com apple_id: your@appleid.com
@@ -35,7 +34,7 @@ icloudpd:
delete_accompanying: false delete_accompanying: false
delete_empty_directories: false delete_empty_directories: false
command_line_options: "" command_line_options: ""
notification_title: iCloud PD notification_title: "iCloud PD"
# https://github.com/boredazfcuk/docker-icloudpd/blob/master/NOTIFICATIONS.md # https://github.com/boredazfcuk/docker-icloudpd/blob/master/NOTIFICATIONS.md
notification_type: "" notification_type: ""
# prowl_api_key: "" # prowl_api_key: ""
@@ -70,13 +69,18 @@ icloudpd:
# bark_device_key: "" # bark_device_key: ""
# bark_server: "" # bark_server: ""
env: workload:
main:
podSpec:
containers:
main:
env:
user: apps user: apps
group: apps group: apps
user_id: "{{ .Values.security.PUID }}" user_id: "{{ .Values.securityContext.container.runAsUser }}"
group_id: "{{ .Values.podSecurityContext.fsGroup }}" group_id: "{{ .Values.securityContext.container.runAsGroup }}"
download_path: /home/{{ .Values.env.user }}/iCloud download_path: /home/{{ .Values.workload.main.podSpec.containers.main.env.user }}/iCloud
jpeg_path: /home/{{ .Values.env.user }}/iCloud jpeg_path: /home/{{ .Values.workload.main.podSpec.containers.main.env.user }}/iCloud
# User Defined # User Defined
apple_id: "{{ .Values.icloudpd.apple_id }}" apple_id: "{{ .Values.icloudpd.apple_id }}"
synchronisation_interval: "{{ .Values.icloudpd.synchronisation_interval }}" synchronisation_interval: "{{ .Values.icloudpd.synchronisation_interval }}"
@@ -103,8 +107,7 @@ env:
command_line_options: "{{ .Values.icloudpd.command_line_options }}" command_line_options: "{{ .Values.icloudpd.command_line_options }}"
notification_title: "{{ .Values.icloudpd.notification_title }}" notification_title: "{{ .Values.icloudpd.notification_title }}"
notification_type: "{{ .Values.icloudpd.notification_type }}" notification_type: "{{ .Values.icloudpd.notification_type }}"
probes:
probes:
liveness: liveness:
enabled: false enabled: false
readiness: readiness:
@@ -128,4 +131,5 @@ persistence:
mountPath: /home/apps/iCloud mountPath: /home/apps/iCloud
portal: portal:
open:
enabled: false enabled: false