Skip to content

Commit

Permalink
fix: handle the signal removeManagedRoutes before creating config map
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Plotnikov <[email protected]>
  • Loading branch information
Philipp-Plotnikov committed Feb 13, 2024
1 parent 59f8145 commit f3e1ab0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/plugin/httproute.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ func (r *RpcPlugin) removeHTTPManagedRoutes(managedRouteNameList []v1alpha1.Mang
httpRouteClient = gatewayV1beta1.HTTPRoutes(gatewayAPIConfig.Namespace)
clientset = r.Clientset.CoreV1().ConfigMaps(gatewayAPIConfig.Namespace)
}
configMap, err := clientset.Get(ctx, gatewayAPIConfig.ConfigMap, metav1.GetOptions{})
configMap, err := utils.CreateConfigMap(gatewayAPIConfig.ConfigMap, utils.CreateConfigMapOptions{
Clientset: clientset,
Ctx: ctx,
})
if err != nil {
return pluginTypes.RpcError{
ErrorString: err.Error(),
Expand Down

0 comments on commit f3e1ab0

Please sign in to comment.