Commit Graph

339 Commits

Author SHA1 Message Date
Stavros kois
9b06ea0f0e fixup 2023-12-08 18:37:17 +02:00
Stavros kois
ba4019258c fix some tests 2023-12-08 18:28:59 +02:00
Stavros kois
3e6ed34a74 handle better 2023-12-08 17:19:33 +02:00
Stavros kois
7826846a6e moar tests 2023-12-08 17:02:31 +02:00
Stavros kois
c578b3279b more testts 2023-12-08 16:38:17 +02:00
Stavros kois
3a0862864f initial portal and context combined tests 2023-12-08 16:20:25 +02:00
Stavros Kois
462deca7b1 Merge branch 'update-middlewares' into fixup-chartcontext 2023-12-08 13:55:29 +02:00
Stavros kois
a7eeb7aab2 fix primary port template and service/port list 2023-12-08 13:48:27 +02:00
Stavros kois
529e925d64 actually add tets 2023-12-08 13:22:17 +02:00
Stavros Kois
9e453b68f4 drop the hack for ingressClass for middlewares 2023-12-08 11:32:54 +02:00
Stavros kois
fed7109fe0 whoops again 2023-12-08 11:22:12 +02:00
Stavros kois
85e9c20842 whoops 2023-12-08 11:20:37 +02:00
Stavros kois
af805c0c53 update tests with ingressClassName (This is a hack and needs to be fixed) 2023-12-08 11:19:33 +02:00
Stavros kois
f93a65ed06 fix couple tests 2023-12-08 11:15:25 +02:00
Stavros kois
db530c3d08 update traefik middleware innerworkings 2023-12-08 11:12:50 +02:00
Stavros kois
77bf35d16c disable integrations on unrelated tests 2023-12-08 11:11:32 +02:00
Stavros kois
c894e6b144 finish up tls with certificateIssuer 2023-12-08 02:40:53 +02:00
Stavros kois
7adac14ee4 fix and test clusterCertificate 2023-12-08 02:31:02 +02:00
Stavros kois
205e4ca335 more ingress validation 2023-12-08 02:28:09 +02:00
Stavros kois
2e203f8eb9 add tests 2023-12-08 02:08:39 +02:00
Stavros kois
ddf60239c3 adjust test names 2023-12-08 01:39:56 +02:00
Stavros kois
2e2774cb5b adjust test names 2023-12-08 01:39:46 +02:00
Stavros kois
9d05e62337 rename tests certificate -> scaleCertificate 2023-12-08 00:46:15 +02:00
Stavros kois
ba064b099d remove old tests 2023-12-08 00:19:12 +02:00
Stavros kois
a565f8adfe clusterIssuer -> certificateIssuer 2023-12-08 00:07:42 +02:00
Stavros kois
27aa2109e1 add some tls tests 2023-12-07 23:17:15 +02:00
Stavros kois
35b8f7b8fc fix test 2023-12-07 22:51:41 +02:00
Stavros kois
6a8c06e727 more validation 2023-12-07 19:08:07 +02:00
Stavros kois
08b2097443 fix validation 2023-12-07 18:27:15 +02:00
Stavros kois
06d087b2f3 validation tests for tls 2023-12-07 18:08:38 +02:00
Stavros kois
2277892fab add rules tests with targetSel 2023-12-07 17:13:21 +02:00
Stavros kois
e77f496528 add initial rules tests 2023-12-07 16:37:32 +02:00
Stavros kois
07a6843973 move old to old 2023-12-07 14:51:58 +02:00
Stavros kois
d4a189acda another check 2023-12-07 01:03:15 +02:00
Stavros kois
06a6a13006 add more validation 2023-12-07 00:45:14 +02:00
Stavros kois
4d1508b569 certmanager tests 2023-12-06 23:16:36 +02:00
Stavros kois
dc0d5e328f init certManager 2023-12-06 22:49:02 +02:00
Stavros kois
796ed60b62 add traefik integration 2023-12-06 22:18:33 +02:00
Stavros kois
8fa9b78ab6 move add*Annotations 2023-12-06 19:18:39 +02:00
Stavros kois
65762c74b6 move some things to widget.* 2023-12-06 18:47:25 +02:00
Stavros kois
07b3093308 homepaeg integration 2023-12-06 18:23:07 +02:00
Stavros kois
4f72996469 add more tests 2023-12-06 16:52:46 +02:00
Stavros kois
9bf4cf0bbb fix 2023-12-06 16:28:12 +02:00
Stavros kois
f6e7fc3f75 more tests 2023-12-06 16:27:06 +02:00
Stavros kois
e815c4b976 init tests 2023-12-06 16:16:24 +02:00
Kjeld Schouten
47daa5c813 feat(common): rework and update cnpg code (#509)
**Description**
This PR aims to rework and update cnpg code to expose more features of
CNPG to our users.
Primarily a big change would be the support of more backup and restore
options.

- add some missing options for both cluster and pooler
- seperates cluster and pooler sections
- add labels/annotions for pooler and cluster seperatly as well as
cnpg-wide labels-annotations
- Simplify storage logic
- Disable metrics by default

**⚙️ Type of change**

- [x] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [x] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] 🔃 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:**

It will be very loosely inspired by the work done here, mostly because
it gives some nice values.yaml structure on how to deal with the many
backup options:
https://github.com/cloudnative-pg/charts/pull/106

It's going to be flagged as "breaking", because of the shear scope and
the fact it would likely also include a change in standard operating
procedures when it comes to backup-and-restore for our users.

**✔️ 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._

---------

Co-authored-by: Stavros kois <s.kois@outlook.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
2023-12-04 02:49:27 +02:00
Stavros Kois
67a148085c chore(utils): use template for "expandObjectName" with tpl support (#619)
**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
- [ ] 🪛 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._
2023-12-03 17:04:58 +02:00
Stavros Kois
9a1f204c50 chore(common): Convert some lists to dicts (and also add list spawner) (#616)
**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
- [ ] 🪛 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._
2023-11-25 23:54:50 +02:00
Kjeld Schouten
6f907a2f64 feat(common): add velero objects (#596)
**Description**
We want the velero custom objects in Common, to do some additional
processing for its secret generation.

⚒️ Fixes  #594

**⚙️ Type of change**

- [x] ⚙️ 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
- [x] 👀 I have performed a self-review of my own code
- [x] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [x] 🧪 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.

- [x] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [x] 🖼️ 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._

---------

Co-authored-by: Stavros kois <s.kois@outlook.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
2023-11-25 16:52:53 +01:00
Kjeld Schouten
a35b8ddde5 feat(common): add hostUser support (#612)
**Description**
`hostUser:false` provides extra security for stateless pods, it has
specific requirements of being enabled, if those are valid it's safe to
enable. Just in case we also allow to manually override.

⚒️ Fixes  #607 

**⚙️ Type of change**

- [x] ⚙️ 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._

---------

Co-authored-by: Stavros kois <s.kois@outlook.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
2023-11-18 21:35:18 +01:00