Skip to content

Commit

Permalink
fix: make the ami-type only required for aws
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Jan 6, 2025
1 parent 921b1d1 commit d2720a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type ClusterDefinition struct {

// AWS
ECR bool `json:"ecr,omitempty"`
AMIType string `json:"ami_type" binding:"required"`
AMIType string `json:"ami_type" binding:"required_if=CloudProvider aws"`

// Azure
AzureDNSZoneResourceGroup string `json:"azure_dns_zone_resource_group,omitempty"`
Expand Down

0 comments on commit d2720a4

Please sign in to comment.