fix(kopia) fix kopia arg to specify the main port. (#10320)

**Description**
Fix kopia arg to specify the correct port instead of a static one.

⚒️ Fixes  # <!--(issue)-->

**⚙️ 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
- [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._
This commit is contained in:
Xstar97TheNoob
2023-07-09 00:37:07 +03:00
committed by GitHub
parent 0c0c0c6a8a
commit e1faf5f247
3 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/kopia - https://github.com/truecharts/charts/tree/master/charts/incubator/kopia
- https://kopia.io/docs/installation/#docker-images - https://kopia.io/docs/installation/#docker-images
- https://github.com/kopia/kopia - https://github.com/kopia/kopia
version: 6.0.3 version: 6.0.4
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- utility - utility
+4 -3
View File
@@ -26,7 +26,7 @@ questions:
default: "secret" default: "secret"
required: true required: true
- variable: KOPIA_PASSWORD - variable: KOPIA_PASSWORD
label: "KOPIA_PASSWORD" label: "Kopia Password"
description: "Repository password" description: "Repository password"
schema: schema:
type: string type: string
@@ -34,20 +34,21 @@ questions:
required: true required: true
private: true private: true
- variable: KOPIA_SERVER_USERNAME - variable: KOPIA_SERVER_USERNAME
label: "KOPIA_SERVER_USERNAME" label: "Kopia Server Username"
description: "Username for WebUI" description: "Username for WebUI"
schema: schema:
type: string type: string
default: "server_user" default: "server_user"
required: true required: true
- variable: KOPIA_SERVER_PASSWORD - variable: KOPIA_SERVER_PASSWORD
label: "KOPIA_SERVER_PASSWORD" label: "Kopia Server Password"
description: "Password for WebUI" description: "Password for WebUI"
schema: schema:
type: string type: string
default: "server_password" default: "server_password"
required: true required: true
private: true private: true
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
# Include{containerConfig} # Include{containerConfig}
+12 -14
View File
@@ -3,7 +3,18 @@ image:
tag: 0.13.0@sha256:72ed1856efdd443be31e23535d24242056639a387587aa3ade5413e75dad0603 tag: 0.13.0@sha256:72ed1856efdd443be31e23535d24242056639a387587aa3ade5413e75dad0603
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
service:
main:
ports:
main:
protocol: http
port: 10238
kopia:
kopia_user: "user"
kopia_password: "secret"
kopia_server_username: "user"
kopia_server_password: "password"
workload: workload:
main: main:
@@ -16,7 +27,7 @@ workload:
args: args:
- server - server
- start - start
- --address=http://0.0.0.0:10238 - --address=http://0.0.0.0:{{ .Values.service.main.ports.main.port }}
- --insecure - --insecure
- --server-username={{ .Values.kopia.server_username }} - --server-username={{ .Values.kopia.server_username }}
- --server-password={{ .Values.kopia.server_password }} - --server-password={{ .Values.kopia.server_password }}
@@ -28,19 +39,6 @@ workload:
startup: startup:
enabled: false enabled: false
kopia:
kopia_user: "user"
kopia_password: "secret"
kopia_server_username: "user"
kopia_server_password: "password"
service:
main:
ports:
main:
protocol: http
port: 10238
persistence: persistence:
config: config:
enabled: true enabled: true