2015-09-11 06:45:30 +00:00
|
|
|
/*
|
2016-06-03 00:25:58 +00:00
|
|
|
Copyright 2015 The Kubernetes Authors.
|
2015-09-11 06:45:30 +00: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.
|
|
|
|
*/
|
|
|
|
|
2015-09-11 01:36:18 +00:00
|
|
|
package master
|
|
|
|
|
2015-09-12 00:20:02 +00:00
|
|
|
// These imports are the API groups the API server will support.
|
2015-09-11 01:36:18 +00:00
|
|
|
import (
|
2015-12-19 05:08:34 +00:00
|
|
|
"fmt"
|
|
|
|
|
2015-09-11 01:36:18 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/api/install"
|
2016-01-13 22:40:56 +00:00
|
|
|
"k8s.io/kubernetes/pkg/apimachinery/registered"
|
2016-04-15 22:30:15 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/apps/install"
|
2015-12-15 18:37:56 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/authorization/install"
|
2016-02-07 18:59:57 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/autoscaling/install"
|
2016-02-17 00:49:44 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/batch/install"
|
2016-04-14 01:45:43 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/certificates/install"
|
2015-10-30 18:31:01 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/componentconfig/install"
|
2015-10-09 22:04:41 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/extensions/install"
|
2016-04-28 22:28:54 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/policy/install"
|
2016-05-25 21:20:41 +00:00
|
|
|
_ "k8s.io/kubernetes/pkg/apis/rbac/install"
|
2015-09-11 01:36:18 +00:00
|
|
|
)
|
2015-12-19 05:08:34 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
if missingVersions := registered.ValidateEnvRequestedVersions(); len(missingVersions) != 0 {
|
|
|
|
panic(fmt.Sprintf("KUBE_API_VERSIONS contains versions that are not installed: %q.", missingVersions))
|
|
|
|
}
|
|
|
|
}
|