File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ numbers (integers) and D is one of "a" for alpha or "b" for beta and n is the
4848pre-release number. For a final release, "Dn" part should be omitted. Examples:
49491.0.0a1, 2.0.1b2, 1.5.1.
5050
51- SPEC_VERSION: This would be the kubernetes OpenAPI spec version. It should be
52- deprecated after kubernetes/kubernetes #37055 takes effect.
53-
5451DEVELOPMENT_STATUS: Update it to one of the values of "Development Status"
5552in [ this list] ( https://pypi.python.org/pypi?%3Aaction=list_classifiers ) .
5653
Original file line number Diff line number Diff line change 1717# Kubernetes branch to get the OpenAPI spec from.
1818KUBERNETES_BRANCH = "release-1.6"
1919
20- # Spec version will be set in downloaded spec and all
21- # generated code will refer to it.
22- SPEC_VERSION = "v1.6.1"
23-
24- # client version for packaging and releasing. It can
25- # be different than SPEC_VERSION.
20+ # client version for packaging and releasing.
2621CLIENT_VERSION = "2.0.0-snapshot"
2722
2823# Name of the release package
Original file line number Diff line number Diff line change 2020
2121import urllib3
2222
23- from constants import KUBERNETES_BRANCH , SPEC_VERSION
23+ from constants import KUBERNETES_BRANCH
2424
2525# these four constants are shown as part of this example in []:
2626# "[watch]Pod[List]" is the deprecated version of "[list]Pod?[watch]=True"
@@ -119,10 +119,6 @@ def process_swagger(spec):
119119
120120 inline_primitive_models (spec )
121121
122- # TODO: Kubernetes does not set a version for OpenAPI spec yet,
123- # remove this when that is fixed.
124- spec ['info' ]['version' ] = SPEC_VERSION
125-
126122 return spec
127123
128124
You can’t perform that action at this time.
0 commit comments