You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cluster-autoscaler/cloudprovider/hetzner/hcloud-go/hcloud/error.go
+25-11Lines changed: 25 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -30,16 +30,26 @@ const (
30
30
ErrorCodeConflictErrorCode="conflict"// The resource has changed during the request, please retry
31
31
ErrorCodeRobotUnavailableErrorCode="robot_unavailable"// Robot was not available. The caller may retry the operation after a short delay
32
32
ErrorCodeResourceLockedErrorCode="resource_locked"// The resource is locked. The caller should contact support
33
+
ErrorCodeServerErrorErrorCode="server_error"// Error within the API backend
34
+
ErrorCodeTokenReadonlyErrorCode="token_readonly"// The token is only allowed to perform GET requests
35
+
ErrorCodeTimeoutErrorCode="timeout"// The request could not be answered in time, please retry
33
36
ErrorUnsupportedErrorErrorCode="unsupported_error"// The given resource does not support this
34
37
ErrorDeprecatedAPIEndpointErrorCode="deprecated_api_endpoint"// The request can not be answered because the API functionality was removed
35
38
36
39
// Server related error codes.
37
40
38
-
ErrorCodeInvalidServerTypeErrorCode="invalid_server_type"// The server type does not fit for the given server or is deprecated
39
-
ErrorCodeServerNotStoppedErrorCode="server_not_stopped"// The action requires a stopped server
40
-
ErrorCodeNetworksOverlapErrorCode="networks_overlap"// The network IP range overlaps with one of the server networks
41
-
ErrorCodePlacementErrorErrorCode="placement_error"// An error during the placement occurred
42
-
ErrorCodeServerAlreadyAttachedErrorCode="server_already_attached"// The server is already attached to the resource
41
+
ErrorCodeInvalidServerTypeErrorCode="invalid_server_type"// The server type does not fit for the given server or is deprecated
42
+
ErrorCodeServerNotStoppedErrorCode="server_not_stopped"// The action requires a stopped server
43
+
ErrorCodeNetworksOverlapErrorCode="networks_overlap"// The network IP range overlaps with one of the server networks
44
+
ErrorCodePlacementErrorErrorCode="placement_error"// An error during the placement occurred
45
+
ErrorCodeServerAlreadyAttachedErrorCode="server_already_attached"// The server is already attached to the resource
46
+
ErrorCodePrimaryIPAssignedErrorCode="primary_ip_assigned"// The specified Primary IP is already assigned to a server
47
+
ErrorCodePrimaryIPDatacenterMismatchErrorCode="primary_ip_datacenter_mismatch"// The specified Primary IP is in a different datacenter
48
+
ErrorCodePrimaryIPVersionMismatchErrorCode="primary_ip_version_mismatch"// The specified Primary IP has the wrong IP Version
49
+
ErrorCodeServerHasIPv4ErrorCode="server_has_ipv4"// The Server already has an ipv4 address
50
+
ErrorCodeServerHasIPv6ErrorCode="server_has_ipv6"// The Server already has an ipv6 address
51
+
ErrorCodePrimaryIPAlreadyAssignedErrorCode="primary_ip_already_assigned"// Primary IP is already assigned to a different Server
52
+
ErrorCodeServerIsLoadBalancerTargetErrorCode="server_is_load_balancer_target"// The Server IPv4 address is a loadbalancer target
43
53
44
54
// Load Balancer related error codes.
45
55
@@ -52,6 +62,7 @@ const (
52
62
ErrorCodeLoadBalancerAlreadyAttachedErrorCode="load_balancer_already_attached"// The Load Balancer is already attached to a network
53
63
ErrorCodeTargetsWithoutUsePrivateIPErrorCode="targets_without_use_private_ip"// The Load Balancer has targets that use the public IP instead of the private IP
54
64
ErrorCodeLoadBalancerNotAttachedToNetworkErrorCode="load_balancer_not_attached_to_network"// The Load Balancer is not attached to a network
65
+
ErrorCodeMissingIPv4ErrorCode="missing_ipv4"// The server that you are trying to add as a public target does not have a public IPv4 address
55
66
56
67
// Network related error codes.
57
68
@@ -66,12 +77,14 @@ const (
66
77
67
78
// Firewall related error codes.
68
79
69
-
ErrorCodeFirewallAlreadyAppliedErrorCode="firewall_already_applied"// Firewall was already applied on resource
70
-
ErrorCodeFirewallAlreadyRemovedErrorCode="firewall_already_removed"// Firewall was already removed from the resource
71
-
ErrorCodeIncompatibleNetworkTypeErrorCode="incompatible_network_type"// The Network type is incompatible for the given resource
72
-
ErrorCodeResourceInUseErrorCode="resource_in_use"// Firewall must not be in use to be deleted
73
-
ErrorCodeServerAlreadyAddedErrorCode="server_already_added"// Server added more than one time to resource
74
-
ErrorCodeFirewallResourceNotFoundErrorCode="firewall_resource_not_found"// Resource a firewall should be attached to / detached from not found
80
+
ErrorCodeFirewallAlreadyAppliedErrorCode="firewall_already_applied"// Firewall was already applied on resource
81
+
ErrorCodeFirewallAlreadyRemovedErrorCode="firewall_already_removed"// Firewall was already removed from the resource
82
+
ErrorCodeIncompatibleNetworkTypeErrorCode="incompatible_network_type"// The Network type is incompatible for the given resource
83
+
ErrorCodeResourceInUseErrorCode="resource_in_use"// Firewall must not be in use to be deleted
84
+
ErrorCodeServerAlreadyAddedErrorCode="server_already_added"// Server added more than one time to resource
85
+
ErrorCodeFirewallResourceNotFoundErrorCode="firewall_resource_not_found"// Resource a firewall should be attached to / detached from not found
86
+
ErrorCodeFirewallManagedByLabelSelectorErrorCode="firewall_managed_by_label_selector"// Firewall is applied via a Label Selector and cannot be removed manually
87
+
ErrorCodePrivateNetOnlyServerErrorCode="private_net_only_server"// The Server the Firewall should be applied to has no public interface
75
88
76
89
// Certificate related error codes.
77
90
@@ -82,6 +95,7 @@ const (
82
95
ErrorCodeCATooManyDuplicateCertificatesErrorCode="ca_too_many_duplicate_certificates"// Certificate Authority: Too many duplicate certificates
83
96
ErrorCodeCloudNotVerifyDomainDelegatedToZoneErrorCode="could_not_verify_domain_delegated_to_zone"// Could not verify domain delegated to zone
84
97
ErrorCodeDNSZoneNotFoundErrorCode="dns_zone_not_found"// DNS zone not found
98
+
ErrorCodeDNSZoneIsSecondaryZoneErrorCode="dns_zone_is_secondary_zone"// DNS zone is a secondary zone
0 commit comments