Skip to content

Commit dda4879

Browse files
authored
fix: install pkg ctlr using helm chart from bundles override (#10009)
1 parent a9f5139 commit dda4879

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/eksctl-anywhere/cmd/installpackagecontroller.go

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

99
"github.com/spf13/cobra"
1010

11+
"github.com/aws/eks-anywhere/pkg/cluster"
1112
"github.com/aws/eks-anywhere/pkg/curatedpackages"
1213
"github.com/aws/eks-anywhere/pkg/kubeconfig"
1314
"github.com/aws/eks-anywhere/pkg/validations"
@@ -54,7 +55,11 @@ func runInstallPackageController(cmd *cobra.Command, args []string) error {
5455
func installPackageController(ctx context.Context) error {
5556
kubeConfig := kubeconfig.FromEnvironment()
5657

57-
clusterSpec, err := readAndValidateClusterSpec(ico.fileName, version.Get())
58+
var opts []cluster.FileSpecBuilderOpt
59+
if ico.bundlesOverride != "" {
60+
opts = append(opts, cluster.WithOverrideBundlesManifest(ico.bundlesOverride))
61+
}
62+
clusterSpec, err := readAndValidateClusterSpec(ico.fileName, version.Get(), opts...)
5863
if err != nil {
5964
return fmt.Errorf("the cluster config file provided is invalid: %v", err)
6065
}

0 commit comments

Comments
 (0)