- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for object1 (0.16 sec)
-
operator/cmd/mesh/manifest_shared_test.go
func getAllIstioObjects() object.K8sObjects { var out object.K8sObjects for _, gvk := range append(allClusterGVKs, allNamespacedGVKs...) { objects := &unstructured.UnstructuredList{} objects.SetGroupVersionKind(gvk) if err := testClient.List(context.TODO(), objects); err != nil { log.Error(err.Error()) continue } for _, o := range objects.Items { no := o.DeepCopy()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 20 22:39:28 GMT 2024 - 11.7K bytes - Viewed (1) -
istioctl/pkg/util/handlers/handlers.go
} return pod.Name, namespace, nil } // SelectorsForObject is a fork of upstream function to add additional Istio type support func SelectorsForObject(object runtime.Object) (namespace string, selector labels.Selector, err error) { switch t := object.(type) { case *gatewayapi.Gateway: if !gateway.IsManaged(&t.Spec) { return "", nil, fmt.Errorf("gateway is not a managed gateway") } namespace = t.Namespace
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 06 15:01:41 GMT 2024 - 6.2K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump.go
if err != nil { return "", err } return out2, nil } // Convert the generated YAML to pretty JSON. func yamlToPrettyJSON(yml string) (string, error) { // YAML objects are not completely compatible with JSON // objects. Let yaml.YAMLToJSON handle the edge cases and // we'll re-encode the result to pretty JSON. uglyJSON, err := yaml.YAMLToJSON([]byte(yml)) if err != nil { return "", err }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
cni/pkg/plugin/sidecar_redirect.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Defines the redirect object and operations. package plugin import ( "fmt" "net/netip" "strconv" "strings" "istio.io/api/annotation" "istio.io/istio/pkg/log" "istio.io/istio/tools/istio-iptables/pkg/cmd" )
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.6K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
// K8S may get a pod Add event without any IPs in the object, and the pod will later be updated with IPs. // // We always need the IPs, but this is fine because this AddPodToMesh can be called from the CNI plugin as well, // which always has the firsthand info of the IPs, even before K8S does - so we pass them separately here because // we actually may have them before K8S in the Pod object.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1) -
operator/cmd/mesh/manifest-generate.go
} // For a given group of objects, sort in order to avoid missing dependencies, such as creating CRDs first objects.Sort(object.DefaultObjectOrder()) for _, obj := range objects { yml, err := obj.YAML() if err != nil { return nil, err } output = append(output, string(yml)) } return output, nil } // RenderToDir writes manifests to a local filesystem directory tree.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 8.5K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
} } func testCmdAddExpectFail(t *testing.T, stdinData string, objects ...runtime.Object) *mockInterceptRuleMgr { args := buildCmdArgs(stdinData, testPodName, testNSName) conf, err := parseConfig(args.StdinData) if err != nil { t.Fatalf("config parse failed with error: %v", err) } // Create a kube client client := kube.NewFakeClient(objects...) mockRedir := &mockInterceptRuleMgr{}
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0) -
istioctl/pkg/util/ambient/util.go
return isZtunnel } if v, ok := pod.Labels["app"]; ok { return v == "ztunnel" } return isZtunnel } // InAmbient returns true if a resource is in ambient data plane mode. func InAmbient(obj metav1.Object) bool { if obj == nil { return false } switch t := obj.(type) { case *corev1.Pod: return t.GetAnnotations()[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled case *corev1.Namespace:
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu May 02 21:29:40 GMT 2024 - 1.7K bytes - Viewed (0) -
cni/pkg/nodeagent/informers.go
pods = append(pods, pod) } } return pods } // EnqueueNamespace takes a Namespace and enqueues all Pod objects that make need an update // TODO it is sort of pointless/confusing/implicit to populate Old and New with the same reference here func (s *InformerHandlers) enqueueNamespace(o controllers.Object) { namespace := o.GetName() labels := o.GetLabels()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 9.6K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
serviceProtocolUDP = "UDP" fileExtensions = []string{".json", ".yaml", ".yml"} ) type validator struct{} func checkFields(un *unstructured.Unstructured) error { var errs error for key := range un.Object { if _, ok := validFields[key]; !ok { errs = multierror.Append(errs, fmt.Errorf("unknown field %q", key)) } } return errs }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0)