Skip to content

Commit

Permalink
Fix bug in RouteAgent resource creation on OpenShift
Browse files Browse the repository at this point in the history
RouteAgent resources creation failed on OpenShift with [1] error.

[1]
the object provided is unrecognized (must be of type RouteAgent):
 Object 'Kind' is missing in
'{"metadata":{"name":"submqe-azure-ks4th-master-1",

Signed-off-by: Yossi Boaron <yboaron@redhat.com>
  • Loading branch information
yboaron committed Oct 10, 2024
1 parent b1ea22a commit f439326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/routeagent_driver/handlers/healthchecker/healthchecker.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ func (h *controller) syncRouteAgentStatus() {

func (h *controller) generateRouteAgentObject() *submarinerv1.RouteAgent {
return &submarinerv1.RouteAgent{
TypeMeta: metav1.TypeMeta{
Kind: "RouteAgent",
},
ObjectMeta: metav1.ObjectMeta{
Name: h.localNodeName,
},
Expand Down

0 comments on commit f439326

Please sign in to comment.