kubebuilder's generic scaffold defensively wires up webhook TLS-cert machinery and an unconditional cert-manager install in the e2e suite, in case a project grows admission webhooks later. This one never will -- the spec's non-goals explicitly rule out admission webhooks and cert-manager wiring -- so none of it does anything. Verified before removing: no config/webhook/, no +kubebuilder:webhook markers anywhere, and config/*/kustomization.yaml's [CERTMANAGER] blocks are all inert (never uncommented). cmd/main.go: drops the webhook import, the three webhook-cert-* flags, and the WebhookServer wiring on ctrl.Options -- the manager now runs with no webhook server, correctly, since nothing registers one. Left the metrics-cert flags alone; those are unrelated to webhooks. test/e2e/e2e_suite_test.go: drops the unconditional cert-manager install/uninstall around the suite. test/utils/utils.go: drops the now-dead InstallCertManager/ UninstallCertManager/IsCertManagerCRDsInstalled and their warnError helper, plus UncommentCode -- unrelated to cert-manager, but found to have zero callers even before this cleanup. Left the inert commented-out [WEBHOOK]/[CERTMANAGER] kustomize blocks and kubebuilder's scaffold marker comments alone: pure comments, no runtime behavior, unlike the cert-manager install this actually removed. Verified clean with both build tags (go build/vet, and -tags=e2e for test/e2e). make test unchanged and green. Co-Authored-By: Claude <noreply@anthropic.com>
70 lines
3.7 KiB
JSON
70 lines
3.7 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(go version *)",
|
|
"Bash(go mod *)",
|
|
"Read(//Users/jan.novak/.claude/skills/go-project-bootstrap/references/**)",
|
|
"Bash(ls -la /Users/jan.novak/.claude/skills/go-project-bootstrap/assets/ /Users/jan.novak/.claude/skills/go-project-bootstrap/assets/commands/ /Users/jan.novak/.claude/skills/go-project-bootstrap/assets/agents/ 2>&1)",
|
|
"Read(//Users/jan.novak/.claude/skills/go-project-bootstrap/assets/**)",
|
|
"Read(//Users/jan.novak/.claude/skills/go-project-bootstrap/assets/agents/**)",
|
|
"Read(//Users/jan.novak/.claude/skills/go-project-bootstrap/assets/commands/**)",
|
|
"Bash(mkdir -p /Users/jan.novak/srv/go/egress-proxies-operator/docs/plans && touch /Users/jan.novak/srv/go/egress-proxies-operator/docs/plans/.gitkeep && mkdir -p /Users/jan.novak/srv/go/egress-proxies-operator/.claude/commands /Users/jan.novak/srv/go/egress-proxies-operator/.claude/agents && ls -la /Users/jan.novak/srv/go/egress-proxies-operator)",
|
|
"Bash(git status)",
|
|
"Bash(git status:*)",
|
|
"Bash(git diff:*)",
|
|
"Bash(git log:*)",
|
|
"Bash(git branch:*)",
|
|
"Bash(git add:*)",
|
|
"Bash(git checkout:*)",
|
|
"Bash(git pull:*)",
|
|
"Bash(git fetch:*)",
|
|
"Bash(date:*)",
|
|
"Read(//tmp/**)",
|
|
"Read(//private/tmp/**)",
|
|
"Bash(go build:*)",
|
|
"Bash(go test:*)",
|
|
"Bash(go vet:*)",
|
|
"Bash(go mod:*)",
|
|
"Bash(go run:*)",
|
|
"Bash(go version:*)",
|
|
"Bash(go get:*)",
|
|
"Bash(golangci-lint run:*)",
|
|
"Bash(golangci-lint --version)",
|
|
"Bash(gofumpt:*)",
|
|
"Bash(tea pr create:*)",
|
|
"Bash(curl -sL https://go.dev/dl/?mode=json)",
|
|
"Bash(find / -iname \"docs-conventions.md\" -maxdepth 6)",
|
|
"Read(//Users/jan.novak/.claude/**)",
|
|
"Read(//Users/jan.novak/.claude/skills/**)",
|
|
"Bash(mkdir -p docs/plans && date \"+%Y-%m-%d-%H%M\")",
|
|
"Bash(go install *)",
|
|
"Bash(go env *)",
|
|
"Bash(git rm *)",
|
|
"Bash(mkdir -p /Users/jan.novak/srv/go/egress-proxies-operator/docs/plans-executions)",
|
|
"Bash(cd /Users/jan.novak/srv/go/egress-proxies-operator *)",
|
|
"Bash(echo \"build: $?\")",
|
|
"Bash(echo \"vet: $?\")",
|
|
"Bash(perl -i -pe 's{^\\\\t\\\\t\\\\t\\\\t\\\\t// TODO\\\\\\(user\\\\\\): Specify other spec details if needed\\\\.\\\\n}{\\\\t\\\\t\\\\t\\\\t\\\\t// A minimal, schema-valid spec so this placeholder test survives the\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t// CEL/CRD validation added in Step 1. Rewritten wholesale in Step 4\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t// alongside the real reconciler and envtest suite.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tSpec: crawlv1alpha1.ProxySpec{\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tMode: crawlv1alpha1.ModeExternal,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tEndpoint: &crawlv1alpha1.EndpointSpec{Host: \"10.0.0.1\"},\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t},\\\\n}' internal/controller/proxy_controller_test.go)",
|
|
"Bash(go tool *)",
|
|
"Bash(docker version *)",
|
|
"Bash(curl -sI --max-time 5 https://hub.docker.com)",
|
|
"Bash(kind get *)",
|
|
"Bash(curl -s --max-time 5 \"https://hub.docker.com/v2/repositories/ubuntu/squid/tags?page_size=10\")",
|
|
"Bash(python3 -c ' *)",
|
|
"Bash(curl -s --max-time 5 \"https://hub.docker.com/v2/repositories/ubuntu/squid/tags?page_size=100\")",
|
|
"Bash(go doc *)",
|
|
"Bash(go list *)",
|
|
"Bash(gofmt -w internal/provider/config.go)",
|
|
"Bash(gofmt -l .)",
|
|
"Bash(git restore *)"
|
|
],
|
|
"additionalDirectories": [
|
|
"/Users/jan.novak/srv/go/egress-proxies-operator/.claude",
|
|
"/Users/jan.novak/srv/go/egress-proxies-operator/docs/plans",
|
|
"/Users/jan.novak/srv/go/egress-proxies-operator/docs",
|
|
"/Users/jan.novak/srv/go/egress-proxies-operator/docs/prompts",
|
|
"/tmp"
|
|
]
|
|
}
|
|
}
|