Commit Graph

160 Commits

Author SHA1 Message Date
333d051d49 Fix problems with relative/absolute path 2022-05-08 09:11:31 +02:00
7e861618bb Remove useless temporary slices 2022-05-08 08:31:43 +02:00
e7e4746774 Better path to name + more comments 2022-05-07 17:39:52 +02:00
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
baeb8a612a Add more doc + deprecate env-to-service 2022-05-06 15:22:33 +02:00
0f5b66d209 Trim spaces on coma separated values
Maybe a function to ensure this... later...
2022-05-06 15:21:47 +02:00
d4f89f60c9 Remove label "env-to-services"
Deprecated and really complex to manage with the new mapenv label.
2022-05-06 15:14:57 +02:00
f6126e5ce1 Make it possible to first use compose.yaml files
I prefer podman :p
2022-05-06 15:13:29 +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
2721cb1136 Fixed updated versions 2022-05-06 13:42:21 +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
a8565b55a7 Fix examples 2022-05-05 14:20:19 +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
f10e09eba5 Formatting 2022-05-05 10:23:43 +02:00
053292f37c Add a "ignore" label to skip a service 2022-05-05 10:22:02 +02:00
910933e5f3 Updated dependencies 2022-05-05 09:49:31 +02:00
b6f2e480ba Refacto to split types 2022-05-05 09:43:52 +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
ad336c27a1 Fix use of BUILD_IMAGE 2022-05-05 08:24:19 +02:00
4c85097f2c Move command to a correct dir name 2022-05-05 08:08:38 +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
165054ca53 For single env_file, it's a string...
see #8
1.0.0-rc7
2022-04-01 17:49:10 +02:00
a87391e726 Fix healthcheck
see #8
1.0.0-rc6
2022-04-01 17:39:41 +02:00
f8dcd2026b Fix test command to make it work as string / slice
see #8
1.0.0-rc5
2022-04-01 16:58:13 +02:00