- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CanonicalGroup (0.4 sec)
-
pilot/pkg/model/policyattachment.go
} // Gateway attached if config.CanonicalGroup(targetRef.GetGroup()) == gvk.KubernetesGateway.CanonicalGroup() && targetRef.GetKind() == gvk.KubernetesGateway.Kind && target.Name == gatewayName && (targetRef.GetNamespace() == "" || targetRef.GetNamespace() == p.Namespace) { return true } // Service attached if p.IsWaypoint && config.CanonicalGroup(targetRef.GetGroup()) == gvk.Service.CanonicalGroup() &&
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 4.9K bytes - Viewed (0) -
pkg/config/model.go
Kind: g.Kind, } } func CanonicalGroup(group string) string { if group != "" { return group } return "core" } // CanonicalGroup returns the group with defaulting applied. This means an empty group will // be treated as "core", following Kubernetes API standards func (g GroupVersionKind) CanonicalGroup() string { return CanonicalGroup(g.Group) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 12.6K bytes - Viewed (0) -
pkg/config/validation/validation.go
if canoncalGroup == "" { canoncalGroup = "core" } allowed := slices.FindFunc(allowedTargetRefs, func(gvk config.GroupVersionKind) bool { return gvk.Kind == targetRef.Kind && gvk.CanonicalGroup() == canoncalGroup }) != nil if !allowed { v = appendErrorf(v, "targetRef must be to one of %v but was %s/%s", allowedTargetRefs, targetRef.Group, targetRef.Kind) } return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)