-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
114 lines (87 loc) · 3.66 KB
/
Copy pathMakefile
File metadata and controls
114 lines (87 loc) · 3.66 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
SHELL := /usr/bin/env bash
.PHONY: help validate test golden-path-test rhdh-plugin-test onboarding-test lifecycle-test multi-product-test ai-model-test ai-monetization-test ai-demo promotion-status preflight bootstrap render status verify observe grafana portal hub demo metered-demo showcase reset-demo uninstall
help:
@echo "Targets:"
@echo " validate Render and statically validate every Kustomize package"
@echo " test Run Go unit tests"
@echo " golden-path-test Render and build both API-owner Golden Path projects"
@echo " rhdh-plugin-test Build, test, and reproduce the custom RHDH plugin artifact"
@echo " onboarding-test Prove registration, verified email, consumer group, and RHDH sync"
@echo " lifecycle-test Prove suspend, resume, cancel, cleanup, and resubscribe"
@echo " multi-product-test Prove independent Inventory and Payment subscriptions"
@echo " ai-model-test Prove CPU-only OpenShift AI chat inference"
@echo " ai-monetization-test Prove API-key/JWT AI inference and token billing"
@echo " ai-demo Prove Free AI token exhaustion and a live Developer upgrade"
@echo " promotion-status Prove Argo revision, Build, image tag, and running digest provenance"
@echo " preflight Check cluster access, version, permissions, and catalogs"
@echo " bootstrap Install OpenShift GitOps and register the root application"
@echo " render Render all Kustomize packages into stdout"
@echo " status Show GitOps applications and operator subscriptions"
@echo " verify Wait for secrets, databases, Keycloak, and realm readiness"
@echo " observe Show live accepted, limited, overage, and revenue metrics"
@echo " grafana Print the managed Grafana URL and SSO/break-glass logins"
@echo " portal Print the portal URL and generated developer/admin logins"
@echo " hub Print the Developer Hub URL and Keycloak test logins"
@echo " demo Run API-key and JWT rate-limit and live-upgrade scenarios"
@echo " metered-demo Generate real Pay-as-you-go usage and a draft invoice"
@echo " showcase Run the complete verified demo and restore reusable state"
@echo " reset-demo Reset the demo subscription to the Free plan"
@echo " uninstall Remove the complete demo after explicit confirmation"
validate:
@./scripts/validate.sh
test:
@go test ./applications/... ./internal/...
golden-path-test:
@./scripts/validate-golden-paths.py --build
rhdh-plugin-test:
@./plugins/rhdh-monetization-backend/scripts/container-build.sh
@./plugins/rhdh-policy-catalog/scripts/container-build.sh
onboarding-test:
@./scripts/onboarding-test.sh
lifecycle-test:
@./scripts/lifecycle-test.sh
multi-product-test:
@./scripts/multi-product-test.sh
ai-model-test:
@./scripts/ai-model-test.sh
ai-monetization-test:
@./scripts/ai-monetization-test.sh
ai-demo:
@./scripts/ai-demo.sh
promotion-status:
@./scripts/build-promotion-status.sh
preflight:
@./scripts/preflight.sh
bootstrap:
@./scripts/bootstrap.sh
render:
@for package in $$(find applications bootstrap gitops operators platform -name kustomization.yaml -printf '%h\n' | sort); do \
echo "# package: $$package"; \
oc kustomize "$$package"; \
done
status:
@oc get applications.argoproj.io -n openshift-gitops
@oc get subscriptions.operators.coreos.com -A
verify:
@./scripts/verify.sh
@./scripts/onboarding-test.sh
@./scripts/build-promotion-status.sh
@./scripts/lifecycle-test.sh
observe:
@./scripts/observe.sh
grafana:
@./scripts/grafana.sh
portal:
@./scripts/portal.sh
hub:
@./scripts/hub.sh
demo:
@./scripts/demo.sh
metered-demo:
@./scripts/metered-demo.sh
showcase:
@./scripts/showcase.sh
reset-demo:
@./scripts/reset-demo.sh
uninstall:
@./scripts/uninstall.sh