chore: remove infraestrutura do Prefect 0 - #150
Merged
Conversation
💰 Infracost reportMonthly estimate generatedThis comment will be updated when code changes. |
|
Tick the box to add this pull request to the merge queue (same as
|
This was referenced Aug 4, 2026
Winzen
added a commit
to basedosdados/backend
that referenced
this pull request
Aug 5, 2026
O Prefect 0 foi removido completamente da infraestrutura (basedosdados/iac#150). Este PR limpa as referências restantes no backend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore: remove infraestrutura do Prefect 0
Issue: #151
Issue principal: basedosdados/pipelines#1736
Contexto
O Prefect 0 (versão 0.15.9) foi totalmente substituído pelo Prefect 3. Todos os flows foram migrados. Os recursos do Prefect 0 já estavam com
replicas: 0desde o PR #139. Este PR remove completamente toda a infraestrutura do repositório IAC.Os recursos foram deletados do cluster e do Cloud SQL antes do merge deste PR.
Organização de arquivos
O que foi executado antes do merge
K8s — desinstalação dos Helm releases e deleção dos namespaces
Cloud SQL — banco e usuário
Os recursos nunca foram importados no state do Terraform (
terraform plan -targetretornou "No changes"), então a remoção foi feita diretamente via gcloud.O banco tinha conexões ativas após a deleção dos namespaces. O pod
cloud-sql-proxynão tem shell, então foi usado o podapi-prod(namespacewebsite) para terminar as conexões viapsqlantes de conseguir deletar o banco:Sealed secrets do Django — remoção do API_KEY_PREFECT
Seguindo o padrão da wiki de Sealed Secrets: novos secrets gerados a partir dos values atuais do cluster sem a chave
API_KEY_PREFECT, selados comkubeseale aplicados no cluster antes do merge.Validação pós-apply:
API_KEY_PREFECTremovida,PREFECT3_API_KEYmantida em ambos os ambientes.O que não foi removido neste PR
k8s/observability/prometheus/prometheusrule-prefect-memory.yaml— usa labelprefect.io/deployment-name, válido para o Prefect 3prefect.basedosdados.org— remoção manual no Cloud DNS (pendente)