Skip to content

Commit 10f07d1

Browse files
authored
Revert "MAC field in Endpoint is optional (#223)"
This reverts commit b705a57.
1 parent b705a57 commit 10f07d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/v1alpha1/endpoint_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
// EndpointSpec defines the desired state of Endpoint
1111
type EndpointSpec struct {
1212
// MACAddress is the MAC address of the endpoint.
13-
MACAddress string `json:"macAddress,omitempty"`
13+
MACAddress string `json:"macAddress"`
1414
// IP is the IP address of the endpoint.
1515
// +kubebuilder:validation:Type=string
1616
// +kubebuilder:validation:Schemaless

config/crd/bases/metal.ironcore.dev_endpoints.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ spec:
5757
type: string
5858
required:
5959
- ip
60+
- macAddress
6061
type: object
6162
status:
6263
description: EndpointStatus defines the observed state of Endpoint

0 commit comments

Comments
 (0)