Skip to content

Commit 73f436e

Browse files
committed
Fix ClusterClasses spelling in log messages
1 parent f26bdb3 commit 73f436e

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

cmd/clusterctl/client/cluster/mover.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ func (o *objectMover) move(graph *objectGraph, toProxy Proxy) error {
321321
return err
322322
}
323323

324-
log.V(1).Info("Pausing the source cluster classes")
324+
log.V(1).Info("Pausing the source ClusterClasses")
325325
if err := setClusterClassPause(o.fromProxy, clusterClasses, true, o.dryRun); err != nil {
326-
return errors.Wrap(err, "error pausing cluster classes")
326+
return errors.Wrap(err, "error pausing ClusterClasses")
327327
}
328328

329329
// Ensure all the expected target namespaces are in place before creating objects.
@@ -355,10 +355,10 @@ func (o *objectMover) move(graph *objectGraph, toProxy Proxy) error {
355355
}
356356
}
357357

358-
// Resume the cluster classes in the target management cluster, so the controllers start reconciling it.
359-
log.V(1).Info("Resuming the target cluter classes")
358+
// Resume the ClusterClasses in the target management cluster, so the controllers start reconciling it.
359+
log.V(1).Info("Resuming the target ClusterClasses")
360360
if err := setClusterClassPause(toProxy, clusterClasses, false, o.dryRun); err != nil {
361-
return errors.Wrap(err, "error resuming cluster classes")
361+
return errors.Wrap(err, "error resuming ClusterClasses")
362362
}
363363

364364
// Reset the pause field on the Cluster object in the target management cluster, so the controllers start reconciling it.
@@ -381,9 +381,9 @@ func (o *objectMover) backup(graph *objectGraph, directory string) error {
381381
return err
382382
}
383383

384-
log.V(1).Info("Pausing the source cluster classes")
384+
log.V(1).Info("Pausing the source ClusterClasses")
385385
if err := setClusterClassPause(o.fromProxy, clusterClasses, true, o.dryRun); err != nil {
386-
return errors.Wrap(err, "error pausing cluster classes")
386+
return errors.Wrap(err, "error pausing ClusterClasses")
387387
}
388388

389389
// Define the move sequence by processing the ownerReference chain, so we ensure that a Kubernetes object is moved only after its owners.
@@ -401,10 +401,10 @@ func (o *objectMover) backup(graph *objectGraph, directory string) error {
401401
}
402402
}
403403

404-
// Resume the cluster classes in the target management cluster, so the controllers start reconciling it.
405-
log.V(1).Info("Resuming the target cluter classes")
404+
// Resume the ClusterClasses in the target management cluster, so the controllers start reconciling it.
405+
log.V(1).Info("Resuming the target ClusterClasses")
406406
if err := setClusterClassPause(o.fromProxy, clusterClasses, false, o.dryRun); err != nil {
407-
return errors.Wrap(err, "error resuming cluster classes")
407+
return errors.Wrap(err, "error resuming ClusterClasses")
408408
}
409409

410410
// Reset the pause field on the Cluster object in the target management cluster, so the controllers start reconciling it.
@@ -443,9 +443,9 @@ func (o *objectMover) restore(graph *objectGraph, toProxy Proxy) error {
443443

444444
// Resume reconciling the ClusterClasses after being restored from a backup.
445445
// By default, during backup, ClusterClasses are paused so they must be unpaused to be used again
446-
log.V(1).Info("Resuming the target cluter classes")
446+
log.V(1).Info("Resuming the target ClusterClasses")
447447
if err := setClusterClassPause(toProxy, clusterClasses, false, o.dryRun); err != nil {
448-
return errors.Wrap(err, "error resuming cluster classes")
448+
return errors.Wrap(err, "error resuming ClusterClasses")
449449
}
450450

451451
// Resume reconciling the Clusters after being restored from a backup.

cmd/clusterctl/client/clusterclass.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func addClusterClassIfMissing(template Template, clusterClassClient repository.C
5959
return mergedTemplate, nil
6060
}
6161

62-
// clusterClassNamesFromTemplate returns the list of cluster classes referenced
62+
// clusterClassNamesFromTemplate returns the list of ClusterClasses referenced
6363
// by custers defined in the template. If not clusters are defined in the template
6464
// or if no cluster uses a cluster class it returns an empty list.
6565
func clusterClassNamesFromTemplate(template Template) ([]string, error) {
@@ -85,7 +85,7 @@ func clusterClassNamesFromTemplate(template Template) ([]string, error) {
8585
return classes, nil
8686
}
8787

88-
// fetchMissingClusterClassTemplates returns a list of templates for cluster classes that do not yet exist
88+
// fetchMissingClusterClassTemplates returns a list of templates for ClusterClasses that do not yet exist
8989
// in the cluster. If the cluster is not initialized, all the ClusterClasses are added.
9090
func fetchMissingClusterClassTemplates(clusterClassClient repository.ClusterClassClient, clusterClient cluster.Client, classes []string, targetNamespace string, listVariablesOnly bool) (Template, error) {
9191
// first check if the cluster is initialized.
@@ -114,7 +114,7 @@ func fetchMissingClusterClassTemplates(clusterClassClient repository.ClusterClas
114114
}
115115

116116
// Get the templates for all ClusterClasses and associated objects if the target
117-
// CluterClass does not exits in the cluster.
117+
// ClusterClass does not exits in the cluster.
118118
templates := []repository.Template{}
119119
for _, class := range classes {
120120
if clusterInitialized {

cmd/clusterctl/client/repository/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type Client interface {
4848
// Please note that templates are expected to exist for the infrastructure providers only.
4949
Templates(version string) TemplateClient
5050

51-
// ClusterClasses provide access to YAML file for the cluster classes available
51+
// ClusterClasses provide access to YAML file for the ClusterClasses available
5252
// for the provider.
5353
ClusterClasses(version string) ClusterClassClient
5454

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func InitFlags(fs *pflag.FlagSet) {
160160
"Number of clusters to process simultaneously")
161161

162162
fs.IntVar(&clusterClassConcurrency, "clusterclass-concurrency", 10,
163-
"Number of cluster classes to process simultaneously")
163+
"Number of ClusterClasses to process simultaneously")
164164

165165
fs.IntVar(&clusterConcurrency, "cluster-concurrency", 10,
166166
"Number of clusters to process simultaneously")

0 commit comments

Comments
 (0)