Commit Graph
100 Commits
Author SHA1 Message Date
metal3d 4c566cbc1a fix(doc): Fix function doc 2025-07-07 22:47:59 +02:00
metal3d 69c528e5e0 chore(doc): Enhance documentation, fix typo 2025-07-07 22:10:27 +02:00
metal3d 42bf35593f chore(makefile): rewrite correctly some rules
- cleanup
- sign and check gpg signature
- fixup NSIS installer method
- also sign windows installer
2025-07-07 21:58:15 +02:00
metal3d 4e739c5f08 fix(doc): Fixing duplicated package 2025-07-07 21:57:14 +02:00
metal3d f75623b4ff chore(nsis): sort language
Sort all languages, excepting the first one wich is the default language
2025-07-07 21:31:58 +02:00
metal3d d82b5e4a98 feat(nsis): Add more languages, files and license page
- Include maximum of language for the Windows installer
- Add licence page to inform the user that Katenary is free (as freedom)
2025-07-07 18:18:20 +02:00
metal3d 42c738211c fix(build): Fixing build, do not use alpine
Alpine image seems to break the Windows binary (striped by error) and
makes katenary unusable.
2025-07-07 17:59:16 +02:00
metal3d c54bc35c9f feat(nsis): Create installer for Windows
Use nsis to create an installer for Windows user. It installs the binary
for the user (for now) and set the Path to access katenary binary from
cmd or Powershell.
2025-07-07 17:58:21 +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 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 7cd38bbd23 feat(doc): regenerate the package docs 2025-07-04 14:59:49 +02:00
metal3d 28b22a0b30 Merge branch 'master' into develop 2025-07-04 14:49:35 +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
metal3d 36c72fb665 Merge pull request #114 from GSergeevich/readme_fix
Fix example of docker-compose.yml
2025-04-02 15:01:06 +02:00
metal3d 9ef961ae7c issue(107): Really drop ignored services
It's, at this time, not needed to keep the ignored services inside the
project. Maybe later someone will ask to keep env variables, or
something like this... But at this time, it's a source of bug like #107.
2025-01-19 23:38:17 +01:00
metal3d fe6663f9f4 issue(106): Fix service names with dashes
See #106, I need to add a test on "same-pod" label.
2025-01-19 23:24:09 +01:00
metal3d 1190b316bb Merge pull request #108 from metal3d/develop
Bump versions
2025-01-17 22:19:42 +01:00
metal3d 7068dc229c Merge pull request #104 from metal3d/dependabot/go_modules/develop/k8s.io/api-0.32.1
chore(deps): bump k8s.io/api from 0.32.0 to 0.32.1
2025-01-17 22:12:36 +01:00
metal3d 116ef658d8 Merge pull request #103 from metal3d/dependabot/go_modules/develop/github.com/invopop/jsonschema-0.13.0
chore(deps): bump github.com/invopop/jsonschema from 0.12.0 to 0.13.0
2025-01-17 22:09:53 +01:00
metal3d d7b354de8c Merge pull request #105 from metal3d/dependabot/go_modules/develop/k8s.io/apimachinery-0.32.1
chore(deps): bump k8s.io/apimachinery from 0.32.0 to 0.32.1
2025-01-17 22:09:28 +01:00
metal3d 80aba05f66 Merge pull request #101 from metal3d/develop
Enhance tests
2024-12-17 18:25:34 +01:00
metal3d 41a4292939 chore(test): enhance error handling and avoid repetitions 2024-12-17 18:22:45 +01:00
metal3d 131ea5d569 mod(version): update k8s.io api modules 2024-12-17 18:22:20 +01:00
metal3d e36bbf41f4 Update go-test.yaml
Use mod tidy as dependabot may change the go.mod file
2024-12-17 18:09:40 +01:00
metal3d c97b398914 Merge pull request #96 from metal3d/develop
Fixing docs
2024-12-05 09:47:29 +01:00
metal3d d27ed76cf4 doc(readme): better comments 2024-12-05 07:24:23 +01:00
metal3d 17b6ea51af fix(doc): Bad variable name in secrets 2024-12-05 07:23:58 +01:00
metal3d 0986f73f06 Merge pull request #95 from metal3d/develop
Add SecretName in TLS + adapt github actions
2024-12-05 07:16:33 +01:00
metal3d dcd282779f test(gh): Ordering steps...
I'm stupid... I need to upload artifacts after the creation.
2024-12-05 07:08:16 +01:00
metal3d b93a3df98c test(gh): Checkout project 2024-12-05 07:04:47 +01:00
metal3d 4768330c1a test(gh): Fix job name 2024-12-05 06:55:50 +01:00
metal3d 23d0afd85f test(gh): Use 2 steps
I prefer to split tests and sonar upload
2024-12-05 06:54:38 +01:00
metal3d 5c939383be chore(tls): Add secretName to the values
The seret name for TLS wasn't editable, it may be useful to change it
when we generate TLS certificates for specific installation.
2024-12-05 06:43:43 +01:00
metal3d 72ddb8aa74 Merge pull request #94 from metal3d/develop
chore(presentation): Update README
2024-12-03 15:14:54 +01:00
metal3d 4d0e5b2e6a chore(presentation): Update README 2024-12-03 15:13:28 +01:00
metal3d 58d1e8e450 Merge pull request #92 from metal3d/develop
doc(refresh): Refresh doc after changing functions
2024-12-03 14:47:52 +01:00
metal3d d0790f37a8 doc(refresh): Refresh doc after changing functions 2024-12-03 14:45:27 +01:00
metal3d 62b0576c2d Merge pull request #91 from metal3d/develop
Fix binary data, Add tests, Error management
2024-12-03 14:44:19 +01:00
metal3d e574a2e2a8 chore(errors): Better error management
We must remove all "Fatal" calls and use errors instead, to be returned
and managed globally.
This is the first step, but it is, at this time, a real problem. Tests
are complicated without this.
2024-12-03 14:37:13 +01:00
metal3d eb760d4299 test(subdir): Add globally mount binary files 2024-12-03 14:03:36 +01:00
metal3d 3833037862 doc(refresh): after changing names and adding functions 2024-12-03 13:52:22 +01:00
metal3d 6dc92df4b5 chore(icons): Better icons for warning and info 2024-12-03 13:51:39 +01:00
metal3d d458cdbd73 chore(configmap): Manage binary data in configMap
We should be now able to detect and manage binary files to be injected
in configMaps
2024-12-03 13:50:58 +01:00
metal3d 628b35d471 doc(readme): fix the schema location 2024-12-01 08:48:33 +01:00
metal3d 84363be0e8 Fix Readme after merging master into develop 2024-11-27 09:27:28 +01:00
metal3d 5284cdf5cc Merge pull request #90 from metal3d/develop
Remove update functions and fix dependabot target branch
2024-11-27 09:23:44 +01:00
metal3d 632ffc2b66 chore(module): update dependencies
Updated k8s.io/api, x/exp, x/net, and structured-merge-diff
2024-11-27 09:21:33 +01:00
metal3d 2ff705164e chore(module): Cleanup 2024-11-27 09:17:45 +01:00
metal3d 73ab867509 chore(update): remove the update methods
The update functions were not linked and absolutely not stable anyway. I
will find a better way to propose a check-update method later.
2024-11-27 09:16:49 +01:00
metal3d 45e44dee14 wip(update): the update function is not clean 2024-11-27 00:46:15 +01:00
metal3d 689c2a4803 Use develop branch please 2024-11-27 00:26:25 +01:00
metal3d e023544c8a Merge pull request #88 from metal3d/develop
Enhance doc, description, examples
2024-11-27 00:00:58 +01:00
metal3d 10b7a49bbf doc(enhancement): Katenary is complete, and we can add values-from example
- Katenary is no longer a "bootstraper", it **should** generate a
complete Helm chart
- Add a `values-from` example, because this label is very useful
2024-11-26 23:43:57 +01:00
metal3d bb1354e228 doc(refacto): Rewrite label types, and format table
- I prefer using Go types, more explicit in my humble opinion
- The markdown table wasn't well-formed
2024-11-26 23:42:39 +01:00
metal3d 957cc4bcf6 Merge pull request #87 from metal3d/develop
Add schema to the root, fix test coverage
2024-11-26 17:55:46 +01:00
metal3d 9f1f6c7e78 test(version): cover the version function 2024-11-26 17:53:43 +01:00
metal3d a80ddcc054 test(main): More tests in main command package 2024-11-26 17:45:57 +01:00
metal3d 921eaff367 chore(output): Version should be printed in stdout
It seems that "println" failed to write on stdout
2024-11-26 17:45:42 +01:00
metal3d b63d8e4210 doc(readme): Explain the use of the yaml/json schema
And set heading level to 2
2024-11-26 17:10:54 +01:00
metal3d 9766dac763 yaml(schema): Propose a schema to use with LSP
This schema works, at least, with yaml-lsp (yamlls) in NeoVim.
2024-11-26 17:02:25 +01:00