Skip to content

Commit 07013a0

Browse files
committed
Remove Spec Version constant as the main spec is versioned now
1 parent 2c1535d commit 07013a0

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

devel/release.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ numbers (integers) and D is one of "a" for alpha or "b" for beta and n is the
4848
pre-release number. For a final release, "Dn" part should be omitted. Examples:
4949
1.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-
5451
DEVELOPMENT_STATUS: Update it to one of the values of "Development Status"
5552
in [this list](https://pypi.python.org/pypi?%3Aaction=list_classifiers).
5653

scripts/constants.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
# Kubernetes branch to get the OpenAPI spec from.
1818
KUBERNETES_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.
2621
CLIENT_VERSION = "2.0.0-snapshot"
2722

2823
# Name of the release package

scripts/preprocess_spec.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import 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

0 commit comments

Comments
 (0)