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

Fix Port Close All Help Message

ff57e6187ead9dcbcd7e900be0f783a310d464a4 authored almost 5 years ago by Zicklag <[email protected]>
Allow Setting Container Env Var to Nothing

10dc5b6fc61f07efb651b326825b179082eab13b authored almost 5 years ago by Zicklag <[email protected]>
Allow Hyphens in Key-Value Pair Keys

d8cf16892e154a5281e07557298622ca654eb883 authored almost 5 years ago by Zicklag <[email protected]>
Add Note About Chocolatey Package Being Outdated

e53777f2f88364445bdb69621a75ccbc848f1bdc authored almost 5 years ago by Zicklag <[email protected]>
Implement Async Hook Scripts

db8b693c60a947deef3d8bd0a881f14b0b70b4b0 authored almost 5 years ago by Zicklag <[email protected]>
Slight Clean Up and Code Style Update

Refine the last commit's code a bit.

4afe59d13079796ba3cddcf3fa6e599526ceeec4 authored almost 5 years ago by Zicklag <[email protected]>
Implement Asynchronous Cron Jobs and Smart Timing

- Made cron tick trigger and sleep until exactly when the next job is
needed based on the sche...

d2ee22c98b0d68c1ec0f82052114b1866b0a7bed authored almost 5 years ago by Zicklag <[email protected]>
Fix a Clap Setting on the Trigger Hook Command

The command unnecessarily unset the ArgRequiredElseHelp setting.

8e061bd2a07b16480c57eff9fc91476db6918b5a authored almost 5 years ago by Zicklag <[email protected]>
Change Daemon Hook Return Code Style

Remove unnecessary `Ok(())`s when I can just return the return value of
`call.reply()`.

8445f92da652a0569b9e00bc7d6809a5cb2fed96 authored almost 5 years ago by Zicklag <[email protected]>
Add Chron Job Support

- Set daemon worker threads to 1 instead of num cpus

66f12117b3aa61982b5f74088519ef3a5adfd4ad authored almost 5 years ago by Zicklag <[email protected]>
Hopefully Remove Deadlock When Starting Daemon

Change the strategy used to spawn background daemon and avoid piping
data ouput. This will hopef...

bc91450b6b0ffc8860a1f013c6d529feaac4f223 authored almost 5 years ago by Zicklag <[email protected]>
Cargo Fmt And Fix a Couple Clippy Lints

f37067b4734585d667e72c4da616d3af7653966b authored almost 5 years ago by Zicklag <[email protected]>
Switch to Better Panic From Color Backtrace

Better panic makes even nicer backtraces than color backtrace!

cb4682815f78f37ad6dac4e9d11d47ad570e5cc1 authored almost 5 years ago by Zicklag <[email protected]>
Cargo Update and Update Crossterm to 0.15

5d077df487aa8069cacb102ebd5f70544407de50 authored almost 5 years ago by Zicklag <[email protected]>
Implement Container Scripts

ea220fc2bcb17b9af866be375364095b96cfbf3d authored almost 5 years ago by Zicklag <[email protected]>
Make Status Name Required in Set Status CMD

The status name argument was unintentionally left un-required.

e7718a4fa14a97f2cb2288b2c66239a35e7631cd authored almost 5 years ago by Zicklag <[email protected]>
Fix a Potential Overflow and Panic

If the terminal size is less than 3 columns wide there was an overflow
in the width usize causin...

525247bfdd5dc71bc29f2953f456f9c9e73bb882 authored almost 5 years ago by Zicklag <[email protected]>
Remove Unneded Use of mem::replace

I forgot that you could just use dereferenced assignment: *value = v

f8ef8c74de5fa64dbfcba25e037ac9c1bf66c6bb authored almost 5 years ago by Zicklag <[email protected]>
Refactor Scripts In Prep For Container Scripts

- Add `shell-command` option to inline scripts and `container-name` to
container scripts in luc...

3b10e5e74fa92be11b80edb09b3656b39b872038 authored almost 5 years ago by Zicklag <[email protected]>
Update Lucky Random Cmd About Text

f229887d6154eab6a81322980c9500795bc21c94 authored almost 5 years ago by Zicklag <[email protected]>
Add Random Open Port Feature

- Add checking to random range verifying lower bound is less than upper
bound.

74641f6dd3ba7a309b425780a9247d91bf046995 authored almost 5 years ago by Zicklag <[email protected]>
Address Clippy Lints

395a002e524c0733d82df6698aa0cdcb58cba0df authored almost 5 years ago by Zicklag <[email protected]>
Don't Re-Serialize the Charm Metadata

We were previously re-serializing the charm metadata, but we haven't yet
captured all of the pos...

05816699c117d8fa63207268628488c3d2dd7408 authored almost 5 years ago by Zicklag <[email protected]>
Improve Script type Matching in Lucky.yaml

- Make sure only supported script types can have "args" specified
- Make sure script type denies...

cd23d1366aeb816e9424a26781cb6d6f2211c589 authored almost 5 years ago by Zicklag <[email protected]>
Add get-resource Subcommand to Lucky Client

c695e06642f7c8f0ce3affdaf576077cf2a6af13 authored almost 5 years ago by Zicklag <[email protected]>
Add an Args Option to Lucky Scripts

- Add the `LUCKY_HOOK` environment variable to script environment

031de94f652a398c61cd4454a8ff749c2b50a5fa authored almost 5 years ago by Zicklag <[email protected]>
Allow Underscores in Keys of Key-Value Pairs

f1e6cacdcc0e1038b3ab7517376f12777d3481e0 authored almost 5 years ago by Zicklag <[email protected]>
Validate lucky.yaml at Build Time

97fc41b1cc15ea3427d9fe8a08bcc02c84c0d442 authored almost 5 years ago by Zicklag <[email protected]>
Fix Typo In Cargo.toml

s/use-default-feature/use-default-features/

f0827b80dc70b3999b4429bc15d9e2ba3962665f authored almost 5 years ago by Zicklag <[email protected]>
Add JUJU_REMOTE_APP Env Var to Client

ad6939f315f015a037fefcba6b3862a3bce08337 authored almost 5 years ago by Zicklag <[email protected]>
Add Extra Context To is-leader Utility

1d9a653c68687d01878427b61ee02c9544b751eb authored almost 5 years ago by Zicklag <[email protected]>
Implement Inline Host Scripts in lucky.yaml

628dfd524e40830ef9ac5d42df83cfae4bbf3bd3 authored almost 5 years ago by Zicklag <[email protected]>
Fix Broken `kv get`

`lucky kv get` was failing with a "Requires More" error left over from a
previous implementation...

d3aa401a40b11b522299d154a6b63c83f4d4a4ff authored almost 5 years ago by Zicklag <[email protected]>
Add Command Timing Trace Logging

Print the times that it takes to run other processes in trace logs.

5554cbf34ed06d68a6543bdc63166845afe1b9f4 authored almost 5 years ago by Zicklag <[email protected]>
Rename `list-relations` to `list-ids`

81aada7cd95f4da0724538c4b7aabb482df59c96 authored almost 5 years ago by Zicklag <[email protected]>
Fix `relation_ids` calling `relation-list`

The `relation_ids` function was calling `relation-list` instead of
`relation-ids`.

a60499c5f995fdbc1a95a280074d2128bd5ac5c4 authored almost 5 years ago by Zicklag <[email protected]>
Make Key and Value Required in KV Set Command

93574ee95630a3ad11f3028d615188aad22d560b authored almost 5 years ago by Zicklag <[email protected]>
Update is-leader CLI Help

389cd821d2576f3b0f2be3c886d2dd6b9d8813b6 authored almost 5 years ago by Zicklag <[email protected]>
Add Support For Juju App Relation Data

3ee448b3b80e4b8bea34b97f00b11b23658d6ea0 authored almost 5 years ago by Zicklag <[email protected]>
Add Note To README About Lucky's Snap Build

Noted that the Lucky snap installs from latest master instead of the
pre-release like the Window...

b527c0dbbef07e24801ed7709d656c012bc951cc authored almost 5 years ago by Zicklag <[email protected]>
Fix Container set-command Commandline Parsing

You can now set the container command by passing all of the arguments
after a -- flag.

f8bf7d43f6878a8b8e13c052e5a047b38041763b authored almost 5 years ago by Zicklag <[email protected]>
Fix a Bug With the Change Detection

The change detector type was not derefing to the new_inner type when
there were changes and was ...

9b64cd7d959d68fc99a3e0a86a66107e266fca60 authored almost 5 years ago by Zicklag <[email protected]>
Update Change-Detector To be More Robust

With the new update, changes to the configuration will not trigger
updates to the container if t...

9ec9e3d95090988a51af63d9abed347984867a99 authored almost 5 years ago by Zicklag <[email protected]>
Fix Bug Where Stop Handler Was Not Running

Fix issue where containers were not being removed because top handler
would only run if there wa...

d5dcb833b76a39783e2640babec08dceacb07927 authored almost 5 years ago by Zicklag <[email protected]>
Add Leader and Relation Client Commands

This is untested, but adds full bindings to Juju's relation and
leadership tools.

cc6bae55a408d68ed5cc7572493218da75d6a0bc authored almost 5 years ago by Zicklag <[email protected]>
Fix Non-Daemon Builds And Ignore Dead Code

- Added `cfg(feature = "daemon")` annotations to fix the latest build
without the daemon.
- Ad...

04f2e0cfd57f2f5a3d6a9511741b3aed430adeef authored almost 5 years ago by Zicklag <[email protected]>
Take String Arguments For Container Port Binding

- Throw error when attempting to add conflicting container port binding

25531b7f1274bb6ff1f45120037176100ab96d83 authored almost 5 years ago by Zicklag <[email protected]>
Add Port Close/Remove --all Option

Add option to close or remove all port openings/bindings.

e698c0555d84573a23316c38bd776d2c624de9a2 authored almost 5 years ago by Zicklag <[email protected]>
Refactor Internal Change Detection Type

The old change detection technique would trigger false positive updates
when a mutable borrow oc...

78f57b333372b7db4c8f7c3991596ba7faf6d06a authored almost 5 years ago by Zicklag <[email protected]>
Remove Unnecessary Type Annotation

This will fix the snapcraft builds, hopefully.

d3653eef6951c3f40765d5e6249ea5f20bcc2479 authored almost 5 years ago by Zicklag <[email protected]>
Add Support For Docker Port Bindings

1cc3821d4d9792658618fa93d8a86266b29fa12e authored almost 5 years ago by Zicklag <[email protected]>
Add Port open, Close, and Get Opened

This isn't yet tested. It will be tested after we have implemented
container ports.

e4b3a610b30cccfb1c4a93905b3abf5a8d49c475 authored almost 5 years ago by Zicklag <[email protected]>
Add Volume and Container Delete Support

7a118339dbbd41267ced02cf088a26eb809af638 authored almost 5 years ago by Zicklag <[email protected]>
Add Ability to Set Docker Entrypoint and Command

- Change state_dir to data_dir and move it to
`/var/lib/lucky/charm_name`

812f9bbe5f49487a9152172d943da234a1651b01 authored almost 5 years ago by Zicklag <[email protected]>
Rename Apply Command to Apply Updates

d905b58a0b8dbb4ea7ba077cbe43afb6e9bd0bb9 authored almost 5 years ago by Zicklag <[email protected]>
Add Lucky Get Config Command

You can now get the charm configuration from charm scripts.

ab209a2d92737a74ab26ad73881c4c5feacd79ac authored almost 5 years ago by Zicklag <[email protected]>
Return Arrays Instead of More in Varlink Responses

Made the requests more ergonomic by returning simple arrays instead of
using varlinks `--more` f...

fe6bdd062f1b7fb2fcd05c258ef751e88da07b43 authored almost 5 years ago by Zicklag <[email protected]>
Skip Container Apply When Docker is Disabled

5e8dcb2a5f24753e3fb1892d25f1eb60983835fc authored almost 5 years ago by Zicklag <[email protected]>
Add private-address and public-address Lucky Cmds

0dd86f4fa72a83836e6642891425520f727f0461 authored almost 5 years ago by Zicklag <[email protected]>
Adress a Couple Clippy Lints

5c0f163aa39473b5f5fe2cceaa51fd3aab8cde4d authored almost 5 years ago by Zicklag <[email protected]>
Remove Unneeded `required_unless("doc")`

We don't need to do this check in the CLI anymore. We handled it with a
separate `handle_docs_fl...

cf0ecec30875ec93c0b323c344e785ab308b8874 authored almost 5 years ago by Zicklag <[email protected]>
Add Container Env Commands

- Add the ability to set container environment variables in charms
- Tweak some aspects of `luck...

efb2c9fb2164135f359adae2018a4e01269f4fc3 authored almost 5 years ago by Zicklag <[email protected]>
Show Lucky Help Message If No Arguments Are Given

95b0025f39e7e9eab3f45c098d61ace07c94a85f authored almost 5 years ago by Zicklag <[email protected]>
Add More Docker Configuration For Lucky Containers

- Added essential configuration for containers created by Lucky such as
mounting in the contai...

a6b6f553050f4697b39bdff3585f633ceb24b408 authored almost 5 years ago by Zicklag <[email protected]>
Fix Bug With KV Get When No Keys Set

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 Broken Arg in Container Image Set Cmd

- Fix the `name` argument not taking a value
- Change the "Creating container:..." log message t...

b732be2194de1a26d0a99096fd11e8d84b4c13ef authored almost 5 years ago by Zicklag <[email protected]>
Update Default Charm Log Level

- Set the log level of host script output to "debug".
- Set the default charm log level to "debug".

240be1c730aff0e3d46364dd568b4ae46aad8f7c authored almost 5 years ago by Zicklag <[email protected]>
Use Daemon Logging Only During Daemon Start

We were previously using daemon logging for all of the Lucky daemon
commands ( start, stop, trig...

7277fa773eb9ebc64900427c888dd476dd76b244 authored almost 5 years ago by Zicklag <[email protected]>
Feature Gate The `juju_log` Function To Fix Build

Moving the `juju_log` function to the `juju` module broke the `log`
module when building without...

e1352d80a5ce06f9e89ee8a3f3536fa681ae590b authored almost 5 years ago by Zicklag <[email protected]>
Add A TODO to Drone Build Script

0b5892da803e96991be95da1097f4861dc5814ac authored almost 5 years ago by Zicklag <[email protected]>
Clean Up Containers When Charm is Removed

- Refactor the `set_script_status` function and related macro to avoid
deadlocks.

498430837bc306ad59586b31c891340deb584ce8 authored almost 5 years ago by Zicklag <[email protected]>
Add a Utility Macro For Setting Juju Status

Use a macro to set the status for internal Lucky operations with a
script name based on the curr...

914ad4cecffe207c7454f3d3dc2977053a539c9d authored almost 5 years ago by Zicklag <[email protected]>
Change Lucky Daemon State Dir

- Change the Lucky state dir to `/var/lib/lucky/unit_name/state`.
- Fix bug where the stop hook ...

7ea9523a0e3ad2eec298ef955b93210b85afeeff authored almost 5 years ago by Zicklag <[email protected]>
Fix Broken Drone Step Dependency for Book Publish

61cfa046258a884983edfaf09c5f313f08e0d4e5 authored almost 5 years ago by Zicklag <[email protected]>
Fix Drone Not Publishing Book on Master Push

e3f4881c95c994851c14b8f8cceb02f98b09bede authored almost 5 years ago by Zicklag <[email protected]>
Use Starlark for Drone Build Config

Switch to using Starlark instead of YAML for the Drone config file
format. This will allow us to...

581277c4d9e3377dd7693bdd299c45a8aa067f1b authored almost 5 years ago by Zicklag <[email protected]>
Allow Lucky To Download Itself on Install

This allows charms to be built on Windows or Mac because Lucky can
install itself instead of usi...

2907c5742037997d3f33da1c0865181a4c2b75c0 authored about 5 years ago by Zicklag <[email protected]>
Add Snapcraft Folders To .gitignore File

856087ff3a9c9e25981b563c1f3b4e301e0d0c2e authored about 5 years ago by Zicklag <[email protected]>
Remove Redundant "Error:" From Error Message

3436d397a4346ea1913f5f54102c25990367cd09 authored about 5 years ago by Zicklag <[email protected]>
Add Contact Info To Docs Overview

934c0107eca1cbc21849e9d76d9e798127493a2f authored about 5 years ago by Zicklag <[email protected]>
Reorganize Code To Support Building Without Daemon

This does a wide reorganization of the code to allow you to build Lucky
without the "daemon" fea...

208a14086025b48c8dec69369c78acfb9744c058 authored about 5 years ago by Zicklag <[email protected]>
Extablish Working Docker Run

Lucky can now run Docker containers on the host when you do a `lucky
container image set [image]`.

e7e74b5f58fa4a3e26eb35bce31d80bc9aa2bc80 authored about 5 years ago by Zicklag <[email protected]>
Add File and Line to Debug Logs

8ce17a3d286ecc8cb0d3cba14e63434d3d4e40e5 authored about 5 years ago by Zicklag <[email protected]>
Install Docker From Apt Instead of Snap

The Docker snap has issues running in LXD so we will use the apt package
for now.

61d4d8d452b3c6cbc58187c9efdb0d2bbe34f798 authored about 5 years ago by Zicklag <[email protected]>
Remove Use Of Crossterm queue Macro In Pager

The queue macro was causing cargo warnings so for now we will just use
the `queue` function inst...

522ac625197e9a9c7c86127c2a08fd78b97f007d authored about 5 years ago by Zicklag <[email protected]>
WIP Use Docker API Client to Run Docker Containers

This commit uses the shiplift Docker API client to talk to Docker,
replacing calls to the Docker...

473da536da973eca3abdcadb67a287ba7b0b678e authored about 5 years ago by Zicklag <[email protected]>
Add a TODO for Removing Handlebars

e06f06b9e7c3e260c081a725079c9e978b5c90df authored about 5 years ago by Zicklag <[email protected]>
Don't Log Messages From Dependencies

Added a filter to the Lucky logger that will only log messages from the
`lucky` module.

009fa3ca532cfb607ed9dd2bb31b9f4669ee35f8 authored about 5 years ago by Zicklag <[email protected]>
Add an lxd-profile.yaml to Charms To Allow Nesting

This tells Juju to allow nesting containers when running on LXD, so that
we can run Docker conta...

b09b987a18a1f77086844e086e0c6ae3ad77b865 authored about 5 years ago by Zicklag <[email protected]>
Update Logging Implmentation With LogMode Option

Handle daemon and CLI logs differently through a `log_mode` option
instead of doing it based on ...

be313a4a9efd9894708be13ca9fc84e5ad622009 authored about 5 years ago by Zicklag <[email protected]>
Add Some Daemon TODOs

515799a542f0818667b34ef934c16aed6513436f authored about 5 years ago by Zicklag <[email protected]>
Add Retries To Some Commands That Could Fail

Add a `run_cmd_with_retries` function that can be used when a certain
system command such as `sn...

6045e31ace5439aadb8a38901803b6dc6508dac5 authored about 5 years ago by Zicklag <[email protected]>
Remove the Old .ffizer.yaml File

The file was left over from our old templating solution.

e91c5a95b7fbd1fc264446431dce8fb6fb33acf9 authored about 5 years ago by Zicklag <[email protected]>
Update Termimad For Syntax Colors in CLI Web Docs

The latest termimad supports code fences with the code language
specified so now the shared CLI ...

541ac1a710a922c1b9e84e768d1099350a5eef1d authored about 5 years ago by Zicklag <[email protected]>
Initial Implementation Of Charm Containers

Untested implementation of specifying containers in charm scripts and
having the daemon run the ...

3d6f77f85cfc1c7adcc6d68583d4470b371d96e3 authored about 5 years ago by Zicklag <[email protected]>
WIP Start On Support For Docker Images

Added the RPC's in the Daemon, but no handling for actually running the
docker containers.

3ee69f0eba536dd96552365e4ad83e2b59da3073 authored about 5 years ago by Zicklag <[email protected]>
Update Termimad For Code Fences Support

957bea38641136184f0a4e752207f7415230fe13 authored about 5 years ago by Zicklag <[email protected]>
Fix Commandline Pager Not Exiting Terminal Raw Mode

Fixed this bug which was introduced after the crossterm upgrade.

9079bbcb46bb8df4ed73c9a10f5eb6dc8f92772f authored about 5 years ago by Zicklag <[email protected]>
Remove Daemon Subcommand From Public CLI

Users will not need to use the daemon subcommand so we hide it inside of
the LUCKY_CONTEXT=daemo...

0f991e7f992b01172f0bce7ffbd8c553fc914eba authored about 5 years ago by Zicklag <[email protected]>
Update Cargo Metadata

616f2a8c6f7aee6b8889565e14bc41009f147694 authored about 5 years ago by Zicklag <[email protected]>