feat: 实现 PostgreSQL 所有权 registry
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user