Commit Graph

75 Commits

Author SHA1 Message Date
2b1dc68303 Fix slice index removing 2022-05-07 17:39:03 +02:00
a4b848a83c Fix bad log 2022-05-07 17:33:43 +02:00
2e1950174c New label to get volumes from another service
- fix container name
- the volume-from label works only with "same-pod" label of course. It
  allows the use of the same volume from another service to be shared in
  a same pod. E.g. php-fpm + nginx
2022-05-07 10:07:10 +02:00
b1b96d8318 A big commit to fix more things, see details
- ingress can now have annotations
- configmaps are better named and there is a label to know from where
  the content is taken
- fixed bad "nil" pointer checks
- we force to not resolve paths from compose file, this should be a
  problem when we call the compose file from outside. So, TODO: check
  this!
- the "project" label is now the Chart Name, not a static string
- minor fixes
2022-05-06 20:18:10 +02:00
0f5b66d209 Trim spaces on coma separated values
Maybe a function to ensure this... later...
2022-05-06 15:21:47 +02:00
3031f37509 Refactorisation and improvements
- image of container is now splitted in repository and tag (in values
  and deployment). The "tag" is tested in deployment
- add "chart-version" option

Code:

- globalize the PVC generation
- ensure types for environment values
- refactored to make generic the container creation in a deployment
- avoiding race condition on ServiceConfig by using a copy (then a
  pointer of this copy)
2022-05-06 13:42:53 +02:00
1b9ac9ca8a Changed behavio on environment
- variables are all in values.yaml as "template string". This means that
  we can now set values to reference others (useful with mapenv label)
- we can also set any variable as a secret
2022-05-06 09:55:12 +02:00
1e8f417418 Set environment variables to values.yaml 2022-05-05 19:02:13 +02:00
2869460356 The mapenv label, documented, fixed 2022-05-05 14:04:09 +02:00
dbe9fc25ea Add mapenv label that is more agnostic
- that means that katenary.io/env-to-service is now DEPRECATED
- the yaml style in label is OK, that allows more possibilities and
  adaptation for users
2022-05-05 13:55:33 +02:00
fe45157439 Fixed Values that was badly initialized 2022-05-05 13:22:39 +02:00
ee5a18ae86 Formatting and comment 2022-05-05 12:21:09 +02:00
d72ab14400 Better Probe builder
- we didn't get probe configuration from compose, it's now fixed
- the HealthCheck object is tricky because it overrides `time.Duration`,
  we are using specific initialization in NewProbeWithDuration
- it is easier to pass the ServiceConfig to NewProbeFromService
2022-05-05 12:16:04 +02:00
bfe6738348 Use pointer for Value, change RELEASE_NAME const 2022-05-05 11:33:02 +02:00
ddcc3d00d3 Remove debug log 2022-05-05 10:48:14 +02:00
710b46061d Forgotten to use configured indent size 2022-05-05 10:46:22 +02:00
71befefea8 Better file closing 2022-05-05 10:45:41 +02:00
0a20be9660 Better file closing 2022-05-05 10:44:43 +02:00
5f2f27f72b More documentation 2022-05-05 10:44:20 +02:00
053292f37c Add a "ignore" label to skip a service 2022-05-05 10:22:02 +02:00
8ce0d64e62 Fix probes 2022-05-05 09:24:51 +02:00
6eb8ec9915 Fix problems of new line + add comments 2022-05-05 09:08:12 +02:00
13f74c9e4d Optim 2022-05-05 08:59:31 +02:00
979206d3bf Fix multiple problems on ingress version check 2022-05-05 08:56:12 +02:00
fa9aebb8e5 Remove doubles from envfile and env 2022-05-05 08:05:15 +02:00
c9bdd1b718 Fixup not bound volumes 2022-04-05 09:33:49 +02:00
1975b8fb89 WIP Fix probes 2022-04-05 09:17:18 +02:00
bd133431bf Ports labels were doubled 2022-04-05 08:22:53 +02:00
5e8cf47ab6 WIP try to fix race condition and tests 2022-04-05 08:05:33 +02:00
8f3a9aedcd Remove noisy logs 2022-04-04 13:53:13 +02:00
30a79998ab Fix label ports 2022-04-04 13:52:28 +02:00
e346bb3ae4 WIP - there still are problem with several things
- ports label are not well managed
- no heathcheck, have to be rewritten
- many problem with generated compose file from memory
2022-04-04 09:53:36 +02:00
cc73d57f5a better loop range 2022-04-03 16:09:33 +02:00
3c6b9493db WIP Try to use composer-go
- there are problems to resolve with health check
- compose/parser.go and compose/types.go should be recheck
- need to recheck writers
2022-04-03 16:08:00 +02:00
a87391e726 Fix healthcheck
see #8
2022-04-01 17:39:41 +02:00
e72a8a2e9c Fix envfile detection
+ The envfiles were not added!

see #8

TODO: what are the others properties to fix this way?
2022-04-01 10:43:08 +02:00
7dc5d509f7 Fix the problem with "ugly" environment syntax
We can now manage "- A=B" format as "A: B"

Some others properties than environment may have this problem (e.g.,
command) so we will fix this later.

fix #4
2022-04-01 09:22:00 +02:00
a9b75c48c4 Add test for bad volumes 2022-04-01 08:22:06 +02:00
6ea3a923cc Avoid "not mapped" volumes
fix #5
2022-04-01 08:18:45 +02:00
7ba68c2854 If there is no image name, fail!
fix #6
2022-04-01 08:04:37 +02:00
7b774e84d8 Develop (#3)
* Update command added
* Ensure that the upgraded version is really greater
* Update command should not update prerelease
* Minor presentation changes
* Fix command generation in containers from docker-compose file
- Refactored service creation
* Place the full command to the "cmd" package
* Update cobra to v1.4.0
* Updated build and release creation
* Created an install script
* Add more doc
* Add some tests...
* Add a test directive in Makefile
2022-03-31 14:12:20 +02:00
95c24be14a Make it possible to mount one file from configMap 2022-02-17 11:38:23 +01:00
bf44d442e5 Fix "/" in configMap names
Fix #2
2022-02-17 11:04:04 +01:00
5d574015ce Fix the missed volume mount for empty dirs
Fix #1
2022-02-17 10:43:07 +01:00
513039e3c9 Add ability to link containers in one pod 2022-02-16 17:40:11 +01:00
0d1a6f8c82 Fix some indentation behavio + add indent flag 2022-02-16 10:56:21 +01:00
a4834a0661 Now manage kubernetes version in ingress
The backend and ingressClassName are now under condition
2022-02-16 10:37:46 +01:00
5a4d9e396d Add healtcheck + some fixes
- better docs
- add healtcheck based on docker-compoe commands or labels
- fix some problems on secret names
- better dependency check
2022-02-14 14:37:09 +01:00
8d4ea90a9a Fix name generation with "." and "/" 2022-02-02 10:15:14 +01:00
4320519a2a Fix the volume name with minus sign 2022-02-02 10:09:42 +01:00