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 4b66e10 commit f4255e5
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 @@ -495,7 +495,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 @@ -502,7 +502,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 f4255e5

Please sign in to comment.