**Description** This ensures docker.io is explicitly referenced as a container source, instead of relying on container-engine defaults **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] 🔃 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 - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ 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._
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
image:
|
|
repository: docker.io/golift/notifiarr
|
|
pullPolicy: IfNotPresent
|
|
tag: 0.8.3@sha256:7922f7d0e0336ca0e91182820c5d4b2ddc2d86083fa847c5a1088b41d5b20903
|
|
notifiarr:
|
|
# This will be your password for your first-time login.
|
|
# Use the username 'admin' and the API key as password to log in.
|
|
# After login you must change your password from the UI
|
|
apikey: "test"
|
|
upstreams:
|
|
- 172.16.0.0/16
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 5454
|
|
protocol: http
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
initContainers:
|
|
init-conf:
|
|
enabled: true
|
|
# We run it on every boot just in case an upgrade (or the user)
|
|
# manages to nuke the config file
|
|
type: init
|
|
imageSelector: alpineImage
|
|
command: /bin/sh
|
|
# This script creates an (almost) empty config file with the aim to prevent
|
|
# Notifiarr from generating a default password.
|
|
# When no default password is generated the configured API key and a default
|
|
# username ('admin') are used for logging in.
|
|
args:
|
|
- -c
|
|
- |
|
|
export CONF={{ printf "%s/notifiarr.conf" .Values.persistence.config.targetSelector.main.main.mountPath }}
|
|
|
|
test -f "$CONF" && echo "Config exists, skipping creation..." && exit 0
|
|
|
|
echo "Creating a minimal config in [$CONF]..."
|
|
|
|
echo "# Dummy comment" > "$CONF" || echo "Failed to create a minimal config..."
|
|
|
|
echo "Finished."
|
|
containers:
|
|
main:
|
|
env:
|
|
TMPDIR: /tmpdir
|
|
DN_API_KEY: "{{ .Values.notifiarr.apikey }}"
|
|
DN_BIND_ADDR: '{{ printf "0.0.0.0:%v" .Values.service.main.ports.main.port }}'
|
|
DN_UPSTREAMS_0: '{{ join " " .Values.notifiarr.upstreams }}'
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
targetSelector:
|
|
main:
|
|
main:
|
|
mountPath: /config
|
|
init-conf:
|
|
mountPath: /config
|
|
machine-id:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /etc/machine-id
|
|
mountPath: /etc/machine-id
|
|
readOnly: true
|
|
tmpdir:
|
|
enabled: true
|
|
type: emptyDir
|
|
mountPath: /tmpdir
|
|
medium: Memory
|
|
portal:
|
|
open:
|
|
enabled: true
|