From 7bcc4a67552195bd9648c5262d874ef079b155c3 Mon Sep 17 00:00:00 2001 From: nikhiljindal Date: Mon, 12 Oct 2015 17:40:37 -0700 Subject: [PATCH 1/4] Allowing runtimeConfig to support enabling/disabling specific extension resources --- cmd/kube-apiserver/app/server.go | 92 +++++++--- cmd/kube-apiserver/app/server_test.go | 93 ++++++++++ pkg/master/master.go | 193 ++++++++++++--------- pkg/master/master_test.go | 4 +- test/integration/framework/master_utils.go | 2 - 5 files changed, 273 insertions(+), 111 deletions(-) diff --git a/cmd/kube-apiserver/app/server.go b/cmd/kube-apiserver/app/server.go index e3a9da71eac..d260b4bca66 100644 --- a/cmd/kube-apiserver/app/server.go +++ b/cmd/kube-apiserver/app/server.go @@ -408,30 +408,11 @@ func (s *APIServer) Run(_ []string) error { glog.Fatalf("Failure to start kubelet client: %v", err) } - // "api/all=false" allows users to selectively enable specific api versions. - disableAllAPIs := false - allAPIFlagValue, ok := s.RuntimeConfig["api/all"] - if ok && allAPIFlagValue == "false" { - disableAllAPIs = true + apiGroupVersionOverrides, err := s.parseRuntimeConfig() + if err != nil { + glog.Fatalf("error in parsing runtime-config: %s", err) } - // "api/legacy=false" allows users to disable legacy api versions. - disableLegacyAPIs := false - legacyAPIFlagValue, ok := s.RuntimeConfig["api/legacy"] - if ok && legacyAPIFlagValue == "false" { - disableLegacyAPIs = true - } - _ = disableLegacyAPIs // hush the compiler while we don't have legacy APIs to disable. - - // "api/v1={true|false} allows users to enable/disable v1 API. - // This takes preference over api/all and api/legacy, if specified. - disableV1 := disableAllAPIs - disableV1 = !s.getRuntimeConfigValue("api/v1", !disableV1) - - // "extensions/v1beta1={true|false} allows users to enable/disable the experimental API. - // This takes preference over api/all, if specified. - enableExp := s.getRuntimeConfigValue("extensions/v1beta1", false) - clientConfig := &client.Config{ Host: net.JoinHostPort(s.InsecureBindAddress.String(), strconv.Itoa(s.InsecurePort)), Version: s.DeprecatedStorageVersion, @@ -458,17 +439,17 @@ func (s *APIServer) Run(_ []string) error { } storageDestinations.AddAPIGroup("", etcdStorage) - if enableExp { + if !apiGroupVersionOverrides["extensions/v1beta1"].Disable { expGroup, err := latest.Group("extensions") if err != nil { - glog.Fatalf("Experimental API is enabled in runtime config, but not enabled in the environment variable KUBE_API_VERSIONS. Error: %v", err) + glog.Fatalf("Extensions API is enabled in runtime config, but not enabled in the environment variable KUBE_API_VERSIONS. Error: %v", err) } if _, found := storageVersions[expGroup.Group]; !found { glog.Fatalf("Couldn't find the storage version for group: %q in storageVersions: %v", expGroup.Group, storageVersions) } expEtcdStorage, err := newEtcd(s.EtcdConfigFile, s.EtcdServerList, expGroup.InterfacesFor, storageVersions[expGroup.Group], s.EtcdPathPrefix) if err != nil { - glog.Fatalf("Invalid experimental storage version or misconfigured etcd: %v", err) + glog.Fatalf("Invalid extensions storage version or misconfigured etcd: %v", err) } storageDestinations.AddAPIGroup("extensions", expEtcdStorage) } @@ -558,8 +539,7 @@ func (s *APIServer) Run(_ []string) error { SupportsBasicAuth: len(s.BasicAuthFile) > 0, Authorizer: authorizer, AdmissionControl: admissionController, - DisableV1: disableV1, - EnableExp: enableExp, + APIGroupVersionOverrides: apiGroupVersionOverrides, MasterServiceNamespace: s.MasterServiceNamespace, ClusterName: s.ClusterName, ExternalHost: s.ExternalHost, @@ -680,3 +660,61 @@ func (s *APIServer) getRuntimeConfigValue(apiKey string, defaultValue bool) bool } return defaultValue } + +// Parses the given runtime-config and formats it into map[string]ApiGroupVersionOverride +func (s *APIServer) parseRuntimeConfig() (map[string]master.APIGroupVersionOverride, error) { + // "api/all=false" allows users to selectively enable specific api versions. + disableAllAPIs := false + allAPIFlagValue, ok := s.RuntimeConfig["api/all"] + if ok && allAPIFlagValue == "false" { + disableAllAPIs = true + } + + // "api/legacy=false" allows users to disable legacy api versions. + disableLegacyAPIs := false + legacyAPIFlagValue, ok := s.RuntimeConfig["api/legacy"] + if ok && legacyAPIFlagValue == "false" { + disableLegacyAPIs = true + } + _ = disableLegacyAPIs // hush the compiler while we don't have legacy APIs to disable. + + // "api/v1={true|false} allows users to enable/disable v1 API. + // This takes preference over api/all and api/legacy, if specified. + disableV1 := disableAllAPIs + v1GroupVersion := "api/v1" + disableV1 = !s.getRuntimeConfigValue(v1GroupVersion, !disableV1) + apiGroupVersionOverrides := map[string]master.APIGroupVersionOverride{} + if disableV1 { + apiGroupVersionOverrides[v1GroupVersion] = master.APIGroupVersionOverride{ + Disable: true, + } + } + + // "extensions/v1beta1={true|false} allows users to enable/disable the extensions API. + // This takes preference over api/all, if specified. + disableExtensions := disableAllAPIs + extensionsGroupVersion := "extensions/v1beta1" + // TODO: Make this a loop over all group/versions when there are more of them. + disableExtensions = !s.getRuntimeConfigValue(extensionsGroupVersion, !disableExtensions) + if disableExtensions { + apiGroupVersionOverrides[extensionsGroupVersion] = master.APIGroupVersionOverride{ + Disable: true, + } + } + + for key := range s.RuntimeConfig { + if strings.HasPrefix(key, v1GroupVersion+"/") { + return nil, fmt.Errorf("api/v1 resources cannot be enabled/disabled individually") + } else if strings.HasPrefix(key, extensionsGroupVersion+"/") { + resource := strings.TrimPrefix(key, extensionsGroupVersion+"/") + + apiGroupVersionOverride := apiGroupVersionOverrides[extensionsGroupVersion] + if apiGroupVersionOverride.ResourceOverrides == nil { + apiGroupVersionOverride.ResourceOverrides = map[string]bool{} + } + apiGroupVersionOverride.ResourceOverrides[resource] = s.getRuntimeConfigValue(key, false) + apiGroupVersionOverrides[extensionsGroupVersion] = apiGroupVersionOverride + } + } + return apiGroupVersionOverrides, nil +} diff --git a/cmd/kube-apiserver/app/server_test.go b/cmd/kube-apiserver/app/server_test.go index 0d83beec9d7..dc8bdf3bbf1 100644 --- a/cmd/kube-apiserver/app/server_test.go +++ b/cmd/kube-apiserver/app/server_test.go @@ -154,3 +154,96 @@ func TestUpdateEtcdOverrides(t *testing.T) { } } } + +func TestParseRuntimeConfig(t *testing.T) { + testCases := []struct { + runtimeConfig map[string]string + apiGroupVersionOverrides map[string]master.APIGroupVersionOverride + err bool + }{ + { + runtimeConfig: map[string]string{}, + apiGroupVersionOverrides: map[string]master.APIGroupVersionOverride{}, + err: false, + }, + { + // Cannot override v1 resources. + runtimeConfig: map[string]string{ + "api/v1/pods": "false", + }, + apiGroupVersionOverrides: map[string]master.APIGroupVersionOverride{}, + err: true, + }, + { + // Disable v1. + runtimeConfig: map[string]string{ + "api/v1": "false", + }, + apiGroupVersionOverrides: map[string]master.APIGroupVersionOverride{ + "api/v1": { + Disable: true, + }, + }, + err: false, + }, + { + // Disable extensions. + runtimeConfig: map[string]string{ + "extensions/v1beta1": "false", + }, + apiGroupVersionOverrides: map[string]master.APIGroupVersionOverride{ + "extensions/v1beta1": { + Disable: true, + }, + }, + err: false, + }, + { + // Disable deployments. + runtimeConfig: map[string]string{ + "extensions/v1beta1/deployments": "false", + }, + apiGroupVersionOverrides: map[string]master.APIGroupVersionOverride{ + "extensions/v1beta1": { + ResourceOverrides: map[string]bool{ + "deployments": false, + }, + }, + }, + err: false, + }, + { + // Enable deployments and disable jobs. + runtimeConfig: map[string]string{ + "extensions/v1beta1/deployments": "true", + "extensions/v1beta1/jobs": "false", + }, + apiGroupVersionOverrides: map[string]master.APIGroupVersionOverride{ + "extensions/v1beta1": { + ResourceOverrides: map[string]bool{ + "deployments": true, + "jobs": false, + }, + }, + }, + err: false, + }, + } + for _, test := range testCases { + s := &APIServer{ + RuntimeConfig: test.runtimeConfig, + } + apiGroupVersionOverrides, err := s.parseRuntimeConfig() + + if err == nil && test.err { + t.Fatalf("expected error for test: %q", test) + } else if err != nil && !test.err { + t.Fatalf("unexpected error: %s, for test: %q", err, test) + } + + if err == nil && !reflect.DeepEqual(apiGroupVersionOverrides, test.apiGroupVersionOverrides) { + t.Fatalf("unexpected apiGroupVersionOverrides. Actual: %q, expected: %q", apiGroupVersionOverrides, test.apiGroupVersionOverrides) + } + } + +} diff --git a/pkg/master/master.go b/pkg/master/master.go index d62afadcd55..24bb3b13810 100644 --- a/pkg/master/master.go +++ b/pkg/master/master.go @@ -80,6 +80,7 @@ import ( "k8s.io/kubernetes/pkg/ui" "k8s.io/kubernetes/pkg/util" "k8s.io/kubernetes/pkg/util/sets" + utilSets "k8s.io/kubernetes/pkg/util/sets" daemonetcd "k8s.io/kubernetes/pkg/registry/daemonset/etcd" horizontalpodautoscaleretcd "k8s.io/kubernetes/pkg/registry/horizontalpodautoscaler/etcd" @@ -166,6 +167,15 @@ func (s *StorageDestinations) backends() []string { return backends.List() } +// Specifies the overrides for various API group versions. +// This can be used to enable/disable entire group versions or specific resources. +type APIGroupVersionOverride struct { + // Whether to enable or disable this group version. + Disable bool + // List of overrides for individual resources in this group version. + ResourceOverrides map[string]bool +} + // Config is a structure used to configure a Master. type Config struct { StorageDestinations StorageDestinations @@ -180,9 +190,8 @@ type Config struct { EnableUISupport bool // allow downstream consumers to disable swagger EnableSwaggerSupport bool - // allow api versions to be conditionally disabled - DisableV1 bool - EnableExp bool + // Allows api group versions or specific resources to be conditionally enabled/disabled. + APIGroupVersionOverrides map[string]APIGroupVersionOverride // allow downstream consumers to disable the index route EnableIndex bool EnableProfiling bool @@ -271,26 +280,25 @@ type Master struct { cacheTimeout time.Duration minRequestTimeout time.Duration - mux apiserver.Mux - muxHelper *apiserver.MuxHelper - handlerContainer *restful.Container - rootWebService *restful.WebService - enableCoreControllers bool - enableLogsSupport bool - enableUISupport bool - enableSwaggerSupport bool - enableProfiling bool - enableWatchCache bool - apiPrefix string - apiGroupPrefix string - corsAllowedOriginList []string - authenticator authenticator.Request - authorizer authorizer.Authorizer - admissionControl admission.Interface - masterCount int - v1 bool - exp bool - requestContextMapper api.RequestContextMapper + mux apiserver.Mux + muxHelper *apiserver.MuxHelper + handlerContainer *restful.Container + rootWebService *restful.WebService + enableCoreControllers bool + enableLogsSupport bool + enableUISupport bool + enableSwaggerSupport bool + enableProfiling bool + enableWatchCache bool + apiPrefix string + apiGroupPrefix string + corsAllowedOriginList []string + authenticator authenticator.Request + authorizer authorizer.Authorizer + admissionControl admission.Interface + masterCount int + apiGroupVersionOverrides map[string]APIGroupVersionOverride + requestContextMapper api.RequestContextMapper // External host is the name that should be used in external (public internet) URLs for this master externalHost string @@ -435,24 +443,23 @@ func New(c *Config) *Master { } m := &Master{ - serviceClusterIPRange: c.ServiceClusterIPRange, - serviceNodePortRange: c.ServiceNodePortRange, - rootWebService: new(restful.WebService), - enableCoreControllers: c.EnableCoreControllers, - enableLogsSupport: c.EnableLogsSupport, - enableUISupport: c.EnableUISupport, - enableSwaggerSupport: c.EnableSwaggerSupport, - enableProfiling: c.EnableProfiling, - enableWatchCache: c.EnableWatchCache, - apiPrefix: c.APIPrefix, - apiGroupPrefix: c.APIGroupPrefix, - corsAllowedOriginList: c.CorsAllowedOriginList, - authenticator: c.Authenticator, - authorizer: c.Authorizer, - admissionControl: c.AdmissionControl, - v1: !c.DisableV1, - exp: c.EnableExp, - requestContextMapper: c.RequestContextMapper, + serviceClusterIPRange: c.ServiceClusterIPRange, + serviceNodePortRange: c.ServiceNodePortRange, + rootWebService: new(restful.WebService), + enableCoreControllers: c.EnableCoreControllers, + enableLogsSupport: c.EnableLogsSupport, + enableUISupport: c.EnableUISupport, + enableSwaggerSupport: c.EnableSwaggerSupport, + enableProfiling: c.EnableProfiling, + enableWatchCache: c.EnableWatchCache, + apiPrefix: c.APIPrefix, + apiGroupPrefix: c.APIGroupPrefix, + corsAllowedOriginList: c.CorsAllowedOriginList, + authenticator: c.Authenticator, + authorizer: c.Authorizer, + admissionControl: c.AdmissionControl, + apiGroupVersionOverrides: c.APIGroupVersionOverrides, + requestContextMapper: c.RequestContextMapper, cacheTimeout: c.CacheTimeout, minRequestTimeout: time.Duration(c.MinRequestTimeout) * time.Second, @@ -624,7 +631,8 @@ func (m *Master) init(c *Config) { } apiVersions := []string{} - if m.v1 { + // Install v1 unless disabled. + if !m.apiGroupVersionOverrides["api/v1"].Disable { if err := m.api_v1().InstallREST(m.handlerContainer); err != nil { glog.Fatalf("Unable to setup API v1: %v", err) } @@ -637,7 +645,8 @@ func (m *Master) init(c *Config) { // allGroups records all supported groups at /apis allGroups := []unversioned.APIGroup{} - if m.exp { + // Install extensions unless disabled. + if !m.apiGroupVersionOverrides["extensions/v1beta1"].Disable { m.thirdPartyStorage = c.StorageDestinations.APIGroups["extensions"].Default m.thirdPartyResources = map[string]*thirdpartyresourcedataetcd.REST{} @@ -1023,45 +1032,71 @@ func (m *Master) thirdpartyapi(group, kind, version string) *apiserver.APIGroupV // experimental returns the resources and codec for the experimental api func (m *Master) experimental(c *Config) *apiserver.APIGroupVersion { - controllerStorage := expcontrolleretcd.NewStorage(c.StorageDestinations.get("", "replicationControllers")) + // All resources except these are disabled by default. + enabledResources := utilSets.NewString("jobs", "horizontalpodautoscalers", "ingress") + resourceOverrides := m.apiGroupVersionOverrides["extensions/v1beta1"].ResourceOverrides + isEnabled := func(resource string) bool { + // Check if the resource has been overriden. + enabled, ok := resourceOverrides[resource] + if !ok { + return enabledResources.Has(resource) + } + return enabled + } dbClient := func(resource string) storage.Interface { return c.StorageDestinations.get("extensions", resource) } - autoscalerStorage, autoscalerStatusStorage := horizontalpodautoscaleretcd.NewREST(dbClient("horizonalpodautoscalers")) - thirdPartyResourceStorage := thirdpartyresourceetcd.NewREST(dbClient("thirdpartyresources")) - daemonSetStorage, daemonSetStatusStorage := daemonetcd.NewREST(dbClient("daemonsets")) - deploymentStorage := deploymentetcd.NewStorage(dbClient("deployments")) - jobStorage, jobStatusStorage := jobetcd.NewREST(dbClient("jobs")) - ingressStorage, ingressStatusStorage := ingressetcd.NewREST(dbClient("ingress")) - thirdPartyControl := ThirdPartyController{ - master: m, - thirdPartyResourceRegistry: thirdPartyResourceStorage, + storage := map[string]rest.Storage{} + if isEnabled("replicationcontrollers") { + controllerStorage := expcontrolleretcd.NewStorage(c.StorageDestinations.get("", "replicationControllers")) + storage["replicationcontrollers"] = controllerStorage.ReplicationController + storage["replicationcontrollers/scale"] = controllerStorage.Scale } - go func() { - util.Forever(func() { - if err := thirdPartyControl.SyncResources(); err != nil { - glog.Warningf("third party resource sync failed: %v", err) - } - }, 10*time.Second) - }() - storage := map[string]rest.Storage{ - strings.ToLower("replicationControllers"): controllerStorage.ReplicationController, - strings.ToLower("replicationControllers/scale"): controllerStorage.Scale, - strings.ToLower("horizontalpodautoscalers"): autoscalerStorage, - strings.ToLower("horizontalpodautoscalers/status"): autoscalerStatusStorage, - strings.ToLower("thirdpartyresources"): thirdPartyResourceStorage, - strings.ToLower("daemonsets"): daemonSetStorage, - strings.ToLower("daemonsets/status"): daemonSetStatusStorage, - strings.ToLower("deployments"): deploymentStorage.Deployment, - strings.ToLower("deployments/scale"): deploymentStorage.Scale, - strings.ToLower("jobs"): jobStorage, - strings.ToLower("jobs/status"): jobStatusStorage, - strings.ToLower("ingress"): ingressStorage, - strings.ToLower("ingress/status"): ingressStatusStorage, + if isEnabled("horizontalpodautoscalers") { + autoscalerStorage, autoscalerStatusStorage := horizontalpodautoscaleretcd.NewREST(dbClient("horizonalpodautoscalers")) + storage["horizontalpodautoscalers"] = autoscalerStorage + storage["horizontalpodautoscalers/status"] = autoscalerStatusStorage + } + if isEnabled("thirdpartyresources") { + thirdPartyResourceStorage := thirdpartyresourceetcd.NewREST(dbClient("thirdpartyresources")) + thirdPartyControl := ThirdPartyController{ + master: m, + thirdPartyResourceRegistry: thirdPartyResourceStorage, + } + go func() { + util.Forever(func() { + if err := thirdPartyControl.SyncResources(); err != nil { + glog.Warningf("third party resource sync failed: %v", err) + } + }, 10*time.Second) + }() + + storage["thirdpartyresources"] = thirdPartyResourceStorage } - expMeta := latest.GroupOrDie("extensions") + if isEnabled("daemonsets") { + daemonSetStorage, daemonSetStatusStorage := daemonetcd.NewREST(dbClient("daemonsets")) + storage["daemonsets"] = daemonSetStorage + storage["daemonsets/status"] = daemonSetStatusStorage + } + if isEnabled("deployments") { + deploymentStorage := deploymentetcd.NewStorage(dbClient("deployments")) + storage["deployments"] = deploymentStorage.Deployment + storage["deployments/scale"] = deploymentStorage.Scale + } + if isEnabled("jobs") { + jobStorage, jobStatusStorage := jobetcd.NewREST(dbClient("jobs")) + storage["jobs"] = jobStorage + storage["jobs/status"] = jobStatusStorage + } + if isEnabled("ingress") { + ingressStorage, ingressStatusStorage := ingressetcd.NewREST(dbClient("ingress")) + storage["ingress"] = ingressStorage + storage["ingress/status"] = ingressStatusStorage + } + + extensionsGroup := latest.GroupOrDie("extensions") return &apiserver.APIGroupVersion{ Root: m.apiGroupPrefix, @@ -1071,11 +1106,11 @@ func (m *Master) experimental(c *Config) *apiserver.APIGroupVersion { Convertor: api.Scheme, Typer: api.Scheme, - Mapper: expMeta.RESTMapper, - Codec: expMeta.Codec, - Linker: expMeta.SelfLinker, + Mapper: extensionsGroup.RESTMapper, + Codec: extensionsGroup.Codec, + Linker: extensionsGroup.SelfLinker, Storage: storage, - Version: expMeta.GroupVersion, + Version: extensionsGroup.GroupVersion, ServerVersion: latest.GroupOrDie("").GroupVersion, Admit: m.admissionControl, diff --git a/pkg/master/master_test.go b/pkg/master/master_test.go index ba393f7d9b9..d1d8b380b4a 100644 --- a/pkg/master/master_test.go +++ b/pkg/master/master_test.go @@ -100,8 +100,7 @@ func TestNew(t *testing.T) { assert.Equal(master.authenticator, config.Authenticator) assert.Equal(master.authorizer, config.Authorizer) assert.Equal(master.admissionControl, config.AdmissionControl) - assert.Equal(master.v1, !config.DisableV1) - assert.Equal(master.exp, config.EnableExp) + assert.Equal(master.apiGroupVersionOverrides, config.APIGroupVersionOverrides) assert.Equal(master.requestContextMapper, config.RequestContextMapper) assert.Equal(master.cacheTimeout, config.CacheTimeout) assert.Equal(master.masterCount, config.MasterCount) @@ -366,7 +365,6 @@ func TestGetNodeAddresses(t *testing.T) { func TestDiscoveryAtAPIS(t *testing.T) { master, config, assert := setUp(t) - master.exp = true // ================= preparation for master.init() ====================== portRange := util.PortRange{Base: 10, Size: 10} master.serviceNodePortRange = portRange diff --git a/test/integration/framework/master_utils.go b/test/integration/framework/master_utils.go index 27f4772a46b..08a25b15864 100644 --- a/test/integration/framework/master_utils.go +++ b/test/integration/framework/master_utils.go @@ -144,7 +144,6 @@ func startMasterOrDie(masterConfig *master.Config) (*master.Master, *httptest.Se StorageDestinations: storageDestinations, StorageVersions: storageVersions, KubeletClient: client.FakeKubeletClient{}, - EnableExp: true, EnableLogsSupport: false, EnableProfiling: true, EnableSwaggerSupport: true, @@ -292,7 +291,6 @@ func RunAMaster(t *testing.T) (*master.Master, *httptest.Server) { EnableUISupport: false, APIPrefix: "/api", APIGroupPrefix: "/apis", - EnableExp: true, Authorizer: apiserver.NewAlwaysAllowAuthorizer(), AdmissionControl: admit.NewAlwaysAdmit(), StorageVersions: storageVersions, From 39e461b7f902451c764ceeb276d9fb8c9da971e1 Mon Sep 17 00:00:00 2001 From: nikhiljindal Date: Wed, 14 Oct 2015 16:27:41 -0700 Subject: [PATCH 2/4] Updating swagger spec to include the new extension resources that are enabled by default --- api/swagger-spec/resourceListing.json | 8 + api/swagger-spec/v1beta1.json | 3748 +++++++++++++++++++++++ hack/after-build/update-swagger-spec.sh | 2 +- 3 files changed, 3757 insertions(+), 1 deletion(-) create mode 100644 api/swagger-spec/v1beta1.json diff --git a/api/swagger-spec/resourceListing.json b/api/swagger-spec/resourceListing.json index f67b2d1b44d..eb095d2f7f9 100644 --- a/api/swagger-spec/resourceListing.json +++ b/api/swagger-spec/resourceListing.json @@ -9,6 +9,14 @@ "path": "/api", "description": "get available API versions" }, + { + "path": "/apis/extensions/v1beta1", + "description": "API at /apis/extensions/v1beta1" + }, + { + "path": "/apis/extensions/", + "description": "get information of a group" + }, { "path": "/apis", "description": "get available API versions" diff --git a/api/swagger-spec/v1beta1.json b/api/swagger-spec/v1beta1.json new file mode 100644 index 00000000000..1da9fff45e0 --- /dev/null +++ b/api/swagger-spec/v1beta1.json @@ -0,0 +1,3748 @@ +{ + "swaggerVersion": "1.2", + "apiVersion": "extensions/v1beta1", + "basePath": "https://10.10.10.10:6443", + "resourcePath": "/apis/extensions/v1beta1", + "apis": [ + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.HorizontalPodAutoscalerList", + "method": "GET", + "summary": "list or watch objects of kind HorizontalPodAutoscaler", + "nickname": "listNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscalerList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.HorizontalPodAutoscaler", + "method": "POST", + "summary": "create a HorizontalPodAutoscaler", + "nickname": "createNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.HorizontalPodAutoscaler", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscaler" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of HorizontalPodAutoscaler", + "nickname": "watchNamespacedHorizontalPodAutoscalerList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.HorizontalPodAutoscaler", + "method": "GET", + "summary": "read the specified HorizontalPodAutoscaler", + "nickname": "readNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the HorizontalPodAutoscaler", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscaler" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.HorizontalPodAutoscaler", + "method": "PUT", + "summary": "replace the specified HorizontalPodAutoscaler", + "nickname": "replaceNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.HorizontalPodAutoscaler", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the HorizontalPodAutoscaler", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscaler" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.HorizontalPodAutoscaler", + "method": "PATCH", + "summary": "partially update the specified HorizontalPodAutoscaler", + "nickname": "patchNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "unversioned.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the HorizontalPodAutoscaler", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscaler" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete a HorizontalPodAutoscaler", + "nickname": "deleteNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the HorizontalPodAutoscaler", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind HorizontalPodAutoscaler", + "nickname": "watchNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the HorizontalPodAutoscaler", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/horizontalpodautoscalers", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.HorizontalPodAutoscalerList", + "method": "GET", + "summary": "list or watch objects of kind HorizontalPodAutoscaler", + "nickname": "listHorizontalPodAutoscaler", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscalerList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/horizontalpodautoscalers", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of HorizontalPodAutoscaler", + "nickname": "watchHorizontalPodAutoscalerList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.HorizontalPodAutoscaler", + "method": "PUT", + "summary": "replace status of the specified HorizontalPodAutoscaler", + "nickname": "replaceNamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.HorizontalPodAutoscaler", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the HorizontalPodAutoscaler", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.HorizontalPodAutoscaler" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/ingress", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.IngressList", + "method": "GET", + "summary": "list or watch objects of kind Ingress", + "nickname": "listNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.IngressList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.Ingress", + "method": "POST", + "summary": "create a Ingress", + "nickname": "createNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.Ingress", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Ingress" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingress", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Ingress", + "nickname": "watchNamespacedIngressList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/ingress/{name}", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.Ingress", + "method": "GET", + "summary": "read the specified Ingress", + "nickname": "readNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Ingress", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Ingress" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.Ingress", + "method": "PUT", + "summary": "replace the specified Ingress", + "nickname": "replaceNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.Ingress", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Ingress", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Ingress" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.Ingress", + "method": "PATCH", + "summary": "partially update the specified Ingress", + "nickname": "patchNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "unversioned.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Ingress", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Ingress" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete a Ingress", + "nickname": "deleteNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Ingress", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingress/{name}", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Ingress", + "nickname": "watchNamespacedIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Ingress", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/ingress", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.IngressList", + "method": "GET", + "summary": "list or watch objects of kind Ingress", + "nickname": "listIngress", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.IngressList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/ingress", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Ingress", + "nickname": "watchIngressList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/ingress/{name}/status", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.Ingress", + "method": "PUT", + "summary": "replace status of the specified Ingress", + "nickname": "replaceNamespacedIngressStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.Ingress", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Ingress", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Ingress" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/jobs", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.JobList", + "method": "GET", + "summary": "list or watch objects of kind Job", + "nickname": "listNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.JobList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.Job", + "method": "POST", + "summary": "create a Job", + "nickname": "createNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.Job", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Job" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Job", + "nickname": "watchNamespacedJobList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.Job", + "method": "GET", + "summary": "read the specified Job", + "nickname": "readNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Job", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Job" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.Job", + "method": "PUT", + "summary": "replace the specified Job", + "nickname": "replaceNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.Job", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Job", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Job" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + }, + { + "type": "v1beta1.Job", + "method": "PATCH", + "summary": "partially update the specified Job", + "nickname": "patchNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "unversioned.Patch", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Job", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Job" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ] + }, + { + "type": "unversioned.Status", + "method": "DELETE", + "summary": "delete a Job", + "nickname": "deleteNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1.DeleteOptions", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Job", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "unversioned.Status" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch changes to an object of kind Job", + "nickname": "watchNamespacedJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Job", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/jobs", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.JobList", + "method": "GET", + "summary": "list or watch objects of kind Job", + "nickname": "listJob", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.JobList" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/watch/jobs", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "json.WatchEvent", + "method": "GET", + "summary": "watch individual changes to a list of Job", + "nickname": "watchJobList", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "labelSelector", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "fieldSelector", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "required": false, + "allowMultiple": false + }, + { + "type": "boolean", + "paramType": "query", + "name": "watch", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "required": false, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "query", + "name": "resourceVersion", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "required": false, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "json.WatchEvent" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "v1beta1.Job", + "method": "PUT", + "summary": "replace status of the specified Job", + "nickname": "replaceNamespacedJobStatus", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1beta1.Job", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Job", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1beta1.Job" + } + ], + "produces": [ + "application/json" + ], + "consumes": [ + "*/*" + ] + } + ] + }, + { + "path": "/apis/extensions/v1beta1", + "description": "API at /apis/extensions/v1beta1", + "operations": [ + { + "type": "void", + "method": "GET", + "summary": "get available resources", + "nickname": "getAPIResources", + "parameters": [], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + ] + } + ], + "models": { + "v1beta1.HorizontalPodAutoscalerList": { + "id": "v1beta1.HorizontalPodAutoscalerList", + "description": "HorizontalPodAutoscalerList is a list of HorizontalPodAutoscalers.", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata." + }, + "items": { + "type": "array", + "items": { + "$ref": "v1beta1.HorizontalPodAutoscaler" + }, + "description": "Items is the list of HorizontalPodAutoscalers." + } + } + }, + "unversioned.ListMeta": { + "id": "unversioned.ListMeta", + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "selfLink": { + "type": "string", + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." + }, + "resourceVersion": { + "type": "string", + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency" + } + } + }, + "v1beta1.HorizontalPodAutoscaler": { + "id": "v1beta1.HorizontalPodAutoscaler", + "description": "HorizontalPodAutoscaler represents the configuration of a horizontal pod autoscaler.", + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1beta1.HorizontalPodAutoscalerSpec", + "description": "Spec defines the behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "v1beta1.HorizontalPodAutoscalerStatus", + "description": "Status represents the current information about the autoscaler." + } + } + }, + "v1.ObjectMeta": { + "id": "v1.ObjectMeta", + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "name": { + "type": "string", + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names" + }, + "generateName": { + "type": "string", + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency" + }, + "namespace": { + "type": "string", + "description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md" + }, + "selfLink": { + "type": "string", + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." + }, + "uid": { + "type": "string", + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids" + }, + "resourceVersion": { + "type": "string", + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency" + }, + "generation": { + "type": "integer", + "format": "int64", + "description": "A sequence number representing a specific generation of the desired state. Currently only implemented by replication controllers. Populated by the system. Read-only." + }, + "creationTimestamp": { + "type": "string", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "deletionTimestamp": { + "type": "string", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "type": "integer", + "format": "int64", + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only." + }, + "labels": { + "type": "any", + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md" + }, + "annotations": { + "type": "any", + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/HEAD/docs/user-guide/annotations.md" + } + } + }, + "v1beta1.HorizontalPodAutoscalerSpec": { + "id": "v1beta1.HorizontalPodAutoscalerSpec", + "description": "HorizontalPodAutoscalerSpec is the specification of a horizontal pod autoscaler.", + "required": [ + "scaleRef", + "minReplicas", + "maxReplicas", + "target" + ], + "properties": { + "scaleRef": { + "$ref": "v1beta1.SubresourceReference", + "description": "ScaleRef is a reference to Scale subresource. HorizontalPodAutoscaler will learn the current resource consumption from its status, and will set the desired number of pods by modyfying its spec." + }, + "minReplicas": { + "type": "integer", + "format": "int32", + "description": "MinReplicas is the lower limit for the number of pods that can be set by the autoscaler." + }, + "maxReplicas": { + "type": "integer", + "format": "int32", + "description": "MaxReplicas is the upper limit for the number of pods that can be set by the autoscaler. It cannot be smaller than MinReplicas." + }, + "target": { + "$ref": "v1beta1.ResourceConsumption", + "description": "Target is the target average consumption of the given resource that the autoscaler will try to maintain by adjusting the desired number of pods. Currently two types of resources are supported: \"cpu\" and \"memory\"." + } + } + }, + "v1beta1.SubresourceReference": { + "id": "v1beta1.SubresourceReference", + "description": "SubresourceReference contains enough information to let you inspect or modify the referred subresource.", + "properties": { + "kind": { + "type": "string", + "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"" + }, + "namespace": { + "type": "string", + "description": "Namespace of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md" + }, + "name": { + "type": "string", + "description": "Name of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names" + }, + "apiVersion": { + "type": "string", + "description": "API version of the referent" + }, + "subresource": { + "type": "string", + "description": "Subresource name of the referent" + } + } + }, + "v1beta1.ResourceConsumption": { + "id": "v1beta1.ResourceConsumption", + "description": "ResourceConsumption is an object for specifying average resource consumption of a particular resource.", + "properties": { + "resource": { + "type": "string", + "description": "Resource specifies either the name of the target resource when present in the spec, or the name of the observed resource when present in the status." + }, + "quantity": { + "type": "string", + "description": "Quantity specifies either the target average consumption of the resource when present in the spec, or the observed average consumption when present in the status." + } + } + }, + "v1beta1.HorizontalPodAutoscalerStatus": { + "id": "v1beta1.HorizontalPodAutoscalerStatus", + "description": "HorizontalPodAutoscalerStatus contains the current status of a horizontal pod autoscaler", + "required": [ + "currentReplicas", + "desiredReplicas", + "currentConsumption" + ], + "properties": { + "currentReplicas": { + "type": "integer", + "format": "int32", + "description": "CurrentReplicas is the number of replicas of pods managed by this autoscaler." + }, + "desiredReplicas": { + "type": "integer", + "format": "int32", + "description": "DesiredReplicas is the desired number of replicas of pods managed by this autoscaler." + }, + "currentConsumption": { + "$ref": "v1beta1.ResourceConsumption", + "description": "CurrentConsumption is the current average consumption of the given resource that the autoscaler will try to maintain by adjusting the desired number of pods. Two types of resources are supported: \"cpu\" and \"memory\"." + }, + "lastScaleTimestamp": { + "type": "string", + "description": "LastScaleTimestamp is the last time the HorizontalPodAutoscaler scaled the number of pods. This is used by the autoscaler to controll how often the number of pods is changed." + } + } + }, + "json.WatchEvent": { + "id": "json.WatchEvent", + "properties": { + "type": { + "type": "string", + "description": "the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR" + }, + "object": { + "type": "string", + "description": "the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR" + } + } + }, + "unversioned.Patch": { + "id": "unversioned.Patch", + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "properties": {} + }, + "unversioned.Status": { + "id": "unversioned.Status", + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "status": { + "type": "string", + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status" + }, + "message": { + "type": "string", + "description": "A human-readable description of the status of this operation." + }, + "reason": { + "type": "string", + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it." + }, + "details": { + "$ref": "unversioned.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." + }, + "code": { + "type": "integer", + "format": "int32", + "description": "Suggested HTTP return code for this status, 0 if not set." + } + } + }, + "unversioned.StatusDetails": { + "id": "unversioned.StatusDetails", + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "name": { + "type": "string", + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)." + }, + "kind": { + "type": "string", + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "causes": { + "type": "array", + "items": { + "$ref": "unversioned.StatusCause" + }, + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes." + }, + "retryAfterSeconds": { + "type": "integer", + "format": "int32", + "description": "If specified, the time in seconds before the operation should be retried." + } + } + }, + "unversioned.StatusCause": { + "id": "unversioned.StatusCause", + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "reason": { + "type": "string", + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available." + }, + "message": { + "type": "string", + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader." + }, + "field": { + "type": "string", + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"" + } + } + }, + "v1.DeleteOptions": { + "id": "v1.DeleteOptions", + "description": "DeleteOptions may be provided when deleting an API object", + "required": [ + "gracePeriodSeconds" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "gracePeriodSeconds": { + "type": "integer", + "format": "int64", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately." + } + } + }, + "v1beta1.IngressList": { + "id": "v1beta1.IngressList", + "description": "IngressList is a collection of Ingress.", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "unversioned.ListMeta", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1beta1.Ingress" + }, + "description": "Items is the list of Ingress." + } + } + }, + "v1beta1.Ingress": { + "id": "v1beta1.Ingress", + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1beta1.IngressSpec", + "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1beta1.IngressStatus", + "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status" + } + } + }, + "v1beta1.IngressSpec": { + "id": "v1beta1.IngressSpec", + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "backend": { + "$ref": "v1beta1.IngressBackend", + "description": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default." + }, + "rules": { + "type": "array", + "items": { + "$ref": "v1beta1.IngressRule" + }, + "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend." + } + } + }, + "v1beta1.IngressBackend": { + "id": "v1beta1.IngressBackend", + "description": "IngressBackend describes all endpoints for a given service and port.", + "required": [ + "serviceName", + "servicePort" + ], + "properties": { + "serviceName": { + "type": "string", + "description": "Specifies the name of the referenced service." + }, + "servicePort": { + "type": "string", + "description": "Specifies the port of the referenced service." + } + } + }, + "v1beta1.IngressRule": { + "id": "v1beta1.IngressRule", + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "type": "string", + "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue." + }, + "http": { + "$ref": "v1beta1.HTTPIngressRuleValue" + } + } + }, + "v1beta1.HTTPIngressRuleValue": { + "id": "v1beta1.HTTPIngressRuleValue", + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://\u003chost\u003e/\u003cpath\u003e?\u003csearchpart\u003e -\u003e backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "required": [ + "paths" + ], + "properties": { + "paths": { + "type": "array", + "items": { + "$ref": "v1beta1.HTTPIngressPath" + }, + "description": "A collection of paths that map requests to backends." + } + } + }, + "v1beta1.HTTPIngressPath": { + "id": "v1beta1.HTTPIngressPath", + "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", + "required": [ + "backend" + ], + "properties": { + "path": { + "type": "string", + "description": "Path is a extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend." + }, + "backend": { + "$ref": "v1beta1.IngressBackend", + "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to." + } + } + }, + "v1beta1.IngressStatus": { + "id": "v1beta1.IngressStatus", + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer." + } + } + }, + "v1.LoadBalancerStatus": { + "id": "v1.LoadBalancerStatus", + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "type": "array", + "items": { + "$ref": "v1.LoadBalancerIngress" + }, + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points." + } + } + }, + "v1.LoadBalancerIngress": { + "id": "v1.LoadBalancerIngress", + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "ip": { + "type": "string", + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)" + }, + "hostname": { + "type": "string", + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)" + } + } + }, + "v1beta1.JobList": { + "id": "v1beta1.JobList", + "description": "JobList is a collection of jobs.", + "required": [ + "items" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "unversioned.ListMeta", + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "items": { + "type": "array", + "items": { + "$ref": "v1beta1.Job" + }, + "description": "Items is the list of Job." + } + } + }, + "v1beta1.Job": { + "id": "v1beta1.Job", + "description": "Job represents the configuration of a single job.", + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1beta1.JobSpec", + "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "v1beta1.JobStatus", + "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status" + } + } + }, + "v1beta1.JobSpec": { + "id": "v1beta1.JobSpec", + "description": "JobSpec describes how the job execution will look like.", + "required": [ + "template" + ], + "properties": { + "parallelism": { + "type": "integer", + "format": "int32", + "description": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) \u003c .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md" + }, + "completions": { + "type": "integer", + "format": "int32", + "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Defaults to 1. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md" + }, + "selector": { + "$ref": "v1beta1.PodSelector", + "description": "Selector is a label query over pods that should match the pod count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors" + }, + "template": { + "$ref": "v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md" + } + } + }, + "v1beta1.PodSelector": { + "id": "v1beta1.PodSelector", + "description": "A pod selector is a label query over a set of pods. The result of matchLabels and matchExpressions are ANDed. An empty pod selector matches all objects. A null pod selector matches no objects.", + "properties": { + "matchLabels": { + "type": "any", + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed." + }, + "matchExpressions": { + "type": "array", + "items": { + "$ref": "v1beta1.PodSelectorRequirement" + }, + "description": "matchExpressions is a list of pod selector requirements. The requirements are ANDed." + } + } + }, + "v1beta1.PodSelectorRequirement": { + "id": "v1beta1.PodSelectorRequirement", + "description": "A pod selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string", + "description": "key is the label key that the selector applies to." + }, + "operator": { + "type": "string", + "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist." + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch." + } + } + }, + "v1.PodTemplateSpec": { + "id": "v1.PodTemplateSpec", + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata" + }, + "spec": { + "$ref": "v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status" + } + } + }, + "v1.PodSpec": { + "id": "v1.PodSpec", + "description": "PodSpec is a description of a pod.", + "required": [ + "containers" + ], + "properties": { + "volumes": { + "type": "array", + "items": { + "$ref": "v1.Volume" + }, + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md" + }, + "containers": { + "type": "array", + "items": { + "$ref": "v1.Container" + }, + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md" + }, + "restartPolicy": { + "type": "string", + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#restartpolicy" + }, + "terminationGracePeriodSeconds": { + "type": "integer", + "format": "int64", + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds." + }, + "activeDeadlineSeconds": { + "type": "integer", + "format": "int64", + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer." + }, + "dnsPolicy": { + "type": "string", + "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\"." + }, + "nodeSelector": { + "type": "any", + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/HEAD/docs/user-guide/node-selection/README.md" + }, + "serviceAccountName": { + "type": "string", + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md" + }, + "serviceAccount": { + "type": "string", + "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." + }, + "nodeName": { + "type": "string", + "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements." + }, + "hostNetwork": { + "type": "boolean", + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false." + }, + "hostPID": { + "type": "boolean", + "description": "Use the host's pid namespace. Optional: Default to false." + }, + "hostIPC": { + "type": "boolean", + "description": "Use the host's ipc namespace. Optional: Default to false." + }, + "securityContext": { + "$ref": "v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings" + }, + "imagePullSecrets": { + "type": "array", + "items": { + "$ref": "v1.LocalObjectReference" + }, + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod" + } + } + }, + "v1.Volume": { + "id": "v1.Volume", + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names" + }, + "hostPath": { + "$ref": "v1.HostPathVolumeSource", + "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath" + }, + "emptyDir": { + "$ref": "v1.EmptyDirVolumeSource", + "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir" + }, + "gcePersistentDisk": { + "$ref": "v1.GCEPersistentDiskVolumeSource", + "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk" + }, + "awsElasticBlockStore": { + "$ref": "v1.AWSElasticBlockStoreVolumeSource", + "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore" + }, + "gitRepo": { + "$ref": "v1.GitRepoVolumeSource", + "description": "GitRepo represents a git repository at a particular revision." + }, + "secret": { + "$ref": "v1.SecretVolumeSource", + "description": "Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets" + }, + "nfs": { + "$ref": "v1.NFSVolumeSource", + "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs" + }, + "iscsi": { + "$ref": "v1.ISCSIVolumeSource", + "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/iscsi/README.md" + }, + "glusterfs": { + "$ref": "v1.GlusterfsVolumeSource", + "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/glusterfs/README.md" + }, + "persistentVolumeClaim": { + "$ref": "v1.PersistentVolumeClaimVolumeSource", + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" + }, + "rbd": { + "$ref": "v1.RBDVolumeSource", + "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md" + }, + "cinder": { + "$ref": "v1.CinderVolumeSource", + "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md" + }, + "cephfs": { + "$ref": "v1.CephFSVolumeSource", + "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "flocker": { + "$ref": "v1.FlockerVolumeSource", + "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "downwardAPI": { + "$ref": "v1.DownwardAPIVolumeSource", + "description": "DownwardAPI represents downward API about the pod that should populate this volume" + }, + "fc": { + "$ref": "v1.FCVolumeSource", + "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + } + } + }, + "v1.HostPathVolumeSource": { + "id": "v1.HostPathVolumeSource", + "description": "HostPathVolumeSource represents bare host directory volume.", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string", + "description": "Path of the directory on the host. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath" + } + } + }, + "v1.EmptyDirVolumeSource": { + "id": "v1.EmptyDirVolumeSource", + "description": "EmptyDirVolumeSource is temporary directory that shares a pod's lifetime.", + "properties": { + "medium": { + "type": "string", + "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir" + } + } + }, + "v1.GCEPersistentDiskVolumeSource": { + "id": "v1.GCEPersistentDiskVolumeSource", + "description": "GCEPersistentDiskVolumeSource represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist and be formatted before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once.", + "required": [ + "pdName", + "fsType" + ], + "properties": { + "pdName": { + "type": "string", + "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk" + }, + "fsType": { + "type": "string", + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk" + }, + "partition": { + "type": "integer", + "format": "int32", + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk" + }, + "readOnly": { + "type": "boolean", + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk" + } + } + }, + "v1.AWSElasticBlockStoreVolumeSource": { + "id": "v1.AWSElasticBlockStoreVolumeSource", + "description": "Represents a persistent disk resource in AWS.\n\nAn Amazon Elastic Block Store (EBS) must already be created, formatted, and reside in the same AWS zone as the kubelet before it can be mounted. Note: Amazon EBS volumes can be mounted to only one instance at a time.", + "required": [ + "volumeID", + "fsType" + ], + "properties": { + "volumeID": { + "type": "string", + "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore" + }, + "fsType": { + "type": "string", + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore" + }, + "partition": { + "type": "integer", + "format": "int32", + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty)." + }, + "readOnly": { + "type": "boolean", + "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore" + } + } + }, + "v1.GitRepoVolumeSource": { + "id": "v1.GitRepoVolumeSource", + "description": "GitRepoVolumeSource represents a volume that is pulled from git when the pod is created.", + "required": [ + "repository", + "revision" + ], + "properties": { + "repository": { + "type": "string", + "description": "Repository URL" + }, + "revision": { + "type": "string", + "description": "Commit hash for the specified revision." + } + } + }, + "v1.SecretVolumeSource": { + "id": "v1.SecretVolumeSource", + "description": "SecretVolumeSource adapts a Secret into a VolumeSource. More info: http://releases.k8s.io/HEAD/docs/design/secrets.md", + "required": [ + "secretName" + ], + "properties": { + "secretName": { + "type": "string", + "description": "SecretName is the name of a secret in the pod's namespace. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets" + } + } + }, + "v1.NFSVolumeSource": { + "id": "v1.NFSVolumeSource", + "description": "NFSVolumeSource represents an NFS mount that lasts the lifetime of a pod", + "required": [ + "server", + "path" + ], + "properties": { + "server": { + "type": "string", + "description": "Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs" + }, + "path": { + "type": "string", + "description": "Path that is exported by the NFS server. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs" + }, + "readOnly": { + "type": "boolean", + "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs" + } + } + }, + "v1.ISCSIVolumeSource": { + "id": "v1.ISCSIVolumeSource", + "description": "ISCSIVolumeSource describes an ISCSI Disk can only be mounted as read/write once.", + "required": [ + "targetPortal", + "iqn", + "lun", + "fsType" + ], + "properties": { + "targetPortal": { + "type": "string", + "description": "iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)." + }, + "iqn": { + "type": "string", + "description": "Target iSCSI Qualified Name." + }, + "lun": { + "type": "integer", + "format": "int32", + "description": "iSCSI target lun number." + }, + "fsType": { + "type": "string", + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#iscsi" + }, + "readOnly": { + "type": "boolean", + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false." + } + } + }, + "v1.GlusterfsVolumeSource": { + "id": "v1.GlusterfsVolumeSource", + "description": "GlusterfsVolumeSource represents a Glusterfs Mount that lasts the lifetime of a pod.", + "required": [ + "endpoints", + "path" + ], + "properties": { + "endpoints": { + "type": "string", + "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/glusterfs/README.md#create-a-pod" + }, + "path": { + "type": "string", + "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/glusterfs/README.md#create-a-pod" + }, + "readOnly": { + "type": "boolean", + "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/glusterfs/README.md#create-a-pod" + } + } + }, + "v1.PersistentVolumeClaimVolumeSource": { + "id": "v1.PersistentVolumeClaimVolumeSource", + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "required": [ + "claimName" + ], + "properties": { + "claimName": { + "type": "string", + "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" + }, + "readOnly": { + "type": "boolean", + "description": "Will force the ReadOnly setting in VolumeMounts. Default false." + } + } + }, + "v1.RBDVolumeSource": { + "id": "v1.RBDVolumeSource", + "description": "RBDVolumeSource represents a Rados Block Device Mount that lasts the lifetime of a pod", + "required": [ + "monitors", + "image", + "pool", + "user", + "keyring", + "secretRef" + ], + "properties": { + "monitors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it" + }, + "image": { + "type": "string", + "description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it" + }, + "fsType": { + "type": "string", + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#rbd" + }, + "pool": { + "type": "string", + "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it." + }, + "user": { + "type": "string", + "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it" + }, + "keyring": { + "type": "string", + "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it" + }, + "secretRef": { + "$ref": "v1.LocalObjectReference", + "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it" + }, + "readOnly": { + "type": "boolean", + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/rbd/README.md#how-to-use-it" + } + } + }, + "v1.LocalObjectReference": { + "id": "v1.LocalObjectReference", + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "type": "string", + "description": "Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names" + } + } + }, + "v1.CinderVolumeSource": { + "id": "v1.CinderVolumeSource", + "description": "CinderVolumeSource represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet.", + "required": [ + "volumeID" + ], + "properties": { + "volumeID": { + "type": "string", + "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md" + }, + "fsType": { + "type": "string", + "description": "Required: Filesystem type to mount. Must be a filesystem type supported by the host operating system. Only ext3 and ext4 are allowed More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md" + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md" + } + } + }, + "v1.CephFSVolumeSource": { + "id": "v1.CephFSVolumeSource", + "description": "CephFSVolumeSource represents a Ceph Filesystem Mount that lasts the lifetime of a pod", + "required": [ + "monitors" + ], + "properties": { + "monitors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/cephfs/README.md#how-to-use-it" + }, + "user": { + "type": "string", + "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/cephfs/README.md#how-to-use-it" + }, + "secretFile": { + "type": "string", + "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/cephfs/README.md#how-to-use-it" + }, + "secretRef": { + "$ref": "v1.LocalObjectReference", + "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/cephfs/README.md#how-to-use-it" + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/cephfs/README.md#how-to-use-it" + } + } + }, + "v1.FlockerVolumeSource": { + "id": "v1.FlockerVolumeSource", + "description": "FlockerVolumeSource represents a Flocker volume mounted by the Flocker agent.", + "required": [ + "datasetName" + ], + "properties": { + "datasetName": { + "type": "string", + "description": "Required: the volume name. This is going to be store on metadata -\u003e name on the payload for Flocker" + } + } + }, + "v1.DownwardAPIVolumeSource": { + "id": "v1.DownwardAPIVolumeSource", + "description": "DownwardAPIVolumeSource represents a volume containing downward API info", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "v1.DownwardAPIVolumeFile" + }, + "description": "Items is a list of downward API volume file" + } + } + }, + "v1.DownwardAPIVolumeFile": { + "id": "v1.DownwardAPIVolumeFile", + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "required": [ + "path", + "fieldRef" + ], + "properties": { + "path": { + "type": "string", + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'" + }, + "fieldRef": { + "$ref": "v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + } + } + }, + "v1.ObjectFieldSelector": { + "id": "v1.ObjectFieldSelector", + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "required": [ + "fieldPath" + ], + "properties": { + "apiVersion": { + "type": "string", + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"." + }, + "fieldPath": { + "type": "string", + "description": "Path of the field to select in the specified API version." + } + } + }, + "v1.FCVolumeSource": { + "id": "v1.FCVolumeSource", + "description": "A Fibre Channel Disk can only be mounted as read/write once.", + "required": [ + "targetWWNs", + "lun", + "fsType" + ], + "properties": { + "targetWWNs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Required: FC target world wide names (WWNs)" + }, + "lun": { + "type": "integer", + "format": "int32", + "description": "Required: FC target lun number" + }, + "fsType": { + "type": "string", + "description": "Required: Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"" + }, + "readOnly": { + "type": "boolean", + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." + } + } + }, + "v1.Container": { + "id": "v1.Container", + "description": "A single application container that you want to run within a pod.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated." + }, + "image": { + "type": "string", + "description": "Docker image name. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Entrypoint array. Not executed within a shell. The docker image's entrypoint is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands" + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Arguments to the entrypoint. The docker image's cmd is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands" + }, + "workingDir": { + "type": "string", + "description": "Container's working directory. Defaults to Docker's default. D efaults to image's default. Cannot be updated." + }, + "ports": { + "type": "array", + "items": { + "$ref": "v1.ContainerPort" + }, + "description": "List of ports to expose from the container. Cannot be updated." + }, + "env": { + "type": "array", + "items": { + "$ref": "v1.EnvVar" + }, + "description": "List of environment variables to set in the container. Cannot be updated." + }, + "resources": { + "$ref": "v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources" + }, + "volumeMounts": { + "type": "array", + "items": { + "$ref": "v1.VolumeMount" + }, + "description": "Pod volumes to mount into the container's filesyste. Cannot be updated." + }, + "livenessProbe": { + "$ref": "v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes" + }, + "readinessProbe": { + "$ref": "v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes" + }, + "lifecycle": { + "$ref": "v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "terminationMessagePath": { + "type": "string", + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated." + }, + "imagePullPolicy": { + "type": "string", + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#updating-images" + }, + "securityContext": { + "$ref": "v1.SecurityContext", + "description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md" + }, + "stdin": { + "type": "boolean", + "description": "Whether this container should allocate a buffer for stdin in the container runtime. Default is false." + }, + "tty": { + "type": "boolean", + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false." + } + } + }, + "v1.ContainerPort": { + "id": "v1.ContainerPort", + "description": "ContainerPort represents a network port in a single container.", + "required": [ + "containerPort" + ], + "properties": { + "name": { + "type": "string", + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services." + }, + "hostPort": { + "type": "integer", + "format": "int32", + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this." + }, + "containerPort": { + "type": "integer", + "format": "int32", + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536." + }, + "protocol": { + "type": "string", + "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"." + }, + "hostIP": { + "type": "string", + "description": "What host IP to bind the external port to." + } + } + }, + "v1.EnvVar": { + "id": "v1.EnvVar", + "description": "EnvVar represents an environment variable present in a Container.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the environment variable. Must be a C_IDENTIFIER." + }, + "value": { + "type": "string", + "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\"." + }, + "valueFrom": { + "$ref": "v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + } + }, + "v1.EnvVarSource": { + "id": "v1.EnvVarSource", + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "required": [ + "fieldRef" + ], + "properties": { + "fieldRef": { + "$ref": "v1.ObjectFieldSelector", + "description": "Selects a field of the pod. Only name and namespace are supported." + } + } + }, + "v1.ResourceRequirements": { + "id": "v1.ResourceRequirements", + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "limits": { + "type": "any", + "description": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications" + }, + "requests": { + "type": "any", + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications" + } + } + }, + "v1.VolumeMount": { + "id": "v1.VolumeMount", + "description": "VolumeMount describes a mounting of a Volume within a container.", + "required": [ + "name", + "mountPath" + ], + "properties": { + "name": { + "type": "string", + "description": "This must match the Name of a Volume." + }, + "readOnly": { + "type": "boolean", + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." + }, + "mountPath": { + "type": "string", + "description": "Path within the container at which the volume should be mounted." + } + } + }, + "v1.Probe": { + "id": "v1.Probe", + "description": "Probe describes a liveness probe to be examined to the container.", + "properties": { + "exec": { + "$ref": "v1.ExecAction", + "description": "One and only one of the following should be specified. Exec specifies the action to take." + }, + "httpGet": { + "$ref": "v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "tcpSocket": { + "$ref": "v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" + }, + "initialDelaySeconds": { + "type": "integer", + "format": "int64", + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes" + }, + "timeoutSeconds": { + "type": "integer", + "format": "int64", + "description": "Number of seconds after which liveness probes timeout. Defaults to 1 second. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes" + } + } + }, + "v1.ExecAction": { + "id": "v1.ExecAction", + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy." + } + } + }, + "v1.HTTPGetAction": { + "id": "v1.HTTPGetAction", + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "required": [ + "port" + ], + "properties": { + "path": { + "type": "string", + "description": "Path to access on the HTTP server." + }, + "port": { + "type": "string", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "host": { + "type": "string", + "description": "Host name to connect to, defaults to the pod IP." + }, + "scheme": { + "type": "string", + "description": "Scheme to use for connecting to the host. Defaults to HTTP." + } + } + }, + "v1.TCPSocketAction": { + "id": "v1.TCPSocketAction", + "description": "TCPSocketAction describes an action based on opening a socket", + "required": [ + "port" + ], + "properties": { + "port": { + "type": "string", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + } + }, + "v1.Lifecycle": { + "id": "v1.Lifecycle", + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "$ref": "v1.Handler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details" + }, + "preStop": { + "$ref": "v1.Handler", + "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details" + } + } + }, + "v1.Handler": { + "id": "v1.Handler", + "description": "Handler defines a specific action that should be taken", + "properties": { + "exec": { + "$ref": "v1.ExecAction", + "description": "One and only one of the following should be specified. Exec specifies the action to take." + }, + "httpGet": { + "$ref": "v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "tcpSocket": { + "$ref": "v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" + } + } + }, + "v1.SecurityContext": { + "id": "v1.SecurityContext", + "description": "SecurityContext holds security configuration that will be applied to a container.", + "properties": { + "capabilities": { + "$ref": "v1.Capabilities", + "description": "The linux kernel capabilites that should be added or removed. Default to Container.Capabilities if left unset. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context" + }, + "privileged": { + "type": "boolean", + "description": "Run the container in privileged mode. Default to Container.Privileged if left unset. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context" + }, + "seLinuxOptions": { + "$ref": "v1.SELinuxOptions", + "description": "SELinuxOptions are the labels to be applied to the container and volumes. Options that control the SELinux labels applied. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context" + }, + "runAsUser": { + "type": "integer", + "format": "int64", + "description": "RunAsUser is the UID to run the entrypoint of the container process. The user id that runs the first process in the container. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context" + }, + "runAsNonRoot": { + "type": "boolean", + "description": "RunAsNonRoot indicates that the container should be run as a non-root user. If the RunAsUser field is not explicitly set then the kubelet may check the image for a specified user or perform defaulting to specify a user." + } + } + }, + "v1.Capabilities": { + "id": "v1.Capabilities", + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "type": "array", + "items": { + "$ref": "v1.Capability" + }, + "description": "Added capabilities" + }, + "drop": { + "type": "array", + "items": { + "$ref": "v1.Capability" + }, + "description": "Removed capabilities" + } + } + }, + "v1.Capability": { + "id": "v1.Capability", + "properties": {} + }, + "v1.SELinuxOptions": { + "id": "v1.SELinuxOptions", + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "user": { + "type": "string", + "description": "User is a SELinux user label that applies to the container. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md" + }, + "role": { + "type": "string", + "description": "Role is a SELinux role label that applies to the container. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md" + }, + "type": { + "type": "string", + "description": "Type is a SELinux type label that applies to the container. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md" + }, + "level": { + "type": "string", + "description": "Level is SELinux level label that applies to the container. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md" + } + } + }, + "v1.PodSecurityContext": { + "id": "v1.PodSecurityContext", + "description": "PodSecurityContext holds pod-level security attributes and common container settings.", + "properties": {} + }, + "v1beta1.JobStatus": { + "id": "v1beta1.JobStatus", + "description": "JobStatus represents the current state of a Job.", + "properties": { + "conditions": { + "type": "array", + "items": { + "$ref": "v1beta1.JobCondition" + }, + "description": "Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md" + }, + "startTime": { + "type": "string", + "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC." + }, + "completionTime": { + "type": "string", + "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC." + }, + "active": { + "type": "integer", + "format": "int32", + "description": "Active is the number of actively running pods." + }, + "succeeded": { + "type": "integer", + "format": "int32", + "description": "Succeeded is the number of pods which reached Phase Succeeded." + }, + "failed": { + "type": "integer", + "format": "int32", + "description": "Failed is the number of pods which reached Phase Failed." + } + } + }, + "v1beta1.JobCondition": { + "id": "v1beta1.JobCondition", + "description": "JobCondition describes current state of a job.", + "required": [ + "type", + "status" + ], + "properties": { + "type": { + "type": "string", + "description": "Type of job condition, currently only Complete." + }, + "status": { + "type": "string", + "description": "Status of the condition, one of True, False, Unknown." + }, + "lastProbeTime": { + "type": "string", + "description": "Last time the condition was checked." + }, + "lastTransitionTime": { + "type": "string", + "description": "Last time the condition transit from one status to another." + }, + "reason": { + "type": "string", + "description": "(brief) reason for the condition's last transition." + }, + "message": { + "type": "string", + "description": "Human readable message indicating details about last transition." + } + } + } + } + } \ No newline at end of file diff --git a/hack/after-build/update-swagger-spec.sh b/hack/after-build/update-swagger-spec.sh index 7851afecae1..4af77fe00d9 100755 --- a/hack/after-build/update-swagger-spec.sh +++ b/hack/after-build/update-swagger-spec.sh @@ -58,7 +58,6 @@ KUBE_API_VERSIONS="v1,extensions/v1beta1" "${KUBE_OUTPUT_HOSTBIN}/kube-apiserver --public-address-override="127.0.0.1" \ --advertise-address="10.10.10.10" \ --kubelet-port=${KUBELET_PORT} \ - --runtime-config=api/v1 \ --service-cluster-ip-range="10.0.0.0/24" >/dev/null 2>&1 & APISERVER_PID=$! @@ -70,6 +69,7 @@ curl -fs ${SWAGGER_API_PATH} > ${SWAGGER_ROOT_DIR}/resourceListing.json curl -fs ${SWAGGER_API_PATH}version > ${SWAGGER_ROOT_DIR}/version.json curl -fs ${SWAGGER_API_PATH}api > ${SWAGGER_ROOT_DIR}/api.json curl -fs ${SWAGGER_API_PATH}api/v1 > ${SWAGGER_ROOT_DIR}/v1.json +curl -fs ${SWAGGER_API_PATH}apis/extensions/v1beta1 > ${SWAGGER_ROOT_DIR}/v1beta1.json kube::log::status "SUCCESS" From a0c038982edb975f2ce33998cb4f016a45725c9b Mon Sep 17 00:00:00 2001 From: nikhiljindal Date: Thu, 15 Oct 2015 14:16:08 -0700 Subject: [PATCH 3/4] Fixing integrations test --- test/integration/auth_test.go | 109 +++++++++++++++++++-- test/integration/framework/etcd_utils.go | 7 ++ test/integration/framework/master_utils.go | 6 +- test/integration/kubectl_test.go | 2 +- test/integration/scheduler_test.go | 26 ++++- test/integration/secret_test.go | 12 ++- test/integration/service_account_test.go | 18 +++- 7 files changed, 160 insertions(+), 20 deletions(-) diff --git a/test/integration/auth_test.go b/test/integration/auth_test.go index 2ed14a6039e..98dc92b964e 100644 --- a/test/integration/auth_test.go +++ b/test/integration/auth_test.go @@ -390,8 +390,19 @@ func TestAuthModeAlwaysAllow(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() + var m *master.Master s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { m.Handler.ServeHTTP(w, req) @@ -408,7 +419,7 @@ func TestAuthModeAlwaysAllow(t *testing.T) { APIPrefix: "/api", Authorizer: apiserver.NewAlwaysAllowAuthorizer(), AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) transport := http.DefaultTransport @@ -508,8 +519,18 @@ func TestAuthModeAlwaysDeny(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() var m *master.Master s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { @@ -527,7 +548,7 @@ func TestAuthModeAlwaysDeny(t *testing.T) { APIPrefix: "/api", Authorizer: apiserver.NewAlwaysDenyAuthorizer(), AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) transport := http.DefaultTransport @@ -578,8 +599,18 @@ func TestAliceNotForbiddenOrUnauthorized(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() var m *master.Master s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { @@ -598,7 +629,7 @@ func TestAliceNotForbiddenOrUnauthorized(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: allowAliceAuthorizer{}, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) previousResourceVersion := make(map[string]float64) @@ -668,8 +699,18 @@ func TestBobIsForbidden(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() var m *master.Master s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { @@ -688,7 +729,7 @@ func TestBobIsForbidden(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: allowAliceAuthorizer{}, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) transport := http.DefaultTransport @@ -732,8 +773,18 @@ func TestUnknownUserIsUnauthorized(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() var m *master.Master s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { @@ -752,7 +803,7 @@ func TestUnknownUserIsUnauthorized(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: allowAliceAuthorizer{}, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) transport := http.DefaultTransport @@ -819,8 +870,18 @@ func TestAuthorizationAttributeDetermination(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() trackingAuthorizer := &trackingAuthorizer{} @@ -841,7 +902,7 @@ func TestAuthorizationAttributeDetermination(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: trackingAuthorizer, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) transport := http.DefaultTransport @@ -902,8 +963,18 @@ func TestNamespaceAuthorization(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() a := newAuthorizerWithContents(t, `{"namespace": "foo"} `) @@ -925,7 +996,7 @@ func TestNamespaceAuthorization(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: a, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) previousResourceVersion := make(map[string]float64) @@ -1020,8 +1091,18 @@ func TestKindAuthorization(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() a := newAuthorizerWithContents(t, `{"resource": "services"} `) @@ -1043,7 +1124,7 @@ func TestKindAuthorization(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: a, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) previousResourceVersion := make(map[string]float64) @@ -1126,8 +1207,18 @@ func TestReadOnlyAuthorization(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() a := newAuthorizerWithContents(t, `{"readonly": true}`) @@ -1148,7 +1239,7 @@ func TestReadOnlyAuthorization(t *testing.T) { Authenticator: getTestTokenAuth(), Authorizer: a, AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) transport := http.DefaultTransport diff --git a/test/integration/framework/etcd_utils.go b/test/integration/framework/etcd_utils.go index 3cf7b9b47db..93012ab8ba5 100644 --- a/test/integration/framework/etcd_utils.go +++ b/test/integration/framework/etcd_utils.go @@ -44,6 +44,13 @@ func NewEtcdStorage() (storage.Interface, error) { return master.NewEtcdStorage(NewEtcdClient(), latest.GroupOrDie("").InterfacesFor, testapi.Default.Version(), etcdtest.PathPrefix()) } +func NewExtensionsEtcdStorage(client *etcd.Client) (storage.Interface, error) { + if client == nil { + client = NewEtcdClient() + } + return master.NewEtcdStorage(client, latest.GroupOrDie("extensions").InterfacesFor, testapi.Extensions.GroupAndVersion(), etcdtest.PathPrefix()) +} + func RequireEtcd() { if _, err := NewEtcdClient().Get("/", false, false); err != nil { glog.Fatalf("unable to connect to etcd for testing: %v", err) diff --git a/test/integration/framework/master_utils.go b/test/integration/framework/master_utils.go index 08a25b15864..258aa5d46dc 100644 --- a/test/integration/framework/master_utils.go +++ b/test/integration/framework/master_utils.go @@ -131,8 +131,8 @@ func startMasterOrDie(masterConfig *master.Config) (*master.Master, *httptest.Se if err != nil { glog.Fatalf("Failed to create etcd storage for master %v", err) } - expEtcdStorage, err := master.NewEtcdStorage(etcdClient, latest.GroupOrDie("extensions").InterfacesFor, latest.GroupOrDie("extensions").GroupVersion, etcdtest.PathPrefix()) - storageVersions["extensions"] = latest.GroupOrDie("extensions").GroupVersion + expEtcdStorage, err := NewExtensionsEtcdStorage(etcdClient) + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() if err != nil { glog.Fatalf("Failed to create etcd storage for master %v", err) } @@ -274,7 +274,7 @@ func RunAMaster(t *testing.T) (*master.Master, *httptest.Server) { if err != nil { t.Fatalf("unexpected error: %v", err) } - expEtcdStorage, err := master.NewEtcdStorage(etcdClient, latest.GroupOrDie("extensions").InterfacesFor, testapi.Extensions.GroupAndVersion(), etcdtest.PathPrefix()) + expEtcdStorage, err := NewExtensionsEtcdStorage(etcdClient) storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() if err != nil { t.Fatalf("unexpected error: %v", err) diff --git a/test/integration/kubectl_test.go b/test/integration/kubectl_test.go index 0847ba3fb9e..cb62adb88f4 100644 --- a/test/integration/kubectl_test.go +++ b/test/integration/kubectl_test.go @@ -38,7 +38,7 @@ func TestKubectlValidation(t *testing.T) { // The following test the experimental api. // TOOD: Replace with something more robust. These may move. - {`{"apiVersion": "extensions/v1beta1", "kind": "DaemonSet"}`, false}, + {`{"apiVersion": "extensions/v1beta1", "kind": "Ingress"}`, false}, {`{"apiVersion": "extensions/v1beta1", "kind": "Job"}`, false}, {`{"apiVersion": "vNotAVersion", "kind": "Job"}`, true}, } diff --git a/test/integration/scheduler_test.go b/test/integration/scheduler_test.go index 8a617e8e028..548c88b07a1 100644 --- a/test/integration/scheduler_test.go +++ b/test/integration/scheduler_test.go @@ -59,8 +59,19 @@ func TestUnschedulableNodes(t *testing.T) { if err != nil { t.Fatalf("Couldn't create etcd storage: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() + framework.DeleteAllEtcdKeys() var m *master.Master @@ -79,7 +90,7 @@ func TestUnschedulableNodes(t *testing.T) { APIPrefix: "/api", Authorizer: apiserver.NewAlwaysAllowAuthorizer(), AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) restClient := client.NewOrDie(&client.Config{Host: s.URL, Version: testapi.Default.Version()}) @@ -298,8 +309,19 @@ func BenchmarkScheduling(b *testing.B) { if err != nil { b.Fatalf("Couldn't create etcd storage: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + b.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() + framework.DeleteAllEtcdKeys() var m *master.Master @@ -318,7 +340,7 @@ func BenchmarkScheduling(b *testing.B) { APIPrefix: "/api", Authorizer: apiserver.NewAlwaysAllowAuthorizer(), AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) c := client.NewOrDie(&client.Config{ diff --git a/test/integration/secret_test.go b/test/integration/secret_test.go index bd126f9730c..4df513252d7 100644 --- a/test/integration/secret_test.go +++ b/test/integration/secret_test.go @@ -51,8 +51,18 @@ func TestSecrets(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %v", err) } + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() var m *master.Master s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { @@ -70,7 +80,7 @@ func TestSecrets(t *testing.T) { APIPrefix: "/api", Authorizer: apiserver.NewAlwaysAllowAuthorizer(), AdmissionControl: admit.NewAlwaysAdmit(), - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) framework.DeleteAllEtcdKeys() diff --git a/test/integration/service_account_test.go b/test/integration/service_account_test.go index 82b9c9cc8e8..2e0c05c13f2 100644 --- a/test/integration/service_account_test.go +++ b/test/integration/service_account_test.go @@ -33,7 +33,6 @@ import ( "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" - "k8s.io/kubernetes/pkg/api/latest" "k8s.io/kubernetes/pkg/api/testapi" "k8s.io/kubernetes/pkg/auth/authenticator" "k8s.io/kubernetes/pkg/auth/authenticator/bearertoken" @@ -44,11 +43,11 @@ import ( "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/master" - "k8s.io/kubernetes/pkg/tools/etcdtest" "k8s.io/kubernetes/pkg/util/sets" "k8s.io/kubernetes/pkg/util/wait" serviceaccountadmission "k8s.io/kubernetes/plugin/pkg/admission/serviceaccount" "k8s.io/kubernetes/plugin/pkg/auth/authenticator/request/union" + "k8s.io/kubernetes/test/integration/framework" ) const ( @@ -341,12 +340,23 @@ func startServiceAccountTestServer(t *testing.T) (*client.Client, client.Config, deleteAllEtcdKeys() // Etcd - etcdStorage, err := master.NewEtcdStorage(newEtcdClient(), latest.GroupOrDie("").InterfacesFor, testapi.Default.Version(), etcdtest.PathPrefix()) + etcdStorage, err := framework.NewEtcdStorage() if err != nil { t.Fatalf("unexpected error: %v", err) } + + expEtcdStorage, err := framework.NewExtensionsEtcdStorage(nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + storageDestinations := master.NewStorageDestinations() storageDestinations.AddAPIGroup("", etcdStorage) + storageDestinations.AddAPIGroup("extensions", expEtcdStorage) + + storageVersions := make(map[string]string) + storageVersions[""] = testapi.Default.Version() + storageVersions["extensions"] = testapi.Extensions.GroupAndVersion() // Listener var m *master.Master @@ -422,7 +432,7 @@ func startServiceAccountTestServer(t *testing.T) (*client.Client, client.Config, Authenticator: authenticator, Authorizer: authorizer, AdmissionControl: serviceAccountAdmission, - StorageVersions: map[string]string{"": testapi.Default.Version()}, + StorageVersions: storageVersions, }) // Start the service account and service account token controllers From a558fca24b63b635641486b04c645a7d1a58b6c7 Mon Sep 17 00:00:00 2001 From: nikhiljindal Date: Thu, 15 Oct 2015 15:55:46 -0700 Subject: [PATCH 4/4] Enabling deployments on GCE when the corresponding env var is set to true --- cluster/gce/util.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 68e2d848b60..23c0f1791ff 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -59,6 +59,14 @@ function verify-prereqs { fi fi fi + if [[ "${ENABLE_DEPLOYMENTS}" == "true" ]]; then + if [[ -z "${RUNTIME_CONFIG}" ]]; then + RUNTIME_CONFIG="extensions/v1beta1/deployments=true" + else + RUNTIME_CONFIG="${RUNTIME_CONFIG},extensions/v1beta1/deployments=true" + fi + fi + local cmd for cmd in gcloud gsutil; do