Skip to content

Commit

Permalink
Add DevDeployment option
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jan 3, 2025
1 parent 1d82459 commit f9399dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apis/installer/v1alpha1/ace_options_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package v1alpha1
import (
"fmt"
"net/url"
"strings"

catgwapi "go.bytebuilders.dev/catalog/api/gateway/v1alpha1"
configapi "go.bytebuilders.dev/resource-model/apis/config/v1alpha1"
Expand Down Expand Up @@ -376,6 +377,12 @@ func (dt DeploymentType) UsesVirtualCluster() bool {
dt == GCPMarketplaceDeployment
}

func (a AceOptionsSpec) DevDeployment() bool {
return (a.Context.DeploymentType == CloudDemoDeployment ||
a.Context.DeploymentType == OnpremDemoDeployment) &&
strings.HasSuffix(a.InitialSetup.Admin.Email, "@appscode.com")
}

type AceDeploymentContext struct {
DeploymentType DeploymentType `json:"deploymentType"`
InstallerName string `json:"installerName"`
Expand Down

0 comments on commit f9399dd

Please sign in to comment.