Skip to content

Commit

Permalink
Add disabling of DHCP per interface:
Browse files Browse the repository at this point in the history
Adds flexibility on a per hardware basis that
already exists in Smee at a global level.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Oct 23, 2024
1 parent ae9786e commit b12b016
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1alpha1/hardware_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ type Interface struct {

//+optional
DHCP *DHCP `json:"dhcp,omitempty"`

// DisableDHCP disables DHCP for this interface.
// +kubebuilder:default=false
DisableDHCP bool `json:"disableDhcp,omitempty"`
}

// Netboot configuration.
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/tinkerbell.org_hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ spec:
pattern: ^(([0-9][0-9]{0,2}|[1-3][0-9][0-9][0-9]|40([0-8][0-9]|9[0-6]))(,[1-9][0-9]{0,2}|[1-3][0-9][0-9][0-9]|40([0-8][0-9]|9[0-6]))*)$
type: string
type: object
disableDhcp:
default: false
description: DisableDHCP disables DHCP for this interface.
type: boolean
netboot:
description: Netboot configuration.
properties:
Expand Down

0 comments on commit b12b016

Please sign in to comment.