From 4e8dc877f18b148dd8cf4bc6a346d1bc14b8acd1 Mon Sep 17 00:00:00 2001 From: Tarun Khandelwal Date: Wed, 4 Aug 2021 11:40:23 +0530 Subject: [PATCH] chore: make 'name' in EnvVar optional --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index 2629347..a49a8be 100644 --- a/types.go +++ b/types.go @@ -38,7 +38,7 @@ type RuntimeObjectWithMetadata interface { // +kubebuilder:object:generate=true type EnvVar struct { - Name string `json:"name" yaml:"name" protobuf:"bytes,1,opt,name=name"` + Name string `json:"name,omitempty" yaml:"name,omitempty" protobuf:"bytes,1,opt,name=name"` Value string `json:"value,omitempty" yaml:"value,omitempty" protobuf:"bytes,2,opt,name=value"` ValueFrom *EnvVarSource `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty" protobuf:"bytes,3,opt,name=valueFrom"` }