Skip to content

Commit

Permalink
feat: ami type for mgmt cluster (#573)
Browse files Browse the repository at this point in the history
* feat: ami type for mgmt cluster

* chore: update swager docs
  • Loading branch information
CristhianF7 authored Jan 30, 2025
1 parent 3cbfc64 commit d8d50d8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,9 @@ const docTemplate = `{
"description": "Identifiers",
"type": "string"
},
"ami_type": {
"type": "string"
},
"argocd_auth_token": {
"type": "string"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,9 @@
"description": "Identifiers",
"type": "string"
},
"ami_type": {
"type": "string"
},
"argocd_auth_token": {
"type": "string"
},
Expand Down
2 changes: 2 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ definitions:
alerts_email:
description: Identifiers
type: string
ami_type:
type: string
argocd_auth_token:
type: string
argocd_create_registry_check:
Expand Down
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 d8d50d8

Please sign in to comment.