fix(external-service): don't use slices on scale and dont hardcode ta… (#8128)

…rgetPort

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

This, along with the common code addition, should fix the issues, just
need a quick confirmation after released

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 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:**

- [ ] ⚖️ 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

** 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-04-23 15:22:22 +03:00
committed by GitHub
parent 8b2003921a
commit bcf0aaa7b2
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ appVersion: "latest"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 12.4.21
version: 12.5.1
deprecated: false
description: Allow external services to be used like Apps.
home: https://truecharts.org/charts/stable/external-service
@@ -20,7 +20,7 @@ name: external-service
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/external-service
type: application
version: 9.0.7
version: 9.0.8
annotations:
truecharts.org/catagories: |
- networking
+3 -1
View File
@@ -8,11 +8,13 @@ service:
main:
type: ExternalIP
externalIP: "1.1.1.1"
useSlice: false
ports:
main:
protocol: https
port: 10003
targetPort: 443
# Target port is the port of the "external service"
# Defaults to "port" if not set
workload:
main: