Skip to content

Commit

Permalink
default to shared=true for v1alpha2 and v1alpha3
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Richerson <[email protected]>
  • Loading branch information
matthew-richerson committed Nov 20, 2024
1 parent 6242ef5 commit b684d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha2/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (src *NnfSystemStorage) ConvertTo(dstRaw conversion.Hub) error {
if hasAnno {
dst.Spec.Shared = restored.Spec.Shared
} else {
dst.Spec.Shared = false
dst.Spec.Shared = true
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha3/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func (src *NnfSystemStorage) ConvertTo(dstRaw conversion.Hub) error {
if hasAnno {
dst.Spec.Shared = restored.Spec.Shared
} else {
dst.Spec.Shared = false
dst.Spec.Shared = true
}

return nil
Expand Down

0 comments on commit b684d57

Please sign in to comment.