From 35f9a047f524bc90e84641fc70c09e4df1dece61 Mon Sep 17 00:00:00 2001 From: Ricky Pai Date: Wed, 14 Jun 2017 03:39:56 -0700 Subject: [PATCH] update HostAliases' json keys to be hostAlias instead of hostMapping --- pkg/api/v1/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/v1/types.go b/pkg/api/v1/types.go index 8ec3b0beee0..9bbd07a9ddd 100644 --- a/pkg/api/v1/types.go +++ b/pkg/api/v1/types.go @@ -2519,7 +2519,7 @@ type PodSpec struct { // +optional // +patchMergeKey=IP // +patchStrategy=merge - HostAliases []HostAlias `json:"hostMappings,omitempty" patchStrategy:"merge" patchMergeKey:"IP" protobuf:"bytes,23,rep,name=hostMappings"` + HostAliases []HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"IP" protobuf:"bytes,23,rep,name=hostAliases"` } // HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the