9da206dc7c
PVCs and CloudNativePG Clusters need S3 buckets and backup schedules
provisioned consistently. This operator watches the
backups.unkin.net/{schedule,destination} annotations on those objects and
provisions everything needed to back them up, with no new CRDs.
- Add a PVC controller that provisions cephrgw ObjectStoreUser/Bucket/BucketAccess,
auto-generates a restic repo-password Secret and creates a k8up Schedule scoped
to the PVC via spec.backup.volumes[].persistentVolumeClaim.claimName.
- Add a CNPG Cluster controller that provisions the same bucket stack, idempotently
patches spec.backup.barmanObjectStore (leaving a user-set destinationPath alone
with a Warning event) and creates a ScheduledBackup.
- Resolve destinations through a ConfigMap lookup table; requeue until the
BucketAccess is Ready before creating schedule resources; own-reference created
resources and retain bucket data by default.
- Add schedule-mapping helpers (k8up 5-field/shortcut pass-through, CNPG 6-field
seconds-first) and deterministic, length-bounded name derivation.
- Add unit tests (schedule mapping, name derivation, destination resolution) and
envtest controller tests for both paths, wiring the external CRDs into envtest.
- Add kubebuilder-generated RBAC, a Dockerfile (distroless/nonroot), Woodpecker
lint/test/build pipelines and a tag-triggered image push to the artifactapi
docker-internal registry, plus a version-bump Makefile and deploy manifests.
1.9 KiB
1.9 KiB
Releases
v1.11.0 (2023-03-28)
Errorsnow supports any error that implements multiple-error interface.- Add
Everyfunction to allow checking if all errors in the chain satisfieserrors.Isagainst the target error.
v1.10.0 (2023-03-08)
- Comply with Go 1.20's multiple-error interface.
- Drop Go 1.18 support. Per the support policy, only Go 1.19 and 1.20 are supported now.
- Drop all non-test external dependencies.
v1.9.0 (2022-12-12)
-
Add
AppendFuncthat allow passsing functions to similar toAppendInvoke. -
Bump up yaml.v3 dependency to 3.0.1.
v1.8.0 (2022-02-28)
Combine: perform zero allocations when there are no errors.
v1.7.0 (2021-05-06)
- Add
AppendInvoketo append into errors fromdeferblocks.
v1.6.0 (2020-09-14)
- Actually drop library dependency on development-time tooling.
v1.5.0 (2020-02-24)
- Drop library dependency on development-time tooling.
v1.4.0 (2019-11-04)
- Add
AppendIntofunction to more ergonomically build errors inside a loop.
v1.3.0 (2019-10-29)
- Switch to Go modules.
v1.2.0 (2019-09-26)
- Support extracting and matching against wrapped errors with
errors.Asanderrors.Is.
v1.1.0 (2017-06-30)
- Added an
Errors(error) []errorfunction to extract the underlying list of errors for a multierr error.
v1.0.0 (2017-05-31)
No changes since v0.2.0. This release is committing to making no breaking changes to the current API in the 1.X series.
v0.2.0 (2017-04-11)
- Repeatedly appending to the same error is now faster due to fewer allocations.
v0.1.0 (2017-31-03)
- Initial release