Commit Graph

20 Commits

Author SHA1 Message Date
Jaël Gareau 8de702922c fix(clustertool): localtime should be fetched after NTP time (#30581)
**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  #30580
By swapping the localtime and the NTP time in the code, we ensure the
time it takes to receive an answer from the NTP server is not actually
counted as a time discrepancy.

I also increase the threshold from 5 to 10 seconds since problem always
seems to be at just above 5 seconds.

**⚙️ 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
-->

I compiled clustertool from source with the proposed modification. It
solved the issue.

**📃 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
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ 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._
2025-01-02 22:34:41 +01:00
Kjeld Schouten db9e8d4e1d fix(clustertool): ensure extraction of node IP for healthcheck is more solid 2024-11-09 13:17:43 +01:00
Kjeld Schouten 7c3ecc54a4 feat(clustertool): introduce tracing of command-slice and dont process extraArgs for now 2024-11-07 11:27:57 +01:00
Kjeld Schouten caa1a5fdb8 fix(clustertool): use different yaml lib 2024-11-06 10:17:47 +01:00
Kjeld Schouten 16c0e0c387 feat(clustertool): move all talhelper references to talassist 2024-11-06 01:20:29 +01:00
Kjeld Schouten 61a01f3299 feat(clustertool): cut down on useless dependencies 2024-11-05 23:23:12 +01:00
Kjeld Schouten 9e4053df9d feat(clustertool): remove zapr and logr from kubectl logging 2024-10-27 20:09:50 +01:00
Kjeld Schouten dc22eaff8e fix(clustertool): fix manifest path init issues for multicluster setups 2024-10-27 19:38:09 +01:00
Kjeld Schouten dfd992e105 fix(clustertool): more docs generation fixes 2024-10-25 22:20:53 +02:00
Kjeld Schouten 74b686d160 fix(clustertool): correct name for main commands docs page 2024-10-25 22:12:11 +02:00
Kjeld Schouten fd5da655b6 fix(clustertool): dont use 777 for docs generation 2024-10-25 22:08:05 +02:00
Kjeld Schouten 1fa26e6123 feat(clustertool): fix-up command-docs generator 2024-10-25 22:04:22 +02:00
Kjeld Schouten cb56a8a886 feat(clustertool): initial work on automatic function-docs generation 2024-10-25 21:22:32 +02:00
Kjeld Schouten e1539c682d fix(clustertool): correct kubernetes path for loaded manifests 2024-10-24 22:16:45 +02:00
Kjeld Schouten 21f9c8c2c5 fix(clustertool): fix some vars 2024-10-24 17:48:15 +02:00
Kjeld Schouten 6828356312 fix(clustertool): correct sopssecret yaml filename 2024-10-24 15:59:23 +02:00
Kjeld Schouten a71ee15f6d feat(clustertool): remove the use of talos manifests in favor of kubectl 2024-10-24 10:36:17 +02:00
Kjeld Schouten 631e18a0f0 feat(clustertool): setup logo and version displaying 2024-10-22 13:23:56 +02:00
Kjeld Schouten 4ab41d42f2 fix pre-commit and cleanup 2024-10-19 15:18:05 +02:00
Kjeld Schouten 6365c6205f integrate clustertool sourcecode 2024-10-16 14:06:31 +02:00