Skip to content

Commit

Permalink
Fix bug - correct creation of spec.Selector in api-server
Browse files Browse the repository at this point in the history
  • Loading branch information
vutuong committed Mar 3, 2021
1 parent 28a934b commit 88a22c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api-server/endpoints/podmigration.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (pe *PodmigrationEndpoint) create(request *restful.Request, response *restf
pm := new(Podmigration)
err := request.ReadEntity(pm)
pm.Action = strings.ToLower(pm.Action)
labelSelector := metav1.LabelSelector{MatchLabels: map[string]string{"podmig": "dcn"}}
pm.Selector = &labelSelector
// fmt.Println("Calling an action: - %v", pm.Action)
fmt.Println(pm)
if err != nil {
Expand Down

0 comments on commit 88a22c7

Please sign in to comment.