Skip to content

Commit 2e4089b

Browse files
committed
minor lint fixes
1 parent b616f76 commit 2e4089b

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

cmd/node-joiner/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
)
99

1010
func main() {
11-
1211
nodesAddCmd := &cobra.Command{
1312
Use: "add-nodes",
1413
Short: "Generates an ISO that could be used to boot the configured nodes to let them join an existing cluster",

pkg/asset/agent/installconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (a *OptionalInstallConfig) ClusterName() string {
257257
return "agent-cluster"
258258
}
259259

260-
// ClusterName returns the namespace of the cluster.
260+
// ClusterNamespace returns the namespace of the cluster.
261261
func (a *OptionalInstallConfig) ClusterNamespace() string {
262262
if a.Config != nil && a.Config.ObjectMeta.Namespace != "" {
263263
return a.Config.ObjectMeta.Namespace

pkg/asset/agent/joiner/clusterinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
// ClusterInfo it's an asset used to retrieve config info
2424
// from an already existing cluster. A number of different resources
25-
// are inspected to extract the required configuration
25+
// are inspected to extract the required configuration.
2626
type ClusterInfo struct {
2727
ClusterID string
2828
Version string

pkg/asset/agent/mirror/registriesconf.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ func (i *RegistriesConf) Generate(dependencies asset.Parents) error {
193193
}
194194

195195
func (i *RegistriesConf) generateRegistriesConf(imageDigestSources []types.ImageDigestSource, deprecatedImageContentSources []types.ImageContentSource) error {
196-
197196
if len(deprecatedImageContentSources) != 0 && len(imageDigestSources) != 0 {
198197
return fmt.Errorf("invalid install-config.yaml, cannot set imageContentSources and imageDigestSources at the same time")
199198
}

0 commit comments

Comments
 (0)