Skip to content

Commit

Permalink
Fix spelling mistakes found in codespell
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Cox <brcox@redhat.com>
  • Loading branch information
bryan-cox committed Dec 18, 2024
1 parent 3fddc32 commit 6c125ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hypershift-operator/controllers/hostedcluster/karpenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion karpenter-operator/controllers/karpenter/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion karpenter-operator/manifests/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion support/releaseinfo/registryclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions support/util/imagemetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 6c125ab

Please sign in to comment.