mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
hack/generate: patch auto-generated deepcopy functions
Temporary (hopefully) fix for deepcopy functions that code-generator doesn't get quite right.
This commit is contained in:
parent
22cd9d3d18
commit
ef4ac7c5d3
1 changed files with 5 additions and 0 deletions
|
@ -30,5 +30,10 @@ rm -rf pkg/generated
|
|||
|
||||
mv sigs.k8s.io/node-feature-discovery/pkg/generated pkg/
|
||||
|
||||
|
||||
# HACK: manually patching the auto-generated code as code-generator cannot
|
||||
# properly handle deepcopy of MatchExpressionSet.
|
||||
sed s'/out = new(map\[string\]\*MatchExpression)/out = new(MatchExpressionSet)/' -i pkg/apis/nfd/v1alpha1/zz_generated.deepcopy.go
|
||||
|
||||
rm -rf sigs.k8s.io
|
||||
|
||||
|
|
Loading…
Reference in a new issue