File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
approval-controller-metric-collector Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ kubectl create ns test-ns
175175# Deploy sample metric app
176176# This creates a Deployment with a simple Go app that exposes a /metrics endpoint
177177# The app reports workload_health=1.0 (healthy) by default
178- # Includes annotations for Prometheus scraping: prometheus.io/scrape: "true"
179178kubectl apply -f ./examples/sample-metric-app/
180179```
181180
@@ -308,7 +307,8 @@ kubectl config use-context kind-hub
308307``` bash
309308# Apply namespace-scoped ClusterResourcePlacement
310309# This CRP is configured to only place resources in the test-ns namespace
311- # Uses namespaceSelector instead of resourceSelector for namespace-scoped propagation
310+ # This resource is needed because we cannot propagate Namespace which is a
311+ # cluster-scoped resource via RP
312312kubectl apply -f ./examples/updateRun/example-ns-only-crp.yaml
313313
314314kubectl get crp -A
File renamed without changes.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN go mod init metric-app && \
88 go get github.com/prometheus/client_golang/prometheus/promhttp@latest
99
1010# Copy source code
11- COPY metric-collector/cmd/metriccollector/ metric-app/ ./
11+ COPY metric-collector/cmd/metric-app/ ./
1212
1313# Build the application
1414RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o metric-app main.go
You can’t perform that action at this time.
0 commit comments