Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(operator): delete, enable, disable, backups #471

Merged
merged 8 commits into from
Oct 10, 2023
Merged

Conversation

Dav-14
Copy link
Contributor

@Dav-14 Dav-14 commented Aug 8, 2023

FEAT: ENG-103

Operator

  • Add flag to disable the finalizer
  • Add finalizer on stack object

Service drop idempotency:

  • PG: Drop PG DATA with IF EXISTS
  • ELK: DELETE /_query/<INDEX_STACKS> is already idempotent

Brokers idempotency:

  • NATS: Check subject existance then delete if exist

Agent

  • According with membership/feat/disable_stack
  • Merge Disabled on Stack (ExistingStackMessage)

@vercel
Copy link

vercel bot commented Aug 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 9:24am

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Run report for 2966c730

Total time: 4m 20s | Comparison time: 3m 41s | Estimated loss: 39.1s (15.0% slower)

Action Time Status Info
⬛️ SetupNodeTool(global) 0.1ms Skipped
⬛️ SetupSystemTool 0ms Skipped
🟩 SyncNodeProject(openapi) 0.2ms Passed
⬛️ InstallSystemDepsInProject(openapi) 0.2ms Skipped
🟩 RunTarget(openapi:deps) 1.3s Passed
🟩 RunTarget(openapi:build) 7.5s Passed
⬛️ InstallSystemDepsInProject(integration) 0.2ms Skipped
🟩 SyncSystemProject(integration) 0.2ms Passed
🟩 SyncWorkspace 0ms Passed
🟩 RunTarget(integration:tests) 4m 11s Passed SLOW
Touched files
components/agent/Taskfile.yaml
components/agent/internal/grpc/client.go
components/agent/internal/grpc/generated/server.pb.go
components/agent/internal/grpc/generated/server_grpc.pb.go
components/agent/server.proto
components/operator/.gitignore
components/operator/Makefile
components/operator/README.md
components/operator/apis/stack/v1beta3/configuration_types.go
components/operator/apis/stack/v1beta3/postgres.go
components/operator/config/crd/bases/stack.formance.com_configurations.yaml
components/operator/garden.yml
components/operator/go.mod
components/operator/go.sum
components/operator/helm/templates/deployment.yaml
components/operator/helm/templates/gen/apiextensions.k8s.io_v1_customresourcedefinition_configurations.stack.formance.com.yaml
components/operator/helm/values.yaml
components/operator/internal/controllers/stack/stack_finalizer.go
components/operator/internal/controllers/stack/stack_reconciler.go
components/operator/internal/modules/stack.go
components/operator/internal/storage/es/client.go
components/operator/internal/storage/nats/client.go
components/operator/internal/storage/pg/client.go
components/operator/main.go

@Dav-14
Copy link
Contributor Author

Dav-14 commented Aug 11, 2023

  1. garden deploy
  2. kubectl apply -f ./garden/example-v1beta3.yaml
  3. DELETE de la stack a la main
  4. kubectl port-forward svc/minio 9001:9001
  5. Enjoy S3 backuping
  6. It's compress, need to decompress with gzip
  7. No database is created during restoration, it's needed to be done before, "Create DATABASE "stack8-auth"...."

@Dav-14 Dav-14 merged commit 2be222e into main Oct 10, 2023
12 checks passed
@Dav-14 Dav-14 deleted the feat/stack_finalizer branch October 10, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants