Skip to content

Commit 33b20f2

Browse files
committed
pkg/apis/core: fixup package names
1 parent 3848e0a commit 33b20f2

34 files changed

+5668
-5669
lines changed

Diff for: hack/.golint_failures

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,15 @@ cmd/kubelet/app
1010
cmd/kubelet/app/options
1111
cmd/kubemark
1212
examples/guestbook-go
13-
pkg/api
1413
pkg/api/endpoints
15-
pkg/api/helper
16-
pkg/api/helper/qos
1714
pkg/api/ref
1815
pkg/api/testapi
1916
pkg/api/testing
2017
pkg/api/testing/compat
2118
pkg/api/unversioned
2219
pkg/api/v1/endpoints
23-
pkg/api/v1/helper
24-
pkg/api/v1/helper/qos
2520
pkg/api/v1/pod
2621
pkg/api/v1/resource
27-
pkg/api/v1/validation
28-
pkg/api/validation
2922
pkg/apis/abac
3023
pkg/apis/abac/latest
3124
pkg/apis/admission
@@ -51,6 +44,13 @@ pkg/apis/certificates/v1beta1
5144
pkg/apis/certificates/validation
5245
pkg/apis/componentconfig
5346
pkg/apis/componentconfig/v1alpha1
47+
pkg/apis/core
48+
pkg/apis/core/helper
49+
pkg/apis/core/helper/qos
50+
pkg/apis/core/v1/helper
51+
pkg/apis/core/v1/helper/qos
52+
pkg/apis/core/v1/validation
53+
pkg/apis/core/validation
5454
pkg/apis/extensions
5555
pkg/apis/extensions/validation
5656
pkg/apis/imagepolicy

Diff for: hack/verify-description.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ find_files() {
4343
-o -wholename '*/vendor/*' \
4444
\) -prune \
4545
\) \
46-
\( -wholename '*pkg/api/v*/types.go' \
47-
-o -wholename '*pkg/apis/*/v*/types.go' \
46+
\( -wholename '*pkg/apis/*/v*/types.go' \
4847
-o -wholename '*pkg/api/unversioned/types.go' \
4948
\)
5049
}
@@ -71,7 +70,7 @@ for file in $versioned_api_files; do
7170
fi
7271
done
7372

74-
internal_types_files="${KUBE_ROOT}/pkg/api/types.go ${KUBE_ROOT}/pkg/apis/extensions/types.go"
73+
internal_types_files="${KUBE_ROOT}/pkg/apis/core/types.go ${KUBE_ROOT}/pkg/apis/extensions/types.go"
7574
for internal_types_file in $internal_types_files; do
7675
if [[ ! -e $internal_types_file ]]; then
7776
echo "Internal types file ${internal_types_file} does not exist"

Diff for: pkg/apis/core/annotation_key_constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
// This file should be consistent with pkg/api/v1/annotation_key_constants.go.
1818

19-
package api
19+
package core
2020

2121
const (
2222
// ImagePolicyFailedOpenKey is added to pods created by failing open when the image policy

Diff for: pkg/apis/core/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ limitations under the License.
2121
// The contract presented to clients is located in the versioned packages,
2222
// which are sub-directories. The first one is "v1". Those packages
2323
// describe how a particular version is serialized to storage/network.
24-
package api // import "k8s.io/kubernetes/pkg/api"
24+
package core // import "k8s.io/kubernetes/pkg/apis/core"

Diff for: pkg/apis/core/field_constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package api
17+
package core
1818

1919
// Field path constants that are specific to the internal API
2020
// representation.

0 commit comments

Comments
 (0)