fix(cloudflared) use env for token (#9422)

**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
- [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
-->

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

See comment below.

** 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:
Alec Fenichel
2023-06-05 22:20:58 +00:00
committed by GitHub
parent 4d4f3fdf9e
commit c1c53e9e56
4 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ name: cloudflared
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/cloudflared - https://github.com/truecharts/charts/tree/master/charts/incubator/cloudflared
type: application type: application
version: 5.0.1 version: 5.0.2
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- network - network
@@ -1,4 +1,3 @@
# With the bellow we test both container starts and that tpl is working inside extraArgs list
workload: workload:
main: main:
podSpec: podSpec:
@@ -7,6 +6,4 @@ workload:
args: args:
- tunnel - tunnel
- --no-autoupdate - --no-autoupdate
- "{{ .Values.testTpl }}" - --hello-world
testTpl: "--hello-world"
+6 -7
View File
@@ -8,17 +8,16 @@ questions:
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
- variable: env
- variable: cloudflared group: "App Configuration"
group: App Configuration label: "Image Environment"
label: Cloudflared Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: token - variable: TUNNEL_TOKEN
label: Tunnel Token label: "Tunnel Token"
description: Token for tunnel (Tunnel managed by Cloudflare not locally) description: "Token for tunnel (Tunnel managed by Cloudflare not locally)"
schema: schema:
type: string type: string
required: true required: true
+2 -2
View File
@@ -22,8 +22,8 @@ workload:
- tunnel - tunnel
- --no-autoupdate - --no-autoupdate
- run - run
- --token env:
- "{{ .Values.cloudflared.token }}" TUNNEL_TOKEN: ""
service: service:
main: main: