Jose Diaz-Gonzalez
e397604841
refactor: move the labels to the properties folder
...
To be quite honest, these should just be in the docker-options plugin, but I think its fine to have them tracked separately for now.
2025-11-16 17:59:46 -05:00
Jose Diaz-Gonzalez
f99e3a6c9c
feat: add ability to suspend and resume a cron task by ID
...
This takes advantage of the properties system and allows users to suspend/resume the task at will.
2025-11-09 23:16:38 -05:00
Jose Diaz-Gonzalez
dc35a7876c
fix: do not change permissions on config directory symlinks
...
When running in docker, the 'config' directory can be a symlink, which causes issues during plugin installation.
Refs #7308
2025-08-11 23:46:14 -04:00
Jose Diaz-Gonzalez
042495bcd6
fix: ensure keda auth secrets are written out
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
ea55071751
feat: check errors when writing files
2024-02-06 04:36:11 -05:00
Jose Diaz-Gonzalez
a277c5da1b
refactor: allow setting more options when changing permissions on a file
...
Rather than hardcoding paths, just allow them to be options.
2024-01-30 07:31:02 -05:00
Jose Diaz-Gonzalez
580d2dc3ee
feat: add support for global-only environment properties
...
If a property is only specified globally, it would otherwise be caught later in the check for valid properties.
2024-01-18 19:16:13 -05:00
Eng Zer Jun
1d186a5a81
refactor(plugins): replace deprecated io/ioutil functions
...
The io/ioutil package has been deprecated as of Go 1.16 [1]. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.
[1]: https://golang.org/doc/go1.16#ioutil
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-12-22 01:59:22 +08:00
Jose Diaz-Gonzalez
2a04ed70b6
fix: do not attempt to sprintf properties
...
Previously, any properties with a % would be formatted using sprintf, causing issues when consuming those values later on.
2021-09-10 23:02:21 -04:00
Jose Diaz-Gonzalez
401683a305
refactor: write DOKKU_SCALE contents to scale property
...
- remove extraction of DOKKU_SCALE
- migrate to property system
- rewrite internals to use a FormationSlice instead of a map
2021-08-01 17:47:04 -04:00
Jose Diaz-Gonzalez
d55e34a55f
refactor: use LogFailWithError to allow a unified exit code for golang commands when the app is missing
2021-02-28 15:20:46 -05:00
Jose Diaz-Gonzalez
12e2686e3f
fix: always report resource
2021-02-01 19:57:22 -05:00
Jose Diaz-Gonzalez
6eb0bd8c87
chore: sort set properties
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
6f9a6eb294
fix: only check for global properties when appName is --global
2021-01-04 12:43:15 -05:00
Jose Diaz-Gonzalez
e1425a85e4
feat: add ability to set global properties
...
Not all properties can be set globally, and the "appName" in the global case is currently defaulted to `--global`. This is okay because domain label names cannot start with hyphens, and all app names must be valid domain label names.
2021-01-04 00:50:14 -05:00
Jose Diaz-Gonzalez
66696d0b46
refactor: export SetPermissions function
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
943e032d12
refactor: use path/filepath instead of path for joining path parts
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
aff0c1fc40
fix: check if the property exists before returning an error
2020-05-29 14:42:30 -04:00
Jose Diaz-Gonzalez
fdf09adcd5
fix: ignore errors when getting all properties
2020-02-17 21:48:33 -05:00
Jose Diaz-Gonzalez
d336d7c5c2
feat: add prop clone command
2020-02-17 18:48:06 -05:00
Jose Diaz-Gonzalez
d2ecd76646
fix: handle case where defaultValue was not properly returned by get-with-default
2019-12-19 02:29:22 -05:00
Jose Diaz-Gonzalez
79b344bbe4
feat: add list-length method to shell functions
2019-11-27 17:08:18 -05:00
Jose Diaz-Gonzalez
4d9e8f5f7d
refactor: unify property function implementations
...
Rather than reimplementing the property functions in two different languages - and potentially having compatibility issues - standardize on golang for the implementation through the use of a generated binary.
This also implements all the list functions for use with shell-based plugins.
Note that the interface to the prop binary is experimental, and it should not be used directly.
2019-11-27 16:37:10 -05:00
Jose Diaz-Gonzalez
e8134f9c2c
feat: implement resource:report
2019-04-08 11:31:34 -04:00
Jose Diaz-Gonzalez
d3d426a8d9
tests: add functional tests for buildpacks plugin
2019-03-05 21:41:23 -05:00
Jose Diaz-Gonzalez
6cae92e1f1
fix: add missing comments to exported functions
2019-03-05 21:41:23 -05:00
Jose Diaz-Gonzalez
3670d7efcd
fix: correct fmt.Errorf violations
2019-03-05 21:41:23 -05:00
Jose Diaz-Gonzalez
887c1d4254
feat: implement buildpacks plugin
...
This will allow users to specify buildpacks outside of a git repository.
Note that this does not override any specified `BUILDPACK_URL`.
Closes #3256
2019-03-05 21:41:23 -05:00
Jose Diaz-Gonzalez
a56ae22614
refactor: switch to path.Join
...
This is the _correct_ way to join paths in golang
2019-03-05 21:34:26 -05:00
Jose Diaz-Gonzalez
6f1e964c9f
refactor: ensure all property-handling functions return an error
...
This will allow upstream functions to handle errors in the most appropriate manner
2019-03-05 21:34:26 -05:00
Jose Diaz-Gonzalez
4db7ebd743
feat: add helper method for ensuring a property file exists
2019-03-05 21:34:26 -05:00
Jose Diaz-Gonzalez
83f5e380d4
refactor: add helper method for getting the path of a property
2019-03-05 21:34:26 -05:00
Jose Diaz-Gonzalez
34f5eaeaa2
chore: rename helper method
2019-03-05 21:34:26 -05:00
Jose Diaz-Gonzalez
615119260d
fix: ensure chowned properties always have a user and group set
...
Depending on the execution path, the variables may not be set at the top-level.
Closes #3328
2018-12-12 02:55:38 -05:00
Jose Diaz-Gonzalez
ec47b1bcc7
refactor: set DOKKU_SYSTEM_USER and DOKKU_SYSTEM_GROUP at the top-level
2018-10-21 12:50:39 -04:00
Jose Diaz-Gonzalez
b250fe6aeb
feat: allow changing the system user the properties plugin uses
2018-01-12 04:23:07 -05:00
Michael Hobbs
8654783131
style tweaks
2017-10-02 16:50:05 -07:00
Jose Diaz-Gonzalez
acde3d60a7
feat: allow users to bind to all interfaces when a proxy is enabled
...
- use a plugin trigger to see whether we should bind to all interfaces
- create a generic way of setting properties for a plugin
- migrate proxy-enabled to the new network property "bind-all-interfaces"
- add network:set subcommand
2017-10-02 15:05:13 -07:00