feat: 实现 PostgreSQL 所有权 registry
E2E Tests / Run on Ubuntu (pull_request) Failing after 52s
Tests / Run on Ubuntu (pull_request) Successful in 6m46s
Lint / Run on Ubuntu (pull_request) Successful in 9m12s

This commit is contained in:
2026-09-10 09:29:59 +00:00
parent fd511fe1b7
commit 558df2bbcd
6 changed files with 544 additions and 0 deletions
+6
View File
@@ -18,6 +18,8 @@ CONTAINER_TOOL ?= docker
# DEV_COMPOSE manages disposable PostgreSQL and OpenBao dependencies for local work.
DEV_COMPOSE ?= docker compose -f hack/dev/compose.yaml
POSTGRES_DEV_PORT ?= 15432
POSTGRES_TEST_DSN ?= postgres://postgres:[email protected]:$(POSTGRES_DEV_PORT)/postgres?sslmode=disable
# Setting SHELL to bash allows bash commands to be executed by recipes.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
@@ -59,6 +61,10 @@ dev-smoke: dev-up ## Verify PostgreSQL and OpenBao development dependencies.
dev-down: ## Remove disposable development dependencies and their data.
$(DEV_COMPOSE) down --volumes --remove-orphans
.PHONY: test-integration
test-integration: dev-up ## Run adapter integration tests against disposable dependencies.
POSTGRES_TEST_DSN="$(POSTGRES_TEST_DSN)" go test ./internal/postgresql/...
.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
"$(CONTROLLER_GEN)" rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases