| ... | ... |
@@ -12,7 +12,7 @@ import ( |
| 12 | 12 |
_ "github.com/openshift/origin/pkg/api" |
| 13 | 13 |
"github.com/openshift/origin/pkg/api/meta" |
| 14 | 14 |
"github.com/openshift/origin/pkg/api/v1beta1" |
| 15 |
- "github.com/openshift/origin/pkg/api/v1beta2" |
|
| 15 |
+ "github.com/openshift/origin/pkg/api/v1beta3" |
|
| 16 | 16 |
) |
| 17 | 17 |
|
| 18 | 18 |
// Version is the string that represents the current external default version. |
| ... | ... |
@@ -26,7 +26,7 @@ const OldestVersion = "v1beta1" |
| 26 | 26 |
// may be assumed to be least feature rich to most feature rich, and clients may |
| 27 | 27 |
// choose to prefer the latter items in the list over the former items when presented |
| 28 | 28 |
// with a set of versions to choose. |
| 29 |
-var Versions = []string{"v1beta1", "v1beta2"}
|
|
| 29 |
+var Versions = []string{"v1beta1", "v1beta3"}
|
|
| 30 | 30 |
|
| 31 | 31 |
// Codec is the default codec for serializing output that should use |
| 32 | 32 |
// the latest supported version. Use this Codec when writing to |
| ... | ... |
@@ -62,9 +62,9 @@ func InterfacesFor(version string) (*kmeta.VersionInterfaces, error) {
|
| 62 | 62 |
ObjectConvertor: api.Scheme, |
| 63 | 63 |
MetadataAccessor: accessor, |
| 64 | 64 |
}, nil |
| 65 |
- case "v1beta2": |
|
| 65 |
+ case "v1beta3": |
|
| 66 | 66 |
return &kmeta.VersionInterfaces{
|
| 67 |
- Codec: v1beta2.Codec, |
|
| 67 |
+ Codec: v1beta3.Codec, |
|
| 68 | 68 |
ObjectConvertor: api.Scheme, |
| 69 | 69 |
MetadataAccessor: accessor, |
| 70 | 70 |
}, nil |
| ... | ... |
@@ -121,10 +121,10 @@ func init() {
|
| 121 | 121 |
"v1beta1": true, |
| 122 | 122 |
} |
| 123 | 123 |
|
| 124 |
- // backwards compatibility, prior to v1beta2, we identified the namespace as a query parameter |
|
| 124 |
+ // backwards compatibility, prior to v1beta3, we identified the namespace as a query parameter |
|
| 125 | 125 |
versionToNamespaceScope := map[string]kmeta.RESTScope{
|
| 126 | 126 |
"v1beta1": kmeta.RESTScopeNamespaceLegacy, |
| 127 |
- "v1beta2": kmeta.RESTScopeNamespace, |
|
| 127 |
+ "v1beta3": kmeta.RESTScopeNamespace, |
|
| 128 | 128 |
} |
| 129 | 129 |
|
| 130 | 130 |
// the list of kinds that are scoped at the root of the api hierarchy |
| ... | ... |
@@ -18,7 +18,7 @@ import ( |
| 18 | 18 |
osapi "github.com/openshift/origin/pkg/api" |
| 19 | 19 |
_ "github.com/openshift/origin/pkg/api/latest" |
| 20 | 20 |
"github.com/openshift/origin/pkg/api/v1beta1" |
| 21 |
- "github.com/openshift/origin/pkg/api/v1beta2" |
|
| 21 |
+ "github.com/openshift/origin/pkg/api/v1beta3" |
|
| 22 | 22 |
authorizationapi "github.com/openshift/origin/pkg/authorization/api" |
| 23 | 23 |
build "github.com/openshift/origin/pkg/build/api" |
| 24 | 24 |
config "github.com/openshift/origin/pkg/config/api" |
| ... | ... |
@@ -52,13 +52,13 @@ func fuzzInternalObject(t *testing.T, forVersion string, item runtime.Object, se |
| 52 | 52 |
}, |
| 53 | 53 |
func(j *image.ImageRepositoryMapping, c fuzz.Continue) {
|
| 54 | 54 |
c.FuzzNoCustom(j) |
| 55 |
- if forVersion == "v1beta2" {
|
|
| 55 |
+ if forVersion == "v1beta3" {
|
|
| 56 | 56 |
j.DockerImageRepository = "" |
| 57 | 57 |
} |
| 58 | 58 |
}, |
| 59 | 59 |
func(j *image.ImageStreamMapping, c fuzz.Continue) {
|
| 60 | 60 |
c.FuzzNoCustom(j) |
| 61 |
- if forVersion == "v1beta2" {
|
|
| 61 |
+ if forVersion == "v1beta3" {
|
|
| 62 | 62 |
j.DockerImageRepository = "" |
| 63 | 63 |
} |
| 64 | 64 |
}, |
| ... | ... |
@@ -183,7 +183,7 @@ func TestSpecificKind(t *testing.T) {
|
| 183 | 183 |
fuzzInternalObject(t, "", item, seed) |
| 184 | 184 |
roundTrip(t, osapi.Codec, item) |
| 185 | 185 |
roundTrip(t, v1beta1.Codec, item) |
| 186 |
- roundTrip(t, v1beta2.Codec, item) |
|
| 186 |
+ roundTrip(t, v1beta3.Codec, item) |
|
| 187 | 187 |
} |
| 188 | 188 |
|
| 189 | 189 |
func TestTypes(t *testing.T) {
|
| ... | ... |
@@ -218,8 +218,8 @@ func TestTypes(t *testing.T) {
|
| 218 | 218 |
roundTrip(t, v1beta1.Codec, item) |
| 219 | 219 |
} |
| 220 | 220 |
if _, ok := skipV1beta2[kind]; !ok {
|
| 221 |
- fuzzInternalObject(t, "v1beta2", item, seed) |
|
| 222 |
- roundTrip(t, v1beta2.Codec, item) |
|
| 221 |
+ fuzzInternalObject(t, "v1beta3", item, seed) |
|
| 222 |
+ roundTrip(t, v1beta3.Codec, item) |
|
| 223 | 223 |
} |
| 224 | 224 |
} |
| 225 | 225 |
} |
| ... | ... |
@@ -1,25 +1,25 @@ |
| 1 |
-package v1beta2 |
|
| 1 |
+package v1beta3 |
|
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"github.com/GoogleCloudPlatform/kubernetes/pkg/api" |
| 5 | 5 |
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime" |
| 6 | 6 |
|
| 7 |
- _ "github.com/openshift/origin/pkg/authorization/api/v1beta2" |
|
| 8 |
- _ "github.com/openshift/origin/pkg/config/api/v1beta2" |
|
| 9 |
- _ "github.com/openshift/origin/pkg/image/api/v1beta2" |
|
| 10 |
- _ "github.com/openshift/origin/pkg/oauth/api/v1beta2" |
|
| 11 |
- _ "github.com/openshift/origin/pkg/project/api/v1beta2" |
|
| 12 |
- _ "github.com/openshift/origin/pkg/template/api/v1beta2" |
|
| 13 |
- _ "github.com/openshift/origin/pkg/user/api/v1beta2" |
|
| 7 |
+ _ "github.com/openshift/origin/pkg/authorization/api/v1beta3" |
|
| 8 |
+ _ "github.com/openshift/origin/pkg/config/api/v1beta3" |
|
| 9 |
+ _ "github.com/openshift/origin/pkg/image/api/v1beta3" |
|
| 10 |
+ _ "github.com/openshift/origin/pkg/oauth/api/v1beta3" |
|
| 11 |
+ _ "github.com/openshift/origin/pkg/project/api/v1beta3" |
|
| 12 |
+ _ "github.com/openshift/origin/pkg/template/api/v1beta3" |
|
| 13 |
+ _ "github.com/openshift/origin/pkg/user/api/v1beta3" |
|
| 14 | 14 |
|
| 15 |
- /*_ "github.com/openshift/origin/pkg/route/api/v1beta2" |
|
| 16 |
- _ "github.com/openshift/origin/pkg/build/api/v1beta2" |
|
| 17 |
- _ "github.com/openshift/origin/pkg/deploy/api/v1beta2" |
|
| 15 |
+ /*_ "github.com/openshift/origin/pkg/route/api/v1beta3" |
|
| 16 |
+ _ "github.com/openshift/origin/pkg/build/api/v1beta3" |
|
| 17 |
+ _ "github.com/openshift/origin/pkg/deploy/api/v1beta3" |
|
| 18 | 18 |
*/) |
| 19 | 19 |
|
| 20 |
-// Codec encodes internal objects to the v1beta2 scheme |
|
| 21 |
-var Codec = runtime.CodecFor(api.Scheme, "v1beta2") |
|
| 20 |
+// Codec encodes internal objects to the v1beta3 scheme |
|
| 21 |
+var Codec = runtime.CodecFor(api.Scheme, "v1beta3") |
|
| 22 | 22 |
|
| 23 | 23 |
func init() {
|
| 24 |
- api.Scheme.AddKnownTypes("v1beta2")
|
|
| 24 |
+ api.Scheme.AddKnownTypes("v1beta3")
|
|
| 25 | 25 |
} |
| ... | ... |
@@ -291,7 +291,7 @@ type ImageChangeTrigger struct {
|
| 291 | 291 |
// immutable image id supplied by the ImageStream when this trigger fires. |
| 292 | 292 |
Image string `json:"image"` |
| 293 | 293 |
// From is a reference to an image stream to watch for changes. This field takes |
| 294 |
- // precedence over ImageRepositoryRef, which is deprecated and will be removed in v1beta2. The |
|
| 294 |
+ // precedence over ImageRepositoryRef, which is deprecated and will be removed in v1beta3. The |
|
| 295 | 295 |
// Kind may be left blank, in which case it defaults to "ImageStream". The "Name" is |
| 296 | 296 |
// the only required subfield - if Namespace is blank, the namespace of the current build |
| 297 | 297 |
// trigger will be used. |
| ... | ... |
@@ -201,7 +201,7 @@ type DockerBuildStrategy struct {
|
| 201 | 201 |
// BaseImage is optional and indicates the image that the dockerfile for this |
| 202 | 202 |
// build should "FROM". If present, the build process will substitute this value |
| 203 | 203 |
// into the FROM line of the dockerfile. |
| 204 |
- // Deprecated: will be removed in v1beta2, use Image. |
|
| 204 |
+ // Deprecated: will be removed in v1beta3, use Image. |
|
| 205 | 205 |
BaseImage string `json:"baseImage,omitempty"` |
| 206 | 206 |
|
| 207 | 207 |
// Image is optional and indicates the image that the dockerfile for this |
| ... | ... |
@@ -213,7 +213,7 @@ type DockerBuildStrategy struct {
|
| 213 | 213 |
// STIBuildStrategy defines input parameters specific to an STI build. |
| 214 | 214 |
type STIBuildStrategy struct {
|
| 215 | 215 |
// BuilderImage is the image used to execute the build. |
| 216 |
- // Deprecated: will be removed in v1beta2, use Image. |
|
| 216 |
+ // Deprecated: will be removed in v1beta3, use Image. |
|
| 217 | 217 |
BuilderImage string `json:"builderImage,omitempty"` |
| 218 | 218 |
|
| 219 | 219 |
// Image is the image used to execute the build. |
| ... | ... |
@@ -235,7 +235,7 @@ type STIBuildStrategy struct {
|
| 235 | 235 |
Scripts string `json:"scripts,omitempty"` |
| 236 | 236 |
|
| 237 | 237 |
// Clean flag forces the STI build to not do incremental builds if true. |
| 238 |
- // Deprecated: in v1beta2 it will be replaced by Incremental. |
|
| 238 |
+ // Deprecated: in v1beta3 it will be replaced by Incremental. |
|
| 239 | 239 |
Clean bool `json:"clean,omitempty"` |
| 240 | 240 |
} |
| 241 | 241 |
|
| ... | ... |
@@ -308,7 +308,7 @@ type ImageChangeTrigger struct {
|
| 308 | 308 |
Image string `json:"image"` |
| 309 | 309 |
RepositoryName string `json:"repositoryName,omitempty"` |
| 310 | 310 |
// From is a reference to an image stream to watch for changes. This field takes |
| 311 |
- // precedence over ImageRepositoryRef, which is deprecated and will be removed in v1beta2. The |
|
| 311 |
+ // precedence over ImageRepositoryRef, which is deprecated and will be removed in v1beta3. The |
|
| 312 | 312 |
// Kind may be left blank, in which case it defaults to "ImageStream". The "Name" is |
| 313 | 313 |
// the only required subfield - if Namespace is blank, the namespace of the current build |
| 314 | 314 |
// trigger will be used. |
| ... | ... |
@@ -76,7 +76,7 @@ func (c *MasterConfig) InstallAPI(container *restful.Container) []string {
|
| 76 | 76 |
|
| 77 | 77 |
return []string{
|
| 78 | 78 |
fmt.Sprintf("Started Kubernetes API at %%s%s", KubeAPIPrefixV1Beta1),
|
| 79 |
- fmt.Sprintf("Started Kubernetes API at %%s%s", KubeAPIPrefixV1Beta2),
|
|
| 79 |
+ fmt.Sprintf("Started Kubernetes API at %%s%s", KubeAPIPrefixV1Beta3),
|
|
| 80 | 80 |
fmt.Sprintf("Started Kubernetes API at %%s%s", KubeAPIPrefixV1Beta3),
|
| 81 | 81 |
} |
| 82 | 82 |
} |
| ... | ... |
@@ -32,7 +32,7 @@ import ( |
| 32 | 32 |
|
| 33 | 33 |
"github.com/openshift/origin/pkg/api/latest" |
| 34 | 34 |
"github.com/openshift/origin/pkg/api/v1beta1" |
| 35 |
- "github.com/openshift/origin/pkg/api/v1beta2" |
|
| 35 |
+ "github.com/openshift/origin/pkg/api/v1beta3" |
|
| 36 | 36 |
buildclient "github.com/openshift/origin/pkg/build/client" |
| 37 | 37 |
buildcontrollerfactory "github.com/openshift/origin/pkg/build/controller/factory" |
| 38 | 38 |
buildstrategy "github.com/openshift/origin/pkg/build/controller/strategy" |
| ... | ... |
@@ -105,9 +105,9 @@ const ( |
| 105 | 105 |
OpenShiftAPIPrefix = "/osapi" // TODO: make configurable |
| 106 | 106 |
KubernetesAPIPrefix = "/api" // TODO: make configurable |
| 107 | 107 |
OpenShiftAPIV1Beta1 = "v1beta1" |
| 108 |
- OpenShiftAPIV1Beta2 = "v1beta2" |
|
| 108 |
+ OpenShiftAPIV1Beta3 = "v1beta3" |
|
| 109 | 109 |
OpenShiftAPIPrefixV1Beta1 = OpenShiftAPIPrefix + "/" + OpenShiftAPIV1Beta1 |
| 110 |
- OpenShiftAPIPrefixV1Beta2 = OpenShiftAPIPrefix + "/" + OpenShiftAPIV1Beta2 |
|
| 110 |
+ OpenShiftAPIPrefixV1Beta3 = OpenShiftAPIPrefix + "/" + OpenShiftAPIV1Beta3 |
|
| 111 | 111 |
OpenShiftRouteSubdomain = "router.default.local" |
| 112 | 112 |
swaggerAPIPrefix = "/swaggerapi/" |
| 113 | 113 |
) |
| ... | ... |
@@ -250,9 +250,9 @@ func (c *MasterConfig) InstallProtectedAPI(container *restful.Container) []strin |
| 250 | 250 |
v1beta1Storage[k] = v |
| 251 | 251 |
v1beta1Storage[strings.ToLower(k)] = v |
| 252 | 252 |
} |
| 253 |
- v1beta2Storage := map[string]rest.Storage{}
|
|
| 253 |
+ v1beta3Storage := map[string]rest.Storage{}
|
|
| 254 | 254 |
for k, v := range storage {
|
| 255 |
- v1beta2Storage[strings.ToLower(k)] = v |
|
| 255 |
+ v1beta3Storage[strings.ToLower(k)] = v |
|
| 256 | 256 |
} |
| 257 | 257 |
|
| 258 | 258 |
version := &apiserver.APIGroupVersion{
|
| ... | ... |
@@ -279,10 +279,10 @@ func (c *MasterConfig) InstallProtectedAPI(container *restful.Container) []strin |
| 279 | 279 |
|
| 280 | 280 |
version2 := &apiserver.APIGroupVersion{
|
| 281 | 281 |
Root: OpenShiftAPIPrefix, |
| 282 |
- Version: OpenShiftAPIV1Beta2, |
|
| 282 |
+ Version: OpenShiftAPIV1Beta3, |
|
| 283 | 283 |
|
| 284 |
- Storage: v1beta2Storage, |
|
| 285 |
- Codec: v1beta2.Codec, |
|
| 284 |
+ Storage: v1beta3Storage, |
|
| 285 |
+ Codec: v1beta3.Codec, |
|
| 286 | 286 |
|
| 287 | 287 |
Mapper: latest.RESTMapper, |
| 288 | 288 |
|
| ... | ... |
@@ -295,11 +295,11 @@ func (c *MasterConfig) InstallProtectedAPI(container *restful.Container) []strin |
| 295 | 295 |
} |
| 296 | 296 |
|
| 297 | 297 |
if err := version2.InstallREST(container); err != nil {
|
| 298 |
- // TODO: remove this check once v1beta2 is complete |
|
| 298 |
+ // TODO: remove this check once v1beta3 is complete |
|
| 299 | 299 |
if utilerrs.FilterOut(err, func(err error) bool {
|
| 300 | 300 |
return strings.Contains(err.Error(), "is registered for version") |
| 301 | 301 |
}) != nil {
|
| 302 |
- glog.Fatalf("Unable to initialize v1beta2 API: %v", err)
|
|
| 302 |
+ glog.Fatalf("Unable to initialize v1beta3 API: %v", err)
|
|
| 303 | 303 |
} |
| 304 | 304 |
} |
| 305 | 305 |
|
| ... | ... |
@@ -310,19 +310,19 @@ func (c *MasterConfig) InstallProtectedAPI(container *restful.Container) []strin |
| 310 | 310 |
root = svc |
| 311 | 311 |
case OpenShiftAPIPrefixV1Beta1: |
| 312 | 312 |
svc.Doc("OpenShift REST API, version v1beta1").ApiVersion("v1beta1")
|
| 313 |
- case OpenShiftAPIPrefixV1Beta2: |
|
| 314 |
- svc.Doc("OpenShift REST API, version v1beta2").ApiVersion("v1beta2")
|
|
| 313 |
+ case OpenShiftAPIPrefixV1Beta3: |
|
| 314 |
+ svc.Doc("OpenShift REST API, version v1beta3").ApiVersion("v1beta3")
|
|
| 315 | 315 |
} |
| 316 | 316 |
} |
| 317 | 317 |
if root == nil {
|
| 318 | 318 |
root = new(restful.WebService) |
| 319 | 319 |
container.Add(root) |
| 320 | 320 |
} |
| 321 |
- initAPIVersionRoute(root, "v1beta1", "v1beta2") |
|
| 321 |
+ initAPIVersionRoute(root, "v1beta1", "v1beta3") |
|
| 322 | 322 |
|
| 323 | 323 |
return []string{
|
| 324 | 324 |
fmt.Sprintf("Started OpenShift API at %%s%s", OpenShiftAPIPrefixV1Beta1),
|
| 325 |
- fmt.Sprintf("Started OpenShift API at %%s%s (experimental)", OpenShiftAPIPrefixV1Beta2),
|
|
| 325 |
+ fmt.Sprintf("Started OpenShift API at %%s%s (experimental)", OpenShiftAPIPrefixV1Beta3),
|
|
| 326 | 326 |
} |
| 327 | 327 |
} |
| 328 | 328 |
|
| ... | ... |
@@ -377,7 +377,7 @@ func indexAPIPaths(handler http.Handler) http.Handler {
|
| 377 | 377 |
object := api.RootPaths{Paths: []string{
|
| 378 | 378 |
"/api", |
| 379 | 379 |
"/api/v1beta1", |
| 380 |
- "/api/v1beta2", |
|
| 380 |
+ "/api/v1beta3", |
|
| 381 | 381 |
"/api/v1beta3", |
| 382 | 382 |
"/healthz", |
| 383 | 383 |
"/healthz/ping", |
| ... | ... |
@@ -3,5 +3,5 @@ package api |
| 3 | 3 |
import kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api" |
| 4 | 4 |
|
| 5 | 5 |
// Config implements the Kubernetes api.List |
| 6 |
-// DEPRECATED: The version v1beta2 should use api.List instead of Config |
|
| 6 |
+// DEPRECATED: The version v1beta3 should use api.List instead of Config |
|
| 7 | 7 |
type Config kapi.List |
| ... | ... |
@@ -1,11 +1,11 @@ |
| 1 |
-package v1beta2 |
|
| 1 |
+package v1beta3 |
|
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"github.com/GoogleCloudPlatform/kubernetes/pkg/api" |
| 5 | 5 |
) |
| 6 | 6 |
|
| 7 | 7 |
func init() {
|
| 8 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "Config", &List{})
|
|
| 8 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "Config", &List{})
|
|
| 9 | 9 |
} |
| 10 | 10 |
|
| 11 | 11 |
func (*List) IsAnAPIObject() {}
|
| ... | ... |
@@ -219,10 +219,10 @@ type DeploymentTriggerImageChangeParams struct {
|
| 219 | 219 |
// ContainerNames is used to restrict tag updates to the specified set of container names in a pod. |
| 220 | 220 |
ContainerNames []string `json:"containerNames,omitempty"` |
| 221 | 221 |
// RepositoryName is the identifier for a Docker image repository to watch for changes. |
| 222 |
- // DEPRECATED: will be removed in v1beta2. |
|
| 222 |
+ // DEPRECATED: will be removed in v1beta3. |
|
| 223 | 223 |
RepositoryName string `json:"repositoryName,omitempty"` |
| 224 | 224 |
// From is a reference to a Docker image repository to watch for changes. This field takes |
| 225 |
- // precedence over RepositoryName, which is deprecated and will be removed in v1beta2. The |
|
| 225 |
+ // precedence over RepositoryName, which is deprecated and will be removed in v1beta3. The |
|
| 226 | 226 |
// Kind may be left blank, in which case it defaults to "ImageRepository". The "Name" is |
| 227 | 227 |
// the only required subfield - if Namespace is blank, the namespace of the current deployment |
| 228 | 228 |
// trigger will be used. |
| ... | ... |
@@ -220,10 +220,10 @@ type DeploymentTriggerImageChangeParams struct {
|
| 220 | 220 |
// ContainerNames is used to restrict tag updates to the specified set of container names in a pod. |
| 221 | 221 |
ContainerNames []string `json:"containerNames,omitempty"` |
| 222 | 222 |
// RepositoryName is the identifier for a Docker image repository to watch for changes. |
| 223 |
- // DEPRECATED: will be removed in v1beta2. |
|
| 223 |
+ // DEPRECATED: will be removed in v1beta3. |
|
| 224 | 224 |
RepositoryName string `json:"repositoryName,omitempty"` |
| 225 | 225 |
// From is a reference to a Docker image repository to watch for changes. This field takes |
| 226 |
- // precedence over RepositoryName, which is deprecated and will be removed in v1beta2. The |
|
| 226 |
+ // precedence over RepositoryName, which is deprecated and will be removed in v1beta3. The |
|
| 227 | 227 |
// Kind may be left blank, in which case it defaults to "ImageRepository". The "Name" is |
| 228 | 228 |
// the only required subfield - if Namespace is blank, the namespace of the current deployment |
| 229 | 229 |
// trigger will be used. |
| ... | ... |
@@ -1,4 +1,4 @@ |
| 1 |
-package v1beta2_test |
|
| 1 |
+package v1beta3_test |
|
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"reflect" |
| ... | ... |
@@ -26,7 +26,7 @@ func TestRoundTripVersionedObject(t *testing.T) {
|
| 26 | 26 |
DockerImageReference: "foo/bar/baz", |
| 27 | 27 |
} |
| 28 | 28 |
|
| 29 |
- data, err := kapi.Scheme.EncodeToVersion(i, "v1beta2") |
|
| 29 |
+ data, err := kapi.Scheme.EncodeToVersion(i, "v1beta3") |
|
| 30 | 30 |
if err != nil {
|
| 31 | 31 |
t.Fatalf("unexpected error: %v", err)
|
| 32 | 32 |
} |
| ... | ... |
@@ -1,4 +1,4 @@ |
| 1 |
-package v1beta2 |
|
| 1 |
+package v1beta3 |
|
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"github.com/GoogleCloudPlatform/kubernetes/pkg/api" |
| ... | ... |
@@ -8,7 +8,7 @@ import ( |
| 8 | 8 |
) |
| 9 | 9 |
|
| 10 | 10 |
func init() {
|
| 11 |
- api.Scheme.AddKnownTypes("v1beta2",
|
|
| 11 |
+ api.Scheme.AddKnownTypes("v1beta3",
|
|
| 12 | 12 |
&Image{},
|
| 13 | 13 |
&ImageList{},
|
| 14 | 14 |
&ImageStream{},
|
| ... | ... |
@@ -18,11 +18,11 @@ func init() {
|
| 18 | 18 |
&ImageStreamImage{},
|
| 19 | 19 |
) |
| 20 | 20 |
// Legacy names are supported |
| 21 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "ImageRepository", &ImageStream{})
|
|
| 22 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "ImageRepositoryList", &ImageStreamList{})
|
|
| 23 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "ImageRepositoryMapping", &ImageStreamMapping{})
|
|
| 24 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "ImageRepositoryTag", &ImageStreamTag{})
|
|
| 25 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "ImageRepositoryImage", &ImageStreamImage{})
|
|
| 21 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "ImageRepository", &ImageStream{})
|
|
| 22 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "ImageRepositoryList", &ImageStreamList{})
|
|
| 23 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "ImageRepositoryMapping", &ImageStreamMapping{})
|
|
| 24 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "ImageRepositoryTag", &ImageStreamTag{})
|
|
| 25 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "ImageRepositoryImage", &ImageStreamImage{})
|
|
| 26 | 26 |
} |
| 27 | 27 |
|
| 28 | 28 |
func (*Image) IsAnAPIObject() {}
|
| ... | ... |
@@ -1,11 +1,11 @@ |
| 1 |
-package v1beta2 |
|
| 1 |
+package v1beta3 |
|
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"github.com/GoogleCloudPlatform/kubernetes/pkg/api" |
| 5 | 5 |
) |
| 6 | 6 |
|
| 7 | 7 |
func init() {
|
| 8 |
- api.Scheme.AddKnownTypes("v1beta2",
|
|
| 8 |
+ api.Scheme.AddKnownTypes("v1beta3",
|
|
| 9 | 9 |
&OAuthAccessToken{},
|
| 10 | 10 |
&OAuthAccessTokenList{},
|
| 11 | 11 |
&OAuthAuthorizeToken{},
|
| ... | ... |
@@ -1,15 +1,15 @@ |
| 1 |
-package v1beta2 |
|
| 1 |
+package v1beta3 |
|
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"github.com/GoogleCloudPlatform/kubernetes/pkg/api" |
| 5 | 5 |
) |
| 6 | 6 |
|
| 7 | 7 |
func init() {
|
| 8 |
- api.Scheme.AddKnownTypes("v1beta2",
|
|
| 8 |
+ api.Scheme.AddKnownTypes("v1beta3",
|
|
| 9 | 9 |
&Template{},
|
| 10 | 10 |
&TemplateList{},
|
| 11 | 11 |
) |
| 12 |
- api.Scheme.AddKnownTypeWithName("v1beta2", "TemplateConfig", &Template{})
|
|
| 12 |
+ api.Scheme.AddKnownTypeWithName("v1beta3", "TemplateConfig", &Template{})
|
|
| 13 | 13 |
} |
| 14 | 14 |
|
| 15 | 15 |
func (*Template) IsAnAPIObject() {}
|