From 6c125abcb9a6c9275ff0201cce61b4b509264aa1 Mon Sep 17 00:00:00 2001 From: Bryan Cox Date: Wed, 18 Dec 2024 17:40:31 -0500 Subject: [PATCH] Fix spelling mistakes found in codespell Signed-off-by: Bryan Cox --- hypershift-operator/controllers/hostedcluster/karpenter.go | 2 +- karpenter-operator/controllers/karpenter/manifests.go | 2 +- karpenter-operator/manifests/operator.go | 2 +- support/releaseinfo/registryclient/client.go | 2 +- support/util/imagemetadata.go | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hypershift-operator/controllers/hostedcluster/karpenter.go b/hypershift-operator/controllers/hostedcluster/karpenter.go index e165e831eb..fe1210acf9 100644 --- a/hypershift-operator/controllers/hostedcluster/karpenter.go +++ b/hypershift-operator/controllers/hostedcluster/karpenter.go @@ -62,7 +62,7 @@ spec: } // Managed a NodePool to generate userData for Karpenter instances - // TODO(alberto): consider invoking the token library to manage the karpenter userdata programatically, + // TODO(alberto): consider invoking the token library to manage the karpenter userdata programmatically, // instead of via NodePool API. nodePool := &hyperv1.NodePool{ ObjectMeta: metav1.ObjectMeta{ diff --git a/karpenter-operator/controllers/karpenter/manifests.go b/karpenter-operator/controllers/karpenter/manifests.go index b2d75b171a..da720c7f57 100644 --- a/karpenter-operator/controllers/karpenter/manifests.go +++ b/karpenter-operator/controllers/karpenter/manifests.go @@ -395,7 +395,7 @@ func (r *Reconciler) reconcileKarpenter(ctx context.Context, hcp *hyperv1.Hosted // The deployment depends on the kubeconfig being reported. if hcp.Status.KubeConfig != nil { - // Resolve the kubeconfig secret for CAPI which is used for karpeneter for convience + // Resolve the kubeconfig secret for CAPI which is used for karpeneter for convenience capiKubeConfigSecret := &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Namespace: hcp.Namespace, diff --git a/karpenter-operator/manifests/operator.go b/karpenter-operator/manifests/operator.go index e25031aa4e..a0d2e5e631 100644 --- a/karpenter-operator/manifests/operator.go +++ b/karpenter-operator/manifests/operator.go @@ -342,7 +342,7 @@ func ReconcileKarpenterOperator(ctx context.Context, createOrUpdate upsert.Creat // The deployment depends on the kubeconfig being reported. if hcp.Status.KubeConfig != nil { - // Resolve the kubeconfig secret for CAPI which is used for karpeneter for convience + // Resolve the kubeconfig secret for CAPI which is used for karpeneter for convenience capiKubeConfigSecret := &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Namespace: hcp.Namespace, diff --git a/support/releaseinfo/registryclient/client.go b/support/releaseinfo/registryclient/client.go index db102f744e..59839d8578 100644 --- a/support/releaseinfo/registryclient/client.go +++ b/support/releaseinfo/registryclient/client.go @@ -308,7 +308,7 @@ func IsMultiArchManifestList(ctx context.Context, imageRef string, pullSecret [] return false, nil } - // Default to using the deserializeManifest function, but allow for a custom deserialization function to be passed in the context for testing purposes and avoiding paralelism issues + // Default to using the deserializeManifest function, but allow for a custom deserialization function to be passed in the context for testing purposes and avoiding parallelism issues deserializeFunc := deserializeManifest if ctx.Value(DeserializeFuncName) != nil { deserializeFunc = ctx.Value(DeserializeFuncName).(func([]byte) (*manifestlist.DeserializedManifestList, error)) diff --git a/support/util/imagemetadata.go b/support/util/imagemetadata.go index b268f5a26d..fbade96c0f 100644 --- a/support/util/imagemetadata.go +++ b/support/util/imagemetadata.go @@ -170,7 +170,7 @@ func (r *RegistryClientImageMetadataProvider) GetDigest(ctx context.Context, ima composedRef := fmt.Sprintf("%s/%s/%s", ref.Registry, ref.Namespace, ref.NameString()) - // If the overriden image name is in the cache, return early + // If the overridden image name is in the cache, return early if imageDigest, exists := digestCache.Get(composedRef); exists { ref.ID = string(imageDigest.(digest.Digest)) return imageDigest.(digest.Digest), ref, nil @@ -400,7 +400,7 @@ func GetRegistryOverrides(ctx context.Context, ref reference.DockerImageReferenc } // docker lib, by default will empty the Namespace once we pass an override with just a Namespace - // and it will asume that is the Name instead + // and it will assume that is the Name instead if sourceRef.Namespace == "" { if sourceRef.Name == ref.Namespace { composedImage := fmt.Sprintf("%s/%s/%s", mirrorRef.Registry, ref.Namespace, ref.NameString())