File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,8 +186,8 @@ func (s *Syncer) Start(ctx context.Context) {
186186 targets := make ([]WatchTarget , 0 , len (svcs ))
187187 for _ , svc := range svcs {
188188 var healthPath string
189- if svc .Blueprint != nil && svc .Blueprint .HealthCheck != nil {
190- healthPath = svc .Blueprint .HealthCheck . Path
189+ if svc .Blueprint != nil && svc .Blueprint .HealthCheck != "" {
190+ healthPath = svc .Blueprint .HealthCheck
191191 }
192192
193193 targets = append (targets , WatchTarget {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type DeployRequest struct {
4545 Secrets map [string ]any `json:"secrets,omitempty"`
4646 Remote store.RemoteObj `json:"remote,omitempty"`
4747 Domain string `json:"domain,omitempty"`
48- HealthCheck * store. HealthCheck `json:"health_check,omitempty"`
48+ HealthCheck string `json:"health_check,omitempty"`
4949}
5050
5151func (dr * DeployRequest ) GetRuntimeObj () store.RuntimeObj {
Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ func FromStoreService(s *store.Service) ServiceV1_1 {
135135 if s .DeploymentId != "" {
136136 svc .DeploymentID = & s .DeploymentId
137137 }
138- if s .Blueprint != nil && s .Blueprint .HealthCheck != nil && s . Blueprint . HealthCheck . Path != "" {
139- svc .HealthCheck = s .Blueprint .HealthCheck . Path
138+ if s .Blueprint != nil && s .Blueprint .HealthCheck != "" {
139+ svc .HealthCheck = s .Blueprint .HealthCheck
140140 }
141141
142142 if len (s .EnvVars ) > 0 {
Original file line number Diff line number Diff line change @@ -36,13 +36,6 @@ type RemoteObj struct {
3636 Token string `json:"token,omitempty" db:"-"`
3737}
3838
39- type HealthCheck struct {
40- Path string `json:"path"`
41- Interval int `json:"interval,omitempty"`
42- Timeout int `json:"timeout,omitempty"`
43- Retries int `json:"retries,omitempty"`
44- }
45-
4639type Blueprint struct {
4740 Name string `json:"name" db:"name"`
4841 Desc string `json:"description" db:"description"`
@@ -60,7 +53,7 @@ type Blueprint struct {
6053 Secrets map [string ]string `json:"secrets,omitempty" db:"secrets"`
6154 Status string `json:"status" db:"status"`
6255 ProjectID * string `json:"project_id,omitempty" db:"project_id"`
63- HealthCheck * HealthCheck `json:"health_check,omitempty" db:"health_check"`
56+ HealthCheck string `json:"health_check,omitempty" db:"health_check"`
6457}
6558
6659type Deployment struct {
You can’t perform that action at this time.
0 commit comments