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,1005 @@
|
|
|
1
|
+
# fast2.dev CLI Prerequisites Installer for Windows
|
|
2
|
+
# This script now redirects to WSL2 installation for better compatibility
|
|
3
|
+
|
|
4
|
+
#Requires -Version 5.1
|
|
5
|
+
#Requires -RunAsAdministrator
|
|
6
|
+
|
|
7
|
+
# Set error action preference
|
|
8
|
+
$ErrorActionPreference = "Stop"
|
|
9
|
+
|
|
10
|
+
# Colors for output
|
|
11
|
+
$Red = "Red"
|
|
12
|
+
$Green = "Green"
|
|
13
|
+
$Yellow = "Yellow"
|
|
14
|
+
$Blue = "Blue"
|
|
15
|
+
$White = "White"
|
|
16
|
+
|
|
17
|
+
# Logging function
|
|
18
|
+
function Write-Log {
|
|
19
|
+
param(
|
|
20
|
+
[string]$Message,
|
|
21
|
+
[string]$Color = $White
|
|
22
|
+
)
|
|
23
|
+
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
|
|
24
|
+
Write-Host "[$timestamp] $Message" -ForegroundColor $Color
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function Write-Error {
|
|
28
|
+
param([string]$Message)
|
|
29
|
+
Write-Log "ERROR: $Message" $Red
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function Write-Warning {
|
|
33
|
+
param([string]$Message)
|
|
34
|
+
Write-Log "WARNING: $Message" $Yellow
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function Write-Success {
|
|
38
|
+
param([string]$Message)
|
|
39
|
+
Write-Log "SUCCESS: $Message" $Green
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
# Function to check if command exists
|
|
43
|
+
function Test-Command {
|
|
44
|
+
param([string]$Command)
|
|
45
|
+
try {
|
|
46
|
+
Get-Command $Command -ErrorAction Stop | Out-Null
|
|
47
|
+
return $true
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
return $false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
# Function to refresh environment variables
|
|
55
|
+
function Refresh-Environment {
|
|
56
|
+
Write-Log "Refreshing environment variables..." $Blue
|
|
57
|
+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
|
58
|
+
|
|
59
|
+
# Also refresh from registry for current session
|
|
60
|
+
try {
|
|
61
|
+
$machinePath = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment").GetValue("Path")
|
|
62
|
+
$userPath = [Microsoft.Win32.Registry]::CurrentUser.OpenSubKey("Environment").GetValue("Path")
|
|
63
|
+
$env:Path = "$machinePath;$userPath"
|
|
64
|
+
} catch {
|
|
65
|
+
Write-Warning "Could not refresh PATH from registry, using environment variables only"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
# Function to disable Microsoft Store Python aliases
|
|
70
|
+
function Disable-PythonAliases {
|
|
71
|
+
Write-Log "Disabling Microsoft Store Python aliases..." $Blue
|
|
72
|
+
|
|
73
|
+
$aliasPaths = @(
|
|
74
|
+
"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\python.exe",
|
|
75
|
+
"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\python3.exe",
|
|
76
|
+
"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\python3.11.exe"
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
foreach ($aliasPath in $aliasPaths) {
|
|
80
|
+
if (Test-Path $aliasPath) {
|
|
81
|
+
try {
|
|
82
|
+
Remove-Item $aliasPath -Force -ErrorAction SilentlyContinue
|
|
83
|
+
Write-Log "Removed Python alias: $aliasPath" $White
|
|
84
|
+
} catch {
|
|
85
|
+
Write-Warning "Could not remove Python alias: $aliasPath"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
# Function to check Windows version
|
|
92
|
+
function Test-WindowsVersion {
|
|
93
|
+
Write-Log "Checking Windows version..." $Blue
|
|
94
|
+
|
|
95
|
+
$os = Get-WmiObject -Class Win32_OperatingSystem
|
|
96
|
+
$version = $os.Version
|
|
97
|
+
$build = $os.BuildNumber
|
|
98
|
+
|
|
99
|
+
Write-Log "Windows version: $version (Build $build)" $White
|
|
100
|
+
|
|
101
|
+
# Check if Windows 10/11 or Server 2016+
|
|
102
|
+
if ($build -lt 14393) {
|
|
103
|
+
Write-Error "Windows 10 (Build 14393) or later is required"
|
|
104
|
+
Write-Error "Current build: $build"
|
|
105
|
+
exit 1
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
Write-Success "Windows version check passed"
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
# Function to check PowerShell version
|
|
112
|
+
function Test-PowerShellVersion {
|
|
113
|
+
Write-Log "Checking PowerShell version..." $Blue
|
|
114
|
+
|
|
115
|
+
$psVersion = $PSVersionTable.PSVersion
|
|
116
|
+
Write-Log "PowerShell version: $psVersion" $White
|
|
117
|
+
|
|
118
|
+
if ($psVersion.Major -lt 5) {
|
|
119
|
+
Write-Error "PowerShell 5.1 or later is required"
|
|
120
|
+
Write-Error "Current version: $psVersion"
|
|
121
|
+
exit 1
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
Write-Success "PowerShell version check passed"
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
# Function to set execution policy
|
|
128
|
+
function Set-ExecutionPolicy {
|
|
129
|
+
Write-Log "Setting PowerShell execution policy..." $Blue
|
|
130
|
+
|
|
131
|
+
$currentPolicy = Get-ExecutionPolicy
|
|
132
|
+
Write-Log "Current execution policy: $currentPolicy" $White
|
|
133
|
+
|
|
134
|
+
if ($currentPolicy -eq "Restricted") {
|
|
135
|
+
Write-Log "Setting execution policy to RemoteSigned..." $Yellow
|
|
136
|
+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
|
|
137
|
+
Write-Success "Execution policy set to RemoteSigned"
|
|
138
|
+
} else {
|
|
139
|
+
Write-Log "Execution policy already allows script execution" $White
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
# Function to enable Windows long path support
|
|
144
|
+
function Enable-LongPathSupport {
|
|
145
|
+
Write-Log "Configuring Windows long path support..." $Blue
|
|
146
|
+
|
|
147
|
+
try {
|
|
148
|
+
# Check current long path setting
|
|
149
|
+
$currentSetting = Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -ErrorAction SilentlyContinue
|
|
150
|
+
|
|
151
|
+
if ($currentSetting -and $currentSetting.LongPathsEnabled -eq 1) {
|
|
152
|
+
Write-Log "Long path support already enabled" $White
|
|
153
|
+
} else {
|
|
154
|
+
Write-Log "Enabling long path support..." $Yellow
|
|
155
|
+
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
|
|
156
|
+
Write-Success "Long path support enabled successfully"
|
|
157
|
+
Write-Warning "A system restart may be required for changes to take effect"
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
# Configure Git to handle long paths
|
|
161
|
+
Write-Log "Configuring Git for long path support..." $Blue
|
|
162
|
+
try {
|
|
163
|
+
& git config --global core.longpaths true 2>$null
|
|
164
|
+
& git config --global core.precomposeUnicode true 2>$null
|
|
165
|
+
& git config --global core.protectNTFS false 2>$null
|
|
166
|
+
Write-Success "Git configured for long path support"
|
|
167
|
+
} catch {
|
|
168
|
+
Write-Warning "Could not configure Git (Git may not be installed yet)"
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
} catch {
|
|
172
|
+
Write-Warning "Could not enable long path support: $($_.Exception.Message)"
|
|
173
|
+
Write-Warning "You may need to enable it manually in Group Policy or Registry"
|
|
174
|
+
Write-Warning "This is required to avoid 'Filename too long' errors with Terraform modules"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
# Function to install Chocolatey
|
|
179
|
+
function Install-Chocolatey {
|
|
180
|
+
Write-Log "Installing Chocolatey..." $Blue
|
|
181
|
+
|
|
182
|
+
if (Test-Command "choco") {
|
|
183
|
+
Write-Log "Chocolatey already installed" $White
|
|
184
|
+
Write-Log "Updating Chocolatey..." $Blue
|
|
185
|
+
try {
|
|
186
|
+
choco upgrade chocolatey -y --no-progress
|
|
187
|
+
Write-Success "Chocolatey updated successfully"
|
|
188
|
+
} catch {
|
|
189
|
+
Write-Warning "Chocolatey update failed, but continuing with installation"
|
|
190
|
+
}
|
|
191
|
+
return
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
# Install Chocolatey
|
|
195
|
+
Write-Log "Downloading and installing Chocolatey..." $Blue
|
|
196
|
+
Set-ExecutionPolicy Bypass -Scope Process -Force
|
|
197
|
+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
|
198
|
+
|
|
199
|
+
try {
|
|
200
|
+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
|
201
|
+
Write-Success "Chocolatey installation completed"
|
|
202
|
+
} catch {
|
|
203
|
+
Write-Error "Chocolatey installation failed: $($_.Exception.Message)"
|
|
204
|
+
exit 1
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
# Refresh environment variables
|
|
208
|
+
Refresh-Environment
|
|
209
|
+
|
|
210
|
+
# Wait a moment for PATH to be updated
|
|
211
|
+
Start-Sleep -Seconds 3
|
|
212
|
+
|
|
213
|
+
# Verify installation
|
|
214
|
+
if (Test-Command "choco") {
|
|
215
|
+
Write-Success "Chocolatey installed and verified successfully"
|
|
216
|
+
} else {
|
|
217
|
+
Write-Error "Chocolatey installation failed - command not found in PATH"
|
|
218
|
+
Write-Error "Please restart PowerShell and try again"
|
|
219
|
+
exit 1
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
# Function to install Python
|
|
224
|
+
function Install-Python {
|
|
225
|
+
Write-Log "Installing Python..." $Blue
|
|
226
|
+
|
|
227
|
+
# First, disable Microsoft Store Python aliases
|
|
228
|
+
Disable-PythonAliases
|
|
229
|
+
|
|
230
|
+
# Check if Python is already installed and working
|
|
231
|
+
try {
|
|
232
|
+
$pythonPath = Get-Command python -ErrorAction Stop | Select-Object -ExpandProperty Source
|
|
233
|
+
if ($pythonPath -and $pythonPath -notlike "*WindowsApps*") {
|
|
234
|
+
$version = & python --version 2>&1
|
|
235
|
+
Write-Log "Python already installed: $version at $pythonPath" $White
|
|
236
|
+
|
|
237
|
+
# Check if version meets requirements
|
|
238
|
+
if ($version -match "Python (\d+)\.(\d+)") {
|
|
239
|
+
$major = [int]$matches[1]
|
|
240
|
+
$minor = [int]$matches[2]
|
|
241
|
+
if ($major -ge 3 -and $minor -ge 10) {
|
|
242
|
+
Write-Log "Python version meets requirements" $White
|
|
243
|
+
return
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
Write-Warning "Python version may not meet requirements (need 3.10+)"
|
|
247
|
+
}
|
|
248
|
+
} catch {
|
|
249
|
+
Write-Log "Python not found or not working properly" $White
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
# Install Python via Chocolatey
|
|
253
|
+
Write-Log "Installing Python 3.11 via Chocolatey..." $Blue
|
|
254
|
+
try {
|
|
255
|
+
choco install python311 -y --no-progress
|
|
256
|
+
Write-Success "Python installation completed"
|
|
257
|
+
} catch {
|
|
258
|
+
Write-Error "Python installation failed: $($_.Exception.Message)"
|
|
259
|
+
exit 1
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
# Refresh environment variables
|
|
263
|
+
Refresh-Environment
|
|
264
|
+
|
|
265
|
+
# Wait for PATH to be updated
|
|
266
|
+
Start-Sleep -Seconds 3
|
|
267
|
+
|
|
268
|
+
# Verify installation
|
|
269
|
+
try {
|
|
270
|
+
$version = & python --version 2>&1
|
|
271
|
+
Write-Success "Python installed successfully: $version"
|
|
272
|
+
} catch {
|
|
273
|
+
Write-Error "Python installation failed - command not working"
|
|
274
|
+
Write-Error "Please restart PowerShell and try again"
|
|
275
|
+
exit 1
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
# Function to install Python packages (requirements)
|
|
280
|
+
function Install-PythonPackages {
|
|
281
|
+
Write-Log "Installing Python packages..." $Blue
|
|
282
|
+
|
|
283
|
+
if (-not (Test-Command "python")) {
|
|
284
|
+
Write-Warning "Python not available; skipping package installation"
|
|
285
|
+
return
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
try {
|
|
289
|
+
Write-Log "Upgrading pip..." $Blue
|
|
290
|
+
& python -m ensurepip --upgrade 2>$null
|
|
291
|
+
& python -m pip install --upgrade pip
|
|
292
|
+
} catch {
|
|
293
|
+
Write-Warning "Failed to upgrade pip: $($_.Exception.Message)"
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
# Determine requirements.txt location
|
|
297
|
+
# Prefer CLI-specific requirements first, fallback to repo root
|
|
298
|
+
$scriptRoot = Split-Path -Parent $PSCommandPath
|
|
299
|
+
$repoRoot = Resolve-Path (Join-Path $scriptRoot "..\..")
|
|
300
|
+
$cliReq = Resolve-Path -ErrorAction SilentlyContinue (Join-Path $scriptRoot "..\requirements.txt")
|
|
301
|
+
$rootReq = Join-Path $repoRoot "requirements.txt"
|
|
302
|
+
|
|
303
|
+
$requirementsPath = $null
|
|
304
|
+
if ($cliReq -and (Test-Path $cliReq)) { $requirementsPath = $cliReq }
|
|
305
|
+
elseif (Test-Path $rootReq) { $requirementsPath = $rootReq }
|
|
306
|
+
|
|
307
|
+
if ($requirementsPath) {
|
|
308
|
+
Write-Log "Installing packages from: $requirementsPath" $Blue
|
|
309
|
+
try {
|
|
310
|
+
& python -m pip install -r "$requirementsPath"
|
|
311
|
+
Write-Success "Python packages installed successfully"
|
|
312
|
+
} catch {
|
|
313
|
+
Write-Warning "Failed to install from requirements.txt: $($_.Exception.Message)"
|
|
314
|
+
}
|
|
315
|
+
} else {
|
|
316
|
+
Write-Warning "No requirements.txt found; skipping package installation"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
# Function to install kubectl
|
|
321
|
+
function Install-Kubectl {
|
|
322
|
+
Write-Log "Installing kubectl..." $Blue
|
|
323
|
+
|
|
324
|
+
if (Test-Command "kubectl") {
|
|
325
|
+
Write-Log "kubectl already installed" $White
|
|
326
|
+
return
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
# Install kubectl via Chocolatey
|
|
330
|
+
Write-Log "Installing kubectl via Chocolatey..." $Blue
|
|
331
|
+
try {
|
|
332
|
+
choco install kubernetes-cli -y --no-progress
|
|
333
|
+
Write-Success "kubectl installation completed"
|
|
334
|
+
} catch {
|
|
335
|
+
Write-Error "kubectl installation failed: $($_.Exception.Message)"
|
|
336
|
+
exit 1
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
# Refresh environment variables
|
|
340
|
+
Refresh-Environment
|
|
341
|
+
|
|
342
|
+
# Verify installation
|
|
343
|
+
if (Test-Command "kubectl") {
|
|
344
|
+
try {
|
|
345
|
+
$version = kubectl version --client 2>$null | Select-Object -First 1
|
|
346
|
+
Write-Success "kubectl installed successfully: $version"
|
|
347
|
+
} catch {
|
|
348
|
+
Write-Success "kubectl installed successfully (version check failed)"
|
|
349
|
+
}
|
|
350
|
+
} else {
|
|
351
|
+
Write-Error "kubectl installation failed"
|
|
352
|
+
exit 1
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
# Function to install gcloud CLI
|
|
357
|
+
function Install-Gcloud {
|
|
358
|
+
Write-Log "Installing Google Cloud CLI..." $Blue
|
|
359
|
+
|
|
360
|
+
if (Test-Command "gcloud") {
|
|
361
|
+
Write-Log "gcloud CLI already installed" $White
|
|
362
|
+
return
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
# Try installing gcloud CLI via Chocolatey first
|
|
366
|
+
Write-Log "Installing gcloud CLI via Chocolatey..." $Blue
|
|
367
|
+
$chocoResult = & choco install gcloudsdk -y --no-progress 2>&1
|
|
368
|
+
if ($LASTEXITCODE -eq 0) {
|
|
369
|
+
Write-Success "gcloud CLI installation completed via Chocolatey"
|
|
370
|
+
} else {
|
|
371
|
+
Write-Warning "Chocolatey installation failed, trying alternative method..."
|
|
372
|
+
|
|
373
|
+
# Alternative: Download and install gcloud CLI directly
|
|
374
|
+
Write-Log "Downloading gcloud CLI directly from Google..." $Blue
|
|
375
|
+
$gcloudInstaller = "$env:TEMP\google-cloud-cli-installer.exe"
|
|
376
|
+
$gcloudUrl = "https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe"
|
|
377
|
+
|
|
378
|
+
try {
|
|
379
|
+
# Download the installer
|
|
380
|
+
Write-Log "Downloading gcloud installer..." $Blue
|
|
381
|
+
Invoke-WebRequest -Uri $gcloudUrl -OutFile $gcloudInstaller -UseBasicParsing
|
|
382
|
+
|
|
383
|
+
# Run the installer silently
|
|
384
|
+
Write-Log "Running gcloud installer..." $Blue
|
|
385
|
+
Start-Process -FilePath $gcloudInstaller -ArgumentList "/S" -Wait
|
|
386
|
+
|
|
387
|
+
# Clean up
|
|
388
|
+
Remove-Item $gcloudInstaller -Force -ErrorAction SilentlyContinue
|
|
389
|
+
|
|
390
|
+
Write-Success "gcloud CLI installation completed via direct installer"
|
|
391
|
+
} catch {
|
|
392
|
+
Write-Error "Both Chocolatey and direct installation methods failed"
|
|
393
|
+
Write-Warning "You can install gcloud CLI manually from: https://cloud.google.com/sdk/docs/install"
|
|
394
|
+
return
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
# Refresh environment variables
|
|
399
|
+
Refresh-Environment
|
|
400
|
+
|
|
401
|
+
# Wait a moment for PATH to be updated
|
|
402
|
+
Start-Sleep -Seconds 3
|
|
403
|
+
|
|
404
|
+
# Verify installation
|
|
405
|
+
if (Test-Command "gcloud") {
|
|
406
|
+
try {
|
|
407
|
+
$version = gcloud --version | Select-Object -First 1
|
|
408
|
+
Write-Success "gcloud CLI installed successfully: $version"
|
|
409
|
+
} catch {
|
|
410
|
+
Write-Success "gcloud CLI installed successfully (version check failed)"
|
|
411
|
+
}
|
|
412
|
+
} else {
|
|
413
|
+
Write-Warning "gcloud CLI installation may have failed - command not found in PATH"
|
|
414
|
+
Write-Warning "Please restart PowerShell and try again, or install manually"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
# Function to install Terraform
|
|
419
|
+
function Install-Terraform {
|
|
420
|
+
Write-Log "Installing Terraform..." $Blue
|
|
421
|
+
|
|
422
|
+
if (Test-Command "terraform") {
|
|
423
|
+
Write-Log "Terraform already installed" $White
|
|
424
|
+
return
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
# Install Terraform via Chocolatey
|
|
428
|
+
Write-Log "Installing Terraform via Chocolatey..." $Blue
|
|
429
|
+
try {
|
|
430
|
+
choco install terraform -y --no-progress
|
|
431
|
+
Write-Success "Terraform installation completed"
|
|
432
|
+
} catch {
|
|
433
|
+
Write-Warning "Terraform installation failed: $($_.Exception.Message)"
|
|
434
|
+
Write-Warning "You can install Terraform manually from: https://www.terraform.io/downloads"
|
|
435
|
+
return
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
# Refresh environment variables
|
|
439
|
+
Refresh-Environment
|
|
440
|
+
|
|
441
|
+
# Verify installation
|
|
442
|
+
if (Test-Command "terraform") {
|
|
443
|
+
$version = terraform --version | Select-Object -First 1
|
|
444
|
+
Write-Success "Terraform installed successfully: $version"
|
|
445
|
+
} else {
|
|
446
|
+
Write-Error "Terraform installation failed"
|
|
447
|
+
exit 1
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
# Function to install Terragrunt
|
|
452
|
+
function Install-Terragrunt {
|
|
453
|
+
Write-Log "Installing Terragrunt..." $Blue
|
|
454
|
+
|
|
455
|
+
if (Test-Command "terragrunt") {
|
|
456
|
+
Write-Log "Terragrunt already installed" $White
|
|
457
|
+
return
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
# Install specific Terragrunt version for consistency
|
|
461
|
+
Write-Log "Installing Terragrunt v0.88.1..." $Blue
|
|
462
|
+
$terragruntVersion = "v0.88.1"
|
|
463
|
+
$terragruntUrl = "https://github.com/gruntwork-io/terragrunt/releases/download/$terragruntVersion/terragrunt_windows_amd64.exe"
|
|
464
|
+
$terragruntPath = "$env:TEMP\terragrunt.exe"
|
|
465
|
+
|
|
466
|
+
try {
|
|
467
|
+
# Download Terragrunt
|
|
468
|
+
Write-Log "Downloading Terragrunt from GitHub..." $Blue
|
|
469
|
+
Invoke-WebRequest -Uri $terragruntUrl -OutFile $terragruntPath -UseBasicParsing
|
|
470
|
+
|
|
471
|
+
# Install to system PATH
|
|
472
|
+
$installPath = "$env:ProgramFiles\Terragrunt"
|
|
473
|
+
if (-not (Test-Path $installPath)) {
|
|
474
|
+
New-Item -ItemType Directory -Path $installPath -Force | Out-Null
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
Copy-Item $terragruntPath "$installPath\terragrunt.exe" -Force
|
|
478
|
+
|
|
479
|
+
# Add to PATH if not already present
|
|
480
|
+
$currentPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")
|
|
481
|
+
if ($currentPath -notlike "*$installPath*") {
|
|
482
|
+
[Environment]::SetEnvironmentVariable("PATH", "$currentPath;$installPath", "Machine")
|
|
483
|
+
Write-Success "Terragrunt added to system PATH: $installPath"
|
|
484
|
+
} else {
|
|
485
|
+
Write-Log "Terragrunt already in system PATH" $White
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
# Also add to current session PATH
|
|
489
|
+
if ($env:PATH -notlike "*$installPath*") {
|
|
490
|
+
$env:PATH += ";$installPath"
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
# Clean up
|
|
494
|
+
Remove-Item $terragruntPath -Force -ErrorAction SilentlyContinue
|
|
495
|
+
|
|
496
|
+
Write-Success "Terragrunt installation completed"
|
|
497
|
+
} catch {
|
|
498
|
+
Write-Warning "Terragrunt installation failed: $($_.Exception.Message)"
|
|
499
|
+
Write-Warning "You can install Terragrunt manually from: https://terragrunt.gruntwork.io/docs/getting-started/install/"
|
|
500
|
+
return
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
# Refresh environment variables
|
|
504
|
+
Refresh-Environment
|
|
505
|
+
|
|
506
|
+
# Verify installation
|
|
507
|
+
if (Test-Command "terragrunt") {
|
|
508
|
+
$version = terragrunt --version | Select-Object -First 1
|
|
509
|
+
Write-Success "Terragrunt installed successfully: $version"
|
|
510
|
+
} else {
|
|
511
|
+
Write-Error "Terragrunt installation failed"
|
|
512
|
+
exit 1
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
# Function to install Helm
|
|
517
|
+
function Install-Helm {
|
|
518
|
+
Write-Log "Installing Helm..." $Blue
|
|
519
|
+
|
|
520
|
+
if (Test-Command "helm") {
|
|
521
|
+
Write-Log "Helm already installed" $White
|
|
522
|
+
return
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
# Install Helm via Chocolatey
|
|
526
|
+
Write-Log "Installing Helm via Chocolatey..." $Blue
|
|
527
|
+
try {
|
|
528
|
+
choco install kubernetes-helm -y --no-progress
|
|
529
|
+
Write-Success "Helm installation completed"
|
|
530
|
+
} catch {
|
|
531
|
+
Write-Warning "Helm installation failed: $($_.Exception.Message)"
|
|
532
|
+
Write-Warning "You can install Helm manually from: https://helm.sh/docs/intro/install/"
|
|
533
|
+
return
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
# Refresh environment variables
|
|
537
|
+
Refresh-Environment
|
|
538
|
+
|
|
539
|
+
# Verify installation
|
|
540
|
+
if (Test-Command "helm") {
|
|
541
|
+
try {
|
|
542
|
+
$version = helm version 2>$null | Select-Object -First 1
|
|
543
|
+
Write-Success "Helm installed successfully: $version"
|
|
544
|
+
} catch {
|
|
545
|
+
Write-Success "Helm installed successfully (version check failed)"
|
|
546
|
+
}
|
|
547
|
+
} else {
|
|
548
|
+
Write-Error "Helm installation failed"
|
|
549
|
+
exit 1
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
# Function to install additional tools
|
|
554
|
+
function Install-AdditionalTools {
|
|
555
|
+
Write-Log "Installing additional tools..." $Blue
|
|
556
|
+
|
|
557
|
+
# Install Git
|
|
558
|
+
if (-not (Test-Command "git")) {
|
|
559
|
+
Write-Log "Installing Git..." $Blue
|
|
560
|
+
try {
|
|
561
|
+
choco install git -y --no-progress
|
|
562
|
+
Write-Success "Git installed successfully"
|
|
563
|
+
} catch {
|
|
564
|
+
Write-Warning "Git installation failed: $($_.Exception.Message)"
|
|
565
|
+
}
|
|
566
|
+
} else {
|
|
567
|
+
Write-Log "Git already installed" $White
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
# Install jq
|
|
571
|
+
if (-not (Test-Command "jq")) {
|
|
572
|
+
Write-Log "Installing jq..." $Blue
|
|
573
|
+
try {
|
|
574
|
+
choco install jq -y --no-progress
|
|
575
|
+
Write-Success "jq installed successfully"
|
|
576
|
+
} catch {
|
|
577
|
+
Write-Warning "jq installation failed: $($_.Exception.Message)"
|
|
578
|
+
}
|
|
579
|
+
} else {
|
|
580
|
+
Write-Log "jq already installed" $White
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
# Install Docker Desktop (optional but recommended)
|
|
584
|
+
if (-not (Test-Command "docker")) {
|
|
585
|
+
Write-Log "Installing Docker Desktop..." $Blue
|
|
586
|
+
try {
|
|
587
|
+
choco install docker-desktop -y --no-progress
|
|
588
|
+
Write-Success "Docker Desktop installed successfully"
|
|
589
|
+
Write-Warning "Docker Desktop requires manual setup and login"
|
|
590
|
+
} catch {
|
|
591
|
+
Write-Warning "Docker Desktop installation failed: $($_.Exception.Message)"
|
|
592
|
+
Write-Warning "You can install Docker Desktop manually later"
|
|
593
|
+
}
|
|
594
|
+
} else {
|
|
595
|
+
Write-Log "Docker already installed" $White
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
# Install curl if not present
|
|
599
|
+
if (-not (Test-Command "curl")) {
|
|
600
|
+
Write-Log "Installing curl..." $Blue
|
|
601
|
+
try {
|
|
602
|
+
choco install curl -y --no-progress
|
|
603
|
+
Write-Success "curl installed successfully"
|
|
604
|
+
} catch {
|
|
605
|
+
Write-Warning "curl installation failed: $($_.Exception.Message)"
|
|
606
|
+
}
|
|
607
|
+
} else {
|
|
608
|
+
Write-Log "curl already installed" $White
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
# Refresh environment variables
|
|
612
|
+
Refresh-Environment
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
# Function to configure environment variables
|
|
616
|
+
function Set-EnvironmentVariables {
|
|
617
|
+
Write-Log "Configuring environment variables..." $Blue
|
|
618
|
+
|
|
619
|
+
# Configure Terraform to use shorter paths to avoid Windows path length issues
|
|
620
|
+
Write-Log "Configuring Terraform environment variables..." $Blue
|
|
621
|
+
try {
|
|
622
|
+
[Environment]::SetEnvironmentVariable("TF_DATA_DIR", "C:\tf", "User")
|
|
623
|
+
$env:TF_DATA_DIR = "C:\tf"
|
|
624
|
+
Write-Success "Terraform data directory set to C:\tf"
|
|
625
|
+
} catch {
|
|
626
|
+
Write-Warning "Could not set TF_DATA_DIR environment variable"
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
# Configure Terragrunt to use shorter cache paths to avoid Windows path length issues
|
|
630
|
+
Write-Log "Configuring Terragrunt cache location..." $Blue
|
|
631
|
+
try {
|
|
632
|
+
$terragruntCachePath = "C:\temp\terragrunt-cache"
|
|
633
|
+
[Environment]::SetEnvironmentVariable("TG_DOWNLOAD_DIR", $terragruntCachePath, "User")
|
|
634
|
+
$env:TG_DOWNLOAD_DIR = $terragruntCachePath
|
|
635
|
+
|
|
636
|
+
# Create the cache directory if it doesn't exist
|
|
637
|
+
if (-not (Test-Path $terragruntCachePath)) {
|
|
638
|
+
New-Item -ItemType Directory -Path $terragruntCachePath -Force | Out-Null
|
|
639
|
+
Write-Log "Created Terragrunt cache directory: $terragruntCachePath" $White
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
Write-Success "Terragrunt cache directory set to $terragruntCachePath"
|
|
643
|
+
Write-Log "This prevents 'Filename too long' errors with Terraform modules" $White
|
|
644
|
+
} catch {
|
|
645
|
+
Write-Warning "Could not set TG_DOWNLOAD_DIR environment variable"
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
# Add Python Scripts to PATH if not already there
|
|
649
|
+
$pythonScriptsPath = "$env:LOCALAPPDATA\Programs\Python\Python311\Scripts"
|
|
650
|
+
if ($env:Path -notlike "*$pythonScriptsPath*") {
|
|
651
|
+
Write-Log "Adding Python Scripts to PATH..." $Blue
|
|
652
|
+
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$pythonScriptsPath", "User")
|
|
653
|
+
$env:Path += ";$pythonScriptsPath"
|
|
654
|
+
Write-Success "Python Scripts added to PATH"
|
|
655
|
+
} else {
|
|
656
|
+
Write-Log "Python Scripts already in PATH" $White
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
# Add gcloud CLI to PATH if not already there
|
|
660
|
+
$gcloudPaths = @(
|
|
661
|
+
"$env:ProgramData\chocolatey\lib\gcloudsdk\tools\google-cloud-sdk\bin",
|
|
662
|
+
"$env:ProgramFiles\Google\Cloud SDK\google-cloud-sdk\bin",
|
|
663
|
+
"${env:ProgramFiles(x86)}\Google\Cloud SDK\google-cloud-sdk\bin",
|
|
664
|
+
"$env:LOCALAPPDATA\Google\Cloud SDK\google-cloud-sdk\bin"
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
$gcloudAdded = $false
|
|
668
|
+
foreach ($gcloudPath in $gcloudPaths) {
|
|
669
|
+
if (Test-Path $gcloudPath) {
|
|
670
|
+
# Check system PATH first
|
|
671
|
+
$currentSystemPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")
|
|
672
|
+
if ($currentSystemPath -notlike "*$gcloudPath*") {
|
|
673
|
+
Write-Log "Adding gcloud CLI to system PATH: $gcloudPath" $Blue
|
|
674
|
+
[Environment]::SetEnvironmentVariable("PATH", "$currentSystemPath;$gcloudPath", "Machine")
|
|
675
|
+
Write-Success "gcloud CLI added to system PATH"
|
|
676
|
+
$gcloudAdded = $true
|
|
677
|
+
} else {
|
|
678
|
+
Write-Log "gcloud CLI already in system PATH" $White
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
# Also add to current session PATH
|
|
682
|
+
if ($env:Path -notlike "*$gcloudPath*") {
|
|
683
|
+
$env:Path += ";$gcloudPath"
|
|
684
|
+
}
|
|
685
|
+
break
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
if (-not $gcloudAdded) {
|
|
690
|
+
Write-Warning "gcloud CLI path not found in standard locations"
|
|
691
|
+
Write-Warning "You may need to add gcloud to PATH manually"
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
# Function to ensure critical tools are in system PATH
|
|
696
|
+
function Ensure-SystemPath {
|
|
697
|
+
Write-Log "Ensuring critical tools are in system PATH..." $Blue
|
|
698
|
+
|
|
699
|
+
# Ensure Terragrunt is in system PATH
|
|
700
|
+
$terragruntPath = "$env:ProgramFiles\Terragrunt"
|
|
701
|
+
if (Test-Path $terragruntPath) {
|
|
702
|
+
$currentSystemPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")
|
|
703
|
+
if ($currentSystemPath -notlike "*$terragruntPath*") {
|
|
704
|
+
Write-Log "Adding Terragrunt to system PATH: $terragruntPath" $Blue
|
|
705
|
+
[Environment]::SetEnvironmentVariable("PATH", "$currentSystemPath;$terragruntPath", "Machine")
|
|
706
|
+
Write-Success "Terragrunt added to system PATH"
|
|
707
|
+
} else {
|
|
708
|
+
Write-Log "Terragrunt already in system PATH" $White
|
|
709
|
+
}
|
|
710
|
+
} else {
|
|
711
|
+
Write-Warning "Terragrunt installation path not found: $terragruntPath"
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
# Ensure gcloud is in system PATH
|
|
715
|
+
$gcloudPaths = @(
|
|
716
|
+
"$env:ProgramData\chocolatey\lib\gcloudsdk\tools\google-cloud-sdk\bin",
|
|
717
|
+
"$env:ProgramFiles\Google\Cloud SDK\google-cloud-sdk\bin",
|
|
718
|
+
"${env:ProgramFiles(x86)}\Google\Cloud SDK\google-cloud-sdk\bin",
|
|
719
|
+
"$env:LOCALAPPDATA\Google\Cloud SDK\google-cloud-sdk\bin"
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
$gcloudFound = $false
|
|
723
|
+
foreach ($gcloudPath in $gcloudPaths) {
|
|
724
|
+
if (Test-Path $gcloudPath) {
|
|
725
|
+
$currentSystemPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")
|
|
726
|
+
if ($currentSystemPath -notlike "*$gcloudPath*") {
|
|
727
|
+
Write-Log "Adding gcloud CLI to system PATH: $gcloudPath" $Blue
|
|
728
|
+
[Environment]::SetEnvironmentVariable("PATH", "$currentSystemPath;$gcloudPath", "Machine")
|
|
729
|
+
Write-Success "gcloud CLI added to system PATH"
|
|
730
|
+
} else {
|
|
731
|
+
Write-Log "gcloud CLI already in system PATH" $White
|
|
732
|
+
}
|
|
733
|
+
$gcloudFound = $true
|
|
734
|
+
break
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (-not $gcloudFound) {
|
|
739
|
+
Write-Warning "gcloud CLI installation path not found in standard locations"
|
|
740
|
+
Write-Warning "This may cause issues with Python subprocess calls"
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
Write-Success "System PATH configuration completed"
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
# Function to verify all installations
|
|
747
|
+
function Test-Installations {
|
|
748
|
+
Write-Log "Verifying all installations..." $Blue
|
|
749
|
+
|
|
750
|
+
$tools = @("python", "kubectl", "gcloud", "terraform", "terragrunt", "helm", "git", "jq", "curl")
|
|
751
|
+
$allInstalled = $true
|
|
752
|
+
|
|
753
|
+
foreach ($tool in $tools) {
|
|
754
|
+
if (Test-Command $tool) {
|
|
755
|
+
Write-Success "✅ $tool`: installed"
|
|
756
|
+
} else {
|
|
757
|
+
Write-Error "❌ $tool`: not found"
|
|
758
|
+
$allInstalled = $false
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if ($allInstalled) {
|
|
763
|
+
Write-Success "All tools verified successfully!"
|
|
764
|
+
} else {
|
|
765
|
+
Write-Warning "Some tools may not be properly installed"
|
|
766
|
+
Write-Warning "You can install missing tools manually or run the script again"
|
|
767
|
+
# Don't return false - allow installation to complete
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
return $true
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
# Function to show next steps
|
|
774
|
+
function Show-NextSteps {
|
|
775
|
+
Write-Host ""
|
|
776
|
+
Write-Host "Configure your tools:" $White
|
|
777
|
+
Write-Host " 1. gcloud auth login" $White
|
|
778
|
+
Write-Host " 2. gcloud config set project YOUR_PROJECT_ID" $White
|
|
779
|
+
Write-Host " 3. kubectl config set-cluster my-cluster --server=https://your-cluster-endpoint" $White
|
|
780
|
+
Write-Host ""
|
|
781
|
+
Write-Host "Start using fast2.dev CLI:" $White
|
|
782
|
+
Write-Host " 1. cd .." $White
|
|
783
|
+
Write-Host " 2. python cli.py" $White
|
|
784
|
+
Write-Host ""
|
|
785
|
+
Write-Host "Documentation:" $White
|
|
786
|
+
Write-Host " - CLI help: python cli.py --help" $White
|
|
787
|
+
Write-Host " - Deployment guide: docs/" $White
|
|
788
|
+
Write-Host ""
|
|
789
|
+
Write-Host "Note: You may need to restart your terminal or PowerShell session" $Yellow
|
|
790
|
+
Write-Host " to ensure all tools are in your PATH" $Yellow
|
|
791
|
+
Write-Host ""
|
|
792
|
+
Write-Host "Important: Both terragrunt and gcloud have been added to system PATH" $Green
|
|
793
|
+
Write-Host " This fixes the Python subprocess issue on Windows" $Green
|
|
794
|
+
Write-Host ""
|
|
795
|
+
Write-Host "Important: If long path support was enabled, you may need to restart" $Yellow
|
|
796
|
+
Write-Host " your computer for the changes to take full effect" $Yellow
|
|
797
|
+
Write-Host ""
|
|
798
|
+
Write-Host "Docker users: Docker Desktop may need to be started manually" $Yellow
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
# Main installation function
|
|
802
|
+
function Main {
|
|
803
|
+
Write-Host "fast2.dev CLI Prerequisites Installer for Windows" $Blue
|
|
804
|
+
Write-Host "==================================================" $Blue
|
|
805
|
+
Write-Host ""
|
|
806
|
+
|
|
807
|
+
# Check Windows version
|
|
808
|
+
Test-WindowsVersion
|
|
809
|
+
|
|
810
|
+
# Check PowerShell version
|
|
811
|
+
Test-PowerShellVersion
|
|
812
|
+
|
|
813
|
+
# Set execution policy
|
|
814
|
+
Set-ExecutionPolicy
|
|
815
|
+
|
|
816
|
+
# Enable long path support
|
|
817
|
+
Enable-LongPathSupport
|
|
818
|
+
|
|
819
|
+
# Install Chocolatey
|
|
820
|
+
Install-Chocolatey
|
|
821
|
+
|
|
822
|
+
# Install Python
|
|
823
|
+
Install-Python
|
|
824
|
+
=======
|
|
825
|
+
Write-Host "📋 Summary:" $Blue
|
|
826
|
+
Write-Host "===========" $Blue
|
|
827
|
+
Write-Host "✅ WSL2 and Ubuntu are ready for fast2.dev CLI" $Green
|
|
828
|
+
Write-Host "📁 Follow the instructions above to complete setup in WSL2" $White
|
|
829
|
+
Write-Host "🔧 All prerequisites will be installed in the Linux environment" $White
|
|
830
|
+
Write-Host ""
|
|
831
|
+
Write-Host "💡 Benefits of this approach:" $Blue
|
|
832
|
+
Write-Host " • Consistent behavior across Windows, Linux, and macOS" $White
|
|
833
|
+
Write-Host " • No Windows-specific compatibility issues" $White
|
|
834
|
+
Write-Host " • Full Linux toolchain support" $White
|
|
835
|
+
Write-Host " • Better performance for development tools" $White
|
|
836
|
+
Write-Host ""
|
|
837
|
+
Write-Host "📚 Documentation:" $White
|
|
838
|
+
Write-Host " - CLI help: python cli.py --help" $White
|
|
839
|
+
Write-Host " - Deployment guide: docs/" $White
|
|
840
|
+
Write-Host ""
|
|
841
|
+
Write-Host "🐧 WSL2 provides native Linux compatibility for all tools" $Green
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
# Function to check if WSL2 is installed and available
|
|
845
|
+
function Test-WSL2 {
|
|
846
|
+
Write-Log "Checking WSL2 installation..." $Blue
|
|
847
|
+
|
|
848
|
+
# Check if WSL is available
|
|
849
|
+
if (-not (Get-Command "wsl" -ErrorAction SilentlyContinue)) {
|
|
850
|
+
Write-Log "WSL not found" $Yellow
|
|
851
|
+
return $false
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
# Check WSL version
|
|
855
|
+
try {
|
|
856
|
+
$wslVersion = wsl --version 2>$null
|
|
857
|
+
if ($LASTEXITCODE -eq 0) {
|
|
858
|
+
Write-Log "WSL2 is available" $Green
|
|
859
|
+
return $true
|
|
860
|
+
}
|
|
861
|
+
} catch {
|
|
862
|
+
Write-Log "WSL version check failed" $Yellow
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
# Check if WSL is installed but might be WSL1
|
|
866
|
+
try {
|
|
867
|
+
$wslList = wsl --list --verbose 2>$null
|
|
868
|
+
if ($LASTEXITCODE -eq 0) {
|
|
869
|
+
if ($wslList -match "2") {
|
|
870
|
+
Write-Log "WSL2 is installed" $Green
|
|
871
|
+
return $true
|
|
872
|
+
} else {
|
|
873
|
+
Write-Log "WSL1 detected, WSL2 required" $Yellow
|
|
874
|
+
return $false
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
} catch {
|
|
878
|
+
Write-Log "WSL list check failed" $Yellow
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
return $false
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
# Function to install WSL2 and Ubuntu
|
|
885
|
+
function Install-WSL2 {
|
|
886
|
+
Write-Log "Installing WSL2 and Ubuntu..." $Blue
|
|
887
|
+
|
|
888
|
+
Write-Warning "WSL2 is required to run fast2.dev CLI on Windows"
|
|
889
|
+
Write-Warning "This will install WSL2 and Ubuntu Linux distribution"
|
|
890
|
+
Write-Warning "The installation may take several minutes and require a restart"
|
|
891
|
+
|
|
892
|
+
$confirm = Read-Host "Do you want to continue with WSL2 installation? (y/N)"
|
|
893
|
+
if ($confirm -ne "y" -and $confirm -ne "Y") {
|
|
894
|
+
Write-Error "WSL2 installation cancelled. fast2.dev CLI cannot run without WSL2 on Windows."
|
|
895
|
+
exit 1
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
try {
|
|
899
|
+
# Enable WSL feature
|
|
900
|
+
Write-Log "Enabling WSL feature..." $Blue
|
|
901
|
+
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
|
|
902
|
+
|
|
903
|
+
# Enable Virtual Machine Platform
|
|
904
|
+
Write-Log "Enabling Virtual Machine Platform..." $Blue
|
|
905
|
+
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
|
|
906
|
+
|
|
907
|
+
# Set WSL2 as default
|
|
908
|
+
Write-Log "Setting WSL2 as default..." $Blue
|
|
909
|
+
wsl --set-default-version 2
|
|
910
|
+
|
|
911
|
+
# Install Ubuntu
|
|
912
|
+
Write-Log "Installing Ubuntu..." $Blue
|
|
913
|
+
wsl --install -d Ubuntu
|
|
914
|
+
|
|
915
|
+
Write-Success "WSL2 and Ubuntu installation initiated"
|
|
916
|
+
Write-Warning "Please restart your computer and run this script again"
|
|
917
|
+
Write-Warning "After restart, Ubuntu will complete its setup automatically"
|
|
918
|
+
|
|
919
|
+
$restart = Read-Host "Do you want to restart now? (y/N)"
|
|
920
|
+
if ($restart -eq "y" -or $restart -eq "Y") {
|
|
921
|
+
Write-Log "Restarting computer..." $Blue
|
|
922
|
+
Restart-Computer -Force
|
|
923
|
+
} else {
|
|
924
|
+
Write-Warning "Please restart manually and run this script again"
|
|
925
|
+
exit 0
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
} catch {
|
|
929
|
+
Write-Error "WSL2 installation failed: $($_.Exception.Message)"
|
|
930
|
+
exit 1
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
# Function to show WSL2 setup instructions
|
|
935
|
+
function Show-WSL2Instructions {
|
|
936
|
+
Write-Log "WSL2 and Ubuntu are ready!" $Green
|
|
937
|
+
Write-Host ""
|
|
938
|
+
Write-Host "🚀 Next Steps:" $Blue
|
|
939
|
+
Write-Host "=============" $Blue
|
|
940
|
+
Write-Host ""
|
|
941
|
+
Write-Host "1. Open WSL2 Ubuntu:" $White
|
|
942
|
+
Write-Host " wsl -d Ubuntu" $Yellow
|
|
943
|
+
Write-Host ""
|
|
944
|
+
Write-Host "2. Clone the repository in WSL2:" $White
|
|
945
|
+
Write-Host " git clone https://github.com/your-org/fast2dev.git" $Yellow
|
|
946
|
+
Write-Host " cd m7xlab/fast2dev" $Yellow
|
|
947
|
+
Write-Host ""
|
|
948
|
+
Write-Host "3. Run the Linux prerequisites installer:" $White
|
|
949
|
+
Write-Host " chmod +x cli/prerequisites/install-prerequisites.sh" $Yellow
|
|
950
|
+
Write-Host " ./cli/prerequisites/install-prerequisites.sh" $Yellow
|
|
951
|
+
Write-Host ""
|
|
952
|
+
Write-Host "4. After installation, run the CLI from WSL2:" $White
|
|
953
|
+
Write-Host " python cli.py" $Yellow
|
|
954
|
+
Write-Host ""
|
|
955
|
+
Write-Host "💡 Tip: You can access your Windows files from WSL2 at /mnt/c/" $Blue
|
|
956
|
+
Write-Host "💡 Tip: Use 'code .' in WSL2 to open VS Code with WSL2 integration" $Blue
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
# Main installation function
|
|
960
|
+
function Main {
|
|
961
|
+
Write-Host "🪟 fast2.dev CLI Prerequisites Installer for Windows (WSL2)" $Blue
|
|
962
|
+
Write-Host "========================================================" $Blue
|
|
963
|
+
Write-Host ""
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
# Install Python packages
|
|
967
|
+
Install-PythonPackages
|
|
968
|
+
|
|
969
|
+
# Configure environment variables
|
|
970
|
+
Set-EnvironmentVariables
|
|
971
|
+
|
|
972
|
+
# Ensure critical tools are in system PATH
|
|
973
|
+
Ensure-SystemPath
|
|
974
|
+
|
|
975
|
+
# Verify installations
|
|
976
|
+
if (Test-Installations) {
|
|
977
|
+
# Show next steps
|
|
978
|
+
Show-NextSteps
|
|
979
|
+
|
|
980
|
+
Write-Log "fast2.dev CLI now requires WSL2 for Windows compatibility" $Blue
|
|
981
|
+
Write-Log "This ensures consistent behavior across all platforms" $Blue
|
|
982
|
+
Write-Host ""
|
|
983
|
+
|
|
984
|
+
# Check if WSL2 is available
|
|
985
|
+
if (Test-WSL2) {
|
|
986
|
+
Write-Log "WSL2 detected, showing setup instructions..." $Blue
|
|
987
|
+
Show-WSL2Instructions
|
|
988
|
+
} else {
|
|
989
|
+
Write-Log "WSL2 not found, installing WSL2 and Ubuntu..." $Blue
|
|
990
|
+
Install-WSL2
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
# Show next steps
|
|
994
|
+
Show-NextSteps
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
# Handle script interruption
|
|
998
|
+
try {
|
|
999
|
+
# Run main function
|
|
1000
|
+
Main
|
|
1001
|
+
}
|
|
1002
|
+
catch {
|
|
1003
|
+
Write-Error "Installation interrupted: $($_.Exception.Message)"
|
|
1004
|
+
exit 1
|
|
1005
|
+
}
|