- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for NewReferencedResourceNotFound (0.57 sec)
-
pkg/config/analysis/analyzers/virtualservice/destinationhosts.go
for _, d := range getRouteDestinations(vs) { s := util.GetDestinationHost(r.Metadata.FullName.Namespace, vs.ExportTo, d.Destination.GetHost(), serviceEntryHosts) if s == nil { m := msg.NewReferencedResourceNotFound(r, "host", d.Destination.GetHost()) key := fmt.Sprintf(util.DestinationHost, d.RouteRule, d.ServiceIndex, d.DestinationIndex) if line, found := util.ErrorLine(r, key); found { m.Line = line }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 15:18:05 UTC 2023 - 6.9K bytes - Viewed (0) -
pkg/config/analysis/analyzers/virtualservice/destinationrules.go
ns := r.Metadata.FullName.Namespace for _, ad := range getRouteDestinations(vs) { if !d.checkDestinationSubset(ns, ad.Destination, destHostsAndSubsets) { m := msg.NewReferencedResourceNotFound(r, "host+subset in destinationrule", fmt.Sprintf("%s+%s", ad.Destination.GetHost(), ad.Destination.GetSubset())) key := fmt.Sprintf(util.DestinationHost, ad.RouteRule, ad.ServiceIndex, ad.DestinationIndex)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 15:18:05 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/config/analysis/analyzers/gateway/secret.go
// If we can't find a namespace for the gateway, it's because there's no matching selector. Exit early with a different message. if gwNs == "" { gwSelector := labels.SelectorFromSet(gw.Selector) m := msg.NewReferencedResourceNotFound(r, "selector", labels.SelectorFromSet(gw.Selector).String()) label := util.ExtractLabelFromSelectorString(gwSelector.String()) if line, ok := util.ErrorLine(r, fmt.Sprintf(util.GatewaySelector, label)); ok {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 04 18:29:24 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/config/analysis/analyzers/telemetry/selector.go
foundPod = true podsToTelemetries[rp.Metadata.FullName] = append(podsToTelemetries[rp.Metadata.FullName], rs) } return true }) if !foundPod { m := msg.NewReferencedResourceNotFound(rs, "selector", sel.String()) label := util.ExtractLabelFromSelectorString(sel.String()) if line, ok := util.ErrorLine(rs, fmt.Sprintf(util.TelemetrySelector, label)); ok { m.Line = line }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun May 05 03:44:57 UTC 2024 - 3.4K bytes - Viewed (0) -
pkg/config/analysis/analyzers/virtualservice/gateways.go
m.Line = line } c.Report(gvk.VirtualService, m) continue } gwFullName := resource.NewShortOrFullName(vsNs, gwName) if !c.Exists(gvk.Gateway, gwFullName) { m := msg.NewReferencedResourceNotFound(r, "gateway", gwName) if line, ok := util.ErrorLine(r, fmt.Sprintf(util.VSGateway, i)); ok { m.Line = line } c.Report(gvk.VirtualService, m) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 05 01:28:52 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/config/analysis/analyzers/gateway/conflictinggateway.go
isExists := false for gwmKey := range gwCMap { if strings.Contains(gwmKey, sGWSelector) { isExists = true break } } if sGWSelector != "" && !isExists { m := msg.NewReferencedResourceNotFound(r, "selector", sGWSelector) label := util.ExtractLabelFromSelectorString(sGWSelector) if line, ok := util.ErrorLine(r, fmt.Sprintf(util.GatewaySelector, label)); ok { m.Line = line }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun May 05 03:44:57 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/gateway/gateway.go
} } } return true }) } return true }) // Report if we found no pods matching this gateway's selector if gwSelectorMatches == 0 { m := msg.NewReferencedResourceNotFound(r, "selector", gwSelector.String()) label := util.ExtractLabelFromSelectorString(gwSelector.String()) if line, ok := util.ErrorLine(r, fmt.Sprintf(util.GatewaySelector, label)); ok { m.Line = line }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 08:48:06 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/sidecar/selector.go
podsToSidecars[rp.Metadata.FullName] = append(podsToSidecars[rp.Metadata.FullName], rs) pods[rp.Metadata.FullName] = rp } return true }) if !foundPod { m := msg.NewReferencedResourceNotFound(rs, "selector", sel.String()) label := util.ExtractLabelFromSelectorString(sel.String()) if line, ok := util.ErrorLine(rs, fmt.Sprintf(util.WorkloadSelector, label)); ok { m.Line = line }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun May 05 03:44:57 UTC 2024 - 5K bytes - Viewed (0) -
pkg/config/analysis/analyzers/authz/authorizationpolicies.go
for i, rule := range ap.Rules { for j, from := range rule.From { for k, ns := range append(from.Source.Namespaces, from.Source.NotNamespaces...) { if !matchNamespace(ns, c) { m := msg.NewReferencedResourceNotFound(r, "namespace", ns) nsIndex := k if nsIndex >= len(from.Source.Namespaces) { nsIndex -= len(from.Source.Namespaces) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 20:57:29 UTC 2023 - 6K bytes - Viewed (0) -
pkg/config/analysis/README.md
// From there, code is generated for each message type, including a constructor function // that you can use to create a new validation message of each type. msg := msg.NewReferencedResourceNotFound(r, "gateway", gwName) // Field map contains the path of the field as the key, and its line number as the value was stored in the resource. //
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 9.4K bytes - Viewed (0)