File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 88)
99
1010func 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" ,
Original file line number Diff line number Diff 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.
261261func (a * OptionalInstallConfig ) ClusterNamespace () string {
262262 if a .Config != nil && a .Config .ObjectMeta .Namespace != "" {
263263 return a .Config .ObjectMeta .Namespace
Original file line number Diff line number Diff 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.
2626type ClusterInfo struct {
2727 ClusterID string
2828 Version string
Original file line number Diff line number Diff line change @@ -193,7 +193,6 @@ func (i *RegistriesConf) Generate(dependencies asset.Parents) error {
193193}
194194
195195func (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 }
You can’t perform that action at this time.
0 commit comments