mirror of
https://github.com/paralus/paralus.git
synced 2026-05-07 17:06:48 +00:00
style: Fixed Misspells (#223)
Fixed the various misspells which were present in the code pointed out by Go Report Card Fixes #198 Signed-off-by: Kartik-Garg <kartik.garg@infracloud.io>
This commit is contained in:
@@ -129,7 +129,7 @@ func (a *applier) Apply(ctx context.Context, obj ctrlclient.Object, opts ...Opti
|
||||
f(applyOpts)
|
||||
}
|
||||
|
||||
// added to preserve backward compatability with other code
|
||||
// added to preserve backward compatibility with other code
|
||||
if !applyOpts.UseUpdate {
|
||||
applyOpts.UseUpdate = isApplyUpdate(obj)
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ func isKnowMergePatchGroup(gvk schema.GroupVersionKind) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsStrategicMergePatch returns true if gvk is present in the registerd scheme
|
||||
// IsStrategicMergePatch returns true if gvk is present in the registered scheme
|
||||
func IsStrategicMergePatch(gvk schema.GroupVersionKind) bool {
|
||||
return scheme.Scheme.Recognizes(gvk) && !isKnowMergePatchGroup(gvk)
|
||||
}
|
||||
@@ -59,7 +59,7 @@ func CreateStrategicMergePatch(gvk schema.GroupVersionKind, original, current, m
|
||||
return ret, err
|
||||
}
|
||||
|
||||
// ApplyStrategicMergePatch applies strategic merge patch on orginal
|
||||
// ApplyStrategicMergePatch applies strategic merge patch on original
|
||||
func ApplyStrategicMergePatch(gvk schema.GroupVersionKind, original, patch []byte) ([]byte, error) {
|
||||
obj, err := scheme.Scheme.New(gvk)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user