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,775 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Fast2.Dev CLI Prerequisites Installer for Linux
|
|
4
|
+
# Installs all required tools based on detected distribution
|
|
5
|
+
|
|
6
|
+
set -e
|
|
7
|
+
|
|
8
|
+
# Colors for output
|
|
9
|
+
RED='\033[0;31m'
|
|
10
|
+
GREEN='\033[0;32m'
|
|
11
|
+
YELLOW='\033[1;33m'
|
|
12
|
+
BLUE='\033[0;34m'
|
|
13
|
+
NC='\033[0m' # No Color
|
|
14
|
+
|
|
15
|
+
# Logging function
|
|
16
|
+
log() {
|
|
17
|
+
echo -e "${BLUE}[$(date +'%Y-%m-%d %H:%M:%S')]${NC} $1"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
error() {
|
|
21
|
+
echo -e "${RED}[ERROR]${NC} $1" >&2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
warn() {
|
|
25
|
+
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
success() {
|
|
29
|
+
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
# Function to check if command exists
|
|
33
|
+
command_exists() {
|
|
34
|
+
command -v "$1" >/dev/null 2>&1
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
# Function to detect Linux distribution
|
|
38
|
+
detect_distribution() {
|
|
39
|
+
if [[ -f /etc/os-release ]]; then
|
|
40
|
+
. /etc/os-release
|
|
41
|
+
local distro="$ID"
|
|
42
|
+
local version="$VERSION_ID"
|
|
43
|
+
echo "$distro"
|
|
44
|
+
elif command_exists lsb_release; then
|
|
45
|
+
local distro=$(lsb_release -si | tr '[:upper:]' '[:lower:]')
|
|
46
|
+
local version=$(lsb_release -sr)
|
|
47
|
+
echo "$distro"
|
|
48
|
+
else
|
|
49
|
+
echo "linux"
|
|
50
|
+
fi
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# Function to check if running as root
|
|
54
|
+
check_privileges() {
|
|
55
|
+
if [[ $EUID -eq 0 ]]; then
|
|
56
|
+
log "Running as root"
|
|
57
|
+
return 0
|
|
58
|
+
else
|
|
59
|
+
warn "Some installations may require sudo privileges"
|
|
60
|
+
warn "If you encounter permission errors, run with: sudo $0"
|
|
61
|
+
return 1
|
|
62
|
+
fi
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
# Function to update package manager
|
|
66
|
+
update_package_manager() {
|
|
67
|
+
local distro=$1
|
|
68
|
+
|
|
69
|
+
log "Updating package manager..."
|
|
70
|
+
|
|
71
|
+
case $distro in
|
|
72
|
+
"ubuntu"|"debian")
|
|
73
|
+
sudo apt-get update
|
|
74
|
+
;;
|
|
75
|
+
"centos"|"rhel"|"rocky"|"almalinux")
|
|
76
|
+
if command_exists dnf; then
|
|
77
|
+
sudo dnf update -y
|
|
78
|
+
else
|
|
79
|
+
sudo yum update -y
|
|
80
|
+
fi
|
|
81
|
+
;;
|
|
82
|
+
"fedora")
|
|
83
|
+
sudo dnf update -y
|
|
84
|
+
;;
|
|
85
|
+
"amzn")
|
|
86
|
+
sudo yum update -y
|
|
87
|
+
;;
|
|
88
|
+
*)
|
|
89
|
+
warn "Unknown distribution, skipping package manager update"
|
|
90
|
+
;;
|
|
91
|
+
esac
|
|
92
|
+
|
|
93
|
+
success "Package manager updated"
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
# Function to install Python
|
|
97
|
+
install_python() {
|
|
98
|
+
log "Installing Python..."
|
|
99
|
+
|
|
100
|
+
if command_exists python3; then
|
|
101
|
+
local python_version=$(python3 --version 2>&1 | cut -d' ' -f2)
|
|
102
|
+
local major_version=$(echo "$python_version" | cut -d. -f1)
|
|
103
|
+
local minor_version=$(echo "$python_version" | cut -d. -f2)
|
|
104
|
+
|
|
105
|
+
if [[ $major_version -ge 3 ]] && [[ $minor_version -ge 10 ]]; then
|
|
106
|
+
log "Python $python_version already installed (meets requirements)"
|
|
107
|
+
return 0
|
|
108
|
+
else
|
|
109
|
+
warn "Python $python_version installed but doesn't meet requirements (need 3.10+)"
|
|
110
|
+
fi
|
|
111
|
+
fi
|
|
112
|
+
|
|
113
|
+
local distro=$1
|
|
114
|
+
|
|
115
|
+
case $distro in
|
|
116
|
+
"ubuntu"|"debian")
|
|
117
|
+
log "Installing Python 3.10+ via apt..."
|
|
118
|
+
sudo apt-get install -y python3 python3-pip python3-venv
|
|
119
|
+
;;
|
|
120
|
+
"centos"|"rhel"|"rocky"|"almalinux")
|
|
121
|
+
if command_exists dnf; then
|
|
122
|
+
sudo dnf install -y python3 python3-pip python3-devel
|
|
123
|
+
else
|
|
124
|
+
sudo yum install -y python3 python3-pip python3-devel
|
|
125
|
+
fi
|
|
126
|
+
;;
|
|
127
|
+
"fedora")
|
|
128
|
+
sudo dnf install -y python3 python3-pip python3-devel
|
|
129
|
+
;;
|
|
130
|
+
"amzn")
|
|
131
|
+
sudo yum install -y python3 python3-pip python3-devel
|
|
132
|
+
;;
|
|
133
|
+
*)
|
|
134
|
+
error "Unsupported distribution for Python installation: $distro"
|
|
135
|
+
exit 1
|
|
136
|
+
;;
|
|
137
|
+
esac
|
|
138
|
+
|
|
139
|
+
# Verify installation
|
|
140
|
+
if command_exists python3; then
|
|
141
|
+
local new_version=$(python3 --version 2>&1 | cut -d' ' -f2)
|
|
142
|
+
success "Python $new_version installed successfully"
|
|
143
|
+
else
|
|
144
|
+
error "Python installation failed"
|
|
145
|
+
exit 1
|
|
146
|
+
fi
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
# Ensure 'python' and 'pip' commands are available (alias to Python 3)
|
|
150
|
+
ensure_python_shims() {
|
|
151
|
+
log "Ensuring 'python' and 'pip' commands resolve to Python 3..."
|
|
152
|
+
local distro=$1
|
|
153
|
+
case $distro in
|
|
154
|
+
"ubuntu"|"debian")
|
|
155
|
+
# Prefer distro-provided shim if available
|
|
156
|
+
if command_exists apt-get; then
|
|
157
|
+
sudo apt-get install -y python-is-python3 || true
|
|
158
|
+
fi
|
|
159
|
+
;;
|
|
160
|
+
esac
|
|
161
|
+
# Fallback symlinks if still missing
|
|
162
|
+
if ! command_exists python && command_exists python3; then
|
|
163
|
+
if [[ -w /usr/bin ]]; then
|
|
164
|
+
sudo ln -sf "$(command -v python3)" /usr/bin/python
|
|
165
|
+
else
|
|
166
|
+
warn "/usr/bin not writable; skipping python shim"
|
|
167
|
+
fi
|
|
168
|
+
fi
|
|
169
|
+
if ! command_exists pip && command_exists pip3; then
|
|
170
|
+
if [[ -w /usr/bin ]]; then
|
|
171
|
+
sudo ln -sf "$(command -v pip3)" /usr/bin/pip
|
|
172
|
+
else
|
|
173
|
+
warn "/usr/bin not writable; skipping pip shim"
|
|
174
|
+
fi
|
|
175
|
+
fi
|
|
176
|
+
# Verify
|
|
177
|
+
if command_exists python; then
|
|
178
|
+
success "python -> $(python -V 2>&1)"
|
|
179
|
+
else
|
|
180
|
+
warn "'python' command still not available"
|
|
181
|
+
fi
|
|
182
|
+
if command_exists pip; then
|
|
183
|
+
success "pip -> $(pip --version 2>&1)"
|
|
184
|
+
else
|
|
185
|
+
warn "'pip' command still not available"
|
|
186
|
+
fi
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
# Function to install Python requirements
|
|
190
|
+
install_python_requirements() {
|
|
191
|
+
log "Installing Python dependencies..."
|
|
192
|
+
|
|
193
|
+
# Resolve repo root and requirements path
|
|
194
|
+
local script_dir
|
|
195
|
+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
196
|
+
local repo_root
|
|
197
|
+
repo_root="$(cd "$script_dir/../../.." && pwd)"
|
|
198
|
+
local requirements_file="$repo_root/cli/prerequisites/requirements.txt"
|
|
199
|
+
|
|
200
|
+
if [[ ! -f "$requirements_file" ]]; then
|
|
201
|
+
warn "requirements.txt not found at $requirements_file; skipping"
|
|
202
|
+
return 0
|
|
203
|
+
fi
|
|
204
|
+
|
|
205
|
+
# Ensure pip present
|
|
206
|
+
if ! python3 -m pip --version >/dev/null 2>&1; then
|
|
207
|
+
warn "pip for Python3 not found; attempting to install"
|
|
208
|
+
if command_exists apt-get; then
|
|
209
|
+
sudo apt-get install -y python3-pip || true
|
|
210
|
+
fi
|
|
211
|
+
fi
|
|
212
|
+
|
|
213
|
+
# Upgrade pip tooling (best effort)
|
|
214
|
+
python3 -m pip install --upgrade pip setuptools wheel >/dev/null 2>&1 || true
|
|
215
|
+
|
|
216
|
+
# Install requirements - handle externally-managed-environment
|
|
217
|
+
log "Installing Python packages from requirements.txt..."
|
|
218
|
+
if [[ $EUID -eq 0 ]]; then
|
|
219
|
+
python3 -m pip install --break-system-packages -r "$requirements_file"
|
|
220
|
+
else
|
|
221
|
+
python3 -m pip install --user --break-system-packages -r "$requirements_file"
|
|
222
|
+
fi
|
|
223
|
+
|
|
224
|
+
success "Python dependencies installed"
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
# Function to install kubectl
|
|
228
|
+
install_kubectl() {
|
|
229
|
+
log "Installing kubectl..."
|
|
230
|
+
|
|
231
|
+
if command_exists kubectl; then
|
|
232
|
+
log "kubectl already installed"
|
|
233
|
+
return 0
|
|
234
|
+
fi
|
|
235
|
+
|
|
236
|
+
# Download latest kubectl
|
|
237
|
+
log "Downloading latest kubectl..."
|
|
238
|
+
local kubectl_version=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
|
|
239
|
+
local kubectl_url="https://storage.googleapis.com/kubernetes-release/release/${kubectl_version}/bin/linux/amd64/kubectl"
|
|
240
|
+
|
|
241
|
+
curl -LO "$kubectl_url"
|
|
242
|
+
chmod +x kubectl
|
|
243
|
+
sudo mv kubectl /usr/local/bin/
|
|
244
|
+
|
|
245
|
+
# Verify installation
|
|
246
|
+
if command_exists kubectl; then
|
|
247
|
+
local version=$(kubectl version --client --short 2>/dev/null || kubectl version --client 2>/dev/null)
|
|
248
|
+
success "kubectl installed successfully: $version"
|
|
249
|
+
else
|
|
250
|
+
error "kubectl installation failed"
|
|
251
|
+
exit 1
|
|
252
|
+
fi
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
# Function to install gcloud CLI
|
|
256
|
+
install_gcloud() {
|
|
257
|
+
log "Installing Google Cloud CLI..."
|
|
258
|
+
|
|
259
|
+
if command_exists gcloud; then
|
|
260
|
+
log "gcloud CLI already installed"
|
|
261
|
+
return 0
|
|
262
|
+
fi
|
|
263
|
+
|
|
264
|
+
local distro=$1
|
|
265
|
+
case $distro in
|
|
266
|
+
"ubuntu"|"debian")
|
|
267
|
+
log "Installing gcloud via apt repository"
|
|
268
|
+
sudo apt-get install -y apt-transport-https ca-certificates gnupg
|
|
269
|
+
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
|
|
270
|
+
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list > /dev/null
|
|
271
|
+
sudo apt-get update
|
|
272
|
+
sudo apt-get install -y google-cloud-cli
|
|
273
|
+
;;
|
|
274
|
+
*)
|
|
275
|
+
log "Installing gcloud to /opt via official installer (non-interactive)..."
|
|
276
|
+
curl -sSL https://sdk.cloud.google.com | bash -s -- --disable-prompts --install-dir=/opt
|
|
277
|
+
# Create symlinks for key commands
|
|
278
|
+
for cmd in gcloud gsutil bq; do
|
|
279
|
+
if [[ -f "/opt/google-cloud-sdk/bin/$cmd" ]]; then
|
|
280
|
+
sudo ln -sf "/opt/google-cloud-sdk/bin/$cmd" "/usr/local/bin/$cmd"
|
|
281
|
+
fi
|
|
282
|
+
done
|
|
283
|
+
;;
|
|
284
|
+
esac
|
|
285
|
+
|
|
286
|
+
# Verify installation
|
|
287
|
+
if command_exists gcloud; then
|
|
288
|
+
local version=$(gcloud --version | head -n1)
|
|
289
|
+
success "gcloud CLI installed successfully: $version"
|
|
290
|
+
else
|
|
291
|
+
error "gcloud CLI installation failed"
|
|
292
|
+
exit 1
|
|
293
|
+
fi
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
# Function to install Terraform
|
|
297
|
+
install_terraform() {
|
|
298
|
+
log "Installing Terraform..."
|
|
299
|
+
|
|
300
|
+
if command_exists terraform; then
|
|
301
|
+
log "Terraform already installed"
|
|
302
|
+
return 0
|
|
303
|
+
fi
|
|
304
|
+
|
|
305
|
+
local distro=$1
|
|
306
|
+
|
|
307
|
+
case $distro in
|
|
308
|
+
"ubuntu"|"debian")
|
|
309
|
+
log "Installing Terraform via apt repository..."
|
|
310
|
+
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
|
311
|
+
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
|
312
|
+
sudo apt-get update
|
|
313
|
+
sudo apt-get install -y terraform
|
|
314
|
+
;;
|
|
315
|
+
"centos"|"rhel"|"rocky"|"almalinux"|"fedora"|"amzn")
|
|
316
|
+
log "Installing Terraform via yum/dnf repository..."
|
|
317
|
+
sudo yum install -y yum-utils
|
|
318
|
+
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
|
319
|
+
if command_exists dnf; then
|
|
320
|
+
sudo dnf install -y terraform
|
|
321
|
+
else
|
|
322
|
+
sudo yum install -y terraform
|
|
323
|
+
fi
|
|
324
|
+
;;
|
|
325
|
+
*)
|
|
326
|
+
error "Unsupported distribution for Terraform installation: $distro"
|
|
327
|
+
exit 1
|
|
328
|
+
;;
|
|
329
|
+
esac
|
|
330
|
+
|
|
331
|
+
# Verify installation
|
|
332
|
+
if command_exists terraform; then
|
|
333
|
+
local version=$(terraform --version | head -n1)
|
|
334
|
+
success "Terraform installed successfully: $version"
|
|
335
|
+
else
|
|
336
|
+
error "Terraform installation failed"
|
|
337
|
+
exit 1
|
|
338
|
+
fi
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
# Function to install Terragrunt
|
|
342
|
+
install_terragrunt() {
|
|
343
|
+
log "Installing Terragrunt >= 0.84.0 (latest 0.84.x if install/upgrade needed)..."
|
|
344
|
+
|
|
345
|
+
if command_exists terragrunt; then
|
|
346
|
+
local current_version=$(terragrunt --version | head -n1)
|
|
347
|
+
# Extract semantic version like X.Y.Z
|
|
348
|
+
local current_semver=$(echo "$current_version" | sed -E 's/.*v?([0-9]+)\.([0-9]+)\.([0-9]+).*/\1.\2.\3/')
|
|
349
|
+
local required_min="0.84.0"
|
|
350
|
+
# Compare versions: return 0 if $1 >= $2
|
|
351
|
+
version_ge() {
|
|
352
|
+
local IFS=.
|
|
353
|
+
local a=($1) b=($2)
|
|
354
|
+
while [ ${#a[@]} -lt 3 ]; do a+=(0); done
|
|
355
|
+
while [ ${#b[@]} -lt 3 ]; do b+=(0); done
|
|
356
|
+
for i in 0 1 2; do
|
|
357
|
+
if ((10#${a[i]} > 10#${b[i]})); then return 0; fi
|
|
358
|
+
if ((10#${a[i]} < 10#${b[i]})); then return 1; fi
|
|
359
|
+
done
|
|
360
|
+
return 0
|
|
361
|
+
}
|
|
362
|
+
if version_ge "$current_semver" "$required_min"; then
|
|
363
|
+
log "Terragrunt $current_semver already installed (>= $required_min)"
|
|
364
|
+
return 0
|
|
365
|
+
else
|
|
366
|
+
warn "Terragrunt $current_semver installed, but >= $required_min is required"
|
|
367
|
+
log "Updating Terragrunt..."
|
|
368
|
+
fi
|
|
369
|
+
fi
|
|
370
|
+
|
|
371
|
+
# Determine latest 0.84.x version from GitHub tags without jq
|
|
372
|
+
local minor_track="0.84"
|
|
373
|
+
local latest_patch=$(curl -s "https://api.github.com/repos/gruntwork-io/terragrunt/tags?per_page=100" \
|
|
374
|
+
| grep -o '"name":"v[0-9]\+\.[0-9]\+\.[0-9]\+"' \
|
|
375
|
+
| sed -E 's/\"name\":\"v([0-9]+\.[0-9]+\.[0-9]+)\"/\1/' \
|
|
376
|
+
| grep -E "^${minor_track}\\.[0-9]+$" \
|
|
377
|
+
| sort -V \
|
|
378
|
+
| tail -1)
|
|
379
|
+
|
|
380
|
+
if [ -z "$latest_patch" ]; then
|
|
381
|
+
warn "Could not resolve latest ${minor_track}.x version from GitHub; falling back to ${minor_track}.0"
|
|
382
|
+
latest_patch="${minor_track}.0"
|
|
383
|
+
fi
|
|
384
|
+
|
|
385
|
+
local terragrunt_version="v${latest_patch}"
|
|
386
|
+
|
|
387
|
+
# Detect CPU architecture for correct binary
|
|
388
|
+
local arch=$(uname -m)
|
|
389
|
+
local tg_binary_name=""
|
|
390
|
+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
|
|
391
|
+
tg_binary_name="terragrunt_linux_arm64"
|
|
392
|
+
else
|
|
393
|
+
tg_binary_name="terragrunt_linux_amd64"
|
|
394
|
+
fi
|
|
395
|
+
|
|
396
|
+
log "Downloading Terragrunt ${terragrunt_version} (${tg_binary_name})..."
|
|
397
|
+
local terragrunt_url="https://github.com/gruntwork-io/terragrunt/releases/download/${terragrunt_version}/${tg_binary_name}"
|
|
398
|
+
|
|
399
|
+
curl -fL -o "$tg_binary_name" "$terragrunt_url"
|
|
400
|
+
chmod +x "$tg_binary_name"
|
|
401
|
+
sudo mv "$tg_binary_name" /usr/local/bin/terragrunt
|
|
402
|
+
|
|
403
|
+
# Verify installation
|
|
404
|
+
if command_exists terragrunt; then
|
|
405
|
+
local version_line=$(terragrunt --version | head -n1)
|
|
406
|
+
local installed_semver=$(echo "$version_line" | sed -E 's/.*v?([0-9]+)\.([0-9]+)\.([0-9]+).*/\1.\2.\3/')
|
|
407
|
+
local required_min="0.84.0"
|
|
408
|
+
version_ge() {
|
|
409
|
+
local IFS=.
|
|
410
|
+
local a=($1) b=($2)
|
|
411
|
+
while [ ${#a[@]} -lt 3 ]; do a+=(0); done
|
|
412
|
+
while [ ${#b[@]} -lt 3 ]; do b+=(0); done
|
|
413
|
+
for i in 0 1 2; do
|
|
414
|
+
if ((10#${a[i]} > 10#${b[i]})); then return 0; fi
|
|
415
|
+
if ((10#${a[i]} < 10#${b[i]})); then return 1; fi
|
|
416
|
+
done
|
|
417
|
+
return 0
|
|
418
|
+
}
|
|
419
|
+
if version_ge "$installed_semver" "$required_min"; then
|
|
420
|
+
success "Terragrunt installed successfully: $version_line (>= $required_min)"
|
|
421
|
+
else
|
|
422
|
+
error "Terragrunt version too low. Required >= $required_min, got: $version_line"
|
|
423
|
+
exit 1
|
|
424
|
+
fi
|
|
425
|
+
else
|
|
426
|
+
error "Terragrunt installation failed"
|
|
427
|
+
exit 1
|
|
428
|
+
fi
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
# Function to install Helm
|
|
432
|
+
install_helm() {
|
|
433
|
+
log "Installing Helm..."
|
|
434
|
+
|
|
435
|
+
if command_exists helm; then
|
|
436
|
+
log "Helm already installed"
|
|
437
|
+
return 0
|
|
438
|
+
fi
|
|
439
|
+
|
|
440
|
+
# Download and install Helm
|
|
441
|
+
log "Downloading Helm..."
|
|
442
|
+
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
|
443
|
+
|
|
444
|
+
# Verify installation
|
|
445
|
+
if command_exists helm; then
|
|
446
|
+
local version=$(helm version --short 2>/dev/null || helm version 2>/dev/null)
|
|
447
|
+
success "Helm installed successfully: $version"
|
|
448
|
+
else
|
|
449
|
+
error "Helm installation failed"
|
|
450
|
+
exit 1
|
|
451
|
+
fi
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
# Function to install additional tools
|
|
455
|
+
install_additional_tools() {
|
|
456
|
+
log "Installing additional tools..."
|
|
457
|
+
|
|
458
|
+
local distro=$1
|
|
459
|
+
|
|
460
|
+
# Install Git
|
|
461
|
+
if ! command_exists git; then
|
|
462
|
+
log "Installing Git..."
|
|
463
|
+
case $distro in
|
|
464
|
+
"ubuntu"|"debian")
|
|
465
|
+
sudo apt-get install -y git
|
|
466
|
+
;;
|
|
467
|
+
"centos"|"rhel"|"rocky"|"almalinux"|"fedora"|"amzn")
|
|
468
|
+
if command_exists dnf; then
|
|
469
|
+
sudo dnf install -y git
|
|
470
|
+
else
|
|
471
|
+
sudo yum install -y git
|
|
472
|
+
fi
|
|
473
|
+
;;
|
|
474
|
+
esac
|
|
475
|
+
success "Git installed successfully"
|
|
476
|
+
else
|
|
477
|
+
log "Git already installed"
|
|
478
|
+
fi
|
|
479
|
+
|
|
480
|
+
# Install jq
|
|
481
|
+
if ! command_exists jq; then
|
|
482
|
+
log "Installing jq..."
|
|
483
|
+
case $distro in
|
|
484
|
+
"ubuntu"|"debian")
|
|
485
|
+
sudo apt-get install -y jq
|
|
486
|
+
;;
|
|
487
|
+
"centos"|"rhel"|"rocky"|"almalinux"|"fedora"|"amzn")
|
|
488
|
+
if command_exists dnf; then
|
|
489
|
+
sudo dnf install -y jq
|
|
490
|
+
else
|
|
491
|
+
sudo yum install -y jq
|
|
492
|
+
fi
|
|
493
|
+
;;
|
|
494
|
+
esac
|
|
495
|
+
success "jq installed successfully"
|
|
496
|
+
else
|
|
497
|
+
log "jq already installed"
|
|
498
|
+
fi
|
|
499
|
+
|
|
500
|
+
# Install Docker (optional but recommended)
|
|
501
|
+
if ! command_exists docker; then
|
|
502
|
+
log "Installing Docker..."
|
|
503
|
+
case $distro in
|
|
504
|
+
"ubuntu"|"debian")
|
|
505
|
+
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
|
|
506
|
+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
|
507
|
+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
508
|
+
sudo apt-get update
|
|
509
|
+
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
|
510
|
+
sudo usermod -aG docker $USER
|
|
511
|
+
;;
|
|
512
|
+
"centos"|"rhel"|"rocky"|"almalinux"|"fedora"|"amzn")
|
|
513
|
+
if command_exists dnf; then
|
|
514
|
+
sudo dnf install -y docker
|
|
515
|
+
else
|
|
516
|
+
sudo yum install -y docker
|
|
517
|
+
fi
|
|
518
|
+
sudo systemctl start docker
|
|
519
|
+
sudo systemctl enable docker
|
|
520
|
+
sudo usermod -aG docker $USER
|
|
521
|
+
;;
|
|
522
|
+
esac
|
|
523
|
+
success "Docker installed successfully"
|
|
524
|
+
warn "Docker requires logout/login to work without sudo"
|
|
525
|
+
else
|
|
526
|
+
log "Docker already installed"
|
|
527
|
+
fi
|
|
528
|
+
|
|
529
|
+
# Install curl if not present
|
|
530
|
+
if ! command_exists curl; then
|
|
531
|
+
log "Installing curl..."
|
|
532
|
+
case $distro in
|
|
533
|
+
"ubuntu"|"debian")
|
|
534
|
+
sudo apt-get install -y curl
|
|
535
|
+
;;
|
|
536
|
+
"centos"|"rhel"|"rocky"|"almalinux"|"fedora"|"amzn")
|
|
537
|
+
if command_exists dnf; then
|
|
538
|
+
sudo dnf install -y curl
|
|
539
|
+
else
|
|
540
|
+
sudo yum install -y curl
|
|
541
|
+
fi
|
|
542
|
+
;;
|
|
543
|
+
esac
|
|
544
|
+
success "curl installed successfully"
|
|
545
|
+
else
|
|
546
|
+
log "curl already installed"
|
|
547
|
+
fi
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
# Function to configure shell profiles
|
|
551
|
+
configure_shell_profiles() {
|
|
552
|
+
log "Configuring shell profiles..."
|
|
553
|
+
|
|
554
|
+
# If gcloud already resolves on PATH, no profile edits needed
|
|
555
|
+
if command_exists gcloud; then
|
|
556
|
+
log "gcloud already on PATH; skipping profile configuration"
|
|
557
|
+
return 0
|
|
558
|
+
fi
|
|
559
|
+
|
|
560
|
+
# Prefer system locations first
|
|
561
|
+
local gcloud_path=""
|
|
562
|
+
if [[ -d "/opt/google-cloud-sdk" ]]; then
|
|
563
|
+
gcloud_path="/opt/google-cloud-sdk"
|
|
564
|
+
log "Using /opt/google-cloud-sdk for PATH sourcing"
|
|
565
|
+
elif [[ -d "/usr/lib/google-cloud-sdk" ]]; then
|
|
566
|
+
gcloud_path="/usr/lib/google-cloud-sdk"
|
|
567
|
+
log "Using /usr/lib/google-cloud-sdk for PATH sourcing"
|
|
568
|
+
elif [[ -d "$HOME/google-cloud-sdk" ]]; then
|
|
569
|
+
gcloud_path="$HOME/google-cloud-sdk"
|
|
570
|
+
log "Using $HOME/google-cloud-sdk for PATH sourcing"
|
|
571
|
+
elif [[ -d "/root/google-cloud-sdk" ]]; then
|
|
572
|
+
# Do NOT write /root paths into user profiles; only use for system profile
|
|
573
|
+
gcloud_path="/root/google-cloud-sdk"
|
|
574
|
+
log "gcloud only found under /root; will configure system profile only"
|
|
575
|
+
else
|
|
576
|
+
warn "gcloud CLI installation not found for profile configuration"
|
|
577
|
+
return 0
|
|
578
|
+
fi
|
|
579
|
+
|
|
580
|
+
# Get the actual user (not root if running with sudo)
|
|
581
|
+
local actual_user="${SUDO_USER:-$USER}"
|
|
582
|
+
local user_home="/home/$actual_user"
|
|
583
|
+
if [[ "$actual_user" == "root" ]]; then
|
|
584
|
+
user_home="$HOME"
|
|
585
|
+
fi
|
|
586
|
+
|
|
587
|
+
# Configure Terragrunt cache location to prevent long path issues
|
|
588
|
+
if [[ -f "$shell_profile" ]] && grep -q "TG_DOWNLOAD_DIR" "$shell_profile"; then
|
|
589
|
+
log "Terragrunt cache location already configured in $shell_profile"
|
|
590
|
+
else
|
|
591
|
+
log "Adding Terragrunt cache configuration to $shell_profile..."
|
|
592
|
+
echo "" >> "$shell_profile"
|
|
593
|
+
echo "# Terragrunt cache configuration (prevents long path issues)" >> "$shell_profile"
|
|
594
|
+
echo 'export TG_DOWNLOAD_DIR="/tmp/terragrunt-cache"' >> "$shell_profile"
|
|
595
|
+
success "Terragrunt cache location configured in $shell_profile"
|
|
596
|
+
fi
|
|
597
|
+
|
|
598
|
+
# Create the cache directory
|
|
599
|
+
mkdir -p /tmp/terragrunt-cache
|
|
600
|
+
success "Created Terragrunt cache directory: /tmp/terragrunt-cache"
|
|
601
|
+
|
|
602
|
+
# Reload shell profile for current session
|
|
603
|
+
if [[ -f "$shell_profile" ]]; then
|
|
604
|
+
if grep -q "google-cloud-sdk" "$shell_profile"; then
|
|
605
|
+
log "Cleaning stale google-cloud-sdk entries in $shell_profile (if any)"
|
|
606
|
+
sed -i '\~google-cloud-sdk~d' "$shell_profile"
|
|
607
|
+
fi
|
|
608
|
+
fi
|
|
609
|
+
|
|
610
|
+
# Only add user profile sourcing if not using apt (apt puts gcloud in /usr/bin)
|
|
611
|
+
if ! command_exists gcloud; then
|
|
612
|
+
if [[ -f "$gcloud_path/path.bash.inc" ]]; then
|
|
613
|
+
log "Adding gcloud sourcing to $shell_profile"
|
|
614
|
+
echo "" >> "$shell_profile"
|
|
615
|
+
echo "# Google Cloud SDK" >> "$shell_profile"
|
|
616
|
+
echo "source \"$gcloud_path/path.bash.inc\"" >> "$shell_profile"
|
|
617
|
+
if [[ -f "$gcloud_path/completion.bash.inc" ]]; then
|
|
618
|
+
echo "source \"$gcloud_path/completion.bash.inc\"" >> "$shell_profile"
|
|
619
|
+
fi
|
|
620
|
+
fi
|
|
621
|
+
fi
|
|
622
|
+
|
|
623
|
+
# System-wide profile for all users; safe to reference /opt or /usr/lib
|
|
624
|
+
if [[ -f "/etc/profile.d/gcloud.sh" ]]; then
|
|
625
|
+
log "System-wide gcloud profile already exists"
|
|
626
|
+
else
|
|
627
|
+
log "Creating system-wide gcloud profile at /etc/profile.d/gcloud.sh"
|
|
628
|
+
sudo tee /etc/profile.d/gcloud.sh > /dev/null << EOF
|
|
629
|
+
# Google Cloud SDK - Global Configuration
|
|
630
|
+
if [ -f "/opt/google-cloud-sdk/path.bash.inc" ]; then
|
|
631
|
+
. "/opt/google-cloud-sdk/path.bash.inc"
|
|
632
|
+
elif [ -f "/usr/lib/google-cloud-sdk/path.bash.inc" ]; then
|
|
633
|
+
. "/usr/lib/google-cloud-sdk/path.bash.inc"
|
|
634
|
+
elif [ -f "$HOME/google-cloud-sdk/path.bash.inc" ]; then
|
|
635
|
+
. "$HOME/google-cloud-sdk/path.bash.inc"
|
|
636
|
+
fi
|
|
637
|
+
if [ -f "/opt/google-cloud-sdk/completion.bash.inc" ]; then
|
|
638
|
+
. "/opt/google-cloud-sdk/completion.bash.inc"
|
|
639
|
+
elif [ -f "/usr/lib/google-cloud-sdk/completion.bash.inc" ]; then
|
|
640
|
+
. "/usr/lib/google-cloud-sdk/completion.bash.inc"
|
|
641
|
+
elif [ -f "$HOME/google-cloud-sdk/completion.bash.inc" ]; then
|
|
642
|
+
. "$HOME/google-cloud-sdk/completion.bash.inc"
|
|
643
|
+
fi
|
|
644
|
+
EOF
|
|
645
|
+
success "System-wide gcloud CLI profile created"
|
|
646
|
+
fi
|
|
647
|
+
|
|
648
|
+
# Also add to /etc/bash.bashrc (idempotent)
|
|
649
|
+
if ! grep -q "google-cloud-sdk" /etc/bash.bashrc; then
|
|
650
|
+
log "Adding gcloud sourcing to /etc/bash.bashrc"
|
|
651
|
+
echo "" | sudo tee -a /etc/bash.bashrc > /dev/null
|
|
652
|
+
echo "# Google Cloud SDK" | sudo tee -a /etc/bash.bashrc > /dev/null
|
|
653
|
+
echo "[ -f /etc/profile.d/gcloud.sh ] && . /etc/profile.d/gcloud.sh" | sudo tee -a /etc/bash.bashrc > /dev/null
|
|
654
|
+
success "gcloud sourcing added to /etc/bash.bashrc"
|
|
655
|
+
fi
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
# Function to verify all installations
|
|
659
|
+
verify_installations() {
|
|
660
|
+
log "Verifying all installations..."
|
|
661
|
+
|
|
662
|
+
local tools=("python3" "kubectl" "gcloud" "terraform" "terragrunt" "helm" "git" "jq" "curl")
|
|
663
|
+
local all_installed=true
|
|
664
|
+
|
|
665
|
+
for tool in "${tools[@]}"; do
|
|
666
|
+
if command_exists "$tool"; then
|
|
667
|
+
success "✅ $tool: installed"
|
|
668
|
+
else
|
|
669
|
+
error "❌ $tool: not found"
|
|
670
|
+
all_installed=false
|
|
671
|
+
fi
|
|
672
|
+
done
|
|
673
|
+
|
|
674
|
+
if [[ "$all_installed" == true ]]; then
|
|
675
|
+
success "All tools verified successfully!"
|
|
676
|
+
else
|
|
677
|
+
warn "Some tools may not be properly installed"
|
|
678
|
+
return 1
|
|
679
|
+
fi
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
# Function to show next steps
|
|
683
|
+
show_next_steps() {
|
|
684
|
+
log "Installation completed! Next steps:"
|
|
685
|
+
echo ""
|
|
686
|
+
echo "🔧 Configure your tools:"
|
|
687
|
+
echo " 1. gcloud auth login"
|
|
688
|
+
echo " 2. gcloud config set project YOUR_PROJECT_ID"
|
|
689
|
+
echo " 3. kubectl config set-cluster my-cluster --server=https://your-cluster-endpoint"
|
|
690
|
+
echo ""
|
|
691
|
+
echo "🚀 Start using Fast2.Dev CLI:"
|
|
692
|
+
echo " 1. cd .."
|
|
693
|
+
echo " 2. python cli.py"
|
|
694
|
+
echo ""
|
|
695
|
+
echo "📚 Documentation:"
|
|
696
|
+
echo " - CLI help: python cli.py --help"
|
|
697
|
+
echo " - Deployment guide: docs/"
|
|
698
|
+
echo ""
|
|
699
|
+
echo "⚠️ Important PATH Notes:"
|
|
700
|
+
echo " - gcloud CLI has been configured globally for all users"
|
|
701
|
+
echo " - Added to: /etc/profile.d/gcloud.sh and /etc/bash.bashrc"
|
|
702
|
+
echo " - You may need to restart your terminal or run:"
|
|
703
|
+
echo " source /etc/profile.d/gcloud.sh"
|
|
704
|
+
echo " - Or start a new terminal session"
|
|
705
|
+
echo " - gcloud CLI is now accessible from any user account"
|
|
706
|
+
echo ""
|
|
707
|
+
echo "🐳 Docker users: You may need to logout and login again for Docker group permissions"
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
# Main installation function
|
|
711
|
+
main() {
|
|
712
|
+
echo "🐧 Fast2.Dev CLI Prerequisites Installer for Linux"
|
|
713
|
+
echo "================================================"
|
|
714
|
+
echo ""
|
|
715
|
+
|
|
716
|
+
# Detect distribution
|
|
717
|
+
log "Detecting Linux distribution..."
|
|
718
|
+
local distro=$(detect_distribution)
|
|
719
|
+
if [[ -f /etc/os-release ]]; then
|
|
720
|
+
. /etc/os-release
|
|
721
|
+
log "Distribution: $ID $VERSION_ID"
|
|
722
|
+
elif command_exists lsb_release; then
|
|
723
|
+
local version=$(lsb_release -sr)
|
|
724
|
+
log "Distribution: $distro $version"
|
|
725
|
+
else
|
|
726
|
+
log "Distribution: $distro (generic Linux)"
|
|
727
|
+
fi
|
|
728
|
+
|
|
729
|
+
# Check privileges
|
|
730
|
+
check_privileges
|
|
731
|
+
|
|
732
|
+
# Update package manager
|
|
733
|
+
update_package_manager "$distro"
|
|
734
|
+
|
|
735
|
+
# Install Python
|
|
736
|
+
install_python "$distro"
|
|
737
|
+
# Ensure python/pip shims
|
|
738
|
+
ensure_python_shims "$distro"
|
|
739
|
+
|
|
740
|
+
# Install kubectl
|
|
741
|
+
install_kubectl
|
|
742
|
+
|
|
743
|
+
# Install gcloud CLI
|
|
744
|
+
install_gcloud "$distro"
|
|
745
|
+
|
|
746
|
+
# Install Terraform
|
|
747
|
+
install_terraform "$distro"
|
|
748
|
+
|
|
749
|
+
# Install Terragrunt
|
|
750
|
+
install_terragrunt
|
|
751
|
+
|
|
752
|
+
# Install Helm
|
|
753
|
+
install_helm
|
|
754
|
+
|
|
755
|
+
# Install additional tools
|
|
756
|
+
install_additional_tools "$distro"
|
|
757
|
+
|
|
758
|
+
# Install Python requirements
|
|
759
|
+
install_python_requirements
|
|
760
|
+
|
|
761
|
+
# Configure shell profiles
|
|
762
|
+
configure_shell_profiles
|
|
763
|
+
|
|
764
|
+
# Verify installations
|
|
765
|
+
verify_installations
|
|
766
|
+
|
|
767
|
+
# Show next steps
|
|
768
|
+
show_next_steps
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
# Handle script interruption
|
|
772
|
+
trap 'error "Installation interrupted"; exit 1' INT TERM
|
|
773
|
+
|
|
774
|
+
# Run main function
|
|
775
|
+
main "$@"
|