Skip to content

Commit

Permalink
feat: ami type for mgmt cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Jan 30, 2025
1 parent 3cbfc64 commit 2b9be1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (clctrl *ClusterController) InitController(def *types.ClusterDefinition) er
clctrl.DNSProvider = def.DNSProvider
clctrl.ClusterType = def.Type
clctrl.Client = http.DefaultClient
clctrl.AMIType = def.AMIType
clctrl.NodeType = def.NodeType
clctrl.NodeCount = def.NodeCount
clctrl.PostInstallCatalogApps = def.PostInstallCatalogApps
Expand Down Expand Up @@ -434,6 +435,7 @@ func (clctrl *ClusterController) InitController(def *types.ClusterDefinition) er
VultrAuth: clctrl.VultrAuth,
K3sAuth: clctrl.K3sAuth,
CloudflareAuth: clctrl.CloudflareAuth,
AMIType: clctrl.AMIType,
NodeType: clctrl.NodeType,
NodeCount: clctrl.NodeCount,
LogFileName: def.LogFileName,
Expand Down
1 change: 1 addition & 0 deletions pkg/types/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ type Cluster struct {
AtlantisWebhookSecret string `bson:"atlantis_webhook_secret" json:"atlantis_webhook_secret"`
AtlantisWebhookURL string `bson:"atlantis_webhook_url" json:"atlantis_webhook_url"`
KubefirstTeam string `bson:"kubefirst_team" json:"kubefirst_team"`
AMIType string `bson:"ami_type,omitempty" json:"ami_type,omitempty"`
NodeType string `bson:"node_type" json:"node_type" binding:"required"`
NodeCount int `bson:"node_count" json:"node_count" binding:"required"`
LogFileName string `bson:"log_file,omitempty" json:"log_file,omitempty"`
Expand Down

0 comments on commit 2b9be1d

Please sign in to comment.