Skip to content

Commit

Permalink
Set HTTPProxy status on init
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Dec 19, 2019
1 parent 38b04f2 commit c066a91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/router/contour.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func (cr *ContourRouter) Reconcile(canary *flaggerv1.Canary) error {
Port: int(canary.Spec.Service.Port),
Weight: uint32(0),
},
}},
},
},
},
}

Expand All @@ -68,6 +69,10 @@ func (cr *ContourRouter) Reconcile(canary *flaggerv1.Canary) error {
},
},
Spec: newSpec,
Status: contourv1.Status{
CurrentStatus: "valid",
Description: "valid HTTPProxy",
},
}

_, err = cr.contourClient.ProjectcontourV1().HTTPProxies(canary.Namespace).Create(proxy)
Expand Down

0 comments on commit c066a91

Please sign in to comment.