Skip to content

Commit 61266a5

Browse files
committed
Add v1beta2 condition constants
1 parent 2579036 commit 61266a5

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

api/v1beta2/conditions_consts.go

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,62 @@ import (
2020
capiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
2121
)
2222

23+
// IBMPowerVSMachine's InstanceReady condition and corresponding reasons that will be used in v1Beta2 API version.
24+
const (
25+
// IBMPowerVSMachineReadyV1Beta2Condition is true if the IBMPowerVSMachine's deletionTimestamp is not set, IBMPowerVSMachine's
26+
// IBMPowerVSMachineInstanceReadyV1Beta2Condition is true.
27+
IBMPowerVSMachineReadyV1Beta2Condition = capiv1beta1.ReadyV1Beta2Condition
28+
29+
// IBMPowerVSMachineReadyV1Beta2Reason surfaces when the IBMPowerVSMachine readiness criteria is met.
30+
IBMPowerVSMachineReadyV1Beta2Reason = capiv1beta1.ReadyV1Beta2Reason
31+
32+
// IBMPowerVSMachineNotReadyV1Beta2Reason surfaces when the IBMPowerVSMachine readiness criteria is not met.
33+
IBMPowerVSMachineNotReadyV1Beta2Reason = capiv1beta1.NotReadyV1Beta2Reason
34+
35+
// IBMPowerVSMachineReadyUnknownV1Beta2Reason surfaces when at least one IBMPowerVSMachine readiness criteria is unknown
36+
// and no IBMPowerVSMachine readiness criteria is not met.
37+
IBMPowerVSMachineReadyUnknownV1Beta2Reason = capiv1beta1.ReadyUnknownV1Beta2Reason
38+
)
39+
40+
const (
41+
// IBMPowerVSMachineInstanceReadyV1Beta2Condition documents the status of the instance that is controlled
42+
// by the IBMPowerVSMachine.
43+
IBMPowerVSMachineInstanceReadyV1Beta2Condition = "InstanceReady"
44+
45+
// IBMPowerVSMachineInstanceReadyV1Beta2Reason surfaces when the instance that is controlled
46+
// by the IBMPowerVSMachine is ready.
47+
IBMPowerVSMachineInstanceReadyV1Beta2Reason = "InstanceReady"
48+
49+
// IBMPowerVSMachineInstanceNotReadyV1Beta2Reason surfaces when the instance that is controlled
50+
// by the IBMPowerVSMachine is not ready.
51+
IBMPowerVSMachineInstanceNotReadyV1Beta2Reason = "InstanceNotReady"
52+
53+
// IBMPowerVSMachineInstanceWaitingForClusterInfrastructureReadyV1Beta2Reason documents the virtual machine that is controller by
54+
// IBMPowerVSMachine waiting for the cluster infrastructure to be ready.
55+
// TODO: Use when CAPI version is updated: IBMPowerVSMachineInstanceWaitingForClusterInfrastructureReadyV1Beta2Reason = capiv1beta1.WaitingForClusterInfrastructureReadyV1Beta2Reason.
56+
IBMPowerVSMachineInstanceWaitingForClusterInfrastructureReadyV1Beta2Reason = "WaitingForClusterInfrastructureReady"
57+
58+
// IBMPowerVSMachineInstanceWaitingForControlPlaneInitializedV1Beta2Reason documents the virtual machine that is controller by IBMPowerVSMachine waiting
59+
// for the control plane to be initialized.
60+
// TODO: Use when CAPI version is updated: IBMPowerVSMachineInstanceWaitingForControlPlaneInitializedV1Beta2Reason = capiv1beta1.WaitingForControlPlaneInitializedV1Beta2Reason.
61+
IBMPowerVSMachineInstanceWaitingForControlPlaneInitializedV1Beta2Reason = "WaitingForControlPlaneInitialized"
62+
63+
// IBMPowerVSMachineInstanceWaitingForBootstrapDataV1Beta2Reason documents the virtual machine that is controller by IBMPowerVSMachine waiting for the bootstrap
64+
// data to be ready.
65+
// TODO: Use when CAPI version is updated: IBMPowerVSMachineInstanceWaitingForBootstrapDataV1Beta2Reason = capiv1beta1.WaitingForBootstrapDataV1Beta2Reason.
66+
IBMPowerVSMachineInstanceWaitingForBootstrapDataV1Beta2Reason = "WaitingForBootstrapData"
67+
68+
// IBMPowerVSMachineInstanceDeletingV1Beta2Reason surfaces when the virtual machine controller by IBMPowerVSMachine is deleting.
69+
IBMPowerVSMachineInstanceDeletingV1Beta2Reason = capiv1beta1.DeletingV1Beta2Reason
70+
71+
// IBMPowerVSMachineInstanceLoadBalancerConfigurationFailedV1Beta2Reason surfaces when configuring the virtual machine IP to load balancer fails.
72+
IBMPowerVSMachineInstanceLoadBalancerConfigurationFailedV1Beta2Reason = "LoadBalancerConfigurationFailed"
73+
74+
// IBMPowerVSMachineInstanceWaitingForNetworkAddressV1Beta2Reason surfaces when the PowerVS instance that is controlled
75+
// by the IBMPowerVSMachine waiting for the machine network settings to be reported after machine being powered on.
76+
IBMPowerVSMachineInstanceWaitingForNetworkAddressV1Beta2Reason = "WaitingForNetworkAddress"
77+
)
78+
2379
const (
2480
// InstanceProvisionFailedReason used for failures during instance provisioning.
2581
InstanceProvisionFailedReason = "InstanceProvisionFailed"

0 commit comments

Comments
 (0)