fast2dev 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- f2dev/__init__.py +1 -0
- f2dev/__main__.py +5 -0
- f2dev/_bundle/platform/.dockerignore +80 -0
- f2dev/_bundle/platform/.gitignore +82 -0
- f2dev/_bundle/platform/LICENSE +202 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/template_values.yaml +1731 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/Chart.yaml +9 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-airflow-deploy.yaml +60 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-bi-sync.yaml +46 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-checkout.yaml +49 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-console-sync.yaml +41 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-e2e-label.yaml +48 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-e2e-run.yaml +43 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-e2e-teardown.yaml +47 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-governance.yaml +40 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-lint.yaml +37 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-notify.yaml +32 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-quality.yaml +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-refresh.yaml +36 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-supersede.yaml +30 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-tags.yaml +44 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/pipeline-branch.yaml +138 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/pipeline-main.yaml +150 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/pipeline-pr.yaml +184 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/templates/NOTES.txt +18 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/templates/settings-configmap.yaml +14 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/templates/workflowtemplates.yaml +31 -0
- f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/values.yaml +41 -0
- f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/github/template_github_values.yaml +436 -0
- f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/github/template_github_values_extra.yaml +49 -0
- f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/gitlab/template_gitlab_values.yaml +551 -0
- f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/gitlab/template_gitlab_values_extra.yaml +9 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_analysis/lightdash/template_values.yaml +359 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_analysis/metabase/template_values.yaml +384 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_analysis/superset/template_values.yaml +1562 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_analysis/template_values.yaml +269 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/.helmignore +15 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/Chart.yaml +20 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/template_values.yaml.j2 +175 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/NOTES.txt +19 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/_helpers.tpl +50 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/cicd-rbac.yaml +30 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/configmap.yaml +142 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/extras.yaml +14 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/ingress.yaml +69 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/promtail-configmap.yaml +68 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/secret.yaml +31 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/service.yaml +15 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/serviceaccount.yaml +12 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/statefulset.yaml +276 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/valkey.yaml +113 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/warehouse-stats-cronjob.yaml +107 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/values.yaml +828 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_dbt_server/template_values.yaml +385 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_dh_prerequisites_values.yaml +118 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_dh_values.yaml +1671 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_kafka_values.yaml +112 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_opensearch_values.yaml +662 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_values.yaml +738 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/Chart.yaml +6 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/files/argo-openapi.json +681 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/_helpers.tpl +17 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/argo-rbac.yaml +35 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/backends.yaml +327 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/gateway.yaml +150 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/values.yaml +91 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/template_values.yaml +142 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_modeling/template_values.yaml +1167 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_modeling/template_values_extra.yaml +99 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/Dockerfile +10 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/build.sh +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/cleanup.py +452 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/requirements.txt +3 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/docs/keycloak-oidc-setup.md +106 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/template_values.yaml +5536 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/template_values_extra.yaml +379 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/configmap.yaml +459 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/fast2dev_auth.py +285 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/fast2dev_mcp_plugin.py +24 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/webserver_config.py +130 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/Dockerfile +10 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/build.sh +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/cleanup.py +749 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/k8s/configmap.yaml +24 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/k8s/cronjob.yaml +137 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/requirements.txt +3 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/.helmignore +26 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/Chart.lock +3 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/Chart.yaml +15 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/README.md +243 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/NOTES.txt +31 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/_helpers.tpl +245 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/_images.tpl +17 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-auth-secret.yaml +35 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-bootloader/bootloader-secrets.yaml +19 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-bootloader/pod.yaml +126 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-connector-rollout-worker/deployment.yaml +171 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-cron/cron-secrets.yaml +19 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-cron/deployment.yaml +149 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-db.yaml +88 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/_helpers.tpl +111 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/deployment.yaml +169 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/hpa.yaml +23 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/pdb.yaml +17 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/service.yaml +25 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/serviceaccount.yaml +10 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-featureflag-server/deployment.yaml +161 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-featureflag-server/service.yaml +25 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-keycloak/service.yaml +62 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-keycloak/statefulset.yaml +182 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/_helpers.tpl +54 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/deployment.yaml +152 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/service.yaml +23 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/serviceaccount.yaml +10 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-metrics/deployment.yaml +124 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-server/deployment.yaml +227 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-server/service.yaml +29 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-stigg-sidecar/deployment.yaml +184 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-stigg-sidecar/service.yaml +21 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal/configmap.yaml +55 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal/deployment.yaml +220 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal/service.yaml +21 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal-ui/deployment.yaml +122 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal-ui/service.yaml +23 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-webapp/deployment.yaml +146 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-webapp/ingress.yaml +63 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-webapp/service.yaml +32 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-worker/deployment.yaml +229 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-api-server/deployment.yaml +191 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-api-server/service.yaml +25 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-launcher/deployment.yaml +232 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-launcher/jobs-secrets.yaml +21 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_auth.tpl +944 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_aws.tpl +109 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_cluster.tpl +82 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_common.tpl +370 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_connector.tpl +58 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_connectorRollout.tpl +141 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_connectorRolloutWorker.tpl +56 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_cron.tpl +62 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_customerio.tpl +56 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_database.tpl +375 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_dataplaneGroups.tpl +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_directJobRunner.tpl +122 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_featureFlags.tpl +126 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_java.tpl +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_jobs.tpl +422 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_keycloak.tpl +542 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_logging.tpl +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_metrics.tpl +214 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_micronaut.tpl +43 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_minio.tpl +64 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_secretsManager.tpl +628 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_server.tpl +533 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_shopify.tpl +83 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_stigg.tpl +157 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_storage.tpl +468 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_temporal.tpl +943 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_topology.tpl +98 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_tracking.tpl +82 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_webapp.tpl +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_worker.tpl +366 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_workloadApiServer.tpl +62 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_workloadLauncher.tpl +395 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_workloads.tpl +770 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/env-configmap.yaml +62 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/gcs-log-creds-secret.yaml +19 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/ingress.yaml +69 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/minio.yaml +161 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/secret.yaml +31 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/serviceaccount.yaml +50 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/telemetry-configmap.yaml +32 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/tests/test-webapp.yaml +34 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/values.yaml +3158 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/.helmignore +12 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/Chart.yaml +16 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/README.md +172 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/_helpers.tpl +42 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/deployment.yaml +105 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/externalsecret.yaml +23 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/pdb.yaml +15 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/service.yaml +18 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/values.yaml +97 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/feature-flags-configmap.yaml +16 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/template_metrics_values.yaml +13 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/template_oauth2proxy_values.yaml +1200 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_replication/template_values.yaml +3255 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/Chart.yaml +7 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/hazelcast-client.yaml +27 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/hazelcast-master.yaml +38 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/hazelcast-worker.yaml +29 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/jvm_client_options +24 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/jvm_master_options +6 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/jvm_worker_options +6 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/log4j2.properties +109 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/seatunnel.yaml +36 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/_helpers.tpl +70 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/configmap.yaml +11 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/deployment-master.yaml +120 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/deployment-worker.yaml +118 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/rbac.yaml +32 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/services.yaml +33 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/values.yaml +101 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/template_oauth2proxy_values.yaml +196 -0
- f2dev/_bundle/platform/charts/data_services_charts/data_streaming/template_values.yaml +75 -0
- f2dev/_bundle/platform/charts/data_services_charts/object_storage_operator/template_values.yaml +506 -0
- f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/csi_driver_values.yaml +193 -0
- f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/template_pdns_webhook_values.yaml +91 -0
- f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/template_values.yaml +1777 -0
- f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/template_values_extra.yaml +253 -0
- f2dev/_bundle/platform/charts/infra_services_charts/cluster_cleaner/template_values.yaml +57 -0
- f2dev/_bundle/platform/charts/infra_services_charts/external_dns/template_values.yaml +476 -0
- f2dev/_bundle/platform/charts/infra_services_charts/external_dns/template_values_extra.yaml +131 -0
- f2dev/_bundle/platform/charts/infra_services_charts/idp_sso_manager/realm_template.json +4785 -0
- f2dev/_bundle/platform/charts/infra_services_charts/idp_sso_manager/template_values.yaml +657 -0
- f2dev/_bundle/platform/charts/infra_services_charts/pvc_autoscaller/template_values.yaml +36 -0
- f2dev/_bundle/platform/charts/infra_services_charts/pvc_autoscaller/template_values_extra.yaml +352 -0
- f2dev/_bundle/platform/charts/infra_services_charts/secret_manager/template_values.yaml +1218 -0
- f2dev/_bundle/platform/charts/infra_services_charts/secret_manager/template_values_extra.yaml +845 -0
- f2dev/_bundle/platform/charts/infra_services_charts/secret_manager_operator/template_values.yaml +561 -0
- f2dev/_bundle/platform/charts/infra_services_charts/secret_manager_operator/template_values_extra.yaml +23 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_logs/template_alloy_events_values.yaml +59 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_logs/template_alloy_values.yaml +185 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_logs/template_loki_values.yaml +108 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_metrics/template_values.yaml +1530 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/00-main/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/00-main/f2d-main.json +2871 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-k8s-cluster.json +1751 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-microservices.json +1682 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-pvc-storage.json +1320 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-service.json +1193 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-cert-manager.json +755 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-keycloak.json +746 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-object-storage.json +881 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-postgresql.json +1590 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-traefik.json +1375 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-cicd-workflows-trends.json +1916 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-cicd-workflows.json +1330 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-analysis.json +631 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-freshness.json +1362 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-governance.json +1958 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-modeling.json +764 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-orchestration-trends.json +2352 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-orchestration.json +1506 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-quality.json +1549 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-replication-trends.json +2799 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-replication.json +2153 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-streaming-trends.json +1536 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-streaming.json +1209 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/04-data-warehouse/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/04-data-warehouse-bigquery/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/04-data-warehouse-bigquery/f2d-bigquery.json +990 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/05-logs/.gitkeep +0 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/05-logs/f2d-logs.json +630 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/folders.yaml +17 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/requirements.yaml +8 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/template_alerts_cm.yaml +2031 -0
- f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/template_values.yaml +1315 -0
- f2dev/_bundle/platform/charts/infra_services_charts/stackgres_postgres_db/template_values.yaml +550 -0
- f2dev/_bundle/platform/charts/infra_services_charts/stackgres_postgres_db/template_values_extra.yaml +742 -0
- f2dev/_bundle/platform/charts/infra_services_charts/traefik_lb/template_values.yaml +1758 -0
- f2dev/_bundle/platform/cli/README.md +866 -0
- f2dev/_bundle/platform/cli/__init__.py +42 -0
- f2dev/_bundle/platform/cli/__main__.py +17 -0
- f2dev/_bundle/platform/cli/cert_providers.py +369 -0
- f2dev/_bundle/platform/cli/command_record.py +144 -0
- f2dev/_bundle/platform/cli/config/data_services_config.json +217 -0
- f2dev/_bundle/platform/cli/config/environment_profiles.yaml +183 -0
- f2dev/_bundle/platform/cli/config/images.json +129 -0
- f2dev/_bundle/platform/cli/config/infrastructure_services_config.json +141 -0
- f2dev/_bundle/platform/cli/config.py +252 -0
- f2dev/_bundle/platform/cli/deployment_configuration_aws_example.yaml +117 -0
- f2dev/_bundle/platform/cli/deployment_configuration_gcp_example.yaml +130 -0
- f2dev/_bundle/platform/cli/deployment_configuration_onprem_example.yaml +71 -0
- f2dev/_bundle/platform/cli/destroy.py +677 -0
- f2dev/_bundle/platform/cli/dns_check.py +27 -0
- f2dev/_bundle/platform/cli/dns_providers.py +405 -0
- f2dev/_bundle/platform/cli/exit_codes.py +32 -0
- f2dev/_bundle/platform/cli/fixers.py +56 -0
- f2dev/_bundle/platform/cli/generate_only.py +336 -0
- f2dev/_bundle/platform/cli/health_report.py +114 -0
- f2dev/_bundle/platform/cli/logging.py +206 -0
- f2dev/_bundle/platform/cli/main.py +5293 -0
- f2dev/_bundle/platform/cli/precheck.py +1523 -0
- f2dev/_bundle/platform/cli/prerequisites/README.md +208 -0
- f2dev/_bundle/platform/cli/prerequisites/install-prerequisites.bat +107 -0
- f2dev/_bundle/platform/cli/prerequisites/install-prerequisites.ps1 +343 -0
- f2dev/_bundle/platform/cli/prerequisites/install-prerequisites.sh +207 -0
- f2dev/_bundle/platform/cli/prerequisites/linux/install-linux.sh +775 -0
- f2dev/_bundle/platform/cli/prerequisites/macos/install-macos.sh +634 -0
- f2dev/_bundle/platform/cli/prerequisites/requirements.txt +41 -0
- f2dev/_bundle/platform/cli/prerequisites/verify-prerequisites.ps1 +150 -0
- f2dev/_bundle/platform/cli/prerequisites/verify-prerequisites.sh +418 -0
- f2dev/_bundle/platform/cli/prerequisites/versions.yaml +43 -0
- f2dev/_bundle/platform/cli/prerequisites/windows/install-windows.ps1 +1005 -0
- f2dev/_bundle/platform/cli/restore.py +179 -0
- f2dev/_bundle/platform/cli/service_gates.py +160 -0
- f2dev/_bundle/platform/cli/state.py +332 -0
- f2dev/_bundle/platform/cli/wizard.py +782 -0
- f2dev/_bundle/platform/cli.py +235 -0
- f2dev/_bundle/platform/deployers/__init__.py +4 -0
- f2dev/_bundle/platform/deployers/base_deployer.py +8 -0
- f2dev/_bundle/platform/deployers/clouds/__init__.py +0 -0
- f2dev/_bundle/platform/deployers/clouds/aws_cloud.py +619 -0
- f2dev/_bundle/platform/deployers/clouds/azure_cloud.py +0 -0
- f2dev/_bundle/platform/deployers/clouds/google_cloud.py +785 -0
- f2dev/_bundle/platform/deployers/clouds/terragrunt_progress.py +56 -0
- f2dev/_bundle/platform/deployers/services/data_services/1.0_cicd_workload_runner.py +644 -0
- f2dev/_bundle/platform/deployers/services/data_services/12.0_control_plane.py +321 -0
- f2dev/_bundle/platform/deployers/services/data_services/13.0_data_mcp_hub.py +362 -0
- f2dev/_bundle/platform/deployers/services/data_services/2.0_object_storage_operator.py +416 -0
- f2dev/_bundle/platform/deployers/services/data_services/2.5_services_logs.py +482 -0
- f2dev/_bundle/platform/deployers/services/data_services/3.0_data_cicd_workflows.py +361 -0
- f2dev/_bundle/platform/deployers/services/data_services/4.0_data_replication.py +534 -0
- f2dev/_bundle/platform/deployers/services/data_services/4.5_data_streaming.py +303 -0
- f2dev/_bundle/platform/deployers/services/data_services/5.0_data_orchestration.py +760 -0
- f2dev/_bundle/platform/deployers/services/data_services/6.0_data_modeling.py +753 -0
- f2dev/_bundle/platform/deployers/services/data_services/7.0_data_governance.py +795 -0
- f2dev/_bundle/platform/deployers/services/data_services/8.0_data_analysis.py +587 -0
- f2dev/_bundle/platform/deployers/services/infra_services/1.0_secret_operator.py +467 -0
- f2dev/_bundle/platform/deployers/services/infra_services/10.0_cluster_pvc_autoscaller.py +500 -0
- f2dev/_bundle/platform/deployers/services/infra_services/2.0_cert_manager.py +963 -0
- f2dev/_bundle/platform/deployers/services/infra_services/3.0_external_dns.py +823 -0
- f2dev/_bundle/platform/deployers/services/infra_services/4.0_traefik_lb.py +604 -0
- f2dev/_bundle/platform/deployers/services/infra_services/5.0_stackgres_postgresql.py +652 -0
- f2dev/_bundle/platform/deployers/services/infra_services/6.0_services_metrics.py +515 -0
- f2dev/_bundle/platform/deployers/services/infra_services/7.0_services_monitoring.py +787 -0
- f2dev/_bundle/platform/deployers/services/infra_services/8.0_cluster_cleaner.py +439 -0
- f2dev/_bundle/platform/deployers/services/infra_services/9.0_idp_sso_manager.py +790 -0
- f2dev/_bundle/platform/readme.md +47 -0
- f2dev/_bundle/platform/requirements.txt +14 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/backend.tf_template +10 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/defaults.yaml_template +11 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/env.yaml_template +2 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/root.hcl_advanced_template +134 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/root.hcl_basic_template +134 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/terragrunt.hcl_advanced_template +134 -0
- f2dev/_bundle/platform/terraform/aws_cloud/templates/terragrunt.hcl_basic_template +134 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/01-apps-vpc/terragrunt.hcl +26 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/02-create-dns-ns-record/terragrunt.hcl +16 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/03-eks-cluster/terragrunt.hcl +21 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/04-external_dns_sa/terragrunt.hcl +28 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/01-apps-vpc/terragrunt.hcl +25 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/02-eks-cluster/terragrunt.hcl +32 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/03-external-dns-irsa/terragrunt.hcl +34 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/04-cert-manager-irsa/terragrunt.hcl +34 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/05-create-dns-zone/terragrunt.hcl +22 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/06-create-dns-ns-record/terragrunt.hcl +44 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/empty.yaml +1 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/empty.yaml +1 -0
- f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/env.hcl +2 -0
- f2dev/_bundle/platform/terraform/azure_cloud/README.md +3 -0
- f2dev/_bundle/platform/terraform/azure_cloud/templates/_keep_structure.txt +0 -0
- f2dev/_bundle/platform/terraform/google_cloud/README.md +20 -0
- f2dev/_bundle/platform/terraform/google_cloud/templates/backend.tf_template +7 -0
- f2dev/_bundle/platform/terraform/google_cloud/templates/defaults.yaml_template +12 -0
- f2dev/_bundle/platform/terraform/google_cloud/templates/env.yaml_template +2 -0
- f2dev/_bundle/platform/terraform/google_cloud/templates/root.hcl_advanced_template +114 -0
- f2dev/_bundle/platform/terraform/google_cloud/templates/root.hcl_basic_template +116 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/.gitignore +3 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/00-create-ou-folder/terragrunt.hcl +15 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/01-create-project/terragrunt.hcl +30 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/02-enable-apis/terragrunt.hcl +25 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/03-0-apps-vpc/terragrunt.hcl +134 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/04-external-ip-traefik/terragrunt.hcl +29 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/05-create-dns-zone/terragrunt.hcl +25 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/06-create-dns-ns-record/terragrunt.hcl +43 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/07-gke-cluster/terragrunt.hcl +103 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/08-dbt_deploy_sa/terragrunt.hcl +36 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/09-dbt_sa/terragrunt.hcl +40 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/10-cert_manager_sa/terragrunt.hcl +34 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/11-external_dns_sa/terragrunt.hcl +30 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/12-monitoring_sa/terragrunt.hcl +52 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/13-data_replication_sa/terragrunt.hcl +35 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/14-data_orchestration_sa/terragrunt.hcl +35 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/15-bi_data_sa/terragrunt.hcl +43 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/16-whitelist-external-ip-on-common/terragrunt.hcl +30 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/17-kubeconfig/terragrunt.hcl +23 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/18-data_streaming_sa/terragrunt.hcl +24 -0
- f2dev/_bundle/platform/terraform/google_cloud/terragrunt/empty.yaml +1 -0
- f2dev/_bundle/platform/utils/__init__.py +0 -0
- f2dev/_bundle/platform/utils/customer_data_platform_repository_operator.py +1098 -0
- f2dev/_bundle/platform/utils/customer_secret_manager_operations.py +1635 -0
- f2dev/_bundle/platform/utils/environment_profiles.py +58 -0
- f2dev/_bundle/platform/utils/helm_utils.py +215 -0
- f2dev/_bundle/platform/utils/infrastructure_deployment_operator.py +1532 -0
- f2dev/_bundle/platform/utils/keycloak_realm_reconcile.py +320 -0
- f2dev/_bundle/platform/utils/kubeconfig_fixer.py +265 -0
- f2dev/_bundle/platform/utils/raw_extras.py +34 -0
- f2dev/_bundle/platform/utils/readiness.py +330 -0
- f2dev/_bundle/platform/utils/secret_structure_upgrade.py +194 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/.gitignore +7 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/README.md +33 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/analyses/.gitkeep +0 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/dbt_project.yml +52 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/macros/.gitkeep +0 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/macros/fast2dev_bq_time_zones.sql +12 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/macros/fast2dev_monitoring_grain.sql +23 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_daily_spend.sql +19 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_daily_spend.yml +25 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_model_costs_daily.sql +16 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_model_costs_daily.yml +24 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_storage_by_dataset.sql +12 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_storage_by_dataset.yml +21 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_user_costs_daily.sql +14 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_user_costs_daily.yml +22 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_kpi.sql +52 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_kpi.yml +42 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_spend.sql +74 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_spend.yml +49 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/sources/billing_export.yml +9 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/staging/fast2dev_bq_billing_export.sql +9 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/staging/fast2dev_bq_billing_export.yml +4 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/packages.yml +5 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/profiles.yml +15 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/scripts/run_monitoring.py +201 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/seeds/.gitkeep +0 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/snapshots/.gitkeep +0 -0
- f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/tests/.gitkeep +0 -0
- f2dev/_bundle/platform/utils/templates/dry_run/gcp_sa.json +12 -0
- f2dev/_bundle/platform/utils/templates/dry_run/kubeconfig.yaml +18 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/data_orchestrator/repository_structure/README.MD +50 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/data_orchestrator/repository_structure/dags/dbt/README.MD +47 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/data_orchestrator/repository_structure/dags/fast2dev_healthcheck.py_template_airflow_3.x +158 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/bitbucket/bitbucket-pipelines.yml_template +144 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/PR_VALIDATION.md +52 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/pull_request_template.md +48 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/workflows/argo-workflows.yml_template +143 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/workflows/pr-agent.yml +30 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/workflows/validate-pr-description.yml +38 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/PR_VALIDATION.md +52 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/pull_request_template.md +48 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/workflows/argo-workflows.yml_template +143 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/workflows/pr-agent.yml +37 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/workflows/validate-pr-description.yml +157 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitlab/.gitlab/PR_VALIDATION.md +43 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitlab/.gitlab/merge_request_templates/Default.md +48 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitlab/.gitlab-ci.yml_template +181 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/.gitignore +21 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/.pr_agent.toml +82 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/AGENTS.md +126 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/README.MD +101 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/DR.md +341 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/README.md.j2 +81 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/decrypt_files.py +331 -0
- f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/encrypt_files.py +321 -0
- f2dev/_bundle/platform/utils/templates/secret_structure_template/customer_vault_structure.json +502 -0
- f2dev/_bundle/platform/utils/vault_structure_sync.py +96 -0
- f2dev/_bundle/terraform-modules/README.md +12 -0
- f2dev/_bundle/terraform-modules/aws_cloud/README.md +7 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/addons-roles.tf +298 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/main.tf +313 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/outputs.tf +3 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/policies/lb-controller-policy.json +219 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/provider.tf +36 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/variables.tf +107 -0
- f2dev/_bundle/terraform-modules/aws_cloud/eks/versions.tf +10 -0
- f2dev/_bundle/terraform-modules/aws_cloud/gcp_aws_zone/main.tf +25 -0
- f2dev/_bundle/terraform-modules/aws_cloud/gcp_aws_zone/provider.tf +17 -0
- f2dev/_bundle/terraform-modules/aws_cloud/gcp_aws_zone/variables.tf +41 -0
- f2dev/_bundle/terraform-modules/aws_cloud/vpc/main.tf +34 -0
- f2dev/_bundle/terraform-modules/aws_cloud/vpc/outputs.tf +44 -0
- f2dev/_bundle/terraform-modules/aws_cloud/vpc/provider.tf +12 -0
- f2dev/_bundle/terraform-modules/aws_cloud/vpc/variables.tf +118 -0
- f2dev/_bundle/terraform-modules/aws_cloud/vpc/versions.tf +10 -0
- f2dev/_bundle/terraform-modules/azure_cloud/README.md +3 -0
- f2dev/_bundle/terraform-modules/google_cloud/README.md +17 -0
- f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/main.tf +8 -0
- f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/providers.tf +6 -0
- f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/variables.tf +17 -0
- f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/versions.tf +8 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/main.tf +24 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/outputs.tf +25 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/providers.tf +7 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/variables.tf +17 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/versions.tf +9 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns-recordset/main.tf +38 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns-recordset/variables.tf +73 -0
- f2dev/_bundle/terraform-modules/google_cloud/cloud-dns-recordset/versions.tf +39 -0
- f2dev/_bundle/terraform-modules/google_cloud/composer/main.tf +213 -0
- f2dev/_bundle/terraform-modules/google_cloud/composer/outputs.tf +31 -0
- f2dev/_bundle/terraform-modules/google_cloud/composer/provider.tf +4 -0
- f2dev/_bundle/terraform-modules/google_cloud/composer/variables.tf +192 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/main.tf +29 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/output.tf +4 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/providers.tf +6 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/variables.tf +40 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/versions.tf +8 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-project/main.tf +18 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-project/output.tf +8 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-project/providers.tf +6 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-project/variables.tf +27 -0
- f2dev/_bundle/terraform-modules/google_cloud/create-project/versions.tf +9 -0
- f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/README.md +188 -0
- f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/main.tf +135 -0
- f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/output.tf +16 -0
- f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/providers.tf +6 -0
- f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/variables.tf +54 -0
- f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/versions.tf +17 -0
- f2dev/_bundle/terraform-modules/google_cloud/enable_apis/main.tf +14 -0
- f2dev/_bundle/terraform-modules/google_cloud/enable_apis/provider.tf +7 -0
- f2dev/_bundle/terraform-modules/google_cloud/enable_apis/variables.tf +13 -0
- f2dev/_bundle/terraform-modules/google_cloud/enable_apis/versions.tf +10 -0
- f2dev/_bundle/terraform-modules/google_cloud/external-ip/README.md +89 -0
- f2dev/_bundle/terraform-modules/google_cloud/external-ip/main.tf +17 -0
- f2dev/_bundle/terraform-modules/google_cloud/external-ip/outputs.tf +19 -0
- f2dev/_bundle/terraform-modules/google_cloud/external-ip/variables.tf +43 -0
- f2dev/_bundle/terraform-modules/google_cloud/fw-add/main.tf +24 -0
- f2dev/_bundle/terraform-modules/google_cloud/fw-add/providers.tf +6 -0
- f2dev/_bundle/terraform-modules/google_cloud/fw-add/variables.tf +37 -0
- f2dev/_bundle/terraform-modules/google_cloud/fw-add/versions.tf +9 -0
- f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/README.md +10 -0
- f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/main.tf +459 -0
- f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/outputs.tf +44 -0
- f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/provider.tf +19 -0
- f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/variables.tf +354 -0
- f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/versions.tf +22 -0
- f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/README.md +40 -0
- f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/main.tf +54 -0
- f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/outputs.tf +10 -0
- f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/variables.tf +24 -0
- f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/versions.tf +10 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/README.md +47 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/main.tf +51 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/README.md +103 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/main.tf +71 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/outputs.tf +71 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/variables.tf +82 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/versions.tf +27 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/outputs.tf +35 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/provider.tf +4 -0
- f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/variables.tf +237 -0
- f2dev/_bundle/terraform-modules/oracle_cloud/README.md +3 -0
- f2dev/launcher.py +153 -0
- fast2dev-1.0.0.dist-info/METADATA +201 -0
- fast2dev-1.0.0.dist-info/RECORD +543 -0
- fast2dev-1.0.0.dist-info/WHEEL +4 -0
- fast2dev-1.0.0.dist-info/entry_points.txt +2 -0
- fast2dev-1.0.0.dist-info/licenses/LICENSE +202 -0
- fast2dev-1.0.0.dist-info/licenses/NOTICE +6 -0
|
@@ -0,0 +1,795 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
import time
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
import json
|
|
6
|
+
import logging
|
|
7
|
+
import sys
|
|
8
|
+
import argparse
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from jinja2 import Environment, FileSystemLoader, TemplateNotFound
|
|
11
|
+
from cli.state import vault_structure_path
|
|
12
|
+
from utils.helm_utils import add_or_keep_helm_repo
|
|
13
|
+
from utils.helm_utils import wait_for_pods_ready
|
|
14
|
+
from utils.environment_profiles import ENVIRONMENTS, resolve_environment, service_size
|
|
15
|
+
|
|
16
|
+
# Configure logging
|
|
17
|
+
logging.basicConfig(
|
|
18
|
+
level=logging.INFO,
|
|
19
|
+
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
|
20
|
+
handlers=[
|
|
21
|
+
logging.StreamHandler()
|
|
22
|
+
]
|
|
23
|
+
)
|
|
24
|
+
logger = logging.getLogger('data_governance_deployer')
|
|
25
|
+
|
|
26
|
+
class DataGovernanceDeployer:
|
|
27
|
+
def __init__(self, chart_version, customer, metadata_collector, cloud_provider, domain_name,
|
|
28
|
+
project_id=None, cluster_name=None, kube_config_path=None,
|
|
29
|
+
namespace="data-governance", app_version=None, opensearch_chart_version=None, opensearch_app_version=None,
|
|
30
|
+
prerequest_chart_version=None, dns_provider=None,
|
|
31
|
+
bi_system=None, data_replication_default_destination_type=None, vault_secrets=None,
|
|
32
|
+
dry_run=False, platform_environment=None
|
|
33
|
+
):
|
|
34
|
+
self.deployment_environment = "data-services"
|
|
35
|
+
self.cloud_provider = cloud_provider
|
|
36
|
+
self.domain_name = domain_name
|
|
37
|
+
self.namespace = namespace
|
|
38
|
+
self.customer = customer
|
|
39
|
+
self.metadata_collector = metadata_collector
|
|
40
|
+
self.chart_version = chart_version
|
|
41
|
+
self.app_version = app_version
|
|
42
|
+
self.bi_system = bi_system
|
|
43
|
+
self.data_replication_default_destination_type = data_replication_default_destination_type
|
|
44
|
+
self.vault_secrets = vault_secrets
|
|
45
|
+
self.dry_run = dry_run
|
|
46
|
+
self.platform_environment = resolve_environment(platform_environment, cloud_provider)
|
|
47
|
+
self.size = service_size("data_governance", self.platform_environment)
|
|
48
|
+
|
|
49
|
+
# Cloud Provider Specific
|
|
50
|
+
try:
|
|
51
|
+
if self.cloud_provider == "gcp":
|
|
52
|
+
if project_id and project_id.strip():
|
|
53
|
+
self.project_id = project_id
|
|
54
|
+
logger.info(f"Using provided project_id: {self.project_id}")
|
|
55
|
+
else:
|
|
56
|
+
self.project_id = f"fast2dev-{customer}"
|
|
57
|
+
logger.warning(f"No project_id provided, using default: {self.project_id}")
|
|
58
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
59
|
+
self.data_governance_k8s_sa = f"data-governance-k8s-sa@{self.project_id}.iam.gserviceaccount.com"
|
|
60
|
+
self.monitoring_k8s_sa = f"monitoring-k8s-sa@{self.project_id}.iam.gserviceaccount.com"
|
|
61
|
+
logger.info(f"Configured for GCP with project ID: {self.project_id}")
|
|
62
|
+
elif self.cloud_provider == "aws":
|
|
63
|
+
self.project_id = None
|
|
64
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
65
|
+
self.data_governance_k8s_sa = None
|
|
66
|
+
self.monitoring_k8s_sa = None
|
|
67
|
+
logger.info(f"Configured for AWS with cluster: {self.cluster_name}")
|
|
68
|
+
elif self.cloud_provider == "azure":
|
|
69
|
+
self.project_id = None
|
|
70
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
71
|
+
self.data_governance_k8s_sa = None
|
|
72
|
+
self.monitoring_k8s_sa = None
|
|
73
|
+
logger.info(f"Configured for Azure with cluster: {self.cluster_name}")
|
|
74
|
+
elif self.cloud_provider == "self-managed":
|
|
75
|
+
self.project_id = None
|
|
76
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
77
|
+
self.data_governance_k8s_sa = None
|
|
78
|
+
self.monitoring_k8s_sa = None
|
|
79
|
+
logger.info(f"Configured for self-managed with cluster: {self.cluster_name}")
|
|
80
|
+
else:
|
|
81
|
+
raise ValueError(f"Unsupported cloud provider: {self.cloud_provider}")
|
|
82
|
+
except Exception as e:
|
|
83
|
+
logger.error(f"Error during cloud provider configuration: {str(e)}")
|
|
84
|
+
raise
|
|
85
|
+
|
|
86
|
+
# Set kubeconfig path
|
|
87
|
+
self.kube_config = kube_config_path if kube_config_path else f'/tmp/{self.cluster_name}-kubeconfig.yaml'
|
|
88
|
+
logger.info(f"Using kubeconfig: {self.kube_config}")
|
|
89
|
+
|
|
90
|
+
# Check if kubeconfig exists
|
|
91
|
+
if not os.path.exists(self.kube_config):
|
|
92
|
+
logger.warning(f"Kubeconfig file not found at {self.kube_config}. Deployment may fail.")
|
|
93
|
+
|
|
94
|
+
self.secret_file = str(vault_structure_path(customer))
|
|
95
|
+
if not os.path.exists(self.secret_file):
|
|
96
|
+
raise FileNotFoundError(f"Secret file not found: {self.secret_file}")
|
|
97
|
+
|
|
98
|
+
# Service specific
|
|
99
|
+
self.customer_root_domain = f"{self.customer}.{self.domain_name}"
|
|
100
|
+
self.ingress_host = f"datahub.{self.customer_root_domain}"
|
|
101
|
+
self.ingress_host_gsm = f"datahub-gsm.{self.customer_root_domain}"
|
|
102
|
+
self.data_services_admin_email = f"root-fast2dev-data-governance-admin@{self.customer_root_domain}"
|
|
103
|
+
self.oauth_realm_url = f"https://login.{self.customer_root_domain}/realms/{self.customer}/.well-known/openid-configuration"
|
|
104
|
+
|
|
105
|
+
# Chart versions and paths
|
|
106
|
+
self.data_governance_chart_version = chart_version
|
|
107
|
+
self.data_governance_app_version = app_version if app_version else "v1.0.0"
|
|
108
|
+
self.data_governance_deployment_name = "data-governance"
|
|
109
|
+
self.data_governance_chart_repo_name = "datahub"
|
|
110
|
+
self.data_governance_chart_name = "datahub/datahub"
|
|
111
|
+
self.data_governance_chart_repo = "https://helm.datahubproject.io/"
|
|
112
|
+
self.data_governance_values_path = "charts/data_services_charts/data_governance/dh_values.yaml"
|
|
113
|
+
self.data_governance_render_template_values_path = "charts/data_services_charts/data_governance/template_dh_values.yaml"
|
|
114
|
+
|
|
115
|
+
# Prerequisites chart
|
|
116
|
+
self.data_governance_prerequest_chart_version = prerequest_chart_version if prerequest_chart_version else ""
|
|
117
|
+
self.data_governance_prerequest_deployment_name = "data-governance-sys"
|
|
118
|
+
self.data_governance_prerequest_chart_repo_name = "datahub"
|
|
119
|
+
self.data_governance_prerequest_chart_name = "datahub/datahub-prerequisites"
|
|
120
|
+
self.data_governance_prerequest_chart_repo = "https://helm.datahubproject.io/"
|
|
121
|
+
self.data_governance_prerequest_values_path = "charts/data_services_charts/data_governance/dh_prerequisites_values.yaml"
|
|
122
|
+
self.data_governance_prerequest_render_template_values_path = "charts/data_services_charts/data_governance/template_dh_prerequisites_values.yaml"
|
|
123
|
+
|
|
124
|
+
# Kafka (CloudPirates chart — replaces Bitnami legacy from DH prerequisites)
|
|
125
|
+
self.data_governance_kafka_chart_version = "0.1.6"
|
|
126
|
+
self.data_governance_kafka_deployment_name = "data-governance-sys-kafka"
|
|
127
|
+
self.data_governance_kafka_chart_repo_name = "cloudpirates"
|
|
128
|
+
self.data_governance_kafka_chart_name = "cloudpirates/kafka"
|
|
129
|
+
self.data_governance_kafka_chart_repo = "oci://registry-1.docker.io/cloudpirates/kafka"
|
|
130
|
+
self.data_governance_kafka_values_path = "charts/data_services_charts/data_governance/kafka_values.yaml"
|
|
131
|
+
self.data_governance_kafka_render_template_values_path = "charts/data_services_charts/data_governance/template_kafka_values.yaml"
|
|
132
|
+
|
|
133
|
+
# DNS provider — used to gate the self-managed truststore Job (only needed for coredns setups)
|
|
134
|
+
self.dns_provider = dns_provider
|
|
135
|
+
|
|
136
|
+
# OpenSearch
|
|
137
|
+
self.data_governance_opensearch_chart_version = opensearch_chart_version if opensearch_chart_version else "3.10.0"
|
|
138
|
+
self.data_governance_opensearch_app_version = opensearch_app_version if opensearch_app_version else "3.10.0"
|
|
139
|
+
self.data_governance_opensearch_deployment_name = "data-governance-opensearch"
|
|
140
|
+
self.data_governance_opensearch_chart_repo_name = "opensearch"
|
|
141
|
+
self.data_governance_opensearch_chart_name = "opensearch/opensearch"
|
|
142
|
+
self.data_governance_opensearch_chart_repo = "https://opensearch-project.github.io/helm-charts"
|
|
143
|
+
self.data_governance_opensearch_values_path = "charts/data_services_charts/data_governance/opensearch_values.yaml"
|
|
144
|
+
self.data_governance_opensearch_render_template_values_path = "charts/data_services_charts/data_governance/template_opensearch_values.yaml"
|
|
145
|
+
|
|
146
|
+
# Extra Data Governance values
|
|
147
|
+
self.data_governance_extra_chart_repo_name = "kube-core"
|
|
148
|
+
self.data_governance_extra_chart_name = "kube-core/raw"
|
|
149
|
+
self.data_governance_extra_chart_repo = "https://kube-core.github.io/helm-charts"
|
|
150
|
+
self.data_governance_extra_chart_version = "0.1.1"
|
|
151
|
+
self.data_governance_extra_deployment_name = "data-governance-extra"
|
|
152
|
+
self.data_governance_extra_values_path = "charts/data_services_charts/data_governance/values.yaml"
|
|
153
|
+
self.data_governance_extra_render_template_values_path = "charts/data_services_charts/data_governance/template_values.yaml"
|
|
154
|
+
|
|
155
|
+
# Set app_name after BI system initialization
|
|
156
|
+
self.app_name = self.data_governance_chart_name.split('/')[1] if '/' in self.data_governance_chart_name else self.data_governance_chart_name
|
|
157
|
+
|
|
158
|
+
# Validate template paths
|
|
159
|
+
self._validate_template_paths()
|
|
160
|
+
|
|
161
|
+
def _validate_template_paths(self):
|
|
162
|
+
"""Validate that all required template files exist"""
|
|
163
|
+
required_paths = [
|
|
164
|
+
self.data_governance_render_template_values_path,
|
|
165
|
+
self.data_governance_prerequest_render_template_values_path,
|
|
166
|
+
]
|
|
167
|
+
for path in required_paths:
|
|
168
|
+
template_path = Path(path)
|
|
169
|
+
if not template_path.exists():
|
|
170
|
+
logger.error(f"Template file not found: {template_path}")
|
|
171
|
+
raise FileNotFoundError(f"Template file not found: {template_path}")
|
|
172
|
+
logger.debug(f"Template file validated: {template_path}")
|
|
173
|
+
|
|
174
|
+
def deploy_service(self, chart_repo_name, chart_repo, deployment_name, chart_name, chart_version, namespace, values_path):
|
|
175
|
+
"""Deploy a Helm chart service"""
|
|
176
|
+
logger.info(f"Deploying {deployment_name} in namespace {namespace}")
|
|
177
|
+
|
|
178
|
+
# Check if values file exists
|
|
179
|
+
if not os.path.exists(values_path):
|
|
180
|
+
logger.error(f"Values file not found: {values_path}")
|
|
181
|
+
raise FileNotFoundError(f"Values file not found: {values_path}")
|
|
182
|
+
|
|
183
|
+
try:
|
|
184
|
+
# OCI registries (oci://...) are not classic Helm repos: `helm repo add`
|
|
185
|
+
# fails on them. Install straight from the OCI reference instead.
|
|
186
|
+
if chart_name.startswith("oci://"):
|
|
187
|
+
chart_ref = chart_name
|
|
188
|
+
elif chart_repo.startswith("oci://"):
|
|
189
|
+
chart_ref = chart_repo
|
|
190
|
+
else:
|
|
191
|
+
chart_ref = chart_name
|
|
192
|
+
add_or_keep_helm_repo(chart_repo_name, chart_repo)
|
|
193
|
+
self.execute_command(["helm", "repo", "update", chart_repo_name])
|
|
194
|
+
|
|
195
|
+
# Formulate the Helm upgrade command properly as a list
|
|
196
|
+
helm_command = [
|
|
197
|
+
"helm", "upgrade", "-i", deployment_name, chart_ref,
|
|
198
|
+
"--version", chart_version,
|
|
199
|
+
"--namespace", namespace,
|
|
200
|
+
"--create-namespace",
|
|
201
|
+
"--wait",
|
|
202
|
+
"--timeout", "30m",
|
|
203
|
+
"--values", values_path,
|
|
204
|
+
"--kubeconfig", self.kube_config
|
|
205
|
+
]
|
|
206
|
+
self.execute_command(helm_command)
|
|
207
|
+
logger.info(f"Successfully deployed {deployment_name} in namespace {namespace}")
|
|
208
|
+
except Exception as e:
|
|
209
|
+
logger.error(f"Failed to deploy {deployment_name}: {str(e)}")
|
|
210
|
+
raise
|
|
211
|
+
|
|
212
|
+
def deploy_extra_resources(self):
|
|
213
|
+
"""Deploy the kube-core/raw chart which turns the `manifests:` list into actual k8s resources
|
|
214
|
+
(ExternalSecret for vault bridges, ServiceAccount + Role + RoleBinding for truststore Job, the
|
|
215
|
+
post-deploy Job itself)."""
|
|
216
|
+
values_path = self.data_governance_extra_values_path
|
|
217
|
+
logger.info(f"Deploying extra resources via {self.data_governance_extra_chart_name} from {values_path} in namespace {self.namespace}")
|
|
218
|
+
if not os.path.exists(values_path):
|
|
219
|
+
logger.error(f"Extra values file not found: {values_path}")
|
|
220
|
+
raise FileNotFoundError(f"Extra values file not found: {values_path}")
|
|
221
|
+
try:
|
|
222
|
+
# The extras release contains Jobs. A Job's pod template is
|
|
223
|
+
# immutable, so any change to it makes `helm upgrade` fail with
|
|
224
|
+
# "field is immutable". Remove previous Jobs first; helm recreates
|
|
225
|
+
# them (they are idempotent one-shot setup tasks).
|
|
226
|
+
for job in ("data-governance-post-deploy", "create-java-truststore",
|
|
227
|
+
"data-governance-opensearch-replicas"):
|
|
228
|
+
if self.dry_run:
|
|
229
|
+
break
|
|
230
|
+
subprocess.run(
|
|
231
|
+
["kubectl", "delete", "job", job, "--namespace", self.namespace,
|
|
232
|
+
"--ignore-not-found", "--wait=true", "--kubeconfig", self.kube_config],
|
|
233
|
+
capture_output=True, text=True,
|
|
234
|
+
)
|
|
235
|
+
add_or_keep_helm_repo(self.data_governance_extra_chart_repo_name, self.data_governance_extra_chart_repo)
|
|
236
|
+
self.execute_command(["helm", "repo", "update", self.data_governance_extra_chart_repo_name])
|
|
237
|
+
helm_command = [
|
|
238
|
+
"helm", "upgrade", "-i", self.data_governance_extra_deployment_name,
|
|
239
|
+
self.data_governance_extra_chart_name,
|
|
240
|
+
"--version", self.data_governance_extra_chart_version,
|
|
241
|
+
"--namespace", self.namespace,
|
|
242
|
+
"--create-namespace",
|
|
243
|
+
"--wait", "--timeout", "30m",
|
|
244
|
+
"--values", values_path,
|
|
245
|
+
"--kubeconfig", self.kube_config,
|
|
246
|
+
]
|
|
247
|
+
self.execute_command(helm_command)
|
|
248
|
+
logger.info(f"Successfully deployed extra resources in namespace {self.namespace}")
|
|
249
|
+
except Exception as e:
|
|
250
|
+
logger.error(f"Failed to deploy extra resources: {str(e)}")
|
|
251
|
+
raise
|
|
252
|
+
|
|
253
|
+
def execute_command(self, command):
|
|
254
|
+
"""Execute a shell command with proper error handling"""
|
|
255
|
+
cmd_str = ' '.join(command)
|
|
256
|
+
|
|
257
|
+
# Dry-run mode: show command without executing
|
|
258
|
+
if self.dry_run:
|
|
259
|
+
logger.info(f"[DRY-RUN] Would execute: {cmd_str}")
|
|
260
|
+
print(f"[DRY-RUN] Would execute: {cmd_str}")
|
|
261
|
+
return "" # Return mock success
|
|
262
|
+
|
|
263
|
+
logger.debug(f"Executing command: {cmd_str}")
|
|
264
|
+
|
|
265
|
+
try:
|
|
266
|
+
result = subprocess.run(command, check=True, capture_output=True, text=True)
|
|
267
|
+
logger.debug(f"Command output: {result.stdout}")
|
|
268
|
+
return result.stdout
|
|
269
|
+
except subprocess.CalledProcessError as e:
|
|
270
|
+
logger.error(f"Command failed: {cmd_str}")
|
|
271
|
+
logger.error(f"Status code: {e.returncode}")
|
|
272
|
+
logger.error(f"Output: {e.stdout}")
|
|
273
|
+
logger.error(f"Error: {e.stderr}")
|
|
274
|
+
raise Exception(f"Execution failed for command {cmd_str}: {e.stderr}")
|
|
275
|
+
except Exception as e:
|
|
276
|
+
logger.error(f"Unexpected error executing command {cmd_str}: {str(e)}")
|
|
277
|
+
raise
|
|
278
|
+
|
|
279
|
+
def render_data_governance_values_file(self,
|
|
280
|
+
data_governance_values_path,
|
|
281
|
+
data_governance_render_template_values_path,
|
|
282
|
+
chart_name,
|
|
283
|
+
chart_repo,
|
|
284
|
+
chart_version,
|
|
285
|
+
data_governance_app_name,
|
|
286
|
+
data_governance_app_version,
|
|
287
|
+
ingress_host_gsm,
|
|
288
|
+
ingress_host,
|
|
289
|
+
data_governance_default_admin_user,
|
|
290
|
+
data_governance_root_user,
|
|
291
|
+
data_governance_root_password,
|
|
292
|
+
data_governance_viewer_user,
|
|
293
|
+
data_governance_viewer_password,
|
|
294
|
+
data_governance_db_username,
|
|
295
|
+
data_governance_db_name,
|
|
296
|
+
data_governance_db_url,
|
|
297
|
+
data_governance_db_host,
|
|
298
|
+
data_governance_db_host_for_client,
|
|
299
|
+
data_governance_db_port,
|
|
300
|
+
bi_system,
|
|
301
|
+
data_replication_default_destination_type,
|
|
302
|
+
dns_provider=None
|
|
303
|
+
):
|
|
304
|
+
"""Render the Data Governance values file from template"""
|
|
305
|
+
logger.info("Rendering Data Governance values file from template")
|
|
306
|
+
try:
|
|
307
|
+
context = {
|
|
308
|
+
'namespace': self.namespace,
|
|
309
|
+
'customer': self.customer,
|
|
310
|
+
'customer_root_domain': self.customer_root_domain,
|
|
311
|
+
'domain_name': self.domain_name,
|
|
312
|
+
'cloud_provider': self.cloud_provider,
|
|
313
|
+
'monitoring_k8s_sa': self.monitoring_k8s_sa,
|
|
314
|
+
'chart_name': chart_name,
|
|
315
|
+
'chart_repo': chart_repo,
|
|
316
|
+
'chart_version': chart_version,
|
|
317
|
+
'bi_system': bi_system,
|
|
318
|
+
'data_replication_default_destination_type': data_replication_default_destination_type,
|
|
319
|
+
'vault_secrets': self.vault_secrets,
|
|
320
|
+
'data_governance_deployment_name': self.data_governance_deployment_name,
|
|
321
|
+
'data_governance_app_name': data_governance_app_name,
|
|
322
|
+
'data_governance_app_version': data_governance_app_version,
|
|
323
|
+
'dns_provider': dns_provider,
|
|
324
|
+
'ingress_host_gsm': ingress_host_gsm,
|
|
325
|
+
'ingress_host': ingress_host,
|
|
326
|
+
'data_governance_default_admin_user': data_governance_default_admin_user,
|
|
327
|
+
'data_governance_root_user': data_governance_root_user,
|
|
328
|
+
'data_governance_root_password': data_governance_root_password,
|
|
329
|
+
'data_governance_viewer_user': data_governance_viewer_user,
|
|
330
|
+
'data_governance_viewer_password': data_governance_viewer_password,
|
|
331
|
+
'oauth_realm_url': self.oauth_realm_url,
|
|
332
|
+
'data_governance_db_username': data_governance_db_username,
|
|
333
|
+
'data_governance_db_name': data_governance_db_name,
|
|
334
|
+
'data_governance_db_url': data_governance_db_url,
|
|
335
|
+
'data_governance_db_host': data_governance_db_host,
|
|
336
|
+
'data_governance_db_host_for_client': data_governance_db_host_for_client,
|
|
337
|
+
'data_governance_db_port': data_governance_db_port
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
# Ensure output directory exists
|
|
341
|
+
output_dir = os.path.dirname(data_governance_values_path)
|
|
342
|
+
if not os.path.exists(output_dir):
|
|
343
|
+
logger.info(f"Creating output directory: {output_dir}")
|
|
344
|
+
os.makedirs(output_dir, exist_ok=True)
|
|
345
|
+
|
|
346
|
+
self.render_template(data_governance_render_template_values_path, data_governance_values_path, context)
|
|
347
|
+
logger.info(f"Successfully rendered Data Governance values file to {data_governance_values_path}")
|
|
348
|
+
except Exception as e:
|
|
349
|
+
logger.error(f"Failed to render Data Governance values file: {str(e)}")
|
|
350
|
+
raise
|
|
351
|
+
|
|
352
|
+
def render_data_governance_prerequest_values_file(self):
|
|
353
|
+
"""Render DataHub prerequisites values file from template."""
|
|
354
|
+
logger.info("Rendering DataHub prereqs values file")
|
|
355
|
+
try:
|
|
356
|
+
context = {
|
|
357
|
+
'namespace': self.namespace,
|
|
358
|
+
'customer': self.customer,
|
|
359
|
+
'customer_root_domain': self.customer_root_domain,
|
|
360
|
+
'domain_name': self.domain_name,
|
|
361
|
+
'cloud_provider': self.cloud_provider,
|
|
362
|
+
'chart_name': self.data_governance_prerequest_chart_name,
|
|
363
|
+
'chart_repo': self.data_governance_prerequest_chart_repo,
|
|
364
|
+
'chart_version': self.data_governance_prerequest_chart_version,
|
|
365
|
+
}
|
|
366
|
+
self.render_template(
|
|
367
|
+
self.data_governance_prerequest_render_template_values_path,
|
|
368
|
+
self.data_governance_prerequest_values_path,
|
|
369
|
+
context,
|
|
370
|
+
)
|
|
371
|
+
logger.info(f"Successfully rendered DataHub prereqs values to {self.data_governance_prerequest_values_path}")
|
|
372
|
+
except Exception as e:
|
|
373
|
+
logger.error(f"Failed to render DataHub prereqs values: {str(e)}")
|
|
374
|
+
raise
|
|
375
|
+
|
|
376
|
+
def render_data_governance_opensearch_values_file(self):
|
|
377
|
+
"""Render OpenSearch values file from template.
|
|
378
|
+
Credentials are NEVER inlined in the rendered values file — they are
|
|
379
|
+
always loaded via ExternalSecret → k8s Secret → mounted into the pod via
|
|
380
|
+
envFrom/valueFrom. The deployer does NOT fetch passwords from vault.
|
|
381
|
+
- basicAuth.existingSecret: data-governance-datahub-sys-es-elastic-user
|
|
382
|
+
(populated by ExternalSecret hashicorp-data-governance-datahub-sys-es-elastic-user
|
|
383
|
+
from vault /data-governance/datahub-sys-es-elastic-user)
|
|
384
|
+
- OPENSEARCH_INITIAL_ADMIN_PASSWORD: mounted from
|
|
385
|
+
data-governance-datahub-sys-es-elastic-user (key `password`)"""
|
|
386
|
+
logger.info("Rendering OpenSearch values file")
|
|
387
|
+
try:
|
|
388
|
+
context = {
|
|
389
|
+
'namespace': self.namespace,
|
|
390
|
+
'customer': self.customer,
|
|
391
|
+
'customer_root_domain': self.customer_root_domain,
|
|
392
|
+
'domain_name': self.domain_name,
|
|
393
|
+
'cloud_provider': self.cloud_provider,
|
|
394
|
+
'chart_name': self.data_governance_opensearch_chart_name,
|
|
395
|
+
'chart_repo': self.data_governance_opensearch_chart_repo,
|
|
396
|
+
'chart_version': self.data_governance_opensearch_chart_version,
|
|
397
|
+
'opensearch_version': self.data_governance_opensearch_app_version,
|
|
398
|
+
}
|
|
399
|
+
self.render_template(
|
|
400
|
+
self.data_governance_opensearch_render_template_values_path,
|
|
401
|
+
self.data_governance_opensearch_values_path,
|
|
402
|
+
context,
|
|
403
|
+
)
|
|
404
|
+
logger.info(f"Successfully rendered OpenSearch values to {self.data_governance_opensearch_values_path}")
|
|
405
|
+
except Exception as e:
|
|
406
|
+
logger.error(f"Failed to render OpenSearch values: {str(e)}")
|
|
407
|
+
raise
|
|
408
|
+
|
|
409
|
+
def render_data_governance_kafka_values_file(self):
|
|
410
|
+
"""Render Kafka values file from template. Credentials sourced from k8s Secret
|
|
411
|
+
data-governance-kafka-secrets (populated by ExternalSecret from vault
|
|
412
|
+
/data-governance/kafka-secrets)."""
|
|
413
|
+
logger.info("Rendering Kafka values file")
|
|
414
|
+
try:
|
|
415
|
+
context = {
|
|
416
|
+
'namespace': self.namespace,
|
|
417
|
+
'chart_name': self.data_governance_kafka_chart_name,
|
|
418
|
+
'chart_repo': self.data_governance_kafka_chart_repo,
|
|
419
|
+
'chart_version': self.data_governance_kafka_chart_version,
|
|
420
|
+
}
|
|
421
|
+
self.render_template(
|
|
422
|
+
self.data_governance_kafka_render_template_values_path,
|
|
423
|
+
self.data_governance_kafka_values_path,
|
|
424
|
+
context,
|
|
425
|
+
)
|
|
426
|
+
logger.info(f"Successfully rendered Kafka values to {self.data_governance_kafka_values_path}")
|
|
427
|
+
except Exception as e:
|
|
428
|
+
logger.error(f"Failed to render Kafka values: {str(e)}")
|
|
429
|
+
raise
|
|
430
|
+
|
|
431
|
+
AIRFLOW_NAMESPACE = "data-orchestration"
|
|
432
|
+
AIRFLOW_RELEASE = "data-orchestration"
|
|
433
|
+
AIRFLOW_CONNECTIONS_EXTERNAL_SECRET = "hashicorp-data-orchestration-system-connection-secrets"
|
|
434
|
+
AIRFLOW_CONNECTIONS_SECRET = "airflow-system-connections"
|
|
435
|
+
AIRFLOW_DATAHUB_CONNECTION_KEY = "AIRFLOW_CONN_DATAHUB_REST_DEFAULT"
|
|
436
|
+
|
|
437
|
+
def _kubectl(self, *args, timeout=None):
|
|
438
|
+
if self.dry_run:
|
|
439
|
+
return subprocess.CompletedProcess(["kubectl", *args], 1, stdout="", stderr="dry-run")
|
|
440
|
+
return subprocess.run(
|
|
441
|
+
["kubectl", *args, "--kubeconfig", self.kube_config],
|
|
442
|
+
capture_output=True, text=True, timeout=timeout,
|
|
443
|
+
)
|
|
444
|
+
|
|
445
|
+
def _airflow_has_datahub_connection(self):
|
|
446
|
+
result = self._kubectl(
|
|
447
|
+
"get", "secret", self.AIRFLOW_CONNECTIONS_SECRET, "--namespace", self.AIRFLOW_NAMESPACE,
|
|
448
|
+
"-o", "go-template={{range $k, $v := .data}}{{$k}}{{\"\\n\"}}{{end}}",
|
|
449
|
+
)
|
|
450
|
+
return result.returncode == 0 and self.AIRFLOW_DATAHUB_CONNECTION_KEY in result.stdout.split()
|
|
451
|
+
|
|
452
|
+
def sync_airflow_datahub_connection(self, job_timeout="30m", sync_attempts=24, sync_interval=5):
|
|
453
|
+
"""Hand the DataHub connection written by the post-deploy Job to an already running Airflow.
|
|
454
|
+
|
|
455
|
+
Airflow is deployed before DataHub and reads its system connections only at pod start, and
|
|
456
|
+
the ExternalSecret refreshes once a day. After the Job has stored the connection in Vault,
|
|
457
|
+
refresh the ExternalSecret now and restart Airflow once, when the connection is new.
|
|
458
|
+
"""
|
|
459
|
+
if self.dry_run:
|
|
460
|
+
logger.info("[DRY-RUN] Would sync the DataHub connection into Airflow")
|
|
461
|
+
return False
|
|
462
|
+
found = self._kubectl(
|
|
463
|
+
"get", "externalsecret", self.AIRFLOW_CONNECTIONS_EXTERNAL_SECRET,
|
|
464
|
+
"--namespace", self.AIRFLOW_NAMESPACE,
|
|
465
|
+
)
|
|
466
|
+
if found.returncode != 0:
|
|
467
|
+
logger.info("Airflow is not deployed; skipping the DataHub connection sync")
|
|
468
|
+
return False
|
|
469
|
+
if self._airflow_has_datahub_connection():
|
|
470
|
+
logger.info("Airflow already has the DataHub connection")
|
|
471
|
+
return False
|
|
472
|
+
waited = self._kubectl(
|
|
473
|
+
"wait", "--for=condition=complete", "job/data-governance-post-deploy",
|
|
474
|
+
"--namespace", self.namespace, f"--timeout={job_timeout}",
|
|
475
|
+
)
|
|
476
|
+
if waited.returncode != 0:
|
|
477
|
+
logger.warning("Post-deploy Job did not complete in time; Airflow gets the DataHub connection "
|
|
478
|
+
"on the next daily secret refresh and restart")
|
|
479
|
+
return False
|
|
480
|
+
self._kubectl(
|
|
481
|
+
"annotate", "externalsecret", self.AIRFLOW_CONNECTIONS_EXTERNAL_SECRET,
|
|
482
|
+
"--namespace", self.AIRFLOW_NAMESPACE, f"force-sync={int(time.time())}", "--overwrite",
|
|
483
|
+
)
|
|
484
|
+
for _ in range(sync_attempts):
|
|
485
|
+
if self._airflow_has_datahub_connection():
|
|
486
|
+
break
|
|
487
|
+
time.sleep(sync_interval)
|
|
488
|
+
else:
|
|
489
|
+
logger.warning("DataHub connection did not reach the Airflow connections Secret")
|
|
490
|
+
return False
|
|
491
|
+
restarted = self._kubectl(
|
|
492
|
+
"rollout", "restart", "deployment,statefulset",
|
|
493
|
+
"--namespace", self.AIRFLOW_NAMESPACE, "-l", f"release={self.AIRFLOW_RELEASE}",
|
|
494
|
+
)
|
|
495
|
+
if restarted.returncode != 0:
|
|
496
|
+
logger.warning(f"Could not restart Airflow: {restarted.stderr.strip()}")
|
|
497
|
+
return False
|
|
498
|
+
logger.info("Airflow restarted with the DataHub connection")
|
|
499
|
+
return True
|
|
500
|
+
|
|
501
|
+
def _datahub_installed(self):
|
|
502
|
+
"""True when the DataHub release already exists in the cluster."""
|
|
503
|
+
if self.dry_run:
|
|
504
|
+
return False
|
|
505
|
+
result = subprocess.run(
|
|
506
|
+
["helm", "status", self.data_governance_deployment_name, "--namespace", self.namespace,
|
|
507
|
+
"--kubeconfig", self.kube_config],
|
|
508
|
+
capture_output=True, text=True,
|
|
509
|
+
)
|
|
510
|
+
return result.returncode == 0
|
|
511
|
+
|
|
512
|
+
def render_extra_values_file(self, post_deploy=True):
|
|
513
|
+
"""Render the extra values file from template (vault bridges, truststore, post-deploy Job).
|
|
514
|
+
|
|
515
|
+
With ``post_deploy=False`` only the resources DataHub needs before it starts are rendered;
|
|
516
|
+
the MCP server and the post-deploy Jobs need a running DataHub and OpenSearch.
|
|
517
|
+
"""
|
|
518
|
+
logger.info("Rendering extra values file from template")
|
|
519
|
+
try:
|
|
520
|
+
context = {
|
|
521
|
+
'chart_name': self.data_governance_extra_chart_name,
|
|
522
|
+
'chart_repo': self.data_governance_extra_chart_repo,
|
|
523
|
+
'chart_version': self.data_governance_extra_chart_version,
|
|
524
|
+
'namespace': self.namespace,
|
|
525
|
+
'customer': self.customer,
|
|
526
|
+
'domain_name': self.domain_name,
|
|
527
|
+
'cloud_provider': self.cloud_provider,
|
|
528
|
+
'dns_provider': getattr(self, 'dns_provider', None),
|
|
529
|
+
'ingress_host': self.ingress_host,
|
|
530
|
+
'keycloak_issuer': self.oauth_realm_url.replace('/.well-known/openid-configuration', ''),
|
|
531
|
+
'data_governance_deployment_name': self.data_governance_deployment_name,
|
|
532
|
+
'data_governance_app_name': self.app_name,
|
|
533
|
+
'data_governance_app_version': self.data_governance_app_version,
|
|
534
|
+
'bi_system': self.bi_system or 'superset',
|
|
535
|
+
'data_replication_default_destination_type': self.data_replication_default_destination_type or 'bigquery',
|
|
536
|
+
'vault_secrets': self.vault_secrets or '{}',
|
|
537
|
+
'post_deploy': post_deploy,
|
|
538
|
+
}
|
|
539
|
+
output_dir = os.path.dirname(self.data_governance_extra_values_path)
|
|
540
|
+
if not os.path.exists(output_dir):
|
|
541
|
+
logger.info(f"Creating output directory: {output_dir}")
|
|
542
|
+
os.makedirs(output_dir, exist_ok=True)
|
|
543
|
+
self.render_template(
|
|
544
|
+
self.data_governance_extra_render_template_values_path,
|
|
545
|
+
self.data_governance_extra_values_path,
|
|
546
|
+
context,
|
|
547
|
+
)
|
|
548
|
+
logger.info(f"Successfully rendered extra values file to {self.data_governance_extra_values_path}")
|
|
549
|
+
except Exception as e:
|
|
550
|
+
logger.error(f"Failed to render extra values file: {str(e)}")
|
|
551
|
+
raise
|
|
552
|
+
|
|
553
|
+
def render_template(self, template_path, output_path, context):
|
|
554
|
+
"""Render a Jinja2 template to a file"""
|
|
555
|
+
try:
|
|
556
|
+
logger.debug(f"Rendering template {template_path} to {output_path}")
|
|
557
|
+
env = Environment(loader=FileSystemLoader(os.path.dirname(template_path)))
|
|
558
|
+
template = env.get_template(os.path.basename(template_path))
|
|
559
|
+
output = template.render({**context, 'size': self.size, 'platform_environment': self.platform_environment})
|
|
560
|
+
|
|
561
|
+
with open(output_path, 'w') as f:
|
|
562
|
+
f.write(output)
|
|
563
|
+
logger.debug("Template rendered successfully")
|
|
564
|
+
except TemplateNotFound:
|
|
565
|
+
logger.error(f"Template not found: {template_path}")
|
|
566
|
+
raise FileNotFoundError(f"Template not found: {template_path}")
|
|
567
|
+
except Exception as e:
|
|
568
|
+
logger.error(f"Error rendering template {template_path}: {str(e)}")
|
|
569
|
+
raise
|
|
570
|
+
|
|
571
|
+
def get_secret_from_vault(self, secret_name, secret_path):
|
|
572
|
+
"""Retrieve the secret from the local vault JSON file"""
|
|
573
|
+
try:
|
|
574
|
+
with open(self.secret_file, 'r') as f:
|
|
575
|
+
vault_data = json.load(f)
|
|
576
|
+
|
|
577
|
+
current = vault_data
|
|
578
|
+
for part in secret_path.strip('/').split('/'):
|
|
579
|
+
if part not in current:
|
|
580
|
+
raise KeyError(f"Path {secret_path} not found in vault structure")
|
|
581
|
+
current = current[part]
|
|
582
|
+
|
|
583
|
+
if secret_name not in current:
|
|
584
|
+
raise KeyError(f"Secret {secret_name} not found at path {secret_path}")
|
|
585
|
+
|
|
586
|
+
return current[secret_name]
|
|
587
|
+
except Exception as e:
|
|
588
|
+
logger.error(f"Failed to get secret from local vault: {str(e)}")
|
|
589
|
+
raise
|
|
590
|
+
|
|
591
|
+
def run(self):
|
|
592
|
+
"""Main execution method"""
|
|
593
|
+
logger.info(f"Starting Platform Data Analysis deployment for customer: {self.customer}")
|
|
594
|
+
try:
|
|
595
|
+
# Get secrets from vault
|
|
596
|
+
logger.info("Retrieving secrets from vault")
|
|
597
|
+
data_governance_default_admin_user = self.get_secret_from_vault(
|
|
598
|
+
secret_name="default_admin_user",
|
|
599
|
+
secret_path="/data-governance/root-secrets",
|
|
600
|
+
)
|
|
601
|
+
|
|
602
|
+
data_governance_root_user = self.get_secret_from_vault(
|
|
603
|
+
secret_name="adminUser",
|
|
604
|
+
secret_path="/data-governance/root-secrets",
|
|
605
|
+
)
|
|
606
|
+
data_governance_root_password = self.get_secret_from_vault(
|
|
607
|
+
secret_name="adminPassword",
|
|
608
|
+
secret_path="/data-governance/root-secrets",
|
|
609
|
+
)
|
|
610
|
+
data_governance_viewer_user = self.get_secret_from_vault(
|
|
611
|
+
secret_name="viewerUser",
|
|
612
|
+
secret_path="/data-governance/root-secrets",
|
|
613
|
+
)
|
|
614
|
+
data_governance_viewer_password = self.get_secret_from_vault(
|
|
615
|
+
secret_name="viewerPassword",
|
|
616
|
+
secret_path="/data-governance/root-secrets",
|
|
617
|
+
)
|
|
618
|
+
data_governance_db_username = self.get_secret_from_vault(
|
|
619
|
+
secret_name="username",
|
|
620
|
+
secret_path="/data-governance/database-secrets",
|
|
621
|
+
)
|
|
622
|
+
data_governance_db_name = self.get_secret_from_vault(
|
|
623
|
+
secret_name="database",
|
|
624
|
+
secret_path="/data-governance/database-secrets",
|
|
625
|
+
)
|
|
626
|
+
|
|
627
|
+
if self.bi_system:
|
|
628
|
+
bi_system = self.bi_system
|
|
629
|
+
else:
|
|
630
|
+
bi_system = self.get_secret_from_vault(
|
|
631
|
+
secret_name="DATA_ANALYSIS_PLATFORM",
|
|
632
|
+
secret_path="/data-cicd-workflows/customer-cicd-variables",
|
|
633
|
+
)
|
|
634
|
+
|
|
635
|
+
if self.data_replication_default_destination_type:
|
|
636
|
+
data_replication_default_destination_type = self.data_replication_default_destination_type
|
|
637
|
+
else:
|
|
638
|
+
data_replication_default_destination_type = self.get_secret_from_vault(
|
|
639
|
+
secret_name="DATA_WAREHOUSE_PLATFORM",
|
|
640
|
+
secret_path="/data-cicd-workflows/customer-cicd-variables",
|
|
641
|
+
)
|
|
642
|
+
|
|
643
|
+
data_governance_db_port = "5432"
|
|
644
|
+
data_governance_db_host = f"fast2dev-global-psql.global-postgresql.svc.cluster.local:{data_governance_db_port}"
|
|
645
|
+
data_governance_db_url = "jdbc:postgresql://fast2dev-global-psql.global-postgresql.svc.cluster.local:5432/datahub?sslmode=prefer"
|
|
646
|
+
data_governance_db_host_for_client = "fast2dev-global-psql.global-postgresql.svc.cluster.local"
|
|
647
|
+
|
|
648
|
+
# ── Pre-deploy values.yaml (vault bridges + truststore + post-deploy Job) ──
|
|
649
|
+
# Reuses kube-core/raw chart, which renders the `manifests:` list as actual k8s
|
|
650
|
+
# resources. Includes the ExternalSecret that materializes the
|
|
651
|
+
# `data-governance-datahub-sys-es-elastic-user` secret from vault —
|
|
652
|
+
# required by the OpenSearch chart's basicAuth.existingSecret below.
|
|
653
|
+
logger.info("Pre-deploying values.yaml (kube-core/raw) to materialize vault-derived secrets")
|
|
654
|
+
self.render_extra_values_file(post_deploy=self._datahub_installed())
|
|
655
|
+
self.deploy_extra_resources()
|
|
656
|
+
logger.info("values.yaml pre-deploy complete")
|
|
657
|
+
|
|
658
|
+
# ── OpenSearch (single-node, auth wired via vault-sourced secret) ───
|
|
659
|
+
logger.info(f"Search backend: OpenSearch {self.data_governance_opensearch_app_version} (chart {self.data_governance_opensearch_chart_version})")
|
|
660
|
+
|
|
661
|
+
logger.info("Rendering OpenSearch values file")
|
|
662
|
+
self.render_data_governance_opensearch_values_file()
|
|
663
|
+
|
|
664
|
+
logger.info("Deploying OpenSearch for Data Governance")
|
|
665
|
+
self.deploy_service(
|
|
666
|
+
chart_repo_name=self.data_governance_opensearch_chart_repo_name,
|
|
667
|
+
chart_repo=self.data_governance_opensearch_chart_repo,
|
|
668
|
+
deployment_name=self.data_governance_opensearch_deployment_name,
|
|
669
|
+
chart_name=self.data_governance_opensearch_chart_name,
|
|
670
|
+
chart_version=self.data_governance_opensearch_chart_version,
|
|
671
|
+
namespace=self.namespace,
|
|
672
|
+
values_path=self.data_governance_opensearch_values_path,
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
logger.info("Waiting for OpenSearch to be ready (5-10 minutes for first boot)...")
|
|
676
|
+
wait_for_pods_ready(
|
|
677
|
+
label_selector=f"app.kubernetes.io/instance={self.data_governance_opensearch_deployment_name}",
|
|
678
|
+
namespace=self.namespace,
|
|
679
|
+
kubeconfig=self.kube_config,
|
|
680
|
+
timeout_seconds=900,
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
# ── Kafka (CloudPirates chart — replaces Bitnami legacy bundled in DH prereqs) ──
|
|
684
|
+
logger.info("Rendering Kafka values file")
|
|
685
|
+
self.render_data_governance_kafka_values_file()
|
|
686
|
+
|
|
687
|
+
logger.info("Deploying Kafka")
|
|
688
|
+
self.deploy_service(
|
|
689
|
+
chart_repo_name=self.data_governance_kafka_chart_repo_name,
|
|
690
|
+
chart_repo=self.data_governance_kafka_chart_repo,
|
|
691
|
+
deployment_name=self.data_governance_kafka_deployment_name,
|
|
692
|
+
chart_name=self.data_governance_kafka_chart_name,
|
|
693
|
+
chart_version=self.data_governance_kafka_chart_version,
|
|
694
|
+
namespace=self.namespace,
|
|
695
|
+
values_path=self.data_governance_kafka_values_path,
|
|
696
|
+
)
|
|
697
|
+
|
|
698
|
+
logger.info("Waiting for Kafka to be ready...")
|
|
699
|
+
wait_for_pods_ready(
|
|
700
|
+
label_selector=f"app.kubernetes.io/instance={self.data_governance_kafka_deployment_name}",
|
|
701
|
+
namespace=self.namespace,
|
|
702
|
+
kubeconfig=self.kube_config,
|
|
703
|
+
timeout_seconds=600,
|
|
704
|
+
)
|
|
705
|
+
|
|
706
|
+
# ── DataHub prerequisites (Neo4j only — Kafka is deployed separately via CloudPirates chart) ─
|
|
707
|
+
logger.info("Rendering DataHub prerequisites values file")
|
|
708
|
+
self.render_data_governance_prerequest_values_file()
|
|
709
|
+
|
|
710
|
+
logger.info("Deploying DataHub prerequisites")
|
|
711
|
+
self.deploy_service(
|
|
712
|
+
chart_repo_name=self.data_governance_prerequest_chart_repo_name,
|
|
713
|
+
chart_repo=self.data_governance_prerequest_chart_repo,
|
|
714
|
+
deployment_name=self.data_governance_prerequest_deployment_name,
|
|
715
|
+
chart_name=self.data_governance_prerequest_chart_name,
|
|
716
|
+
chart_version=self.data_governance_prerequest_chart_version,
|
|
717
|
+
namespace=self.namespace,
|
|
718
|
+
values_path=self.data_governance_prerequest_values_path,
|
|
719
|
+
)
|
|
720
|
+
|
|
721
|
+
logger.info("Waiting for DataHub prerequisites pods to be ready...")
|
|
722
|
+
wait_for_pods_ready(
|
|
723
|
+
label_selector="app.kubernetes.io/name=opensearch",
|
|
724
|
+
namespace=self.namespace,
|
|
725
|
+
kubeconfig=self.kube_config,
|
|
726
|
+
timeout_seconds=900,
|
|
727
|
+
)
|
|
728
|
+
|
|
729
|
+
# ── DataHub main chart (GMS, frontend, MAE, etc.) ─────────────
|
|
730
|
+
logger.info("Rendering DataHub main values file")
|
|
731
|
+
self.render_data_governance_values_file(
|
|
732
|
+
data_governance_values_path=self.data_governance_values_path,
|
|
733
|
+
data_governance_render_template_values_path=self.data_governance_render_template_values_path,
|
|
734
|
+
chart_name=self.data_governance_chart_name,
|
|
735
|
+
chart_repo=self.data_governance_chart_repo,
|
|
736
|
+
chart_version=self.data_governance_chart_version,
|
|
737
|
+
data_governance_app_name=self.app_name,
|
|
738
|
+
data_governance_app_version=self.data_governance_app_version,
|
|
739
|
+
ingress_host_gsm=self.ingress_host_gsm,
|
|
740
|
+
ingress_host=self.ingress_host,
|
|
741
|
+
data_governance_default_admin_user=data_governance_default_admin_user,
|
|
742
|
+
data_governance_root_user=data_governance_root_user,
|
|
743
|
+
data_governance_root_password=data_governance_root_password,
|
|
744
|
+
data_governance_viewer_user=data_governance_viewer_user,
|
|
745
|
+
data_governance_viewer_password=data_governance_viewer_password,
|
|
746
|
+
data_governance_db_username=data_governance_db_username,
|
|
747
|
+
data_governance_db_name=data_governance_db_name,
|
|
748
|
+
data_governance_db_url=data_governance_db_url,
|
|
749
|
+
data_governance_db_host=data_governance_db_host,
|
|
750
|
+
data_governance_db_host_for_client=data_governance_db_host_for_client,
|
|
751
|
+
data_governance_db_port=data_governance_db_port,
|
|
752
|
+
bi_system=bi_system,
|
|
753
|
+
data_replication_default_destination_type=data_replication_default_destination_type,
|
|
754
|
+
dns_provider=self.dns_provider,
|
|
755
|
+
)
|
|
756
|
+
|
|
757
|
+
logger.info("Deploying DataHub (GMS, frontend, MAE, etc.)")
|
|
758
|
+
self.deploy_service(
|
|
759
|
+
chart_repo_name=self.data_governance_chart_repo_name,
|
|
760
|
+
chart_repo=self.data_governance_chart_repo,
|
|
761
|
+
deployment_name=self.data_governance_deployment_name,
|
|
762
|
+
chart_name=self.data_governance_chart_name,
|
|
763
|
+
chart_version=self.data_governance_chart_version,
|
|
764
|
+
namespace=self.namespace,
|
|
765
|
+
values_path=self.data_governance_values_path,
|
|
766
|
+
)
|
|
767
|
+
|
|
768
|
+
logger.info("Waiting for DataHub to be ready (10-15 minutes for first boot)...")
|
|
769
|
+
wait_for_pods_ready(
|
|
770
|
+
# Pods carry instance=<release>; restrict to the long-running
|
|
771
|
+
# components (system-update Job pods never become Ready).
|
|
772
|
+
label_selector=(
|
|
773
|
+
f"app.kubernetes.io/instance={self.data_governance_deployment_name},"
|
|
774
|
+
"app.kubernetes.io/name in (datahub-gms,datahub-frontend,acryl-datahub-actions)"
|
|
775
|
+
),
|
|
776
|
+
namespace=self.namespace,
|
|
777
|
+
kubeconfig=self.kube_config,
|
|
778
|
+
timeout_seconds=1800,
|
|
779
|
+
)
|
|
780
|
+
|
|
781
|
+
# ── Extras: vault bridges, truststore, post-deploy Job ────────
|
|
782
|
+
logger.info("Rendering extra values file (vault bridges, truststore, post-deploy Job)")
|
|
783
|
+
self.render_extra_values_file()
|
|
784
|
+
|
|
785
|
+
logger.info("Applying extra resources in namespace " + self.namespace)
|
|
786
|
+
self.deploy_extra_resources()
|
|
787
|
+
self.sync_airflow_datahub_connection()
|
|
788
|
+
|
|
789
|
+
logger.info(f"Data Governance deployment complete for customer {self.customer}")
|
|
790
|
+
return "Platform Data Governance deployed successfully"
|
|
791
|
+
except Exception as e:
|
|
792
|
+
logger.error(f"Data Governance deployment halted: {e}")
|
|
793
|
+
raise
|
|
794
|
+
finally:
|
|
795
|
+
logger.info("Data Governance run() attempt complete")
|