Commit Graph

406 Commits

Author SHA1 Message Date
metal3d 1f406dc558 Merge pull request #130 from metal3d/develop
fix(build): Windows is a shame
3.0.0-rc4
2025-07-07 13:50:31 +02:00
metal3d 0c0b50b0df fix(build): Windows is a shame
- Windows defender says that UPX compressed files are virus
(https://github.com/upx/upx/issues/437) so I stop using this for
Windows. Sorry, you will download a huge binary
- Windows, one more time, stop making the binary working when it's
stripped. Then, one more time, I cannot reduce the binary size

I'm thinking very seriously about no longer offering support for Windows
and letting people compile Katenary on their own.
2025-07-07 13:47:27 +02:00
metal3d 6efee2fbae Merge pull request #129 from metal3d/develop
Many fixes on code quality and CI
2025-07-06 15:37:08 +02:00
metal3d 47e149e20b chore(doc): Regenerated doc 2025-07-06 15:36:43 +02:00
metal3d d163700147 feat(tests): Add tests for label structures 2025-07-06 15:31:21 +02:00
metal3d fa3befaa88 fix(tests): Fixing unbound error 2025-07-06 15:31:05 +02:00
metal3d e5b7c0d550 fix(doc): Respect Go recommandation in docstring 2025-07-06 15:30:31 +02:00
metal3d 9e4663cc6e chore(convention): Respect Go convention, package name should be lowercase 2025-07-06 14:34:16 +02:00
metal3d 1a5c95d240 fix(ci): typo in permission block 2025-07-06 14:26:20 +02:00
metal3d 21845c5de1 fix(ci): typo in permission block 2025-07-06 14:24:12 +02:00
metal3d 4a91d458fd fix(ci): try to add permission block 2025-07-06 14:21:56 +02:00
metal3d a52b20efab Merge pull request #128 from metal3d/feat-change-actions
Feat change actions
2025-07-06 14:16:38 +02:00
metal3d 02c4c5168b feat(ci): Changes CI
- use SonarQube action
- remove the helm installation as it is already present
- changes types and branches activation
2025-07-06 14:13:23 +02:00
metal3d 7b875454cb feat(chore): use range over int
More readable range
2025-07-06 11:53:56 +02:00
metal3d 2da5d9df08 feat(chore): modernize code 2025-07-06 11:53:24 +02:00
metal3d a0eb3c0bb6 fix(doc): Fix doc string 2025-07-06 11:52:48 +02:00
metal3d 7e76543c48 fix(doc): Fix the docstring following Go recommandation 2025-07-06 11:41:19 +02:00
metal3d 09c2c86d59 fix(permission): globalize and fixes
Permission alert frop OpenGrep is wrong, as the directory must use 0755.
To make things working and to ease futur changes, I set the default
permission in a constant.
2025-07-06 11:39:19 +02:00
metal3d e58948bb44 feat(code): use better check on empty string 2025-07-06 10:53:18 +02:00
metal3d a00b03b2aa feat(chore): Add SAST with opengrep 2025-07-06 10:52:56 +02:00
metal3d b47b956798 fix(install): Enhance checks and code
- Opengrep complains about non quoted strings
- Bad indentation fixed
2025-07-06 10:52:35 +02:00
metal3d a409a1347e feat(chore): rename variable 2025-07-06 10:51:25 +02:00
metal3d 8999aabc21 fix(security): Change access rights on generated directories
Ppengrep complains, it is right.
2025-07-06 10:51:09 +02:00
metal3d 14e8907437 feat(doc): Add package doc for labels 2025-07-06 10:49:54 +02:00
metal3d 740c400b9a Merge pull request #127 from metal3d/develop
feat(doc): regenerate the package docs
2025-07-04 15:05:34 +02:00
metal3d 7cd38bbd23 feat(doc): regenerate the package docs 2025-07-04 14:59:49 +02:00
metal3d 8c509b5bff Merge pull request #126 from metal3d/develop
Merge branch 'master' into develop
3.0.0-rc3
2025-07-04 14:53:00 +02:00
metal3d 28b22a0b30 Merge branch 'master' into develop 2025-07-04 14:49:35 +02:00
metal3d 748d0bf1ea Merge pull request #120 from metal3d/develop 2025-06-27 00:27:49 +02:00
metal3d 130e6d4e24 chore(dependencies): Update dependencies 2025-06-26 23:57:44 +02:00
metal3d a66fec07e1 chore(optim): Optimizing some piece of code
Simply use modern methods
2025-06-26 23:57:19 +02:00
metal3d a3d1e9342f fix(doc): Follow Go recommendations 2025-06-26 23:56:06 +02:00
metal3d 72bc88661a fix(convension): Fix APIVersion
Sonarlint complains about "ApiVersion"
2025-06-26 23:37:20 +02:00
metal3d e2b897eb9d fix(generation): Fix container name
Container names were built using the service name. We didn't checked the
name and leave underscores inside.

This commit does:
- fix all service and rename containers (`container_name`)
- use `ContainerName` everywhere we need to get the container by name

See #106
2025-06-26 23:37:20 +02:00
metal3d 9fcce059e5 fix(doc): Fixing method name in comment 2025-06-26 23:18:11 +02:00
metal3d 36f6413917 feat(build): UPX compression
UPX can compress binaries from 22Mo to 7Mo on Linux / Windows and 14Mo
on MacOS. Let's use it to reduce binary size.

I don't know why it doesn't work on FreeBSD.
2025-06-15 16:02:45 +02:00
metal3d 8c729f3c57 fix(build): remove "-it" options
Building in parallel make a warn message as TTY is not OK
2025-06-15 16:01:16 +02:00
metal3d 063cc9d439 Merge pull request #119 from metal3d/develop
Develop
2025-06-15 16:14:10 +03:00
metal3d ac5317e600 feat(doc): regenerate docs 2025-06-15 14:48:35 +02:00
metal3d bc0b65006d feat(doc): Add doc target
This only regenerates docs for packages.
2025-06-15 14:48:24 +02:00
metal3d 933f04bf5e feat(version): change Go version 2025-06-15 14:43:58 +02:00
metal3d 7d46435ba2 Merge pull request #118 from metal3d/develop
Develop
2025-06-04 15:22:09 +02:00
metal3d d94bb8ac32 feat(doc): regenerate documentation 2025-06-04 15:18:11 +02:00
metal3d b143f743ef feat(chore): Add tests and use "any" instead of "inteface" 2025-06-04 15:17:26 +02:00
metal3d a8341a9b44 feat(tests): .Close() can be "unchecked" 2025-06-04 14:41:53 +02:00
metal3d def5d097a4 feat(tests): Fixing linter problems
Using golangci-lint
2025-06-04 14:29:13 +02:00
metal3d ba0ae1bc60 Merge pull request #117 from metal3d/develop
Develop
2025-06-04 09:51:48 +02:00
metal3d d77029b597 feat(version): update dependencies
New versions for:
- Cobra
- K8S API
- indirect subpackages
2025-06-04 09:48:52 +02:00
metal3d b5f62d43af fix(test): Fix non constant string format
Go 1.24 made several changes about formatting messages:
https://tip.golang.org/doc/go1.24#vet

These changes make tests (and vet) craching.

The fix is to use a string format and give error message as argument.
2025-06-04 09:46:13 +02:00
metal3d 9220dc3278 fix(test): Fix bad test
We were failing if the test is OK...
2025-06-04 09:24:33 +02:00