From 7974e041c55631a18f845f1909ca8306aa5cd2d6 Mon Sep 17 00:00:00 2001 From: Sirajudeen Date: Wed, 21 Jul 2021 22:13:46 +0000 Subject: [PATCH] Regenerate deepcopy with recent changes * updated README to use `make generate` option to generate deepcopy file. Change-Id: I43f3ebd970fb48671fe936bf184eaed2a15a2389 --- pkg/api/v1alpha1/README.md | 21 +-------------------- pkg/api/v1alpha1/zz_generated.deepcopy.go | 7 +++++++ 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/pkg/api/v1alpha1/README.md b/pkg/api/v1alpha1/README.md index 67dc929a5..f921c821b 100644 --- a/pkg/api/v1alpha1/README.md +++ b/pkg/api/v1alpha1/README.md @@ -3,23 +3,4 @@ This directory contains the data types needed by *airshipctl phase run* command. When you add a new data structure in this directory you will need to generate the file *zz_generated.deepcopy.go*. -To generate this file you will need the tool *controller-gen" executable. - -If you don't have *controller-gen* in your machine, clone the following repository and compile it. - -```bash -git clone https://github.com/kubernetes-sigs/controller-tools.git -cd controller-tools/cmd/controller-gen -go build -o controller-gen -``` - -Now you can generate the *zz_generated.deepcopy.go* using *controller-gen* as follow: - -```bash -/path/to/controller-gen object paths=/path/to/airshipctl/pkg/api/v1alpha1/ -``` - -At this point you should have a newly generated *zz_generated.deepcopy.go*. -Just check if your data structure has been added to this file and you are good to go. - ->TODO: Add this task in the Makefile +To generate this file you will need to run *make generate*. diff --git a/pkg/api/v1alpha1/zz_generated.deepcopy.go b/pkg/api/v1alpha1/zz_generated.deepcopy.go index afaf002c5..500b8a525 100644 --- a/pkg/api/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/api/v1alpha1/zz_generated.deepcopy.go @@ -1801,6 +1801,13 @@ func (in *VersionsCatalogueSpec) DeepCopyInto(out *VersionsCatalogueSpec) { (*out)[key] = outVal } } + if in.ImageRepositories != nil { + in, out := &in.ImageRepositories, &out.ImageRepositories + *out = make(map[string]ImageRepositorySpec, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionsCatalogueSpec.