Skip to content

Commit

Permalink
add is default flag to deployment target (#3938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Nov 7, 2023
1 parent afd2d44 commit 615323b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/models/deployment_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ type DeploymentTarget struct {

// Metadata is a JSONB column that stores arbitrary metadata about the deployment target
Metadata JSONB `json:"metadata" sql:"type:jsonb" gorm:"type:jsonb;default:'{}'"`

// IsDefault indicates whether this is the default deployment target for the cluster
IsDefault bool `gorm:"default:false" json:"is_default"`
}

// ToDeploymentTargetType generates an external types.PorterApp to be shared over REST
Expand Down

0 comments on commit 615323b

Please sign in to comment.