Skip to content

Commit d635c50

Browse files
committed
Make macAddress field in BMC InlineEndpoint optional
1 parent b705a57 commit d635c50

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

api/v1alpha1/bmc_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type BMCSpec struct {
4949
// InlineEndpoint defines inline network access configuration for the BMC.
5050
type InlineEndpoint struct {
5151
// MACAddress is the MAC address of the endpoint.
52-
MACAddress string `json:"macAddress"`
52+
MACAddress string `json:"macAddress,omitempty"`
5353
// IP is the IP address of the BMC.
5454
// +kubebuilder:validation:Type=string
5555
// +kubebuilder:validation:Schemaless

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ spec:
8383
type: string
8484
required:
8585
- ip
86-
- macAddress
8786
type: object
8887
x-kubernetes-validations:
8988
- message: access is immutable

0 commit comments

Comments
 (0)