diff --git a/cmd/eksctl-anywhere/cmd/upgrademanagementcomponents.go b/cmd/eksctl-anywhere/cmd/upgrademanagementcomponents.go index 72b29ecdffa6..2bce8b7d9373 100644 --- a/cmd/eksctl-anywhere/cmd/upgrademanagementcomponents.go +++ b/cmd/eksctl-anywhere/cmd/upgrademanagementcomponents.go @@ -34,9 +34,7 @@ var upgradeManagementComponentsCmd = &cobra.Command{ RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() - clusterSpec, err := newClusterSpec(clusterOptions{ - fileName: umco.fileName, - }) + clusterSpec, err := newClusterSpec(umco.clusterOptions) if err != nil { return err }