diff --git a/Makefile b/Makefile index 9bce4e6af4..8cce96bae6 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ test: unit functional check: depend fmt vet lint -unit: depend +unit: generate depend go test -tags=unit $(shell go list ./...) $(TESTARGS) functional: @@ -87,7 +87,7 @@ endif vet: go vet ./... -cover: depend +cover: generate depend go test -tags=unit $(shell go list ./...) -cover docs: diff --git a/pkg/apis/openstackproviderconfig/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/openstackproviderconfig/v1alpha1/zz_generated.deepcopy.go index f45d83dcbe..ff428a83ea 100644 --- a/pkg/apis/openstackproviderconfig/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/openstackproviderconfig/v1alpha1/zz_generated.deepcopy.go @@ -111,6 +111,11 @@ func (in *OpenstackClusterProviderSpec) DeepCopyInto(out *OpenstackClusterProvid *out = make([]string, len(*in)) copy(*out, *in) } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make([]string, len(*in)) + copy(*out, *in) + } return } @@ -210,9 +215,11 @@ func (in *OpenstackProviderSpec) DeepCopyInto(out *OpenstackProviderSpec) { *out = new(v1.SecretReference) **out = **in } - out.RootVolume = in.RootVolume - out.Tags = in.Tags - + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.ServerMetadata != nil { in, out := &in.ServerMetadata, &out.ServerMetadata *out = make(map[string]string, len(*in)) @@ -220,6 +227,16 @@ func (in *OpenstackProviderSpec) DeepCopyInto(out *OpenstackProviderSpec) { (*out)[key] = val } } + if in.ConfigDrive != nil { + in, out := &in.ConfigDrive, &out.ConfigDrive + *out = new(bool) + **out = **in + } + if in.RootVolume != nil { + in, out := &in.RootVolume, &out.RootVolume + *out = new(RootVolume) + **out = **in + } return }