Skip to content

Commit 47e6b66

Browse files
Merge pull request #22 from yingzhanredhat/ying-e2e
HYPERFLEET-575 | test: Add hyperfleet deployed steps for hyperfleet e2e ci test
2 parents a2b94f8 + bac1bd5 commit 47e6b66

10 files changed

Lines changed: 1692 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ vendor/
3939
*.tmp
4040
*.bak
4141
*.log
42+
.deploy-work/
4243

4344
# Environment files
4445
.env
4546
.env.local
4647
.env.*.local
48+
deploy-scripts/.env
4749

4850
# Claude Code files
4951
.claude/

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ COPY --from=builder /build/bin/hyperfleet-e2e /usr/local/bin/
4545
# Copy test payloads and fixtures
4646
COPY --from=builder /build/testdata /e2e/testdata
4747

48+
# Copy deploy scripts
49+
COPY --from=builder /build/deploy-scripts /e2e/deploy-scripts
50+
4851
# Copy default config (fallback if ConfigMap is not mounted)
4952
COPY --from=builder /build/configs /e2e/configs
5053

deploy-scripts/.env.example

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# ============================================================================
2+
# CLM Components Deployment Configuration
3+
# ============================================================================
4+
# This file contains environment variables used by deploy-clm.sh
5+
# Copy this file to .env and modify values as needed for your environment:
6+
# cp .env.example .env
7+
8+
# Kubernetes Configuration
9+
NAMESPACE=hyperfleet-e2e
10+
11+
# Release Configuration
12+
RELEASE_PREFIX=hyperfleet
13+
14+
# Provider Configuration
15+
GCP_PROJECT_ID=hcm-hyperfleet
16+
17+
# Image Registry Configuration
18+
IMAGE_REGISTRY=registry.ci.openshift.org/ci
19+
20+
# API Component Configuration
21+
API_IMAGE_REPO=hyperfleet-api
22+
API_IMAGE_TAG=latest
23+
API_SERVICE_TYPE=LoadBalancer
24+
25+
# API Adapter Configuration (comma-separated list)
26+
# NOTE: Adapters are auto-discovered from testdata/adapter-configs/
27+
# WARNING: Auto-discovery will OVERRIDE these environment variables if adapters are found
28+
# These values are only used if no adapter configs exist in testdata/adapter-configs/
29+
# Example: API_ADAPTERS_CLUSTER="example1-namespace,validation,dns"
30+
# API_ADAPTERS_CLUSTER=""
31+
# API_ADAPTERS_NODEPOOL=""
32+
33+
# Sentinel Component Configuration
34+
SENTINEL_IMAGE_REPO=hyperfleet-sentinel
35+
SENTINEL_IMAGE_TAG=latest
36+
SENTINEL_BROKER_TYPE=googlepubsub
37+
SENTINEL_GOOGLEPUBSUB_CREATE_TOPIC_IF_MISSING=true
38+
39+
# Adapter Component Configuration
40+
ADAPTER_IMAGE_REPO=hyperfleet-adapter
41+
ADAPTER_IMAGE_TAG=latest
42+
ADAPTER_GOOGLEPUBSUB_CREATE_TOPIC_IF_MISSING=true
43+
ADAPTER_GOOGLEPUBSUB_CREATE_SUBSCRIPTION_IF_MISSING=true
44+
45+
# Adapter Pub/Sub Configuration (Optional)
46+
# If not set, these will be auto-generated based on namespace and resource type:
47+
# ADAPTER_SUBSCRIPTION_ID: ${NAMESPACE}-${resource_type}-${adapter_name}
48+
# ADAPTER_TOPIC: ${NAMESPACE}-${resource_type}
49+
# ADAPTER_DEAD_LETTER_TOPIC: ${NAMESPACE}-${resource_type}-dlq
50+
51+
52+
# HyperFleet API Configuration
53+
# Note: If namespace is different, use: http://hyperfleet-api.${NAMESPACE}.svc.cluster.local:8000
54+
API_BASE_URL=http://hyperfleet-api:8000
55+
56+
57+
# Helm Chart Sources
58+
API_CHART_REPO=https://github.com/openshift-hyperfleet/hyperfleet-api.git
59+
API_CHART_REF=main
60+
API_CHART_PATH=charts
61+
62+
SENTINEL_CHART_REPO=https://github.com/openshift-hyperfleet/hyperfleet-sentinel.git
63+
SENTINEL_CHART_REF=main
64+
SENTINEL_CHART_PATH=deployments/helm/sentinel
65+
66+
ADAPTER_CHART_REPO=https://github.com/openshift-hyperfleet/hyperfleet-adapter.git
67+
ADAPTER_CHART_REF=main
68+
ADAPTER_CHART_PATH=charts
69+
70+
# Component Selection Flags (true/false)
71+
INSTALL_API=true
72+
INSTALL_SENTINEL=true
73+
INSTALL_ADAPTER=true
74+
75+
# Execution Options
76+
DRY_RUN=false
77+
VERBOSE=false

0 commit comments

Comments
 (0)