Skip to content

Commit

Permalink
make generate && make check
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-kun committed Dec 7, 2023
1 parent 0c0aaaf commit f606092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/documents/apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ to be.</p>
<a href="#CurrentStatus">CurrentStatus</a>)
</p>
<p>
<p>MachinePhase is a label for the condition of a machines at the current time.</p>
<p>MachinePhase is a label for the condition of a machine at the current time.</p>
</p>
<br>
<h3 id="MachineSetCondition">
Expand Down Expand Up @@ -1992,7 +1992,7 @@ MachineConfiguration
<a href="#LastOperation">LastOperation</a>)
</p>
<p>
<p>MachineState is a current state of the machine.</p>
<p>MachineState is a current state of the operation.</p>
</p>
<br>
<h3 id="MachineStatus">
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/crds/machine.sapcloud.io_machines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ spec:
format: date-time
type: string
phase:
description: MachinePhase is a label for the condition of a machines
description: MachinePhase is a label for the condition of a machine
at the current time.
type: string
timeoutActive:
Expand Down
8 changes: 0 additions & 8 deletions pkg/util/provider/machinecontroller/machine_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,14 +768,6 @@ func (c *controller) reconcileMachineHealth(ctx context.Context, machine *v1alph
return machineutils.LongRetry, nil
}

func NodeConditionsHaveChanged(oldConditions []v1.NodeCondition, newConditions []v1.NodeCondition) ([]v1.NodeCondition, []v1.NodeCondition, bool) {
return nodeConditionsHaveChanged(oldConditions, newConditions)
}

func GetFormattedNodeConditions(conditions []v1.NodeCondition) string {
return getFormattedNodeConditions(conditions)
}

func getFormattedNodeConditions(conditions []v1.NodeCondition) string {
var result string
if len(conditions) == 0 {
Expand Down

0 comments on commit f606092

Please sign in to comment.