Skip to content

Commit efddffc

Browse files
authored
make the workbuilder.ManifestWorkSpecEqual accessible (#200)
Signed-off-by: melserngawy <[email protected]> Signed-off-by: melserngawy <[email protected]>
1 parent 6529d52 commit efddffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/work/v1/workapplier/workapplier.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (w *WorkApplier) Apply(ctx context.Context, work *workapiv1.ManifestWork) (
6262
return existingWork, nil
6363
}
6464

65-
if manifestWorkSpecEqual(work.Spec, existingWork.Spec) {
65+
if ManifestWorkSpecEqual(work.Spec, existingWork.Spec) {
6666
return existingWork, nil
6767
}
6868

@@ -124,7 +124,7 @@ func manifestsEqual(new, old []workapiv1.Manifest) bool {
124124
return true
125125
}
126126

127-
func manifestWorkSpecEqual(new, old workapiv1.ManifestWorkSpec) bool {
127+
func ManifestWorkSpecEqual(new, old workapiv1.ManifestWorkSpec) bool {
128128
if !manifestsEqual(new.Workload.Manifests, old.Workload.Manifests) {
129129
return false
130130
}

0 commit comments

Comments
 (0)