diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index ade666c32..7021cff76 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -38,8 +38,20 @@ jobs: with: go-version: "1.22" + - name: post-process checkout - copy to github.com + run: | + # copy to the github.com path so codegen will work as expected + mkdir -p $(go env GOPATH)/src/github.com/rook/rook/ + cp -R . $(go env GOPATH)/src/github.com/rook/rook/ + - name: run codegen - run: GOPATH=$(go env GOPATH) make codegen + run: | + cd $(go env GOPATH)/src/github.com/rook/rook + GOPATH=$(go env GOPATH) make codegen - name: validate codegen - run: tests/scripts/validate_modified_files.sh codegen + run: | + # run validation again, explicitly. + # it is also part of 'make codegen' + cd $(go env GOPATH)/src/github.com/rook/rook + tests/scripts/validate_modified_files.sh codegen diff --git a/pkg/apis/ceph.rook.io/v1/zz_generated.deepcopy.go b/pkg/apis/ceph.rook.io/v1/zz_generated.deepcopy.go index bd6bf6821..af7b0b888 100644 --- a/pkg/apis/ceph.rook.io/v1/zz_generated.deepcopy.go +++ b/pkg/apis/ceph.rook.io/v1/zz_generated.deepcopy.go @@ -1011,6 +1011,22 @@ func (in *CephDaemonsVersions) DeepCopy() *CephDaemonsVersions { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CephExporterSpec) DeepCopyInto(out *CephExporterSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephExporterSpec. +func (in *CephExporterSpec) DeepCopy() *CephExporterSpec { + if in == nil { + return nil + } + out := new(CephExporterSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CephFilesystem) DeepCopyInto(out *CephFilesystem) { *out = *in @@ -3249,6 +3265,11 @@ func (in *MonitoringSpec) DeepCopyInto(out *MonitoringSpec) { *out = new(metav1.Duration) **out = **in } + if in.Exporter != nil { + in, out := &in.Exporter, &out.Exporter + *out = new(CephExporterSpec) + **out = **in + } return }