forked from HuaweiCloudDeveloper/cluster-api-provider-huawei
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement InfraMachine for Huaweicloud
mainly include creating and deleting instances Signed-off-by: ekko <tuuwtu1@gmail.com>
- Loading branch information
Showing
26 changed files
with
2,443 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" | ||
) | ||
|
||
const ( | ||
// InstanceReadyCondition reports on current status of the ECS instance. Ready indicates the instance is in a Running state. | ||
InstanceReadyCondition clusterv1.ConditionType = "InstanceReady" | ||
|
||
// InstanceNotFoundReason used when the instance couldn't be retrieved. | ||
InstanceNotFoundReason = "InstanceNotFound" | ||
// InstanceTerminatedReason instance is in a terminated state. | ||
InstanceTerminatedReason = "InstanceTerminated" | ||
// InstanceStoppedReason instance is in a stopped state. | ||
InstanceStoppedReason = "InstanceStopped" | ||
// InstanceNotReadyReason used when the instance is in a pending state. | ||
InstanceNotReadyReason = "InstanceNotReady" | ||
// InstanceProvisionStartedReason set when the provisioning of an instance started. | ||
InstanceProvisionStartedReason = "InstanceProvisionStarted" | ||
// InstanceProvisionFailedReason used for failures during instance provisioning. | ||
InstanceProvisionFailedReason = "InstanceProvisionFailed" | ||
// WaitingForClusterInfrastructureReason used when machine is waiting for cluster infrastructure to be ready before proceeding. | ||
WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure" | ||
// WaitingForBootstrapDataReason used when machine is waiting for bootstrap data to be ready before proceeding. | ||
WaitingForBootstrapDataReason = "WaitingForBootstrapData" | ||
) | ||
|
||
const ( | ||
// SecurityGroupsReadyCondition indicates the security groups are up to date on the HuaweiCloudMachine. | ||
SecurityGroupsReadyCondition clusterv1.ConditionType = "SecurityGroupsReady" | ||
|
||
// SecurityGroupsFailedReason used when the security groups could not be synced. | ||
SecurityGroupsFailedReason = "SecurityGroupsSyncFailed" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.