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
9 changes: 5 additions & 4 deletions api/controlplane/v1beta1/k0smotron_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ type K0smotronControlPlaneList struct {

type K0smotronControlPlaneStatus struct {
// Ready denotes that the control plane is ready
Ready bool `json:"ready"`
ControlPlaneReady bool `json:"controlPlaneReady"`
Inititalized bool `json:"initialized"`
ExternalManagedControlPlane bool `json:"externalManagedControlPlane"`
Ready bool `json:"ready"`
ControlPlaneReady bool `json:"controlPlaneReady"`
Inititalized bool `json:"initialized"`
ExternalManagedControlPlane bool `json:"externalManagedControlPlane"`
Version string `json:"version"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -3976,11 +3976,14 @@ spec:
ready:
description: Ready denotes that the control plane is ready
type: boolean
version:
type: string
required:
- controlPlaneReady
- externalManagedControlPlane
- initialized
- ready
- version
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3976,11 +3976,14 @@ spec:
ready:
description: Ready denotes that the control plane is ready
type: boolean
version:
type: string
required:
- controlPlaneReady
- externalManagedControlPlane
- initialized
- ready
- version
type: object
type: object
served: true
Expand Down
7 changes: 7 additions & 0 deletions docs/resource-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -11001,6 +11001,13 @@ will pick it automatically.<br/>
Ready denotes that the control plane is ready<br/>
</td>
<td>true</td>
</tr><tr>
<td><b>version</b></td>
<td>string</td>
<td>
<br/>
</td>
<td>true</td>
</tr></tbody>
</table>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (c *K0smotronController) Reconcile(ctx context.Context, req ctrl.Request) (
kcp.Status.ExternalManagedControlPlane = true
kcp.Status.Inititalized = true
kcp.Status.ControlPlaneReady = true
kcp.Status.Version = kcp.Spec.Version
err = c.Status().Update(ctx, kcp)

return res, err
Expand Down