Skip to content

Commit 337fbbd

Browse files
authored
Report error on unknown BMC protocol (#530)
* Report error on unknown BMC protocol * Bump kubebuilder to v4.10.1
1 parent 7dca33d commit 337fbbd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -
279279
GOLANGCI_LINT_VERSION ?= v2.5
280280
GOIMPORTS_VERSION ?= v0.38.0
281281
GEN_CRD_API_REFERENCE_DOCS_VERSION ?= v0.3.0
282-
KUBEBUILDER_VERSION ?= v4.9.0
282+
KUBEBUILDER_VERSION ?= v4.10.1
283283
ADDLICENSE_VERSION ?= v1.1.1
284284

285285
.PHONY: addlicense

internal/controller/endpoint_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ func (r *EndpointReconciler) reconcile(ctx context.Context, log logr.Logger, end
149149
return ctrl.Result{}, fmt.Errorf("failed to apply BMC object: %w", err)
150150
}
151151
log.V(1).Info("Applied BMC object for Endpoint")
152-
152+
default:
153+
return ctrl.Result{}, fmt.Errorf("uknown protocol: %s", m.Protocol)
153154
}
154155
// TODO: other types like Switches can be handled here later
155156
}

0 commit comments

Comments
 (0)