fix(transmission) fixing issue created by pull #8095 that was suppost to fix issue #8092 (#9728)

**Description**

The fix merged in pull #8095 didn't work because of the unfixed [issue
1474](https://github.com/transmission/transmission/issues/1474) in
transmission.
This fix reverts #8095 fix of issue #8092 and fixes #8092 by switching
the probes from http to tcp.

⚒️ Fixes  #8092

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 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?**
Added my forked repo as source for truecharts and installed transmission

**📃 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._

---------

Signed-off-by: Rickard <grvn@users.noreply.github.com>
This commit is contained in:
Rickard 2023-06-17 17:35:45 +02:00 committed by GitHub
parent 4e9895663e
commit 19a136f636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 14 deletions

View File

@ -22,7 +22,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/transmission
- https://github.com/transmission/transmission
type: application
version: 16.0.26
version: 16.0.27
annotations:
truecharts.org/catagories: |
- download-tools

View File

@ -11,12 +11,5 @@
{{- $_ := set $.Values.workload.main.podSpec.containers.main.probes.startup "httpHeaders" $headers -}}
{{- end -}}
{{- with .Values.workload.main.podSpec.containers.main.env.TRANSMISSION_RPC_WHITELIST -}}
{{- if not (contains $.Values.chartContext.podCIDR .) }}
{{/* Append CIDR in front */}}
{{- $_ := set $.Values.workload.main.podSpec.containers.main.env.TRANSMISSION_RPC_WHITELIST (printf "%v,%v" $.Values.chartContext.podCIDR .) }}
{{- end }}
{{- end -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}

View File

@ -10,14 +10,17 @@ workload:
main:
probes:
liveness:
type: http
path: "{{ .Values.workload.main.podSpec.containers.main.env.TRANSMISSION__RPC_URL }}"
enabled: true
type: tcp
port: "{{ .Values.service.main.ports.main.targetPort }}"
startup:
type: http
path: "{{ .Values.workload.main.podSpec.containers.main.env.TRANSMISSION__RPC_URL }}"
enabled: true
type: tcp
port: "{{ .Values.service.main.ports.main.targetPort }}"
readiness:
type: http
path: "{{ .Values.workload.main.podSpec.containers.main.env.TRANSMISSION__RPC_URL }}"
enabled: true
type: tcp
port: "{{ .Values.service.main.ports.main.targetPort }}"
env:
# PUID: 1001
# URL is set here so it wont be able to get overwritten by the user