- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PodInAmbientMode (0.17 sec)
-
pkg/config/analysis/analyzers/util/in_mesh.go
return inMesh(r.Metadata.Annotations, r.Metadata.Labels, r.Metadata.FullName.Namespace, append(slices.Clone(p.Containers), p.InitContainers...), c) } // PodInAmbientMode returns true if a Pod is in the service mesh with the ambient mode func PodInAmbientMode(r *resource.Instance) bool { if r == nil { return false } return r.Metadata.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/config/analysis/analyzers/sidecar/selector.go
podResource := pods[p] if len(sList) == 1 && !util.PodInAmbientMode(podResource) { continue } sNames := getNames(sList) for _, rs := range sList { // We don't want to report errors for pods in ambient mode, since there is no sidecar, // but we do want to warn that the policy is ineffective. if util.PodInAmbientMode(podResource) { if !reportedResources[rs.Metadata.FullName.String()] {
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
if podLabelsMap[ns] == nil { podLabelsMap[ns] = make([]klabels.Set, 0) } if util.PodInMesh(r, c) { podLabelsMap[ns] = append(podLabelsMap[ns], pLabels) } if util.PodInAmbientMode(r) { podLabelsMap[ns] = append(podLabelsMap[ns], pLabels) } return true }) return podLabelsMap
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 20:57:29 UTC 2023 - 6K bytes - Viewed (0)