Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/katharostech/lucky
The Lucky charm framework for Juju.
https://github.com/katharostech/lucky
ff57e6187ead9dcbcd7e900be0f783a310d464a4 authored almost 5 years ago by Zicklag <[email protected]>
10dc5b6fc61f07efb651b326825b179082eab13b authored almost 5 years ago by Zicklag <[email protected]>
d8cf16892e154a5281e07557298622ca654eb883 authored almost 5 years ago by Zicklag <[email protected]>
e53777f2f88364445bdb69621a75ccbc848f1bdc authored almost 5 years ago by Zicklag <[email protected]>
db8b693c60a947deef3d8bd0a881f14b0b70b4b0 authored almost 5 years ago by Zicklag <[email protected]>
Refine the last commit's code a bit.
4afe59d13079796ba3cddcf3fa6e599526ceeec4 authored almost 5 years ago by Zicklag <[email protected]>
- Made cron tick trigger and sleep until exactly when the next job is
needed based on the sche...
The command unnecessarily unset the ArgRequiredElseHelp setting.
8e061bd2a07b16480c57eff9fc91476db6918b5a authored almost 5 years ago by Zicklag <[email protected]>
Remove unnecessary `Ok(())`s when I can just return the return value of
`call.reply()`.
- Set daemon worker threads to 1 instead of num cpus
66f12117b3aa61982b5f74088519ef3a5adfd4ad authored almost 5 years ago by Zicklag <[email protected]>
Change the strategy used to spawn background daemon and avoid piping
data ouput. This will hopef...
f37067b4734585d667e72c4da616d3af7653966b authored almost 5 years ago by Zicklag <[email protected]>
Better panic makes even nicer backtraces than color backtrace!
cb4682815f78f37ad6dac4e9d11d47ad570e5cc1 authored almost 5 years ago by Zicklag <[email protected]>5d077df487aa8069cacb102ebd5f70544407de50 authored almost 5 years ago by Zicklag <[email protected]>
ea220fc2bcb17b9af866be375364095b96cfbf3d authored almost 5 years ago by Zicklag <[email protected]>
The status name argument was unintentionally left un-required.
e7718a4fa14a97f2cb2288b2c66239a35e7631cd authored almost 5 years ago by Zicklag <[email protected]>
If the terminal size is less than 3 columns wide there was an overflow
in the width usize causin...
I forgot that you could just use dereferenced assignment: *value = v
f8ef8c74de5fa64dbfcba25e037ac9c1bf66c6bb authored almost 5 years ago by Zicklag <[email protected]>
- Add `shell-command` option to inline scripts and `container-name` to
container scripts in luc...
f229887d6154eab6a81322980c9500795bc21c94 authored almost 5 years ago by Zicklag <[email protected]>
- Add checking to random range verifying lower bound is less than upper
bound.
395a002e524c0733d82df6698aa0cdcb58cba0df authored almost 5 years ago by Zicklag <[email protected]>
We were previously re-serializing the charm metadata, but we haven't yet
captured all of the pos...
- Make sure only supported script types can have "args" specified
- Make sure script type denies...
c695e06642f7c8f0ce3affdaf576077cf2a6af13 authored almost 5 years ago by Zicklag <[email protected]>
- Add the `LUCKY_HOOK` environment variable to script environment
031de94f652a398c61cd4454a8ff749c2b50a5fa authored almost 5 years ago by Zicklag <[email protected]>f1e6cacdcc0e1038b3ab7517376f12777d3481e0 authored almost 5 years ago by Zicklag <[email protected]>
97fc41b1cc15ea3427d9fe8a08bcc02c84c0d442 authored almost 5 years ago by Zicklag <[email protected]>
s/use-default-feature/use-default-features/
f0827b80dc70b3999b4429bc15d9e2ba3962665f authored almost 5 years ago by Zicklag <[email protected]>ad6939f315f015a037fefcba6b3862a3bce08337 authored almost 5 years ago by Zicklag <[email protected]>
1d9a653c68687d01878427b61ee02c9544b751eb authored almost 5 years ago by Zicklag <[email protected]>
628dfd524e40830ef9ac5d42df83cfae4bbf3bd3 authored almost 5 years ago by Zicklag <[email protected]>
`lucky kv get` was failing with a "Requires More" error left over from a
previous implementation...
Print the times that it takes to run other processes in trace logs.
5554cbf34ed06d68a6543bdc63166845afe1b9f4 authored almost 5 years ago by Zicklag <[email protected]>81aada7cd95f4da0724538c4b7aabb482df59c96 authored almost 5 years ago by Zicklag <[email protected]>
The `relation_ids` function was calling `relation-list` instead of
`relation-ids`.
93574ee95630a3ad11f3028d615188aad22d560b authored almost 5 years ago by Zicklag <[email protected]>
389cd821d2576f3b0f2be3c886d2dd6b9d8813b6 authored almost 5 years ago by Zicklag <[email protected]>
3ee448b3b80e4b8bea34b97f00b11b23658d6ea0 authored almost 5 years ago by Zicklag <[email protected]>
Noted that the Lucky snap installs from latest master instead of the
pre-release like the Window...
You can now set the container command by passing all of the arguments
after a -- flag.
The change detector type was not derefing to the new_inner type when
there were changes and was ...
With the new update, changes to the configuration will not trigger
updates to the container if t...
Fix issue where containers were not being removed because top handler
would only run if there wa...
This is untested, but adds full bindings to Juju's relation and
leadership tools.
- Added `cfg(feature = "daemon")` annotations to fix the latest build
without the daemon.
- Ad...
- Throw error when attempting to add conflicting container port binding
25531b7f1274bb6ff1f45120037176100ab96d83 authored almost 5 years ago by Zicklag <[email protected]>Add option to close or remove all port openings/bindings.
e698c0555d84573a23316c38bd776d2c624de9a2 authored almost 5 years ago by Zicklag <[email protected]>
The old change detection technique would trigger false positive updates
when a mutable borrow oc...
This will fix the snapcraft builds, hopefully.
d3653eef6951c3f40765d5e6249ea5f20bcc2479 authored almost 5 years ago by Zicklag <[email protected]>1cc3821d4d9792658618fa93d8a86266b29fa12e authored almost 5 years ago by Zicklag <[email protected]>
This isn't yet tested. It will be tested after we have implemented
container ports.
7a118339dbbd41267ced02cf088a26eb809af638 authored almost 5 years ago by Zicklag <[email protected]>
- Change state_dir to data_dir and move it to
`/var/lib/lucky/charm_name`
d905b58a0b8dbb4ea7ba077cbe43afb6e9bd0bb9 authored almost 5 years ago by Zicklag <[email protected]>
You can now get the charm configuration from charm scripts.
ab209a2d92737a74ab26ad73881c4c5feacd79ac authored almost 5 years ago by Zicklag <[email protected]>
Made the requests more ergonomic by returning simple arrays instead of
using varlinks `--more` f...
5e8dcb2a5f24753e3fb1892d25f1eb60983835fc authored almost 5 years ago by Zicklag <[email protected]>
0dd86f4fa72a83836e6642891425520f727f0461 authored almost 5 years ago by Zicklag <[email protected]>
5c0f163aa39473b5f5fe2cceaa51fd3aab8cde4d authored almost 5 years ago by Zicklag <[email protected]>
We don't need to do this check in the CLI anymore. We handled it with a
separate `handle_docs_fl...
- Add the ability to set container environment variables in charms
- Tweak some aspects of `luck...
95b0025f39e7e9eab3f45c098d61ace07c94a85f authored almost 5 years ago by Zicklag <[email protected]>
- Added essential configuration for containers created by Lucky such as
mounting in the contai...
Fixes a bug that shows up when trying to `lucky client kv get` when
there are no keys set.
Prev...
266fa5bf8d27ed31f2b1b3413e4518e6fe9d8ee7 authored almost 5 years ago by Zicklag <[email protected]>
- Fix the `name` argument not taking a value
- Change the "Creating container:..." log message t...
- Set the log level of host script output to "debug".
- Set the default charm log level to "debug".
We were previously using daemon logging for all of the Lucky daemon
commands ( start, stop, trig...
Moving the `juju_log` function to the `juju` module broke the `log`
module when building without...
0b5892da803e96991be95da1097f4861dc5814ac authored almost 5 years ago by Zicklag <[email protected]>
- Refactor the `set_script_status` function and related macro to avoid
deadlocks.
Use a macro to set the status for internal Lucky operations with a
script name based on the curr...
- Change the Lucky state dir to `/var/lib/lucky/unit_name/state`.
- Fix bug where the stop hook ...
61cfa046258a884983edfaf09c5f313f08e0d4e5 authored almost 5 years ago by Zicklag <[email protected]>
e3f4881c95c994851c14b8f8cceb02f98b09bede authored almost 5 years ago by Zicklag <[email protected]>
Switch to using Starlark instead of YAML for the Drone config file
format. This will allow us to...
This allows charms to be built on Windows or Mac because Lucky can
install itself instead of usi...
856087ff3a9c9e25981b563c1f3b4e301e0d0c2e authored about 5 years ago by Zicklag <[email protected]>
3436d397a4346ea1913f5f54102c25990367cd09 authored about 5 years ago by Zicklag <[email protected]>
934c0107eca1cbc21849e9d76d9e798127493a2f authored about 5 years ago by Zicklag <[email protected]>
This does a wide reorganization of the code to allow you to build Lucky
without the "daemon" fea...
Lucky can now run Docker containers on the host when you do a `lucky
container image set [image]`.
8ce17a3d286ecc8cb0d3cba14e63434d3d4e40e5 authored about 5 years ago by Zicklag <[email protected]>
The Docker snap has issues running in LXD so we will use the apt package
for now.
The queue macro was causing cargo warnings so for now we will just use
the `queue` function inst...
This commit uses the shiplift Docker API client to talk to Docker,
replacing calls to the Docker...
e06f06b9e7c3e260c081a725079c9e978b5c90df authored about 5 years ago by Zicklag <[email protected]>
Added a filter to the Lucky logger that will only log messages from the
`lucky` module.
This tells Juju to allow nesting containers when running on LXD, so that
we can run Docker conta...
Handle daemon and CLI logs differently through a `log_mode` option
instead of doing it based on ...
515799a542f0818667b34ef934c16aed6513436f authored about 5 years ago by Zicklag <[email protected]>
Add a `run_cmd_with_retries` function that can be used when a certain
system command such as `sn...
The file was left over from our old templating solution.
e91c5a95b7fbd1fc264446431dce8fb6fb33acf9 authored about 5 years ago by Zicklag <[email protected]>
The latest termimad supports code fences with the code language
specified so now the shared CLI ...
Untested implementation of specifying containers in charm scripts and
having the daemon run the ...
Added the RPC's in the Daemon, but no handling for actually running the
docker containers.
957bea38641136184f0a4e752207f7415230fe13 authored about 5 years ago by Zicklag <[email protected]>
Fixed this bug which was introduced after the crossterm upgrade.
9079bbcb46bb8df4ed73c9a10f5eb6dc8f92772f authored about 5 years ago by Zicklag <[email protected]>
Users will not need to use the daemon subcommand so we hide it inside of
the LUCKY_CONTEXT=daemo...
616f2a8c6f7aee6b8889565e14bc41009f147694 authored about 5 years ago by Zicklag <[email protected]>