2016-02-21 16:13:08 -08:00
|
|
|
/*
|
2017-04-01 11:42:02 -03:00
|
|
|
Copyright 2017 The Kubernetes Authors.
|
2016-02-21 16:13:08 -08:00
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-04-01 11:42:02 -03:00
|
|
|
package v1alpha1
|
2016-02-21 16:13:08 -08:00
|
|
|
|
|
|
|
|
import (
|
2017-07-16 15:30:35 -04:00
|
|
|
settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
|
2017-04-01 11:42:02 -03:00
|
|
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
2016-02-21 16:13:08 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// GroupName is the group name use in this package
|
2017-04-01 11:42:02 -03:00
|
|
|
const GroupName = "settings.k8s.io"
|
2016-02-21 16:13:08 -08:00
|
|
|
|
|
|
|
|
// SchemeGroupVersion is group version used to register these objects
|
2017-04-01 11:42:02 -03:00
|
|
|
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
2016-02-21 16:13:08 -08:00
|
|
|
|
2016-09-21 20:00:42 -03:00
|
|
|
// Resource takes an unqualified resource and returns a Group qualified GroupResource
|
2017-04-01 11:42:02 -03:00
|
|
|
func Resource(resource string) schema.GroupResource {
|
2016-02-21 16:13:08 -08:00
|
|
|
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-10 14:53:55 -04:00
|
|
|
var (
|
2017-07-16 15:30:35 -04:00
|
|
|
localSchemeBuilder = &settingsv1alpha1.SchemeBuilder
|
2017-05-20 20:11:38 -04:00
|
|
|
AddToScheme = localSchemeBuilder.AddToScheme
|
2016-08-10 14:53:55 -04:00
|
|
|
)
|
2016-06-21 11:58:43 -07:00
|
|
|
|
2017-05-20 20:11:38 -04:00
|
|
|
func init() {
|
|
|
|
|
// We only register manually written functions here. The registration of the
|
|
|
|
|
// generated functions takes place in the generated files. The separation
|
|
|
|
|
// makes the code compile even when the generated files are missing.
|
2017-07-16 15:30:35 -04:00
|
|
|
localSchemeBuilder.Register(RegisterDefaults)
|
2016-02-21 16:13:08 -08:00
|
|
|
}
|