istio: istio.io/istio/galley/pkg/config/analysis/msg Index | Files

package msg

import "istio.io/istio/galley/pkg/config/analysis/msg"

Index

Package Files

messages.gen.go messages.go

Variables

var (
    InternalError = diag.NewMessageType(diag.Error, "IST0001", "Internal error: %v")

    Deprecated = diag.NewMessageType(diag.Warning, "IST0002", "Deprecated: %s")

    ReferencedResourceNotFound = diag.NewMessageType(diag.Error, "IST0101", "Referenced %s not found: %q")

    NamespaceNotInjected = diag.NewMessageType(diag.Warning, "IST0102", "" /* 226 byte string literal not displayed */)

    PodMissingProxy = diag.NewMessageType(diag.Warning, "IST0103", "The pod is missing the Istio proxy. This can often be resolved by restarting or redeploying the workload.")

    GatewayPortNotOnWorkload = diag.NewMessageType(diag.Warning, "IST0104", "The gateway refers to a port that is not exposed on the workload (pod selector %s; port %d)")

    IstioProxyVersionMismatch = diag.NewMessageType(diag.Warning, "IST0105", "" /* 246 byte string literal not displayed */)

    SchemaValidationError = diag.NewMessageType(diag.Error, "IST0106", "Schema validation error: %v")

    MisplacedAnnotation = diag.NewMessageType(diag.Warning, "IST0107", "Misplaced annotation: %s can only be applied to %s")

    UnknownAnnotation = diag.NewMessageType(diag.Warning, "IST0108", "Unknown annotation: %s")

    ConflictingMeshGatewayVirtualServiceHosts = diag.NewMessageType(diag.Error, "IST0109", "" /* 200 byte string literal not displayed */)

    ConflictingSidecarWorkloadSelectors = diag.NewMessageType(diag.Error, "IST0110", "The Sidecars %v in namespace %q select the same workload pod %q, which can lead to undefined behavior.")

    MultipleSidecarsWithoutWorkloadSelectors = diag.NewMessageType(diag.Error, "IST0111", "The Sidecars %v in namespace %q have no workload selector, which can lead to undefined behavior.")

    VirtualServiceDestinationPortSelectorRequired = diag.NewMessageType(diag.Error, "IST0112", "" /* 142 byte string literal not displayed */)

    MTLSPolicyConflict = diag.NewMessageType(diag.Error, "IST0113", "" /* 173 byte string literal not displayed */)

    PolicySpecifiesPortNameThatDoesntExist = diag.NewMessageType(diag.Warning, "IST0114", "Port name %s could not be found for host %s, which means the Policy won't be enforced.")

    DestinationRuleUsesMTLSForWorkloadWithoutSidecar = diag.NewMessageType(diag.Error, "IST0115", "DestinationRule %s uses mTLS for workload %s that has no sidecar. Traffic from workloads with sidecars will fail.")

    DeploymentAssociatedToMultipleServices = diag.NewMessageType(diag.Warning, "IST0116", "This deployment is associated with multiple services using port %d but different protocols: %v")

    DeploymentRequiresServiceAssociated = diag.NewMessageType(diag.Warning, "IST0117", "No service associated with this deployment. Service mesh deployments must be associated with a service.")

    PortNameIsNotUnderNamingConvention = diag.NewMessageType(diag.Info, "IST0118", "Port name %s (port: %d, targetPort: %s) doesn't follow the naming convention of Istio port.")
)

func All Uses

func All() []*diag.MessageType

All returns a list of all known message types.

func NewConflictingMeshGatewayVirtualServiceHosts Uses

func NewConflictingMeshGatewayVirtualServiceHosts(r *resource.Instance, virtualServices string, host string) diag.Message

NewConflictingMeshGatewayVirtualServiceHosts returns a new diag.Message based on ConflictingMeshGatewayVirtualServiceHosts.

func NewConflictingSidecarWorkloadSelectors Uses

func NewConflictingSidecarWorkloadSelectors(r *resource.Instance, conflictingSidecars []string, namespace string, workloadPod string) diag.Message

NewConflictingSidecarWorkloadSelectors returns a new diag.Message based on ConflictingSidecarWorkloadSelectors.

func NewDeploymentAssociatedToMultipleServices Uses

func NewDeploymentAssociatedToMultipleServices(r *resource.Instance, deployment string, port int32, services []string) diag.Message

NewDeploymentAssociatedToMultipleServices returns a new diag.Message based on DeploymentAssociatedToMultipleServices.

func NewDeploymentRequiresServiceAssociated Uses

func NewDeploymentRequiresServiceAssociated(r *resource.Instance, deployment string) diag.Message

NewDeploymentRequiresServiceAssociated returns a new diag.Message based on DeploymentRequiresServiceAssociated.

func NewDeprecated Uses

func NewDeprecated(r *resource.Instance, detail string) diag.Message

NewDeprecated returns a new diag.Message based on Deprecated.

func NewDestinationRuleUsesMTLSForWorkloadWithoutSidecar Uses

func NewDestinationRuleUsesMTLSForWorkloadWithoutSidecar(r *resource.Instance, destinationRuleName string, host string) diag.Message

NewDestinationRuleUsesMTLSForWorkloadWithoutSidecar returns a new diag.Message based on DestinationRuleUsesMTLSForWorkloadWithoutSidecar.

func NewGatewayPortNotOnWorkload Uses

func NewGatewayPortNotOnWorkload(r *resource.Instance, selector string, port int) diag.Message

NewGatewayPortNotOnWorkload returns a new diag.Message based on GatewayPortNotOnWorkload.

func NewInternalError Uses

func NewInternalError(r *resource.Instance, detail string) diag.Message

NewInternalError returns a new diag.Message based on InternalError.

func NewIstioProxyVersionMismatch Uses

func NewIstioProxyVersionMismatch(r *resource.Instance, proxyVersion string, injectionVersion string) diag.Message

NewIstioProxyVersionMismatch returns a new diag.Message based on IstioProxyVersionMismatch.

func NewMTLSPolicyConflict Uses

func NewMTLSPolicyConflict(r *resource.Instance, host string, destinationRuleName string, destinationRuleMTLSMode bool, policyName string, policyMTLSMode string) diag.Message

NewMTLSPolicyConflict returns a new diag.Message based on MTLSPolicyConflict.

func NewMisplacedAnnotation Uses

func NewMisplacedAnnotation(r *resource.Instance, annotation string, kind string) diag.Message

NewMisplacedAnnotation returns a new diag.Message based on MisplacedAnnotation.

func NewMultipleSidecarsWithoutWorkloadSelectors Uses

func NewMultipleSidecarsWithoutWorkloadSelectors(r *resource.Instance, conflictingSidecars []string, namespace string) diag.Message

NewMultipleSidecarsWithoutWorkloadSelectors returns a new diag.Message based on MultipleSidecarsWithoutWorkloadSelectors.

func NewNamespaceNotInjected Uses

func NewNamespaceNotInjected(r *resource.Instance, namespace string, namespace2 string) diag.Message

NewNamespaceNotInjected returns a new diag.Message based on NamespaceNotInjected.

func NewPodMissingProxy Uses

func NewPodMissingProxy(r *resource.Instance) diag.Message

NewPodMissingProxy returns a new diag.Message based on PodMissingProxy.

func NewPolicySpecifiesPortNameThatDoesntExist Uses

func NewPolicySpecifiesPortNameThatDoesntExist(r *resource.Instance, portName string, host string) diag.Message

NewPolicySpecifiesPortNameThatDoesntExist returns a new diag.Message based on PolicySpecifiesPortNameThatDoesntExist.

func NewPortNameIsNotUnderNamingConvention Uses

func NewPortNameIsNotUnderNamingConvention(r *resource.Instance, portName string, port int, targetPort string) diag.Message

NewPortNameIsNotUnderNamingConvention returns a new diag.Message based on PortNameIsNotUnderNamingConvention.

func NewReferencedResourceNotFound Uses

func NewReferencedResourceNotFound(r *resource.Instance, reftype string, refval string) diag.Message

NewReferencedResourceNotFound returns a new diag.Message based on ReferencedResourceNotFound.

func NewSchemaValidationError Uses

func NewSchemaValidationError(r *resource.Instance, err error) diag.Message

NewSchemaValidationError returns a new diag.Message based on SchemaValidationError.

func NewUnknownAnnotation Uses

func NewUnknownAnnotation(r *resource.Instance, annotation string) diag.Message

NewUnknownAnnotation returns a new diag.Message based on UnknownAnnotation.

func NewVirtualServiceDestinationPortSelectorRequired Uses

func NewVirtualServiceDestinationPortSelectorRequired(r *resource.Instance, destHost string, destPorts []int) diag.Message

NewVirtualServiceDestinationPortSelectorRequired returns a new diag.Message based on VirtualServiceDestinationPortSelectorRequired.

Package msg imports 2 packages (graph) and is imported by 11 packages. Updated 2020-01-19. Refresh now. Tools for package owners.