Skip to content

Commit

Permalink
dependency for bottlerocket
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax committed Dec 14, 2024
1 parent c0784e2 commit 1f2537e
Show file tree
Hide file tree
Showing 7 changed files with 623 additions and 1,262 deletions.
2 changes: 1 addition & 1 deletion cmd/aws/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func createAws(cmd *cobra.Command, _ []string) error {
return fmt.Errorf("unable to load AWS SDK config: %w", err)
}

err = ValidateProvidedFlags(cfg, cliFlags.GitProvider, cliFlags.AmiType, cliFlags.NodeType)
err = ValidateProvidedFlags(cfg, cliFlags.GitProvider, cliFlags.AMIType, cliFlags.NodeType)
if err != nil {
progress.Error(err.Error())
return fmt.Errorf("failed to validate provided flags: %w", err)
Expand Down
349 changes: 186 additions & 163 deletions go.mod

Large diffs are not rendered by default.

1,527 changes: 432 additions & 1,095 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/launch/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Kubefirst console has already been deployed. To start over, run` + "`" + `kubefi
apiDeployment, err := k8s.ReturnDeploymentObject(
kcfg.Clientset,
"app.kubernetes.io/name",
"kubefirst-api",
"api",
"kubefirst",
240,
)
Expand Down
2 changes: 1 addition & 1 deletion internal/types/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ type CliFlags struct {
K3sServersPublicIPs []string
K3sServersArgs []string
InstallKubefirstPro bool
AmiType string
AMIType string
}
2 changes: 1 addition & 1 deletion internal/utilities/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func GetFlags(cmd *cobra.Command, cloudProvider string) (types.CliFlags, error)
progress.Error(err.Error())
return cliFlags, fmt.Errorf("failed to get ami type: %w", err)
}
cliFlags.AmiType = amiType
cliFlags.AMIType = amiType
}

if cloudProvider == "azure" {
Expand Down
1 change: 1 addition & 0 deletions internal/utilities/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func CreateClusterDefinitionRecordFromRaw(gitAuth apiTypes.GitAuth, cliFlags typ
cl.AWSAuth.SecretAccessKey = viper.GetString("kubefirst.state-store-creds.secret-access-key-id")
cl.AWSAuth.SessionToken = viper.GetString("kubefirst.state-store-creds.token")
cl.ECR = cliFlags.ECR
cl.AMIType = cliFlags.AMIType
case "azure":
cl.AzureAuth.ClientID = os.Getenv("ARM_CLIENT_ID")
cl.AzureAuth.ClientSecret = os.Getenv("ARM_CLIENT_SECRET")
Expand Down

0 comments on commit 1f2537e

Please sign in to comment.