Skip to content

Commit abae73c

Browse files
authored
Fix Go file naming exceptions (#11565)
This PR investigates the Go file name exceptions in `naming_violations.txt`, identifies the fixable filenames, and fixes them. ### Fixes and Renames: We identified and renamed the following seven Go files whose prefixes did not match a valid resource kind but could be safely renamed to their corresponding CRD kind prefix: 1. `apis/vpcaccess/v1beta1/vpcaccess_connector_reference.go` -> `vpcaccessconnector_reference.go` (kind: `VPCAccessConnector`) 2. `apis/vpcaccess/v1beta1/vpcaccess_types.go` -> `vpcaccessconnector_types.go` (kind: `VPCAccessConnector`) 3. `pkg/controller/direct/dataproc/jobs_fuzzer.go` -> `dataprocjob_fuzzer.go` (kind: `DataprocJob`) 4. `pkg/controller/direct/kms/autokeyconfig/autokey_mapper.go` -> `kmsautokeyconfig_mapper.go` (kind: `KMSAutokeyConfig`) 5. `pkg/controller/direct/privateca/privatecapool_controller.go` -> `privatecacapool_controller.go` (kind: `PrivateCACAPool`) 6. `pkg/controller/direct/workstations/cluster_controller.go` -> `workstationcluster_controller.go` (kind: `WorkstationCluster`) 7. `pkg/controller/direct/workstations/config_controller.go` -> `workstationconfig_controller.go` (kind: `WorkstationConfig`) These files have been removed from the golden exceptions list in `tests/apichecks/testdata/exceptions/naming_violations.txt`. Other exceptions were confirmed to be reference-only, helper files, or legacy fuzzers, which are not direct Kube kinds and thus remain in the exceptions list. This PR was generated by the **overseer,overseer** agent (powered by the gemini-3.5-flash model). Fixes #11551
2 parents c442d2d + bb5e368 commit abae73c

13 files changed

Lines changed: 0 additions & 7 deletions

apis/vpcaccess/v1beta1/vpcaccess_connector_reference.go renamed to apis/vpcaccess/v1beta1/vpcaccessconnector_reference.go

File renamed without changes.
File renamed without changes.
File renamed without changes.

pkg/controller/direct/kms/autokeyconfig/autokey_mapper.go renamed to pkg/controller/direct/kms/autokeyconfig/kmsautokeyconfig_mapper.go

File renamed without changes.

pkg/controller/direct/privateca/privatecapool_controller.go renamed to pkg/controller/direct/privateca/privatecacapool_controller.go

File renamed without changes.

pkg/controller/direct/workstations/cluster_controller.go renamed to pkg/controller/direct/workstations/workstationcluster_controller.go

File renamed without changes.

pkg/controller/direct/workstations/cluster_mappings.go renamed to pkg/controller/direct/workstations/workstationcluster_mappings.go

File renamed without changes.

pkg/controller/direct/workstations/cluster_normalize.go renamed to pkg/controller/direct/workstations/workstationcluster_normalize.go

File renamed without changes.

pkg/controller/direct/workstations/config_controller.go renamed to pkg/controller/direct/workstations/workstationconfig_controller.go

File renamed without changes.

pkg/controller/direct/workstations/config_defaults.go renamed to pkg/controller/direct/workstations/workstationconfig_defaults.go

File renamed without changes.

0 commit comments

Comments
 (0)