Commit Graph

320 Commits

Author SHA1 Message Date
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
v3.0.0-rc1
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
metal3d 441be30720 chore(version): Get the version following how katenary is installed 2024-11-26 16:47:37 +01:00
metal3d e13653fba1 doc(readme): fix the command line help output 2024-11-26 16:47:05 +01:00
metal3d 6b301f3171 Merge pull request #86 from metal3d/develop
Add "values-from" and more tests
2024-11-26 16:29:14 +01:00
metal3d 9181c389d4 doc(refresh): Refresh documentation 2024-11-26 16:11:46 +01:00
metal3d 3b4dade699 chore(label): new label "values-from"
This labels allow to use some environment variables from another service
and use the configMap / secret instead of the original value. This is
useful to avoid duplication of values for several variables.
2024-11-26 16:11:12 +01:00
metal3d 4f0298c0a9 test(utils): Add some tests 2024-11-26 16:09:12 +01:00
metal3d 5f20585fb2 Merge pull request #85 from metal3d/develop
test(codecov): remove codecov
2024-11-26 09:10:48 +01:00
metal3d 0714eac615 test(codecov): remove codecov
Codecov is very nice but we already use SonarQube to evaluate the code
coverage.
2024-11-26 09:08:49 +01:00
metal3d 456e7f41f2 Merge pull request #82 from metal3d/develop
Some fixes on "same-pod" and volumes + add some tests
2024-11-25 23:17:56 +01:00
metal3d fc335247f8 chore(tests): exlude tests for sonarqube 2024-11-25 23:11:14 +01:00
metal3d ad16005091 test(schema): Add test on ingress 2024-11-25 12:10:41 +01:00
metal3d a676372bbe chore(clean): remove unused functions 2024-11-25 12:02:19 +01:00
metal3d 7fadc45e9e chore(typo): bad markdow, bad label name 2024-11-25 12:02:04 +01:00
metal3d 41a0dc58a5 chore(typo): fix some typos 2024-11-25 12:00:04 +01:00
metal3d dc34d32c5c test(secrets): add tests 2024-11-25 11:54:38 +01:00
metal3d 36984e3825 chore(clean): remove unused functions 2024-11-25 11:54:18 +01:00
metal3d 046410a5ec chore(refacto): use utils package 2024-11-25 11:54:00 +01:00
metal3d 827b5bc830 test(values): add map-env and exchange volumes tests 2024-11-22 16:23:00 +01:00
metal3d 8aee6d9983 fix(nil): The service can not exist 2024-11-22 16:11:55 +01:00
metal3d 7b890df1c5 fix(schema): Use ingress default values
Ingress has some default values, like path and classname. We need to
ensure that values are taken or nil, and to apply them if they are not
set explicitally. Port is a sepcial case.
2024-11-22 15:55:59 +01:00
metal3d e925f58e82 doc(add): Add more documentation about katenary file 2024-11-22 15:12:44 +01:00
metal3d 91fc0fd9f0 fix(doc): missed a new line 2024-11-22 14:58:43 +01:00
metal3d 1a1d2b5ee8 fix(configmap): do not write env var in file CM
File CM are configmap to store "static" data (file content), do not set
environment variables inside.
2024-11-22 14:55:42 +01:00
metal3d 95f3abfa74 feat(volume): add "exchange volumes"
This volumes are "emptyDir" and can have init command. For example, in a
"same-pod", it allow the user to copy data from image to a directory
that is mounted on others pods.
2024-11-22 14:54:36 +01:00
metal3d 3b51f41716 chore(names): Fix resource name
Use an utility function to fix some names
2024-11-21 11:12:38 +01:00
metal3d 3f63375b60 refacto(labels): use external files
Files are more readable as external. Use "go:embed" to inject them.
2024-11-21 11:08:55 +01:00
metal3d 8c97937b44 test(schema): Add tests 2024-11-21 11:08:09 +01:00
metal3d 96f843630a chore(misc): make the code more readable here 2024-11-21 11:04:19 +01:00
metal3d 48f6045cd3 fix(same-pod): environnment and volume mapping
We must ensure that the volume is owned by the container.
The environmment configMap wasn't bound.
2024-11-21 11:03:10 +01:00
metal3d 49045a2ccd Merge pull request #81 from metal3d/develop
Cleanup, re-factorization and allow the use of a katenary.yaml file.
Fixing a wrapping string problem.
Move the label management in a package.
2024-11-19 13:44:04 +01:00
metal3d af8dabba85 fix(secrets): Wrapping values is unecessary
It seems that go-compose now escape the string
2024-11-18 17:42:21 +01:00
metal3d cc1019b5a8 chore(refacto): fix secret and use katenary schema
- add possibility to use a katenary.yaml file to setup values
- fix secret generation
2024-11-18 17:12:12 +01:00
metal3d 14877fbfa3 Remove example for now 2024-11-10 00:49:38 +01:00
metal3d 7b5e45131c doc(fix): fixes the main-app documentation
There were a problem, sentence was truncated
2024-11-09 14:19:56 +01:00
metal3d b09316b416 refactor(yaml): globalize fixups
The ToK8SYaml() function makes the job, it's now simpler to manage fixes
2024-11-09 14:18:27 +01:00