|
| 1 | +/* |
| 2 | +Copyright 2026 The Kubernetes Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +package v1beta2 |
| 18 | + |
| 19 | +const ( |
| 20 | + // InstanceReadyCondition reports on current status of the OpenStack instance. Ready indicates the instance is in a Running state. |
| 21 | + InstanceReadyCondition string = "InstanceReady" |
| 22 | + |
| 23 | + // WaitingForClusterInfrastructureReason used when machine is waiting for cluster infrastructure to be ready before proceeding. |
| 24 | + WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure" |
| 25 | + // WaitingForBootstrapDataReason used when machine is waiting for bootstrap data to be ready before proceeding. |
| 26 | + WaitingForBootstrapDataReason = "WaitingForBootstrapData" |
| 27 | + // InvalidMachineSpecReason used when the machine spec is invalid. |
| 28 | + InvalidMachineSpecReason = "InvalidMachineSpec" |
| 29 | + // InstanceCreateFailedReason used when creating the instance failed. |
| 30 | + InstanceCreateFailedReason = "InstanceCreateFailed" |
| 31 | + // InstanceNotFoundReason used when the instance couldn't be retrieved. |
| 32 | + InstanceNotFoundReason = "InstanceNotFound" |
| 33 | + // InstanceStateErrorReason used when the instance is in error state. |
| 34 | + InstanceStateErrorReason = "InstanceStateError" |
| 35 | + // InstanceDeletedReason used when the instance is in a deleted state. |
| 36 | + InstanceDeletedReason = "InstanceDeleted" |
| 37 | + // InstanceNotReadyReason used when the instance is in a pending state. |
| 38 | + InstanceNotReadyReason = "InstanceNotReady" |
| 39 | + // InstanceDeleteFailedReason used when deleting the instance failed. |
| 40 | + InstanceDeleteFailedReason = "InstanceDeleteFailed" |
| 41 | + // OpenstackErrorReason used when there is an error communicating with OpenStack. |
| 42 | + OpenStackErrorReason = "OpenStackError" |
| 43 | + // DependencyFailedReason indicates that a dependent object failed. |
| 44 | + DependencyFailedReason = "DependencyFailed" |
| 45 | + |
| 46 | + // ServerUnexpectedDeletedMessage is the message used when the server is unexpectedly deleted via an external agent. |
| 47 | + ServerUnexpectedDeletedMessage = "The server was unexpectedly deleted" |
| 48 | +) |
| 49 | + |
| 50 | +const ( |
| 51 | + // APIServerIngressReadyCondition reports on the current status of the network ingress (Loadbalancer, Floating IP) for Control Plane machines. Ready indicates that the instance can receive requests. |
| 52 | + APIServerIngressReadyCondition string = "APIServerIngressReadyCondition" |
| 53 | + |
| 54 | + // LoadBalancerMemberErrorReason used when the instance could not be added as a loadbalancer member. |
| 55 | + LoadBalancerMemberErrorReason = "LoadBalancerMemberError" |
| 56 | + // FloatingIPErrorReason used when the floating ip could not be created or attached. |
| 57 | + FloatingIPErrorReason = "FloatingIPError" |
| 58 | +) |
| 59 | + |
| 60 | +const ( |
| 61 | + // FloatingAddressFromPoolReadyCondition reports on the current status of the Floating IPs from ipam pool. |
| 62 | + FloatingAddressFromPoolReadyCondition string = "FloatingAddressFromPoolReady" |
| 63 | + // WaitingForIpamProviderReason used when machine is waiting for ipam provider to be ready before proceeding. |
| 64 | + FloatingAddressFromPoolWaitingForIpamProviderReason = "WaitingForIPAMProvider" |
| 65 | + // FloatingAddressFromPoolErrorReason is used when there is an error attaching an IP from the pool to an machine. |
| 66 | + FloatingAddressFromPoolErrorReason = "FloatingIPError" |
| 67 | + // UnableToFindFloatingIPNetworkReason is used when the floating ip network is not found. |
| 68 | + UnableToFindFloatingIPNetworkReason = "UnableToFindFloatingIPNetwork" |
| 69 | +) |
| 70 | + |
| 71 | +const ( |
| 72 | + // NetworkReadyCondition reports on the current status of the cluster network infrastructure. |
| 73 | + // Ready indicates that the network, subnets, and related resources have been successfully provisioned. |
| 74 | + NetworkReadyCondition string = "NetworkReady" |
| 75 | + |
| 76 | + // RouterReadyCondition reports on the current status of the cluster router infrastructure. |
| 77 | + // Ready indicates that the router and its interfaces have been successfully provisioned. |
| 78 | + RouterReadyCondition string = "RouterReady" |
| 79 | + |
| 80 | + // SecurityGroupsReadyCondition reports on the current status of the cluster security groups. |
| 81 | + // Ready indicates that all required security groups have been successfully provisioned. |
| 82 | + SecurityGroupsReadyCondition string = "SecurityGroupsReady" |
| 83 | + |
| 84 | + // APIEndpointReadyCondition reports on the current status of the cluster API endpoint. |
| 85 | + // Ready indicates that the control plane endpoint has been successfully configured. |
| 86 | + APIEndpointReadyCondition string = "APIEndpointReady" |
| 87 | + |
| 88 | + // NetworkReconcileFailedReason is used when network reconciliation fails. |
| 89 | + NetworkReconcileFailedReason = "NetworkCreateFailed" |
| 90 | + // SubnetReconcileFailedReason is used when subnet reconciliation fails. |
| 91 | + SubnetReconcileFailedReason = "SubnetCreateFailed" |
| 92 | + // RouterReconcileFailedReason is used when router reconciliation fails. |
| 93 | + RouterReconcileFailedReason = "RouterCreateFailed" |
| 94 | + // SecurityGroupReconcileFailedReason is used when security group reconciliation fails. |
| 95 | + SecurityGroupReconcileFailedReason = "SecurityGroupCreateFailed" |
| 96 | + // APIEndpointConfigFailedReason is used when API endpoint configuration fails. |
| 97 | + APIEndpointConfigFailedReason = "APIEndpointConfigFailed" |
| 98 | +) |
0 commit comments