pacoxu / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
2 stars 4 forks source link

move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. #1766

Open github-actions[bot] opened 3 years ago

github-actions[bot] commented 3 years ago

move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.

localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.

https://github.com/pacoxu/kubernetes/blob/628f5f99fed4c277c3e3b94b83d229ee97ad0919/staging/src/k8s.io/api/admissionregistration/v1beta1/register.go#L36

}

// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
var (
    // SchemeBuilder points to a list of functions added to Scheme.
    SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
    localSchemeBuilder = &SchemeBuilder
    // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme.
    AddToScheme = localSchemeBuilder.AddToScheme
)

// Adds the list of known types to scheme.
ndex 2297b7e130ff5..67937509f46bf 100644
++ b/staging/src/k8s.io/api/admissionregistration/v1beta1/types.go

11e031e0c2cebe95b62cea947fbc66805b19e5b6