fix(templates): switch from nested show_subquestions_if to show_if (#9604)

**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  #9583

**⚙️ 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?**
<!--
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.

- [ ] 🪞 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:
Stavros Kois
2023-06-15 21:35:00 +02:00
committed by GitHub
parent ed053b9ac0
commit b9d6c080a5
2 changed files with 55 additions and 54 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/prowlarr - https://github.com/truecharts/charts/tree/master/charts/stable/prowlarr
- https://github.com/Prowlarr/Prowlarr - https://github.com/Prowlarr/Prowlarr
- https://github.com/k8s-at-home/container-images - https://github.com/k8s-at-home/container-images
version: 11.0.24 version: 11.0.25
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- media - media
@@ -4,61 +4,62 @@
schema: schema:
type: boolean type: boolean
default: false default: false
show_subquestions_if: true - variable: entrypoint
subquestions: label: (Advanced) Traefik Entrypoint
- variable: entrypoint description: Entrypoint used by Traefik when using Traefik as Ingress Provider
label: (Advanced) Traefik Entrypoint schema:
description: Entrypoint used by Traefik when using Traefik as Ingress Provider type: string
default: websecure
show_if: [["advanced", "=", true]]
required: true
- variable: ingressClassName
label: (Advanced/Optional) IngressClass Name
schema:
type: string
show_if: [["advanced", "=", true]]
default: ""
- variable: tls
label: TLS-Settings
schema:
type: list
show_if: [["advanced", "=", true]]
default: []
items:
- variable: tlsEntry
label: Host
schema: schema:
type: string additional_attrs: true
default: websecure type: dict
required: true attrs:
- variable: ingressClassName - variable: hosts
label: (Advanced/Optional) IngressClass Name label: Certificate Hosts
schema:
type: string
default: ""
- variable: tls
label: TLS-Settings
schema:
type: list
default: []
items:
- variable: tlsEntry
label: Host
schema: schema:
additional_attrs: true type: list
type: dict default: []
attrs: items:
- variable: hosts - variable: host
label: Certificate Hosts label: Host
schema: schema:
type: list type: string
default: [] default: ""
items: required: true
- variable: host
label: Host
schema:
type: string
default: ""
required: true
- variable: certificateIssuer - variable: certificateIssuer
label: Use Cert-Manager clusterIssuer label: Use Cert-Manager clusterIssuer
description: 'add the name of your cert-manager clusterIssuer here for automatic tls certificates.' description: 'add the name of your cert-manager clusterIssuer here for automatic tls certificates.'
schema: schema:
type: string type: string
default: "" default: ""
- variable: scaleCert - variable: scaleCert
label: Use TrueNAS SCALE Certificate (Deprecated) label: Use TrueNAS SCALE Certificate (Deprecated)
schema: schema:
show_if: [["certificateIssuer", "=", ""]] show_if: [["certificateIssuer", "=", ""]]
type: int type: int
$ref: $ref:
- "definitions/certificate" - "definitions/certificate"
- variable: secretName - variable: secretName
label: Use Custom Secret (Advanced) label: Use Custom Secret (Advanced)
schema: schema:
show_if: [["certificateIssuer", "=", ""]] show_if: [["certificateIssuer", "=", ""]]
type: string type: string
default: "" default: ""