Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 264 for CRD (0.03 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers_test.go

    		},
    	}
    	for _, tc := range tests {
    		crd := generateCRDwithCondition(tc.crdCondition)
    		SetCRDCondition(crd, tc.newCondition)
    		if len(tc.expectedcrdCondition) != len(crd.Status.Conditions) {
    			t.Errorf("%v expected %v, got %v", tc.name, tc.expectedcrdCondition, crd.Status.Conditions)
    		}
    		for i := range tc.expectedcrdCondition {
    			if !IsCRDConditionEquivalent(&tc.expectedcrdCondition[i], &crd.Status.Conditions[i]) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 03 16:49:27 UTC 2019
    - 20.3K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/deprecation/deprecation.go

    	for _, depCRD := range deprecatedCRDs {
    		var group, kind string
    		switch crd := r.Message.(type) {
    		case *k8sext.CustomResourceDefinition:
    			group = crd.Spec.Group
    			kind = crd.Spec.Names.Kind
    		case *k8sext.CustomResourceDefinitionSpec:
    			group = crd.Group
    			kind = crd.Names.Kind
    		}
    		if group == depCRD.Group && kind == depCRD.Names.Kind {
    			ctx.Report(gvk.CustomResourceDefinition,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 02 20:50:14 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. pilot/pkg/config/monitor/README.md

    # Monitor
    
    This package provides the ability to populate a `crd.Controller` dynamically via a function that provides
    additional config. The monitor will acquire snapshots of additional changes and populate the `crd.Controller`
    as needed.
    
    ## Creating a Monitor
    
    To create a monitor, you should provide the `crd.Controller`, a polling interval, and
    a function that returns `[]*model.Config`.
    
    ```golang
    monitor := file.NewMonitor(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 14 20:15:07 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  4. pkg/test/framework/components/crd/gateway.go

    				return err
    			}
    			for _, crd := range crdl.Items {
    				if !strings.HasSuffix(crd.Name, "gateway.networking.k8s.io") {
    					continue
    				}
    				found := false
    				for _, c := range crd.Status.Conditions {
    					if c.Type == apiextensions.Established && c.Status == apiextensions.ConditionTrue {
    						found = true
    					}
    				}
    				if !found {
    					return fmt.Errorf("crd %v not ready: %+v", crd.Name, crd.Status)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 17:54:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/crd_finder.go

    		}
    
    		gks := []schema.GroupKind{}
    
    		// We need to parse the list to get the gvk, I guess that's fine.
    		for _, crd := range (*list).Items {
    			// Look for group, version, and kind
    			group, _, _ := unstructured.NestedString(crd.Object, "spec", "group")
    			kind, _, _ := unstructured.NestedString(crd.Object, "spec", "names", "kind")
    
    			gks = append(gks, schema.GroupKind{
    				Group: group,
    				Kind:  kind,
    			})
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 19 14:05:43 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go

    			},
    			queryParam:       "UnknownQueryParam",
    			expectedSupports: false,
    		},
    		"Field validation query param supported for found CRD in primary verifier": {
    			crds: []schema.GroupKind{
    				{
    					Group: "example.com",
    					Kind:  "ExampleCRD",
    				},
    			},
    			// GVK matches above CRD GroupKind
    			gvk: schema.GroupVersionKind{
    				Group:   "example.com",
    				Version: "v1",
    				Kind:    "ExampleCRD",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 18:30:16 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/versioning_test.go

    	// update validation via update because the cache priming in CreateCRDUsingRemovedAPI will fail otherwise
    	t.Logf("Updating CRD to validate apiVersion")
    	noxuDefinition, err = UpdateCustomResourceDefinitionWithRetry(apiExtensionClient, noxuDefinition.Name, func(crd *apiextensionsv1.CustomResourceDefinition) {
    		for i := range crd.Spec.Versions {
    			crd.Spec.Versions[i].Schema = &apiextensionsv1.CustomResourceValidation{
    				OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 13:10:47 UTC 2021
    - 8.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/converter.go

    	}
    
    	// Determine whether we should expect to be asked to "convert" autoscaling/v1 Scale types
    	convertScale := false
    	selectableFields := map[schema.GroupVersion]sets.Set[string]{}
    	for _, version := range crd.Spec.Versions {
    		gv := schema.GroupVersion{Group: crd.Spec.Group, Version: version.Name}
    		if version.Subresources != nil && version.Subresources.Scale != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    			old := tc.oldCRD.DeepCopy()
    
    			dropDisabledFields(tc.crd, tc.oldCRD)
    
    			// old crd should never be changed
    			if diff := cmp.Diff(tc.oldCRD, old); diff != "" {
    				t.Fatalf("old crd changed from %v to %v\n%v", tc.oldCRD, old, diff)
    			}
    
    			if diff := cmp.Diff(tc.expectedCRD, tc.crd); diff != "" {
    				t.Fatalf("unexpected crd: %v\n%v", tc.crd, diff)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    	// Now that the feature gate is disabled again, update the CRD to trigger an openAPI update
    	crd, err = apiExtensionClient.ApiextensionsV1().CustomResourceDefinitions().Get(ctx, crd.Name, metav1.GetOptions{})
    	crd.Spec.Versions[0].SelectableFields = []apiextensionsv1.SelectableField{
    		{JSONPath: ".spec.color"},
    		{JSONPath: ".spec.quantity"},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top