Skip to content

Commit

Permalink
Set default spec.config.elemental.reset block for MachineRegistration
Browse files Browse the repository at this point in the history
  • Loading branch information
anmazzotti authored and davidcassany committed Aug 30, 2023
1 parent ce586ba commit 1e5d3e4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/seedimage_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type SeedImageSpec struct {
// If when the lifetime elapses the built image is being downloaded, the active
// download will be completed before removing the built image.
// Default is 60 minutes, set to 0 to disable.
// +kubebuilder:default:=60
// +kubebuilder:default=60
// +optional
LifetimeMinutes int32 `json:"cleanupAfterMinutes"`
// RetriggerBuild triggers to build again a cleaned up seed image.
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ type Elemental struct {
// +optional
Install Install `json:"install,omitempty" yaml:"install,omitempty"`
// +optional
// +kubebuilder:default:={"reset-persistent":true,"reset-oem":true,"reboot":true}
Reset Reset `json:"reset,omitempty" yaml:"reset,omitempty"`
// +optional
Registration Registration `json:"registration,omitempty" yaml:"registration,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions charts/crds/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ spec:
type: string
type: object
reset:
default:
reboot: true
reset-oem: true
reset-persistent: true
properties:
config-urls:
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ spec:
type: string
type: object
reset:
default:
reboot: true
reset-oem: true
reset-persistent: true
properties:
config-urls:
items:
Expand Down

0 comments on commit 1e5d3e4

Please sign in to comment.