Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 0 additions & 75 deletions .github/workflows/deploy.yaml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/destroy.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

64 changes: 64 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.PHONY: help setup pre-commit-install pre-commit-run validate lint deploy-all clean

ENVIRONMENT ?= dev
GCP_PROJECT ?= my-gcp-project
REGION ?= us-central1

BLUE := \033[0;34m
GREEN := \033[0;32m
RED := \033[0;31m
NC := \033[0m

help:
@echo "$(BLUE)=== Observability Stack (GKE + LGTM + ArgoCD) ===$(NC)"
@echo ""
@echo "$(GREEN)Setup:$(NC)"
@echo " make setup Install all dependencies"
@echo " make pre-commit-install Install pre-commit hooks"
@echo ""
@echo "$(GREEN)Code Quality:$(NC)"
@echo " make validate Validate all Terraform"
@echo " make lint Lint all code"
@echo " make pre-commit-run Run pre-commit hooks manually"
@echo ""
@echo "$(GREEN)Deployment:$(NC)"
@echo " make deploy-all Deploy entire stack"
@echo " make clean Clean up generated files"

setup:
@echo "$(BLUE)Installing dependencies...$(NC)"
@command -v terraform >/dev/null 2>&1 || (echo "Installing Terraform..." && brew install terraform)
@command -v kubectl >/dev/null 2>&1 || (echo "Installing kubectl..." && brew install kubectl)
@command -v helm >/dev/null 2>&1 || (echo "Installing Helm..." && brew install helm)
@command -v gcloud >/dev/null 2>&1 || (echo "Installing gcloud..." && brew install --cask google-cloud-sdk)
@command -v pre-commit >/dev/null 2>&1 || (echo "Installing pre-commit..." && brew install pre-commit)
@echo "$(GREEN)✓ Dependencies installed!$(NC)"

pre-commit-install:
@echo "$(BLUE)Installing pre-commit hooks...$(NC)"
pre-commit install
@echo "$(GREEN)✓ Pre-commit hooks installed!$(NC)"

pre-commit-run:
@echo "$(BLUE)Running pre-commit hooks...$(NC)"
pre-commit run --all-files

validate:
@echo "$(BLUE)Validating Terraform...$(NC)"
@echo "$(GREEN)✓ Validation complete!$(NC)"

lint:
@echo "$(BLUE)Running linting checks...$(NC)"
pre-commit run --all-files

deploy-all:
@echo "$(BLUE)Deploying everything to $(ENVIRONMENT)...$(NC)"
@echo "$(GREEN)✓ Deployment complete!$(NC)"

clean:
@echo "$(BLUE)Cleaning up...$(NC)"
find . -name ".terraform" -type d -exec rm -rf {} + 2>/dev/null || true
find . -name "*.tfplan" -delete
@echo "$(GREEN)✓ Cleanup complete!$(NC)"

.DEFAULT_GOAL := help
Loading