Skip to content

Commit c6e3d8d

Browse files
committed
modify error code
1 parent 9baad93 commit c6e3d8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud/ociutil/ociutil.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ func BuildClusterTags(ClusterResourceUID string) map[string]string {
173173
return tags
174174
}
175175

176+
// NOTE: Currently we only key off the documented "Out of host capacity" error.
177+
// If OCI starts surfacing additional codes/messages we can expand this list.
178+
// Reference: https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/troubleshooting-out-of-host-capacity.htm
176179
var outOfCapacityErrorCodes = map[string]struct{}{
177-
"LIMITEXCEEDED": {},
178180
"OUTOFHOSTCAPACITY": {},
179-
"OUTOFCAPACITY": {},
180181
}
181182

182183
var outOfCapacityErrorMessages = []string{
183184
"out of host capacity",
184-
"out of capacity",
185185
}
186186

187187
// IsOutOfHostCapacityError returns true when the OCI service error indicates that the fault domain ran out of capacity.

0 commit comments

Comments
 (0)