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:
Kartik Garg
2023-05-26 14:23:00 +05:30
committed by GitHub
parent c4a7ebe1e8
commit 59674a221a
8 changed files with 25 additions and 25 deletions

View File

@@ -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)
}

View File

@@ -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 {