package
1.2.4
Repository: https://github.com/openservicemesh/osm.git
Documentation: pkg.go.dev

# Functions

FromStr returns the ErrCode representation for the given error code string Ex.
GetErrCodeWithMetric increments the ErrCodeCounter metric for the given error code Returns the error code as a string.

# Constants

ErrAddingRouteToOutboundTrafficPolicy indicates there was an error adding a route to an outbound traffic policy.
ErrBuildingRBACPolicyForRoute indicates a traffic policy rule could not be configured as an RBAC rule on a proxy.
ErrConfigInformerInitCache indicates failed to init cache sync for config.openservicemesh.io informers.
ErrCreatingCert indicates certificate creation failed when issuing a certificate.
ErrCreatingCertReq indicates a certificate request could not be created.
ErrCreatingCertSecret indicates the secret to containing a certificate could not be created.
ErrCreatingMutatingWebhook indicates the MutatingWebhookConfiguration could not be created.
ErrdeletingCertReq inicates that the issue certificate request could not be deleted.
ErrCreatingValidatingWebhook indicates the ValidatingWebhookConfiguration could not be created.
ErrDecodingAdmissionReqBody indicates the admission request received by the mutating webhook could not be decoded.
ErrDecodingPEMCert indicates a PEM certificate could not be decoded.
ErrDecodingPEMPrivateKey indicates a PEM private key for a certificate could not be decoded.
ErrDedupEgressClusterConfigs indicates an error related to deduplicating egress cluster configs.
ErrDedupEgressTrafficMatches indicates an error related to deduplicating egress traffic matches.
ErrDeterminingNamespaceInjectionEnablement indicates the enablement of a namespace for sidecar injection could not be determined.
ErrDeterminingPodInjectionEnablement indicates the enablement of a pod for sidecar injection could not be determined.
ErrDeterminingPodPortExclusions indicates the oubound port exclusions for a pod could not be obtained.
ErrDuplicateluster indicates Envoy clusters with the same name were found.
ErrEgressSMIHTTPRouteGroupNotFound indicates the SMI HTTPRouteGroup specified in the egress policy was not found.
ErrEncodingCertDERtoPEM indicates a certificate could not be encoded from DER to PEM.
ErrEncodingKeyDERtoPEM indicates a private key could not be encoded from DER to PEM.
ErrEndpointsNotFound indicates resolvable service endpoints could not be found.
ErrFetchingCertSecret indicates a secret containing a certificate could not be fetched.
ErrFetchingControllerPod indicates the osm-controller pod resource could not be fetched.
ErrFetchingInjectorPod indicates the osm-injector pod resource could not be fetched.
ErrFetchingPodFromCert indicates the proxy UUID obtained from a certificate's common name metadata was not found as a osm-proxy-uuid label value for any pod.
ErrFetchingServiceList indicates the services corresponding to a specified proxy could not be listed.
ErrFetchingSMIHTTPRouteGroupForTrafficTarget indicates the SMI HTTPRouteGroup specified as a match in an SMI TrafficTarget resource was not able to be retrieved.
ErrGeneratingPrivateKey indicates a private key could not be generated.
ErrGeneratingReqResource indicates the resources for the discovery response could not be generated.
ErrGettingDNSEgressCluster indicates that an Envoy egress cluster that routes traffic based on the specified Host resolved using DNS could not be configured.
ErrGettingInboundTrafficTargets indicates the inbound traffic targets composed of its routes for a given desitination ServiceIdentity could not be obtained.
ErrGettingK8sServiceAccount indicates a SDS secret does not correspond to a ServiceAccount.
ErrGettingMeshService indicates a SDS secret does not correspond to a MeshService.
ErrGettingOrgDstEgressCluster indicates that an Envoy egress cluster that routes traffic to its original destination could not be configured.
ErrGettingProxyFromPod indicates the proxy data structure could not be obtained from the osm-proxy-uuid label value on a pods.
ErrGettingServiceCertSecret indicates a XDS secret containing a TLS certificate could not be retrieved.
ErrGRPCConnectionFailed indicates discovery requests cannot be received by ADS due to a GRPC connection failure.
ErrGRPCStreamClosedByProxy indicates the gRPC stream was closed by the proxy.
ErrIngressFilterChain indicates there an error related to an ingress filter chain.
ErrInvalidAdmissionReqHeader indicates the received admission request's header was invalid.
ErrInvalidCA indicates an invalid certificate authority was provided when attempting to issue a certificate.
ErrInvalidCLIArgument indicates an invalid CLI argument.
ErrInvalidDestinationKind indicates an applied SMI TrafficTarget policy has an invalid destination kind.
ErrInvalidEgressIPRange indicates the IP address range specified in an egress policy is invalid.
ErrInvalidEgressMatches indicates the matches specified in an egress policy is invalid.
ErrInvalidSourceKind indicated an applied SMI TrafficTarget policy has an invalid source kind.
ErrInvalidXDSTypeURI indicates the TypeURL of the discovery request is invalid.
ErrIssuingCert indicates a nonspecific failure to issue a certificate.
ErrMarshallingKubernetesResource indicates that a Kubernetes resource could not be marshalled.
ErrMarshallingProtoToYAML indicates a ProtoMessage could not be converted into YAML.
ErrMarshallingXDSResource indicates an XDS resource could not be marshalled.
ErrMeshConfigFetchFromCache indicates failed to fetch MeshConfig from cache with specific key.
ErrMeshConfigMarshaling indicates failed to marshal MeshConfig into other format like JSON.
ErrMeshConfigStructParsing indicates failed to cast object to MeshConfig.
ErrMismatchedServiceAccount inicates the ServiceAccount referenced in the NodeID does not match the ServiceAccount specified in the proxy certificate.
ErrMultipleSMISplitPerServiceUnsupported indicates multiple SMI split policies per service exists and is not supported.
ErrNilAdmissionReq indicates the received admission request was nil.
ErrNilAdmissionReqBody indicates the admissionRequest body was nil.
ErrObtainingCertExpirationFromSecret indicates the certificate's expiration could not be obtained from a secret.
ErrObtainingCertFrom indicates a certificate could not be obtained from a secret.
ErrObtainingPrivateKeyFromSecret indicates the certificate's private key could not be obtained from a secret.
ErrObtainingUpstreamServiceCluster indicates an Envoy cluster corresponding to an upstream service could not be configured.
ErrParsingCertExpiration indicates the certificate's expiration could not be parsed.
ErrParsingDiscoveryReqVersion indicates the discovery request response version could not be parsed.
ErrParsingMutatingWebhookCert indicates the mutating webhook certificate could not be parsed.
ErrParsingReqTimeout indicates an admission request timeout could not be parsed.
ErrParsingWebhookCert indicates the validating webhook certificate could not be parsed.
ErrParsingXDSCertCN indicates the configured XDS certificate common name could not be parsed.
ErrPodBelongsToMultipleServices indicates a pod in the mesh belongs to more than one service.
ErrPubSubMessageFormat indicates error when parsing an object to a pubsub message.
ErrReadingAdmissionReqBody indicates the AdmissionRequest body could not be read.
ErrReconcilingDeletedCRD indicates an error occurred when OSM Reconciler failed to add a deleted CRD.
ErrReconcilingDeletedMutatingWebhook indicates an error occurred when OSM Reconciler failed to add a deleted mutating webhook.
ErrReconcilingDeletedValidatingWebhook indicates an error occurred when OSM Reconciler failed to add a deleted validating webhook.
ErrReconcilingUpdatedCRD indicates an error occurred when OSM Reconciler failed to update a modified CRD.
ErrReconcilingUpdatedMutatingWebhook indicates an error occurred when OSM Reconciler failed to update the mutating webhook.
ErrReconcilingUpdatedValidatingWebhook indicates an error occurred when OSM Reconciler failed to update the validating webhook.
ErrRecordingSnapshot indicates the aggregated resources generate for a discovery response could not be created.
ErrRotatingCert indicates a certificate could not be rotated.
ErrSDSCertMismatch indicates the indentity obtained from the SDSCert request does not match the identity of the proxy.
ErrSendingDiscoveryResponse indicates the configured discovery response could not be sent.
ErrSettingLogLevel indicates the specified log level could not be set.
ErrShuttingDownValidatingWebhookHTTPServer indicates an error occurred when shutting down the validating webhook HTTP server.
ErrSMIHTTPRouteGroupNoMatch indicates the SMI HTTPRouteGroup resource has no matches specified.
ErrStartingADSServer indicates the gPRC service failed to start.
ErrStartingIngressClient indicates the Ingress client failed to start.
ErrStartingInjectionWebhookHTTPServer indicates the sidecar injection webhook HTTP server failed to start.
ErrStartingReconciler indicates the reconciler client failed to start.
ErrStartingValidatingWebhookHTTPServer indicates the validating webhook HTTP server failed to start.
ErrUnexpectedXDSRequest indicates that a proxy has not completed its init phase and is not ready to receive updates.
ErrUnmarshallingKubernetesResource indicates that a Kubernetes resource could not be unmarshalled.
ErrUnmarshallingSDSCert indicates the SDS certificate resource could not be unmarshalled.
ErrUnsupportedProtocolForService indicates a port's corresponding application protocol is not supported.
ErrUpdatingMutatingWebhook indicates the MutatingWebhookConfiguration could not be updated.
ErrWritingAdmissionResp indicates the response to an admission request could not be written.
Kind defines the kind for the error code constants.

# Variables

ErrCodeMap defines the mapping of error codes to their description.

# Type aliases

ErrCode defines the type to represent error codes.