Skip to content

Commit

Permalink
remove cluster config validation from common validations
Browse files Browse the repository at this point in the history
  • Loading branch information
cxbrowne1207 committed Feb 9, 2024
1 parent 02225e7 commit 6493485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/eksctl-anywhere/cmd/validations.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ func commonValidation(ctx context.Context, clusterConfigFile string) (*v1alpha1.
if !clusterConfigFileExist {
return nil, fmt.Errorf("the cluster config file %s does not exist", clusterConfigFile)
}
clusterConfig, err := v1alpha1.GetAndValidateClusterConfig(clusterConfigFile)

clusterConfig, err := v1alpha1.GetClusterConfig(clusterConfigFile)

Check warning on line 24 in cmd/eksctl-anywhere/cmd/validations.go

View check run for this annotation

Codecov / codecov/patch

cmd/eksctl-anywhere/cmd/validations.go#L24

Added line #L24 was not covered by tests
if err != nil {
return nil, fmt.Errorf("the cluster config file provided is invalid: %v", err)
}
Expand Down

0 comments on commit 6493485

Please sign in to comment.