Skip to content

chore: Remove VPC/VPCAttachment CRDs, operator, and related code#87

Merged
privateip merged 3 commits into
mainfrom
remove-crds
May 22, 2026
Merged

chore: Remove VPC/VPCAttachment CRDs, operator, and related code#87
privateip merged 3 commits into
mainfrom
remove-crds

Conversation

@privateip
Copy link
Copy Markdown
Contributor

VPC and VPCAttachment CRD management is moving to a separate operator project. Galactic now focuses solely on the SRv6 data plane: the DaemonSet agent and CNI plugin receive pre-populated identifiers via CNI config and act on them directly.

Removed:

  • pkg/apis/v1alpha/ — VPC and VPCAttachment CRD types
  • internal/operator/ — all controllers, webhook, cniconfig, identifier
  • internal/cmd/operator/ — operator subcommand
  • config/crd/bases/ — VPC and VPCAttachment CRD YAMLs
  • config/rbac/ — VPC/VPCAttachment role files
  • config/samples/ — VPC, VPCAttachment, and pod samples
  • config/webhook/ — pod mutation webhook manifests
  • config/certmanager/certificate-webhook.yaml
  • config/default/manager_webhook_patch.yaml
  • config/network-policy/allow-webhook-traffic.yaml

Updated:

  • cmd/galactic/main.go — operator subcommand removed; agent/cni/version remain
  • Makefile — removed manifests, generate, run-operator, setup-envtest targets
  • go.mod/go.sum — dropped controller-runtime and ~60 transitive dependencies
  • config/ kustomization files — removed dangling references
  • CLAUDE.md, AGENTS.md, README.md, CONVENTIONS.md — reflect new scope

VPC and VPCAttachment CRD management is moving to a separate operator
project. Galactic now focuses solely on the SRv6 data plane: the
DaemonSet agent and CNI plugin receive pre-populated identifiers via
CNI config and act on them directly.

Removed:
- pkg/apis/v1alpha/ — VPC and VPCAttachment CRD types
- internal/operator/ — all controllers, webhook, cniconfig, identifier
- internal/cmd/operator/ — operator subcommand
- config/crd/bases/ — VPC and VPCAttachment CRD YAMLs
- config/rbac/ — VPC/VPCAttachment role files
- config/samples/ — VPC, VPCAttachment, and pod samples
- config/webhook/ — pod mutation webhook manifests
- config/certmanager/certificate-webhook.yaml
- config/default/manager_webhook_patch.yaml
- config/network-policy/allow-webhook-traffic.yaml

Updated:
- cmd/galactic/main.go — operator subcommand removed; agent/cni/version remain
- Makefile — removed manifests, generate, run-operator, setup-envtest targets
- go.mod/go.sum — dropped controller-runtime and ~60 transitive dependencies
- config/ kustomization files — removed dangling references
- CLAUDE.md, AGENTS.md, README.md, CONVENTIONS.md — reflect new scope

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@privateip privateip requested a review from a team as a code owner May 22, 2026 22:01
@privateip privateip requested a review from scotwells May 22, 2026 22:01
scotwells
scotwells previously approved these changes May 22, 2026
- Remove test-operator job (envtest + controller tests are gone)
- Remove make manifests generate steps from build and release jobs
- Update test-unit to only run pkg/common/util tests
- Remove test-operator from test-e2e needs
- Remove VPC/VPCAttachment CRD verification and sample apply steps from e2e
- Remove make manifests generate from release workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove config/manager/ (deployment ran /galactic operator which no longer exists)
- Remove config/default/metrics_service.yaml and manager_metrics_patch.yaml
- Update config/default/kustomization.yaml to only include crd and rbac
- Remove make deploy, undeploy, build-installer targets from Makefile
- Remove make build-installer step and dist/install.yaml from release workflow
- Remove make deploy and controller-manager wait from e2e job
- Remove ginkgolinter from golangci config (no Ginkgo tests remain)
- Remove dead api/* lll exclusion rule from golangci config

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@privateip privateip requested a review from scotwells May 22, 2026 22:12
@privateip privateip merged commit e5de9b6 into main May 22, 2026
6 checks passed
@privateip privateip deleted the remove-crds branch May 22, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants