Skip to content

Commit

Permalink
fix: source enum for topology
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed May 16, 2024
1 parent 3cd7af5 commit be49b18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/system_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Topology struct {
Labels dutyTypes.JSONStringMap
Spec dutyTypes.JSON
Schedule string
Source string `gorm:"default:UI"`
CreatedAt time.Time `json:"created_at,omitempty" time_format:"postgres_timestamp"`
UpdatedAt time.Time `json:"updated_at,omitempty" time_format:"postgres_timestamp"`
DeletedAt *time.Time `json:"deleted_at,omitempty" time_format:"postgres_timestamp"`
Expand All @@ -48,6 +49,7 @@ func TopologyFromV1(topology *v1.Topology) Topology {
Namespace: topology.GetNamespace(),
Labels: dutyTypes.JSONStringMap(topology.GetLabels()),
Spec: spec,
Source: models.SourceCRD,
}
}

Expand Down

0 comments on commit be49b18

Please sign in to comment.