Commit Graph
2 Commits
Author SHA1 Message Date
Noah Stride a7ee3b3de4 Add file based locking to TBot (#17940)
* Add file based locking to tbot

* Add test for destination locking and clarify lock error

* Fix import weirdness

* Rename Lock -> TryLock

* Add warning on DestinationDirectory.TryLock re: ACLs
2022-11-01 11:30:41 +00:00
Tim Buckley ad12d71e20 Add Kubernetes Access support to Machine ID (#14269)
* Add Kubernetes Access support to Machine ID

This adds support for Kubernetes Access to Machine ID. Users can now
request access to a Kubernetes cluster with the new
`kubernetes_cluster` config field. When a request is configured, a
`kubeconfig.yaml` is generated which can be used to access the given
cluster.

As part of this, we also refactor a few parts of the bot code to help
cache various requests that config templates make frequently by
passing a new trivial `bot.B` interface to the `Render()` function.
For good measure, we also fix the `destination.Destination` stutter
by moving the interface to `bot.Destination`.

* Remove unused CLI param and fix docstring typo

* Cache cert authority requests

We now cache most cert authority requests from config templates and
purge the cache after each cert renewal.

* Move bot.B to config.Bot

* Add a matching marshaller for the KubernetesCluster type.
2022-07-14 22:03:34 +00:00