Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions api/compute/v1alpha1/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,31 @@ const (
VolumeStateAttached VolumeState = "Attached"
)

// MachineConditionType is a type a MachineCondition can have.
type MachineConditionType string

// MachineCondition is one of the conditions of a machine.
type MachineCondition struct {
// Type is the type of the condition.
Type MachineConditionType `json:"type"`
// Status is the status of the condition.
Status corev1.ConditionStatus `json:"status"`
// Reason is a machine-readable indication of why the condition is in a certain state.
Reason string `json:"reason"`
// Message is a human-readable explanation of why the condition has a certain reason / state.
Message string `json:"message"`
// LastTransitionTime is the last time the status of a condition has transitioned from one state to another.
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}

// MachineStatus defines the observed state of Machine
type MachineStatus struct {
// MachineID is the provider specific machine ID in the format 'TYPE://MACHINE_ID'.
MachineID string `json:"machineID,omitempty"`
// ObservedGeneration is the last generation the MachinePool observed of the Machine.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions are the conditions of a machine.
Conditions []MachineCondition `json:"conditions,omitempty"`
// State is the infrastructure state of the machine.
State MachineState `json:"state,omitempty"`
// NetworkInterfaces is the list of network interface states for the machine.
Expand Down
2 changes: 1 addition & 1 deletion api/compute/v1alpha1/machinepool_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ type MachinePoolAddress struct {
// MachinePoolConditionType is a type a MachinePoolCondition can have.
type MachinePoolConditionType string

// MachinePoolCondition is one of the conditions of a volume.
// MachinePoolCondition is one of the conditions of a MachinePool.
type MachinePoolCondition struct {
// Type is the type of the condition.
Type MachinePoolConditionType `json:"type"`
Expand Down
24 changes: 24 additions & 0 deletions api/compute/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions client-go/applyconfigurations/compute/v1alpha1/machinestatus.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions client-go/applyconfigurations/internal/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client-go/applyconfigurations/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client-go/openapi/api_violations.report
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compu
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,MachineSpec,NetworkInterfaces
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,MachineSpec,Tolerations
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,MachineSpec,Volumes
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,MachineStatus,Conditions
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,MachineStatus,NetworkInterfaces
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,MachineStatus,Volumes
API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/core/v1alpha1,ResourceScopeSelector,MatchExpressions
Expand Down
73 changes: 71 additions & 2 deletions client-go/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading