|
13 | 13 | # limitations under the License. |
14 | 14 |
|
15 | 15 | # Config for kube-api-linter (github.com/kubernetes-sigs/kube-api-linter), |
16 | | -# run by hack/verify/kube-api-linter.sh against the API types in pkg/api/. |
| 16 | +# run by hack/verify/kube-api-linter.sh against the API types in api/infra/. |
17 | 17 | # It is a separate file from .golangci.yaml because the kubeapilinter module |
18 | 18 | # plugin only exists in the golangci-lint-kube-api-linter binary, not in the |
19 | 19 | # regular golangci-lint one. |
@@ -75,34 +75,34 @@ linters: |
75 | 75 | rules: |
76 | 76 | # Pre-existing findings from rules that require Go API changes |
77 | 77 | # (pointer fields, omitempty/omitzero tags, map-to-list refactors) |
78 | | - # on the existing v1alpha1 types. Each rule names the fields it |
| 78 | + # on the existing ate/v1 types. Each rule names the fields it |
79 | 79 | # excuses, so a field added to one of these types is still checked. |
80 | 80 | # Fixing these on the existing types is tracked in issue #207. |
81 | | - - path: 'pkg/api/v1alpha1/sandboxconfig_types\.go' |
| 81 | + - path: 'api/infra/k8s/ate/v1/sandboxconfig_types\.go' |
82 | 82 | text: '^requiredfields: .*\bAssetFile\.(SHA256|URL)\b' |
83 | | - - path: 'pkg/api/v1alpha1/sandboxconfig_types\.go' |
| 83 | + - path: 'api/infra/k8s/ate/v1/sandboxconfig_types\.go' |
84 | 84 | text: '^(optionalfields|requiredfields): .*\bSandboxConfigSpec\.SandboxClass\b' |
85 | | - - path: 'pkg/api/v1alpha1/sandboxconfig_types\.go' |
| 85 | + - path: 'api/infra/k8s/ate/v1/sandboxconfig_types\.go' |
86 | 86 | text: '^(nomaps|optionalfields): .*\bSandboxVersionConfig\.Assets\b' |
87 | | - - path: 'pkg/api/v1alpha1/sandboxconfig_types\.go' |
| 87 | + - path: 'api/infra/k8s/ate/v1/sandboxconfig_types\.go' |
88 | 88 | text: '^(nonpointerstructs|requiredfields): .*\bSandboxConfig\.Spec\b' |
89 | | - - path: 'pkg/api/v1alpha1/csidriverconfig_types\.go' |
| 89 | + - path: 'api/infra/k8s/ate/v1/csidriverconfig_types\.go' |
90 | 90 | text: '^requiredfields: .*\bCSIDriverConfigSpec\.(ControllerEndpoint|DriverName)\b' |
91 | | - - path: 'pkg/api/v1alpha1/csidriverconfig_types\.go' |
| 91 | + - path: 'api/infra/k8s/ate/v1/csidriverconfig_types\.go' |
92 | 92 | text: '^optionalfields: .*\bCSIDriverConfigSpec\.NodeSocketOverride\b' |
93 | | - - path: 'pkg/api/v1alpha1/csidriverconfig_types\.go' |
| 93 | + - path: 'api/infra/k8s/ate/v1/csidriverconfig_types\.go' |
94 | 94 | text: '^requiredfields: .*\bCSIDriverTLSConfig\.Enabled\b' |
95 | | - - path: 'pkg/api/v1alpha1/csidriverconfig_types\.go' |
| 95 | + - path: 'api/infra/k8s/ate/v1/csidriverconfig_types\.go' |
96 | 96 | text: '^optionalfields: .*\bCSIDriverTLSConfig\.(ServerName|UsePodIdentity)\b' |
97 | | - - path: 'pkg/api/v1alpha1/csidriverconfig_types\.go' |
| 97 | + - path: 'api/infra/k8s/ate/v1/csidriverconfig_types\.go' |
98 | 98 | text: '^(nonpointerstructs|requiredfields): .*\bCSIDriverConfig\.Spec\b' |
99 | | - - path: 'pkg/api/v1alpha1/workerpool_types\.go' |
| 99 | + - path: 'api/infra/k8s/ate/v1/workerpool_types\.go' |
100 | 100 | text: '^optionalfields: .*\bWorkerPoolPodTemplate\.PriorityClassName\b' |
101 | | - - path: 'pkg/api/v1alpha1/workerpool_types\.go' |
| 101 | + - path: 'api/infra/k8s/ate/v1/workerpool_types\.go' |
102 | 102 | text: '^(optionalfields|requiredfields): .*\bWorkerPoolSpec\.(Replicas|WorkerImage)\b' |
103 | | - - path: 'pkg/api/v1alpha1/workerpool_types\.go' |
| 103 | + - path: 'api/infra/k8s/ate/v1/workerpool_types\.go' |
104 | 104 | text: '^optionalfields: .*\bWorkerPoolStatus\.(ReadyReplicas|Replicas|Selector)\b' |
105 | | - - path: 'pkg/api/v1alpha1/workerpool_types\.go' |
| 105 | + - path: 'api/infra/k8s/ate/v1/workerpool_types\.go' |
106 | 106 | text: '^(optionalfields|requiredfields): .*\bWorkerPool\.(Spec|Status)\b' |
107 | 107 |
|
108 | 108 | issues: |
|
0 commit comments