This repository was archived by the owner on Apr 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathenv.example
More file actions
79 lines (72 loc) · 3.75 KB
/
env.example
File metadata and controls
79 lines (72 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# HyperFleet Landing Zone Adapter - Environment Variables
# Copy to .env and customize for local development
#
# Usage:
# source .env
# ./run-local.sh
# =============================================================================
# GCP Project & GKE Cluster
# =============================================================================
export GCP_PROJECT_ID="your-gcp-project-id"
export GKE_CLUSTER_NAME="your-cluster-name"
export GKE_CLUSTER_REGION="us-central1" # or use GKE_CLUSTER_ZONE for zonal clusters
# =============================================================================
# Pub/Sub Configuration
# =============================================================================
export BROKER_TOPIC="hyperfleet-adapter-topic"
export BROKER_SUBSCRIPTION_ID="hyperfleet-adapter-landing-zone-subscription"
export SUBSCRIBER_PARALLELISM="1"
# =============================================================================
# RabbitMQ Configuration (alternative to GCP Pub/Sub)
# =============================================================================
# Set broker.type to "rabbitmq" in broker.yaml to use RabbitMQ instead of Pub/Sub
export RABBITMQ_URL="amqp://user:pass@localhost:5672/"
# =============================================================================
# HyperFleet API Configuration
# =============================================================================
export HYPERFLEET_API_BASE_URL="https://api.hyperfleet.example.com"
export HYPERFLEET_API_VERSION="v1"
# =============================================================================
# Adapter Configuration (optional - defaults set in run-local.sh)
# =============================================================================
# export ADAPTER_CONFIG_PATH="./charts/configs/adapter-landing-zone.yaml"
# =============================================================================
# GCP Authentication
# =============================================================================
# The Go SDK uses Application Default Credentials (ADC), NOT gcloud CLI auth.
#
# RECOMMENDED: Use service account key file
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
#
# How to create a service account key:
# 1. Create service account (if not exists):
# gcloud iam service-accounts create hyperfleet-adapter-local \
# --project="$GCP_PROJECT_ID" \
# --display-name="HyperFleet Adapter Local Dev"
#
# 2. Grant Pub/Sub permissions:
# gcloud projects add-iam-policy-binding "$GCP_PROJECT_ID" \
# --member="serviceAccount:hyperfleet-adapter-local@${GCP_PROJECT_ID}.iam.gserviceaccount.com" \
# --role="roles/pubsub.subscriber"
#
# 3. Create and download key file:
# gcloud iam service-accounts keys create ./sa-key.json \
# --iam-account="hyperfleet-adapter-local@${GCP_PROJECT_ID}.iam.gserviceaccount.com"
#
# 4. Set the path above:
# export GOOGLE_APPLICATION_CREDENTIALS="./sa-key.json"
#
# ⚠️ WARNING: Using "gcloud auth application-default login" will override
# your default credentials and may block other applications using ADC from a different project.
#
# Note: gcloud CLI auth (gcloud auth login) is separate and won't work for the adapter.
# =============================================================================
# Kubernetes Configuration (for local development)
# =============================================================================
# Use local kubeconfig instead of in-cluster config
export KUBECONFIG="${HOME}/.kube/config"
# =============================================================================
# Logging Configuration (optional - defaults set in run-local.sh)
# =============================================================================
# Log level: debug, info, warn, error
# export LOG_LEVEL="debug"