Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for newKube (0.16 sec)

  1. pkg/test/framework/components/zipkin/kube.go

    		return err
    	}
    	yaml = strings.ReplaceAll(extServiceEntry, "{INGRESS_DOMAIN}", ingressAddr)
    	err = ctx.ConfigIstio().YAML(ns, yaml).Apply()
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func newKube(ctx resource.Context, cfgIn Config) (Instance, error) {
    	c := &kubeComponent{
    		cluster: ctx.Clusters().GetOrDefault(cfgIn.Cluster),
    	}
    	c.id = ctx.TrackResource(c)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 19:29:38 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. pkg/test/framework/components/istio/istio.go

    				scopes.Framework.Info("=== SUCCESS: context setup function ===")
    			}
    		}
    
    		t0 := time.Now()
    		scopes.Framework.Infof("=== BEGIN: Deploy Istio [Suite=%s] ===", ctx.Settings().TestID)
    
    		ins, err := newKube(ctx, cfg)
    		if err != nil {
    			scopes.Framework.Infof("=== FAILED: Deploy Istio in %v [Suite=%s] ===", time.Since(t0), ctx.Settings().TestID)
    			return err
    		}
    
    		if i != nil {
    			*i = ins
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 30 17:47:34 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. pkg/test/framework/components/namespace/kube.go

    		_, err := c.Kube().CoreV1().Namespaces().Patch(context.TODO(), name, types.JSONPatchType, []byte(nsLabelPatch), metav1.PatchOptions{})
    		return err
    	})
    }
    
    // NewNamespace allocates a new testing namespace.
    func newKube(ctx resource.Context, cfg Config) (Instance, error) {
    	mu.Lock()
    	idctr++
    	nsid := idctr
    	r := rnd.Intn(99999)
    	mu.Unlock()
    
    	name := fmt.Sprintf("%s-%d-%d", cfg.Prefix, nsid, r)
    	n := &kubeNamespace{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. tests/integration/README.md

        ctx.Environment().Case(environment.Native, func() {
            i, err = newNative(ctx)
        })
        ctx.Environment().Case(environment.Kube, func() {
            i, err = newKube(ctx)
        })
        return
    }
    
    func NewOrFail(t test.Failer, ctx resource.Context) Instance {
        i, err := New(ctx)
        if err != nil {
            t.Fatal(err)
        }
        return i
    }
    ```
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pkg/test/framework/components/istio/kube.go

    	return addr, nil
    }
    
    func (i *istioImpl) Values() (OperatorValues, error) {
    	return i.values, nil
    }
    
    func (i *istioImpl) ValuesOrFail(test.Failer) OperatorValues {
    	return i.values
    }
    
    func newKube(ctx resource.Context, cfg Config) (Instance, error) {
    	cfg.fillDefaults(ctx)
    
    	scopes.Framework.Infof("=== Istio Component Config ===")
    	scopes.Framework.Infof("\n%s", cfg.String())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go

    			Rules: []rbacv1.PolicyRule{
    				rbacv1helpers.NewRule("list", "watch").Groups(legacyGroup).Resources("persistentvolumes", "persistentvolumeclaims").RuleOrDie(),
    				rbacv1helpers.NewRule("get", "list", "watch").Groups(legacyGroup).Resources("nodes").RuleOrDie(),
    				rbacv1helpers.NewRule("patch", "update").Groups(legacyGroup).Resources("nodes/status").RuleOrDie(),
    				rbacv1helpers.NewRule("list", "watch").Groups(legacyGroup).Resources("pods").RuleOrDie(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    				rbacv1helpers.NewRule("create").Groups(coordinationGroup).Resources("leases").RuleOrDie(),
    				rbacv1helpers.NewRule("get", "update").Groups(coordinationGroup).Resources("leases").Names("kube-controller-manager").RuleOrDie(),
    				// Fundamental resources.
    				rbacv1helpers.NewRule("create").Groups(legacyGroup).Resources("secrets", "serviceaccounts").RuleOrDie(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  8. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/namespace_policy.go

    			rbacv1helpers.NewRule("watch").Groups(legacyGroup).Resources("configmaps").RuleOrDie(),
    			rbacv1helpers.NewRule("get", "update").Groups(legacyGroup).Resources("configmaps").Names("kube-controller-manager").RuleOrDie(),
    		},
    	})
    	addNamespaceRole(metav1.NamespaceSystem, rbacv1.Role{
    		// role for the leader locking on supplied configmap
    		ObjectMeta: metav1.ObjectMeta{Name: "system::leader-locking-kube-scheduler"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    			},
    		},
    		{
    			// Non-resource-url tests
    			clusterRoles: []*rbacv1.ClusterRole{
    				newClusterRole("non-resource-url-getter", newRule("get", "", "", "/apis")),
    				newClusterRole("non-resource-url", newRule("*", "", "", "/apis")),
    				newClusterRole("non-resource-url-prefix", newRule("get", "", "", "/apis/*")),
    			},
    			clusterRoleBindings: []*rbacv1.ClusterRoleBinding{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
  10. pkg/apis/rbac/helpers_test.go

    	role := &rbac.Role{
    		Rules: []rbac.PolicyRule{
    			rbac.NewRule("verb").Groups("g").Resources("foo").RuleOrDie(),
    			rbac.NewRule("verb").URLs("/foo").RuleOrDie(),
    		},
    	}
    	clusterRole := &rbac.ClusterRole{
    		Rules: []rbac.PolicyRule{
    			rbac.NewRule("verb").Groups("g").Resources("foo").RuleOrDie(),
    			rbac.NewRule("verb").URLs("/foo").RuleOrDie(),
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top