From cfb15e22d8067fa3e1a067df37cea06514631823 Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Thu, 9 Apr 2015 13:36:37 -0400 Subject: [PATCH] Fix serialization for v1beta[12] container Command --- pkg/api/v1beta1/types.go | 2 +- pkg/api/v1beta2/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/v1beta1/types.go b/pkg/api/v1beta1/types.go index 4b253df8d2b..23f97766b9a 100644 --- a/pkg/api/v1beta1/types.go +++ b/pkg/api/v1beta1/types.go @@ -439,7 +439,7 @@ type Container struct { // Required. Image string `json:"image" description:"Docker image name"` // Optional: The image's entrypoint is used if this is not provided; cannot be updated. - Entrypoint []string `json:"entrypoint:omitempty" description:"entrypoint array; not executed within a shell; the image's entrypoint is used if this is not provided; cannot be updated"` + Entrypoint []string `json:"entrypoint,omitempty" description:"entrypoint array; not executed within a shell; the image's entrypoint is used if this is not provided; cannot be updated"` // Optional: The image's cmd is used if this is not provided; cannot be updated. Command []string `json:"command,omitempty" description:"command argv array; not executed within a shell; the image's cmd is used if this is not provided; cannot be updated"` // Optional: Docker's default is used if this is not provided. diff --git a/pkg/api/v1beta2/types.go b/pkg/api/v1beta2/types.go index 7e4ab035402..6b537948832 100644 --- a/pkg/api/v1beta2/types.go +++ b/pkg/api/v1beta2/types.go @@ -434,7 +434,7 @@ type Container struct { // Required. Image string `json:"image" description:"Docker image name"` // Optional: The image's entrypoint is used if this is not provided; cannot be updated. - Entrypoint []string `json:"entrypoint:omitempty" description:"entrypoint array; not executed within a shell; the image's entrypoint is used if this is not provided; cannot be updated"` + Entrypoint []string `json:"entrypoint,omitempty" description:"entrypoint array; not executed within a shell; the image's entrypoint is used if this is not provided; cannot be updated"` // Optional: The image's cmd is used if this is not provided; cannot be updated. Command []string `json:"command,omitempty" description:"command argv array; not executed within a shell; the image's cmd is used if this is not provided; cannot be updated"` // Optional: Docker's default is used if this is not provided.