Cloning v1beta3 as v1 and exposing it in the apiserver

This commit is contained in:
nikhiljindal
2015-04-28 12:23:13 -07:00
parent 83093af8b0
commit c4d7e19c8c
10 changed files with 5260 additions and 3 deletions

View File

@@ -225,6 +225,8 @@ func (s *APIServer) Run(_ []string) error {
disableV1beta3 = true
}
_, enableV1 := s.RuntimeConfig["api/v1"]
// TODO: expose same flags as client.BindClientConfigFlags but for a server
clientConfig := &client.Config{
Host: net.JoinHostPort(s.InsecureBindAddress.String(), strconv.Itoa(s.InsecurePort)),
@@ -298,6 +300,7 @@ func (s *APIServer) Run(_ []string) error {
Authorizer: authorizer,
AdmissionControl: admissionController,
DisableV1Beta3: disableV1beta3,
EnableV1: enableV1,
MasterServiceNamespace: s.MasterServiceNamespace,
ClusterName: s.ClusterName,
ExternalHost: s.ExternalHost,