Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ make docs-gen # regenerate AI docs from source
```
api/v1alpha1 — Package v1alpha1 contains API Schema definitions for the drop v1alpha1 API group.
internal/controller — Package controller implements Kubernetes reconcilers for the drop CRDs (one per Kind).
imports: api/v1alpha1, internal/discovery, internal/metrics, internal/pacing, internal/podbuilder
imports: api/v1alpha1, internal/metrics, internal/pacing, internal/podbuilder
internal/discovery — Package discovery implements image discovery from registries and Prometheus metrics.
imports: api/v1alpha1
internal/metrics — Package metrics registers Prometheus metrics for the drop operator.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
make controller-gen
make sync-crds
kubectl apply -f config/crd/bases/
- name: Deploy E2E infrastructure (Prometheus + Registry)
- name: Deploy E2E infrastructure (Prometheus, Loki, Registry)
run: make e2e-infra
- name: Deploy operator
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from cluster.
$(KUSTOMIZE) build config/crd | $(KUBECTL) delete --ignore-not-found -f -

.PHONY: e2e-infra
e2e-infra: ## Deploy Prometheus + Registry for E2E/dev.
e2e-infra: ## Deploy Prometheus, Loki, and Registry for E2E/dev.
@chmod +x hack/e2e-infra/setup.sh && hack/e2e-infra/setup.sh

##@ Docker
Expand Down
6 changes: 6 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ local('kubectl create namespace e2e-infra --dry-run=client -o yaml | kubectl app
k8s_yaml('hack/e2e-infra/prometheus-config.yaml')
k8s_yaml('hack/e2e-infra/prometheus.yaml')
k8s_yaml('hack/e2e-infra/registry.yaml')
k8s_yaml('hack/e2e-infra/loki.yaml')

k8s_resource('prometheus', objects=['prometheus-config:configmap', 'prometheus:serviceaccount', 'prometheus-metrics-reader:clusterrolebinding'], port_forwards=['9090:9090'], labels=['infra'])
k8s_resource('registry', port_forwards=['5000:5000'], labels=['infra'])
k8s_resource('loki', objects=['loki-config:configmap'], port_forwards=['3100:3100'], labels=['infra'])

# Configure kind nodes to reach the in-cluster registry.
# Kubelet/containerd can't resolve cluster DNS, so we point them at the registry's ClusterIP.
Expand All @@ -99,6 +101,10 @@ local_resource(
k8s_yaml('hack/e2e-infra/seed-registry-job.yaml')
k8s_resource('seed-registry', labels=['infra'], resource_deps=['registry-mirror'])

# Seed Loki with image-pull events
k8s_yaml('hack/e2e-infra/seed-loki-job.yaml')
k8s_resource('seed-loki', labels=['infra'], resource_deps=['loki'])

# --- Grafana with Drop dashboard ---
# Create dashboard ConfigMap from the shipped JSON, then apply grafana manifests.
dashboard_json = str(read_file('charts/drop/dashboards/drop-operator.json'))
Expand Down
648 changes: 553 additions & 95 deletions api/v1alpha1/discoverypolicy_types.go

Large diffs are not rendered by default.

Loading
Loading