Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for krt (0.38 sec)

  1. pilot/pkg/serviceregistry/kube/controller/ambient/policies.go

    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/spiffe"
    	"istio.io/istio/pkg/workloadapi/security"
    )
    
    func PolicyCollections(
    	AuthzPolicies krt.Collection[*securityclient.AuthorizationPolicy],
    	PeerAuths krt.Collection[*securityclient.PeerAuthentication],
    	MeshConfig krt.Singleton[MeshConfig],
    	Waypoints krt.Collection[Waypoint],
    	Pods krt.Collection[*v1.Pod],
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. pkg/kube/krt/bench_test.go

    	return s.Spec.Selector
    }
    
    var _ krt.LabelSelectorer = ServiceWrapper{}
    
    func NewModern(c kube.Client, events chan string, _ <-chan struct{}) {
    	Pods := krt.NewInformer[*v1.Pod](c)
    	Services := krt.NewInformer[*v1.Service](c, krt.WithObjectAugmentation(func(o any) any {
    		return ServiceWrapper{o.(*v1.Service)}
    	}))
    	ServicesByNamespace := krt.NewNamespaceIndex(Services)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. pkg/kube/krt/index_test.go

    	pc := clienttest.Wrap(t, kpc)
    	pods := krt.WrapClient[*corev1.Pod](kpc)
    	stop := test.NewStop(t)
    	c.RunAndWait(stop)
    	SimplePods := SimplePodCollection(pods)
    	tt := assert.NewTracker[string](t)
    	IPIndex := krt.NewIndex[SimplePod, string](SimplePods, func(o SimplePod) []string {
    		return []string{o.IP}
    	})
    	Collection := krt.NewSingleton[string](func(ctx krt.HandlerContext) *string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. pilot/pkg/controllers/untaint/nodeuntainter.go

    		log.Debugf("pod %s on node %s ready!", p.Name, p.Spec.NodeName)
    		return p
    	}, krt.WithStop(stop))
    
    	// these are all the nodes that have a ready cni pod. if the cni pod is ready,
    	// it means we are ok scheduling pods to it.
    	readyCniNodes := krt.NewCollection(readyCniPods, func(ctx krt.HandlerContext, p v1.Pod) *v1.Node {
    		pnode := krt.FetchOne(ctx, nodes, krt.FilterKey(p.Spec.NodeName))
    		if pnode == nil {
    			return nil
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. pkg/kube/krt/singleton_test.go

    func TrackerHandler[T any](tracker *assert.Tracker[string]) func(krt.Event[T]) {
    	return func(o krt.Event[T]) {
    		tracker.Record(fmt.Sprintf("%v/%v", o.Event, krt.GetKey(o.Latest())))
    	}
    }
    
    func BatchedTrackerHandler[T any](tracker *assert.Tracker[string]) func([]krt.Event[T], bool) {
    	return func(o []krt.Event[T], initialSync bool) {
    		tracker.Record(slices.Join(",", slices.Map(o, func(o krt.Event[T]) string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. pkg/kube/krt/join_test.go

    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestJoinCollection(t *testing.T) {
    	c1 := krt.NewStatic[Named](nil)
    	c2 := krt.NewStatic[Named](nil)
    	c3 := krt.NewStatic[Named](nil)
    	j := krt.JoinCollection([]krt.Collection[Named]{c1.AsCollection(), c2.AsCollection(), c3.AsCollection()})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/ambient/meshconfig.go

    		cmName = cmName + "-" + options.Revision
    	}
    	return krt.NewSingleton[MeshConfig](
    		func(ctx krt.HandlerContext) *MeshConfig {
    			meshCfg := mesh.DefaultMeshConfig()
    			cms := []*v1.ConfigMap{}
    			if features.SharedMeshConfig != "" {
    				cms = AppendNonNil(cms, krt.FetchOne(ctx, ConfigMaps,
    					krt.FilterObjectName(types.NamespacedName{Name: features.SharedMeshConfig, Namespace: options.SystemNamespace})))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/workloadapi"
    )
    
    func (a *index) ServicesCollection(
    	Services krt.Collection[*v1.Service],
    	ServiceEntries krt.Collection[*networkingclient.ServiceEntry],
    	Waypoints krt.Collection[Waypoint],
    	Namespaces krt.Collection[*v1.Namespace],
    ) krt.Collection[model.ServiceInfo] {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. pkg/kube/krt/recomputetrigger_test.go

    package krt_test
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestRecomputeTrigger(t *testing.T) {
    	rt := krt.NewRecomputeTrigger()
    	col1 := krt.NewStatic(ptr.Of("foo")).AsCollection()
    	response := "foo"
    	col2 := krt.NewCollection(col1, func(ctx krt.HandlerContext, i string) *string {
    		rt.MarkDependant(ctx)
    		return ptr.Of(response)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 05:51:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. pkg/kube/krt/recomputetrigger.go

    // limitations under the License.
    
    package krt
    
    import (
    	"go.uber.org/atomic"
    
    	"istio.io/istio/pkg/ptr"
    )
    
    // RecomputeTrigger trigger provides an escape hatch to allow krt transformations to depend on external state and recompute
    // correctly when those change.
    // Typically, all state is registered and fetched through krt.Fetch. Through this mechanism, any changes are automatically
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 05:51:56 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top