Merge pull request #14885 from rook/mergify/bp/release-1.15/pr-14883

ci: fix the codegen workflow (backport #14883)
This commit is contained in:
Travis Nielsen authored and GitHub committed 2024-10-22 10:41:15 -06:00
commit 68e2bf6933
2 files changed
+35 -2

No files matched your search

+14 -2
View File
@@ -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
@@ -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
}