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,587 @@
|
|
|
1
|
+
import subprocess
|
|
2
|
+
import os
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
import json
|
|
5
|
+
import logging
|
|
6
|
+
import sys
|
|
7
|
+
import argparse
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from jinja2 import Environment, FileSystemLoader, TemplateNotFound
|
|
10
|
+
from cli.state import vault_structure_path
|
|
11
|
+
from utils.helm_utils import add_or_keep_helm_repo
|
|
12
|
+
from utils.helm_utils import wait_for_pods_ready
|
|
13
|
+
from utils.environment_profiles import ENVIRONMENTS, resolve_environment, service_size
|
|
14
|
+
|
|
15
|
+
# Configure logging
|
|
16
|
+
logging.basicConfig(
|
|
17
|
+
level=logging.INFO,
|
|
18
|
+
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
|
19
|
+
handlers=[
|
|
20
|
+
logging.StreamHandler()
|
|
21
|
+
]
|
|
22
|
+
)
|
|
23
|
+
logger = logging.getLogger('data_analysis_deployer')
|
|
24
|
+
|
|
25
|
+
class DataAnalysisDeployer:
|
|
26
|
+
def __init__(self, chart_version, customer, metadata_collector, cloud_provider, domain_name,
|
|
27
|
+
project_id=None, cluster_name=None, kube_config_path=None,
|
|
28
|
+
namespace="data-analysis", app_version=None, bi_system="lightdash", dry_run=False, platform_environment=None):
|
|
29
|
+
self.deployment_environment = "data-services"
|
|
30
|
+
self.cloud_provider = cloud_provider
|
|
31
|
+
self.domain_name = domain_name
|
|
32
|
+
self.namespace = namespace
|
|
33
|
+
self.customer = customer
|
|
34
|
+
self.metadata_collector = metadata_collector
|
|
35
|
+
self.chart_version = chart_version
|
|
36
|
+
self.app_version = app_version
|
|
37
|
+
self.bi_system = bi_system
|
|
38
|
+
self.dry_run = dry_run
|
|
39
|
+
self.platform_environment = resolve_environment(platform_environment, cloud_provider)
|
|
40
|
+
self.size = service_size("data_analysis", self.platform_environment)
|
|
41
|
+
|
|
42
|
+
# Cloud Provider Specific
|
|
43
|
+
try:
|
|
44
|
+
if self.cloud_provider == "gcp":
|
|
45
|
+
if project_id and project_id.strip():
|
|
46
|
+
self.project_id = project_id
|
|
47
|
+
logger.info(f"Using provided project_id: {self.project_id}")
|
|
48
|
+
else:
|
|
49
|
+
self.project_id = f"fast2dev-{customer}"
|
|
50
|
+
logger.warning(f"No project_id provided, using default: {self.project_id}")
|
|
51
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
52
|
+
self.bi_data_k8s_sa = f"bi-data-k8s-sa@{self.project_id}.iam.gserviceaccount.com"
|
|
53
|
+
logger.info(f"Configured for GCP with project ID: {self.project_id}")
|
|
54
|
+
elif self.cloud_provider == "aws":
|
|
55
|
+
self.project_id = None
|
|
56
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
57
|
+
self.bi_data_k8s_sa = None
|
|
58
|
+
logger.info(f"Configured for AWS with cluster: {self.cluster_name}")
|
|
59
|
+
elif self.cloud_provider == "azure":
|
|
60
|
+
self.project_id = None
|
|
61
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
62
|
+
self.bi_data_k8s_sa = None
|
|
63
|
+
logger.info(f"Configured for Azure with cluster: {self.cluster_name}")
|
|
64
|
+
elif self.cloud_provider == "self-managed":
|
|
65
|
+
self.project_id = None
|
|
66
|
+
self.cluster_name = cluster_name if cluster_name else f"fast2dev-{customer}-platform"
|
|
67
|
+
self.bi_data_k8s_sa = None
|
|
68
|
+
logger.info(f"Configured for self-managed with cluster: {self.cluster_name}")
|
|
69
|
+
else:
|
|
70
|
+
raise ValueError(f"Unsupported cloud provider: {self.cloud_provider}")
|
|
71
|
+
except Exception as e:
|
|
72
|
+
logger.error(f"Error during cloud provider configuration: {str(e)}")
|
|
73
|
+
raise
|
|
74
|
+
|
|
75
|
+
# Set kubeconfig path
|
|
76
|
+
self.kube_config = kube_config_path if kube_config_path else f'/tmp/{self.cluster_name}-kubeconfig.yaml'
|
|
77
|
+
logger.info(f"Using kubeconfig: {self.kube_config}")
|
|
78
|
+
|
|
79
|
+
# Check if kubeconfig exists
|
|
80
|
+
if not os.path.exists(self.kube_config):
|
|
81
|
+
logger.warning(f"Kubeconfig file not found at {self.kube_config}. Deployment may fail.")
|
|
82
|
+
|
|
83
|
+
self.secret_file = str(vault_structure_path(customer))
|
|
84
|
+
if not os.path.exists(self.secret_file):
|
|
85
|
+
raise FileNotFoundError(f"Secret file not found: {self.secret_file}")
|
|
86
|
+
|
|
87
|
+
# Service specific
|
|
88
|
+
self.customer_root_domain = f"{self.customer}.{self.domain_name}"
|
|
89
|
+
self.ingress_host = f"bi.{self.customer_root_domain}"
|
|
90
|
+
self.bi_basic_user = "root-fast2dev-bi-admin"
|
|
91
|
+
self.bi_basic_user_name = "Administrator"
|
|
92
|
+
self.bi_basic_user_last_name = f"{self.customer}_Fast2.Dev"
|
|
93
|
+
self.bi_admin_email = f"root-fast2dev-bi-admin@{self.customer_root_domain}"
|
|
94
|
+
self.bi_smtp_mail_from = f"noreply@{self.customer_root_domain}"
|
|
95
|
+
|
|
96
|
+
# OAuth URLs
|
|
97
|
+
self.oauth_realm_url = f"https://login.{self.customer_root_domain}/realms/{self.customer}"
|
|
98
|
+
self.oauth_real_well_known_url = f"{self.oauth_realm_url}/.well-known/openid-configuration"
|
|
99
|
+
self.oauth_protocol_url = f"{self.oauth_realm_url}/protocol/"
|
|
100
|
+
|
|
101
|
+
# S3 endpoint
|
|
102
|
+
self.s3_endpoint = "http://object-storage-svc.global-object-storage.svc.cluster.local:9000"
|
|
103
|
+
|
|
104
|
+
# Chart versions and paths
|
|
105
|
+
self.data_analysis_chart_repo_name = "kube-core"
|
|
106
|
+
self.data_analysis_chart_name = "kube-core/raw"
|
|
107
|
+
self.data_analysis_chart_repo = "https://kube-core.github.io/helm-charts"
|
|
108
|
+
self.data_analysis_chart_version = "0.1.1"
|
|
109
|
+
|
|
110
|
+
# Data Analysis Deployment names
|
|
111
|
+
self.data_analysis_deployment_name = "data-analysis-hub-extra"
|
|
112
|
+
|
|
113
|
+
# Values paths
|
|
114
|
+
self.data_analysis_values_path = "charts/data_services_charts/data_analysis/values.yaml"
|
|
115
|
+
self.data_analysis_render_template_values_path = "charts/data_services_charts/data_analysis/template_values.yaml"
|
|
116
|
+
self.bi_extra_values_path = self.data_analysis_values_path
|
|
117
|
+
self.bi_extra_render_template_values_path = self.data_analysis_render_template_values_path
|
|
118
|
+
|
|
119
|
+
# Initialize BI system specific variables
|
|
120
|
+
self._initialize_bi_system()
|
|
121
|
+
|
|
122
|
+
# Set app_name after BI system initialization
|
|
123
|
+
self.app_name = self.chart_name.split('/')[1] if '/' in self.chart_name else self.chart_name
|
|
124
|
+
|
|
125
|
+
# Validate template paths
|
|
126
|
+
self._validate_template_paths()
|
|
127
|
+
|
|
128
|
+
def _initialize_bi_system(self):
|
|
129
|
+
"""Initialize BI system specific variables"""
|
|
130
|
+
if self.bi_system == "superset":
|
|
131
|
+
self._initialize_superset()
|
|
132
|
+
elif self.bi_system == "lightdash":
|
|
133
|
+
self._initialize_lightdash()
|
|
134
|
+
elif self.bi_system == "metabase":
|
|
135
|
+
self._initialize_metabase()
|
|
136
|
+
else:
|
|
137
|
+
raise ValueError(f"Unsupported BI system: {self.bi_system}")
|
|
138
|
+
|
|
139
|
+
def _initialize_superset(self):
|
|
140
|
+
"""Initialize Superset specific variables"""
|
|
141
|
+
self.deployment_name = "data-analysis-hub"
|
|
142
|
+
self.chart_repo_name = "superset"
|
|
143
|
+
self.chart_name = "superset/superset"
|
|
144
|
+
self.chart_repo = "https://apache.github.io/superset"
|
|
145
|
+
self.values_path = "charts/data_services_charts/data_analysis/superset/values.yaml"
|
|
146
|
+
self.render_template_values_path = "charts/data_services_charts/data_analysis/superset/template_values.yaml"
|
|
147
|
+
|
|
148
|
+
def _initialize_lightdash(self):
|
|
149
|
+
"""Initialize Lightdash specific variables"""
|
|
150
|
+
self.deployment_name = "data-analysis-hub"
|
|
151
|
+
self.chart_repo_name = "lightdash"
|
|
152
|
+
self.chart_name = "lightdash/lightdash"
|
|
153
|
+
self.chart_repo = "https://lightdash.github.io/helm-charts"
|
|
154
|
+
self.values_path = "charts/data_services_charts/data_analysis/lightdash/values.yaml"
|
|
155
|
+
self.render_template_values_path = "charts/data_services_charts/data_analysis/lightdash/template_values.yaml"
|
|
156
|
+
|
|
157
|
+
def _initialize_metabase(self):
|
|
158
|
+
"""Initialize Metabase specific variables"""
|
|
159
|
+
self.deployment_name = "data-analysis-hub"
|
|
160
|
+
self.chart_repo_name = "metabase"
|
|
161
|
+
self.chart_name = "metabase/metabase"
|
|
162
|
+
self.chart_repo = "https://pmint93.github.io/helm-charts"
|
|
163
|
+
self.values_path = "charts/data_services_charts/data_analysis/metabase/values.yaml"
|
|
164
|
+
self.render_template_values_path = "charts/data_services_charts/data_analysis/metabase/template_values.yaml"
|
|
165
|
+
|
|
166
|
+
def _validate_template_paths(self):
|
|
167
|
+
"""Validate that all required template files exist"""
|
|
168
|
+
required_paths = [
|
|
169
|
+
self.render_template_values_path
|
|
170
|
+
]
|
|
171
|
+
for path in required_paths:
|
|
172
|
+
template_path = Path(path)
|
|
173
|
+
if not template_path.exists():
|
|
174
|
+
logger.error(f"Template file not found: {template_path}")
|
|
175
|
+
raise FileNotFoundError(f"Template file not found: {template_path}")
|
|
176
|
+
logger.debug(f"Template file validated: {template_path}")
|
|
177
|
+
|
|
178
|
+
def deploy_service(self, chart_repo_name, chart_repo, deployment_name, chart_name, chart_version, namespace, values_path, timeout="30m"):
|
|
179
|
+
"""Deploy a Helm chart service"""
|
|
180
|
+
logger.info(f"Deploying {deployment_name} in namespace {namespace}")
|
|
181
|
+
|
|
182
|
+
# Check if values file exists
|
|
183
|
+
if not os.path.exists(values_path):
|
|
184
|
+
logger.error(f"Values file not found: {values_path}")
|
|
185
|
+
raise FileNotFoundError(f"Values file not found: {values_path}")
|
|
186
|
+
|
|
187
|
+
try:
|
|
188
|
+
# Properly add and update the Helm repo
|
|
189
|
+
add_or_keep_helm_repo(chart_repo_name, chart_repo)
|
|
190
|
+
self.execute_command(["helm", "repo", "update", chart_repo_name])
|
|
191
|
+
|
|
192
|
+
# Formulate the Helm upgrade command properly as a list
|
|
193
|
+
helm_command = [
|
|
194
|
+
"helm", "upgrade", "-i", deployment_name, chart_name,
|
|
195
|
+
"--version", chart_version,
|
|
196
|
+
"--namespace", namespace,
|
|
197
|
+
"--create-namespace",
|
|
198
|
+
"--wait",
|
|
199
|
+
"--timeout", timeout,
|
|
200
|
+
"--values", values_path,
|
|
201
|
+
"--kubeconfig", self.kube_config
|
|
202
|
+
]
|
|
203
|
+
self.execute_command(helm_command)
|
|
204
|
+
logger.info(f"Successfully deployed {deployment_name} in namespace {namespace}")
|
|
205
|
+
except Exception as e:
|
|
206
|
+
logger.error(f"Failed to deploy {deployment_name}: {str(e)}")
|
|
207
|
+
raise
|
|
208
|
+
|
|
209
|
+
def get_deployed_app_version(self, deployment_name, namespace):
|
|
210
|
+
"""Get the deployed application version from Helm"""
|
|
211
|
+
logger.info(f"Getting deployed version for {deployment_name} in namespace {namespace}")
|
|
212
|
+
try:
|
|
213
|
+
command = ["helm", "ls", "--deployed", "-f", deployment_name, "-n", namespace, "--kubeconfig", self.kube_config, "--output", "json"]
|
|
214
|
+
result = self.execute_command(command)
|
|
215
|
+
if result:
|
|
216
|
+
# Parse JSON output
|
|
217
|
+
deployments = json.loads(result)
|
|
218
|
+
if deployments and isinstance(deployments, list) and len(deployments) > 0:
|
|
219
|
+
app_version = deployments[0].get('app_version', "Unknown")
|
|
220
|
+
logger.info(f"Found app version: {app_version}")
|
|
221
|
+
return app_version
|
|
222
|
+
else:
|
|
223
|
+
logger.warning(f"No deployments found for {deployment_name}")
|
|
224
|
+
return "No deployed version found"
|
|
225
|
+
except json.JSONDecodeError as e:
|
|
226
|
+
logger.error(f"Failed to parse Helm output as JSON: {str(e)}")
|
|
227
|
+
return "Error parsing version"
|
|
228
|
+
except Exception as e:
|
|
229
|
+
logger.error(f"Error getting deployed version: {str(e)}")
|
|
230
|
+
return "Error getting version"
|
|
231
|
+
|
|
232
|
+
def execute_command(self, command):
|
|
233
|
+
"""Execute a shell command with proper error handling"""
|
|
234
|
+
cmd_str = ' '.join(command)
|
|
235
|
+
|
|
236
|
+
# Dry-run mode: show command without executing
|
|
237
|
+
if self.dry_run:
|
|
238
|
+
logger.info(f"[DRY-RUN] Would execute: {cmd_str}")
|
|
239
|
+
print(f"[DRY-RUN] Would execute: {cmd_str}")
|
|
240
|
+
return "" # Return mock success
|
|
241
|
+
|
|
242
|
+
logger.debug(f"Executing command: {cmd_str}")
|
|
243
|
+
|
|
244
|
+
try:
|
|
245
|
+
result = subprocess.run(command, check=True, capture_output=True, text=True)
|
|
246
|
+
logger.debug(f"Command output: {result.stdout}")
|
|
247
|
+
return result.stdout
|
|
248
|
+
except subprocess.CalledProcessError as e:
|
|
249
|
+
logger.error(f"Command failed: {cmd_str}")
|
|
250
|
+
logger.error(f"Status code: {e.returncode}")
|
|
251
|
+
logger.error(f"Output: {e.stdout}")
|
|
252
|
+
logger.error(f"Error: {e.stderr}")
|
|
253
|
+
raise Exception(f"Execution failed for command {cmd_str}: {e.stderr}")
|
|
254
|
+
except Exception as e:
|
|
255
|
+
logger.error(f"Unexpected error executing command {cmd_str}: {str(e)}")
|
|
256
|
+
raise
|
|
257
|
+
|
|
258
|
+
def render_data_analysis_values_file(self, data_analysis_values_path, data_analysis_render_template_values_path, chart_name, chart_repo, chart_version, bi_smtp_host, bi_smtp_port, bi_smtp_user, bi_smtp_password, bi_cache_redis_password, bi_psql_username, bi_psql_database, bi_psql_repl_user_name, bi_psql_password, bi_psql_host, bi_psql_port, bi_cookie_secret, oauth_client_id, oauth_client_secret, oauth_client_secret_token, bi_basic_user, bi_basic_user_name, bi_basic_user_last_name, bi_admin_email, bi_admin_password, jwt_secret):
|
|
259
|
+
"""Render the Data Analysis values file from template"""
|
|
260
|
+
logger.info("Rendering Data Analysis values file from template")
|
|
261
|
+
try:
|
|
262
|
+
context = {
|
|
263
|
+
# Lightdash
|
|
264
|
+
'bi_system': self.bi_system,
|
|
265
|
+
'data_analysis_deployment_name': self.deployment_name,
|
|
266
|
+
'data_analysis_app_name': self.app_name,
|
|
267
|
+
'data_analysis_app_version': self.app_version,
|
|
268
|
+
'namespace': self.namespace,
|
|
269
|
+
'customer': self.customer,
|
|
270
|
+
'customer_root_domain': self.customer_root_domain,
|
|
271
|
+
'domain_name': self.domain_name,
|
|
272
|
+
'cloud_provider': self.cloud_provider,
|
|
273
|
+
'chart_name': chart_name,
|
|
274
|
+
'chart_repo': chart_repo,
|
|
275
|
+
'chart_version': chart_version,
|
|
276
|
+
'ingress_host': self.ingress_host,
|
|
277
|
+
'oauth_real_well_known_url': self.oauth_real_well_known_url,
|
|
278
|
+
'oauth_protocol_url': self.oauth_protocol_url,
|
|
279
|
+
'oauth_realm_url': self.oauth_realm_url,
|
|
280
|
+
'bi_smtp_host': bi_smtp_host,
|
|
281
|
+
'bi_smtp_port': bi_smtp_port,
|
|
282
|
+
'bi_smtp_user': bi_smtp_user,
|
|
283
|
+
'bi_smtp_password': bi_smtp_password,
|
|
284
|
+
'bi_smtp_mail_from': self.bi_smtp_mail_from,
|
|
285
|
+
'bi_cache_redis_password': bi_cache_redis_password,
|
|
286
|
+
'bi_psql_username': bi_psql_username,
|
|
287
|
+
'bi_psql_database': bi_psql_database,
|
|
288
|
+
'bi_psql_repl_username': bi_psql_repl_user_name,
|
|
289
|
+
'bi_psql_password': bi_psql_password,
|
|
290
|
+
'bi_psql_host': bi_psql_host,
|
|
291
|
+
'bi_psql_port': bi_psql_port,
|
|
292
|
+
'bi_data_k8s_sa': self.bi_data_k8s_sa,
|
|
293
|
+
'bi_cookie_secret': bi_cookie_secret,
|
|
294
|
+
'oauth_client_id': oauth_client_id,
|
|
295
|
+
'oauth_client_secret': oauth_client_secret,
|
|
296
|
+
'oauth_client_secret_token': oauth_client_secret_token,
|
|
297
|
+
'bi_basic_user': bi_basic_user,
|
|
298
|
+
'bi_basic_user_name': bi_basic_user_name,
|
|
299
|
+
'bi_basic_user_last_name': bi_basic_user_last_name,
|
|
300
|
+
'bi_admin_email': bi_admin_email,
|
|
301
|
+
'bi_admin_password': bi_admin_password,
|
|
302
|
+
'bi_app_version': self.app_version,
|
|
303
|
+
'jwt_secret': jwt_secret,
|
|
304
|
+
's3_endpoint': self.s3_endpoint,
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
# Ensure output directory exists
|
|
308
|
+
output_dir = os.path.dirname(data_analysis_values_path)
|
|
309
|
+
if not os.path.exists(output_dir):
|
|
310
|
+
logger.info(f"Creating output directory: {output_dir}")
|
|
311
|
+
os.makedirs(output_dir, exist_ok=True)
|
|
312
|
+
|
|
313
|
+
self.render_template(data_analysis_render_template_values_path, data_analysis_values_path, context)
|
|
314
|
+
logger.info(f"Successfully rendered Data Analysis values file to {data_analysis_values_path}")
|
|
315
|
+
except Exception as e:
|
|
316
|
+
logger.error(f"Failed to render Data Analysis values file: {str(e)}")
|
|
317
|
+
raise
|
|
318
|
+
|
|
319
|
+
def render_extra_values_file(self, bi_psql_host=None, bi_psql_port=None):
|
|
320
|
+
"""Render the extra values file from template"""
|
|
321
|
+
logger.info("Rendering extra values file from template")
|
|
322
|
+
try:
|
|
323
|
+
context = {
|
|
324
|
+
'chart_name': self.data_analysis_chart_name,
|
|
325
|
+
'chart_repo': self.data_analysis_chart_repo,
|
|
326
|
+
'chart_version': self.data_analysis_chart_version,
|
|
327
|
+
'namespace': self.namespace,
|
|
328
|
+
'customer': self.customer,
|
|
329
|
+
'domain_name': self.domain_name,
|
|
330
|
+
'cloud_provider': self.cloud_provider,
|
|
331
|
+
'data_analysis_deployment_name': self.data_analysis_deployment_name,
|
|
332
|
+
'data_analysis_app_name': self.app_name,
|
|
333
|
+
'data_analysis_app_version': self.app_version,
|
|
334
|
+
'bi_system': self.bi_system,
|
|
335
|
+
'customer_root_domain': self.customer_root_domain,
|
|
336
|
+
'bi_psql_host': bi_psql_host,
|
|
337
|
+
'bi_psql_port': bi_psql_port,
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
# Ensure output directory exists
|
|
341
|
+
output_dir = os.path.dirname(self.bi_extra_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(self.bi_extra_render_template_values_path, self.bi_extra_values_path, context)
|
|
347
|
+
logger.info(f"Successfully rendered extra values file to {self.bi_extra_values_path}")
|
|
348
|
+
except Exception as e:
|
|
349
|
+
logger.error(f"Failed to render extra values file: {str(e)}")
|
|
350
|
+
raise
|
|
351
|
+
|
|
352
|
+
def render_template(self, template_path, output_path, context):
|
|
353
|
+
"""Render a Jinja2 template to a file"""
|
|
354
|
+
try:
|
|
355
|
+
logger.debug(f"Rendering template {template_path} to {output_path}")
|
|
356
|
+
env = Environment(loader=FileSystemLoader(os.path.dirname(template_path)))
|
|
357
|
+
template = env.get_template(os.path.basename(template_path))
|
|
358
|
+
output = template.render({**context, 'size': self.size, 'platform_environment': self.platform_environment})
|
|
359
|
+
|
|
360
|
+
with open(output_path, 'w') as f:
|
|
361
|
+
f.write(output)
|
|
362
|
+
logger.debug("Template rendered successfully")
|
|
363
|
+
except TemplateNotFound:
|
|
364
|
+
logger.error(f"Template not found: {template_path}")
|
|
365
|
+
raise FileNotFoundError(f"Template not found: {template_path}")
|
|
366
|
+
except Exception as e:
|
|
367
|
+
logger.error(f"Error rendering template {template_path}: {str(e)}")
|
|
368
|
+
raise
|
|
369
|
+
|
|
370
|
+
def get_secret_from_vault(self, secret_name, secret_path):
|
|
371
|
+
"""Retrieve the secret from the local vault JSON file"""
|
|
372
|
+
try:
|
|
373
|
+
with open(self.secret_file, 'r') as f:
|
|
374
|
+
vault_data = json.load(f)
|
|
375
|
+
|
|
376
|
+
current = vault_data
|
|
377
|
+
for part in secret_path.strip('/').split('/'):
|
|
378
|
+
if part not in current:
|
|
379
|
+
raise KeyError(f"Path {secret_path} not found in vault structure")
|
|
380
|
+
current = current[part]
|
|
381
|
+
|
|
382
|
+
if secret_name not in current:
|
|
383
|
+
raise KeyError(f"Secret {secret_name} not found at path {secret_path}")
|
|
384
|
+
|
|
385
|
+
return current[secret_name]
|
|
386
|
+
except Exception as e:
|
|
387
|
+
logger.error(f"Failed to get secret from local vault: {str(e)}")
|
|
388
|
+
raise
|
|
389
|
+
|
|
390
|
+
def run(self):
|
|
391
|
+
"""Main execution method"""
|
|
392
|
+
logger.info(f"Starting Platform Data Analysis deployment for customer: {self.customer}")
|
|
393
|
+
try:
|
|
394
|
+
# Get secrets from vault
|
|
395
|
+
logger.info("Retrieving secrets from vault")
|
|
396
|
+
|
|
397
|
+
bi_smtp_host = self.get_secret_from_vault(
|
|
398
|
+
secret_name="smtp_host",
|
|
399
|
+
secret_path="/data-analysis/smtp-secrets/",
|
|
400
|
+
)
|
|
401
|
+
bi_smtp_port = self.get_secret_from_vault(
|
|
402
|
+
secret_name="smtp_port",
|
|
403
|
+
secret_path="/data-analysis/smtp-secrets/",
|
|
404
|
+
)
|
|
405
|
+
bi_smtp_user = self.get_secret_from_vault(
|
|
406
|
+
secret_name="smtp_username",
|
|
407
|
+
secret_path="/data-analysis/smtp-secrets/",
|
|
408
|
+
)
|
|
409
|
+
bi_smtp_password = self.get_secret_from_vault(
|
|
410
|
+
secret_name="password",
|
|
411
|
+
secret_path="/data-analysis/smtp-secrets/",
|
|
412
|
+
)
|
|
413
|
+
bi_cache_redis_password = self.get_secret_from_vault(
|
|
414
|
+
secret_name="password",
|
|
415
|
+
secret_path="/data-analysis/redis-secrets/",
|
|
416
|
+
)
|
|
417
|
+
bi_psql_username = self.get_secret_from_vault(
|
|
418
|
+
secret_name="username",
|
|
419
|
+
secret_path="/data-analysis/database-secrets/",
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
bi_psql_password = self.get_secret_from_vault(
|
|
423
|
+
secret_name="password",
|
|
424
|
+
secret_path="/data-analysis/database-secrets/",
|
|
425
|
+
)
|
|
426
|
+
|
|
427
|
+
bi_psql_database = self.get_secret_from_vault(
|
|
428
|
+
secret_name="database",
|
|
429
|
+
secret_path="/data-analysis/database-secrets/",
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
bi_psql_repl_user_name = self.get_secret_from_vault(
|
|
433
|
+
secret_name="replicationUsername",
|
|
434
|
+
secret_path="/data-analysis/database-secrets/",
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
bi_cookie_secret = self.get_secret_from_vault(
|
|
438
|
+
secret_name="COOKIE_SECRET",
|
|
439
|
+
secret_path="/data-analysis/sso-clients-secrets/",
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
oauth_client_id = self.get_secret_from_vault(
|
|
443
|
+
secret_name="CLIENT_ID",
|
|
444
|
+
secret_path="/data-analysis/sso-clients-secrets/",
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
oauth_client_secret = self.get_secret_from_vault(
|
|
448
|
+
secret_name="CLIENT_SECRET",
|
|
449
|
+
secret_path="/data-analysis/sso-clients-secrets/",
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
# Get BI system specific secrets
|
|
453
|
+
if self.bi_system == "superset":
|
|
454
|
+
bi_admin_password = self.get_secret_from_vault(
|
|
455
|
+
secret_name="password",
|
|
456
|
+
secret_path="/data-analysis/superset/root-secrets/",
|
|
457
|
+
)
|
|
458
|
+
jwt_secret = self.get_secret_from_vault(
|
|
459
|
+
secret_name="SUPERSET_SECRET_KEY",
|
|
460
|
+
secret_path="/data-analysis/superset/root-secrets/",
|
|
461
|
+
)
|
|
462
|
+
elif self.bi_system == "metabase":
|
|
463
|
+
jwt_secret = None
|
|
464
|
+
bi_admin_password = self.get_secret_from_vault(
|
|
465
|
+
secret_name="METABASE_PASSWORD",
|
|
466
|
+
secret_path="/data-analysis/metabase/root-secrets/",
|
|
467
|
+
)
|
|
468
|
+
elif self.bi_system == "lightdash":
|
|
469
|
+
jwt_secret = None
|
|
470
|
+
bi_admin_password = self.get_secret_from_vault(
|
|
471
|
+
secret_name="adminPassword",
|
|
472
|
+
secret_path="/data-analysis/lightdash/root-secrets/",
|
|
473
|
+
)
|
|
474
|
+
else:
|
|
475
|
+
raise ValueError(f"Unsupported BI system: {self.bi_system}")
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
bi_psql_host = "fast2dev-global-psql.global-postgresql.svc.cluster.local"
|
|
479
|
+
|
|
480
|
+
bi_psql_port = "5432"
|
|
481
|
+
|
|
482
|
+
oauth_client_secret_token = bi_cookie_secret
|
|
483
|
+
|
|
484
|
+
logger.info("Rendering Data Analysis extra resources (vault bridges)")
|
|
485
|
+
self.render_extra_values_file(bi_psql_host=bi_psql_host, bi_psql_port=bi_psql_port)
|
|
486
|
+
self.deploy_service(
|
|
487
|
+
chart_repo_name=self.data_analysis_chart_repo_name,
|
|
488
|
+
chart_repo=self.data_analysis_chart_repo,
|
|
489
|
+
deployment_name=self.data_analysis_deployment_name,
|
|
490
|
+
chart_name=self.data_analysis_chart_name,
|
|
491
|
+
chart_version=self.data_analysis_chart_version,
|
|
492
|
+
namespace=self.namespace,
|
|
493
|
+
values_path=self.data_analysis_values_path,
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
logger.info(f"Rendering {self.bi_system} values file")
|
|
497
|
+
self.render_data_analysis_values_file(
|
|
498
|
+
data_analysis_values_path=self.values_path,
|
|
499
|
+
data_analysis_render_template_values_path=self.render_template_values_path,
|
|
500
|
+
chart_name=self.chart_name,
|
|
501
|
+
chart_repo=self.chart_repo,
|
|
502
|
+
chart_version=self.chart_version,
|
|
503
|
+
bi_smtp_host=bi_smtp_host,
|
|
504
|
+
bi_smtp_port=bi_smtp_port,
|
|
505
|
+
bi_smtp_user=bi_smtp_user,
|
|
506
|
+
bi_smtp_password=bi_smtp_password,
|
|
507
|
+
bi_cache_redis_password=bi_cache_redis_password,
|
|
508
|
+
bi_psql_username=bi_psql_username,
|
|
509
|
+
bi_psql_database=bi_psql_database,
|
|
510
|
+
bi_psql_repl_user_name=bi_psql_repl_user_name,
|
|
511
|
+
bi_psql_password=bi_psql_password,
|
|
512
|
+
bi_psql_host=bi_psql_host,
|
|
513
|
+
bi_psql_port=bi_psql_port,
|
|
514
|
+
bi_cookie_secret=bi_cookie_secret,
|
|
515
|
+
oauth_client_id=oauth_client_id,
|
|
516
|
+
oauth_client_secret=oauth_client_secret,
|
|
517
|
+
oauth_client_secret_token=oauth_client_secret_token,
|
|
518
|
+
bi_basic_user=self.bi_basic_user,
|
|
519
|
+
bi_basic_user_name=self.bi_basic_user_name,
|
|
520
|
+
bi_basic_user_last_name=self.bi_basic_user_last_name,
|
|
521
|
+
bi_admin_email=self.bi_admin_email,
|
|
522
|
+
bi_admin_password=bi_admin_password,
|
|
523
|
+
jwt_secret=jwt_secret,
|
|
524
|
+
)
|
|
525
|
+
|
|
526
|
+
logger.info(f"Deploying Data Analysis ({self.bi_system})")
|
|
527
|
+
self.deploy_service(
|
|
528
|
+
chart_repo_name=self.chart_repo_name,
|
|
529
|
+
chart_repo=self.chart_repo,
|
|
530
|
+
deployment_name=self.deployment_name,
|
|
531
|
+
chart_name=self.chart_name,
|
|
532
|
+
chart_version=self.chart_version,
|
|
533
|
+
namespace=self.namespace,
|
|
534
|
+
values_path=self.values_path,
|
|
535
|
+
timeout="90m",
|
|
536
|
+
)
|
|
537
|
+
|
|
538
|
+
logger.info("Waiting for Data Analysis to be ready...")
|
|
539
|
+
wait_for_pods_ready(
|
|
540
|
+
label_selector="fast2dev=data-analysis-hub",
|
|
541
|
+
namespace=self.namespace,
|
|
542
|
+
kubeconfig=self.kube_config,
|
|
543
|
+
timeout_seconds=600,
|
|
544
|
+
)
|
|
545
|
+
|
|
546
|
+
app_version = self.get_deployed_app_version(self.deployment_name, self.namespace)
|
|
547
|
+
deployment_record = {
|
|
548
|
+
"customer": self.customer,
|
|
549
|
+
"customer_main_domain": self.customer_root_domain,
|
|
550
|
+
"deployment_environment": self.deployment_environment,
|
|
551
|
+
"deployment_name": self.deployment_name,
|
|
552
|
+
"chart_name": self.chart_name,
|
|
553
|
+
"chart_version": self.chart_version,
|
|
554
|
+
"app_name": self.app_name,
|
|
555
|
+
"app_version": app_version,
|
|
556
|
+
"bi_system": self.bi_system,
|
|
557
|
+
"deploy_date": datetime.now().strftime("%Y-%m-%d"),
|
|
558
|
+
}
|
|
559
|
+
logger.info("Adding deployment record to metadata collector")
|
|
560
|
+
self.metadata_collector.add_deployment_record(deployment_record)
|
|
561
|
+
logger.info("Platform Data Analysis deployment completed successfully")
|
|
562
|
+
return "Platform Data Analysis deployed successfully"
|
|
563
|
+
|
|
564
|
+
except Exception as e:
|
|
565
|
+
logger.error(f"Data Analysis deployment halted: {e}")
|
|
566
|
+
raise
|
|
567
|
+
finally:
|
|
568
|
+
logger.info("Data Analysis run() attempt complete")
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
@classmethod
|
|
572
|
+
def from_cli_args(cls, args):
|
|
573
|
+
"""Create a DataAnalysisDeployer instance from CLI arguments"""
|
|
574
|
+
return cls(
|
|
575
|
+
chart_version=args.chart_version,
|
|
576
|
+
customer=args.customer,
|
|
577
|
+
metadata_collector=args.metadata_collector,
|
|
578
|
+
cloud_provider=args.cloud_provider,
|
|
579
|
+
domain_name=args.domain_name,
|
|
580
|
+
project_id=getattr(args, "project_id", None),
|
|
581
|
+
cluster_name=getattr(args, "cluster_name", None),
|
|
582
|
+
kube_config_path=getattr(args, "kube_config_path", None),
|
|
583
|
+
namespace=getattr(args, "namespace", "data-analysis"),
|
|
584
|
+
app_version=getattr(args, "app_version", None),
|
|
585
|
+
bi_system=getattr(args, "bi_system", "superset"),
|
|
586
|
+
dry_run=getattr(args, "dry_run", False),
|
|
587
|
+
)
|