@@ -47,6 +47,20 @@ const (
4747 // while installing the container storage interface addon; those kind of errors are usually transient
4848 // the operation is automatically re-tried by the controller.
4949 CSIProvisioningFailedReason = "CSIProvisioningFailed"
50+
51+ // FailureDomainsAvailableCondition documents the status of the failure domains
52+ // associated to the VSphereCluster.
53+ FailureDomainsAvailableCondition clusterv1.ConditionType = "FailureDomainsAvailable"
54+
55+ // FailureDomainsSkippedReason (Severity=Info) documents that some of the failure domain statuses
56+ // associated to the VSphereCluster are reported as not ready.
57+ FailureDomainsSkippedReason = "FailureDomainsSkipped"
58+
59+ // WaitingForFailureDomainStatusReason (Severity=Info) documents that some of the failure domains
60+ // associated to the VSphereCluster are not reporting the Ready status.
61+ // Instead of reporting a false ready status, these failure domains are still under the process of reconciling
62+ // and hence not yet reporting their status.
63+ WaitingForFailureDomainStatusReason = "WaitingForFailureDomainStatus"
5064)
5165
5266// Conditions and condition Reasons for the VSphereMachine and the VSphereVM object.
@@ -105,13 +119,15 @@ const (
105119
106120const (
107121 // VCenterAvailableCondition documents the connectivity with vcenter
108- // for a given VSphereCluster
122+ // for a given resource
109123 VCenterAvailableCondition clusterv1.ConditionType = "VCenterAvailable"
110124
111- // VCenterUnreachableReason (Severity=Error) documents a VSphereCluster controller detecting
112- // issues with VCenter reachability;
125+ // VCenterUnreachableReason (Severity=Error) documents a controller detecting
126+ // issues with VCenter reachability
113127 VCenterUnreachableReason = "VCenterUnreachable"
128+ )
114129
130+ const (
115131 // CredentialsAvailableCondidtion is used by VSphereClusterIdentity when a credential secret is available and unused by other VSphereClusterIdentities
116132 CredentialsAvailableCondidtion clusterv1.ConditionType = "CredentialsAvailable"
117133
@@ -124,3 +140,48 @@ const (
124140 // SecretAlreadyInUseReason is used when another VSphereClusterIdentity is using the secret
125141 SecretAlreadyInUseReason = "SecretInUse"
126142)
143+
144+ const (
145+ // PlacementConstraintMetCondition documents whether the placement constraint is configured correctly or not.
146+ PlacementConstraintMetCondition clusterv1.ConditionType = "PlacementConstraintMet"
147+
148+ // ResourcePoolNotFoundReason (Severity=Error) documents that the resource pool in the placement constraint
149+ // associated to the VSphereDeploymentZone is misconfigured.
150+ ResourcePoolNotFoundReason = "ResourcePoolNotFound"
151+
152+ // FolderNotFoundReason (Severity=Error) documents that the folder in the placement constraint
153+ // associated to the VSphereDeploymentZone is misconfigured.
154+ FolderNotFoundReason = "FolderNotFound"
155+ )
156+
157+ const (
158+ // VSphereFailureDomainValidatedCondition documents whether the failure domain for the deployment zone is configured correctly or not.
159+ VSphereFailureDomainValidatedCondition clusterv1.ConditionType = "VSphereFailureDomainValidated"
160+
161+ // RegionMisconfiguredReason (Severity=Error) documents that the region for the Failure Domain associated to
162+ // the VSphereDeploymentZone is misconfigured.
163+ RegionMisconfiguredReason = "FailureDomainRegionMisconfigured"
164+
165+ // ZoneMisconfiguredReason (Severity=Error) documents that the zone for the Failure Domain associated to
166+ // the VSphereDeploymentZone is misconfigured.
167+ ZoneMisconfiguredReason = "FailureDomainZoneMisconfigured"
168+
169+ // ComputeClusterNotFoundReason (Severity=Error) documents that the Compute Cluster for the Failure Domain
170+ // associated to the VSphereDeploymentZone cannot be found.
171+ ComputeClusterNotFoundReason = "ComputeClusterNotFound"
172+
173+ // HostsMisconfiguredReason (Severity=Error) documents that the VM & Host Group details for the Failure Domain
174+ // associated to the VSphereDeploymentZone are misconfigured.
175+ HostsMisconfiguredReason = "HostsMisconfigured"
176+
177+ // HostsAffinityMisconfiguredReason (Severity=Warning) documents that the VM & Host Group affinity rule for the FailureDomain is disabled.
178+ HostsAffinityMisconfiguredReason = "HostsAffinityMisconfigured"
179+
180+ // NetworkNotFoundReason (Severity=Error) documents that the networks in the topology for the Failure Domain
181+ // associated to the VSphereDeploymentZone are misconfigured.
182+ NetworkNotFoundReason = "NetworkNotFound"
183+
184+ // DatastoreNotFoundReason (Severity=Error) documents that the datastore in the topology for the Failure Domain
185+ // associated to the VSphereDeploymentZone is misconfigured.
186+ DatastoreNotFoundReason = "DatastoreNotFound"
187+ )
0 commit comments