Skip to content

Commit

Permalink
chore(ctrl): lint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Apr 13, 2023
1 parent fdd30a6 commit dc7f250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (o *uninstallCmdOptions) uninstallNamespaceRoles(ctx context.Context, cmd *
fmt.Fprintln(cmd.OutOrStdout(), "Camel K Role Bindings removed from namespace", o.Namespace)

KEP1755Namespace := "kube-public"
if err := o.uninstallKEP_1755RoleBindings(ctx, c, KEP1755Namespace); err != nil {
if err := o.uninstallKEP1755RoleBindings(ctx, c, KEP1755Namespace); err != nil {
return err
}
fmt.Fprintln(cmd.OutOrStdout(), "Camel K Role Bindings removed from namespace", KEP1755Namespace)
Expand Down Expand Up @@ -353,7 +353,7 @@ func (o *uninstallCmdOptions) uninstallRoleBindings(ctx context.Context, c clien
return nil
}

func (o *uninstallCmdOptions) uninstallKEP_1755RoleBindings(ctx context.Context, c client.Client, namespace string) error {
func (o *uninstallCmdOptions) uninstallKEP1755RoleBindings(ctx context.Context, c client.Client, namespace string) error {
api := c.RbacV1()

roleBindings, err := api.RoleBindings(namespace).List(ctx, defaultListOptions)
Expand Down

0 comments on commit dc7f250

Please sign in to comment.