Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 264 for CRD (0.02 sec)

  1. pkg/config/crd/validator.go

    	}
    	for _, crd := range crds {
    		versions := crd.Spec.Versions
    		if len(versions) == 0 {
    			versions = []apiextensions.CustomResourceDefinitionVersion{{Name: crd.Spec.Version}} // nolint: staticcheck
    		}
    		for _, ver := range versions {
    			gvk := schema.GroupVersionKind{
    				Group:   crd.Spec.Group,
    				Version: ver.Name,
    				Kind:    crd.Spec.Names.Kind,
    			}
    			crdSchema := ver.Schema
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 15:38:40 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/crd_finder_test.go

    	if found, _ := finder.HasCRD(schema.GroupKind{Group: "crd.com", Kind: "MyCRD"}); !found {
    		t.Fatalf("Failed to find CRD MyCRD")
    	}
    	if found, _ := finder.HasCRD(schema.GroupKind{Group: "crd.com", Kind: "Random"}); found {
    		t.Fatalf("Found crd Random that doesn't exist")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers.go

    func FindCRDCondition(crd *CustomResourceDefinition, conditionType CustomResourceDefinitionConditionType) *CustomResourceDefinitionCondition {
    	for i := range crd.Status.Conditions {
    		if crd.Status.Conditions[i].Type == conditionType {
    			return &crd.Status.Conditions[i]
    		}
    	}
    
    	return nil
    }
    
    // IsCRDConditionTrue indicates if the condition is present and strictly true.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 27 10:54:44 UTC 2019
    - 9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/listtype_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer tearDownFn()
    
    	crd := listTypeResourceFixture.DeepCopy()
    	if err := yaml.Unmarshal([]byte(listTypeResourceSchema), &crd.Spec.Versions[0].Schema.OpenAPIV3Schema); err != nil {
    		t.Fatal(err)
    	}
    
    	crd, err = fixtures.CreateNewV1CustomResourceDefinition(crd, apiExtensionClient, dynamicClient)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. bin/update_crds.sh

    fi
    
    echo "# Generated with \`kubectl kustomize \"https://github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=${GATEWAY_VERSION}\"\`" > "${API_TMP}/gateway-api-crd.yaml"
    if ! kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=${GATEWAY_VERSION}" >> "${API_TMP}/gateway-api-crd.yaml"; then
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 14:28:27 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    	if !apiextensionshelpers.IsCRDConditionTrue(crd, apiextensionsv1.NamesAccepted) &&
    		!apiextensionshelpers.IsCRDConditionTrue(crd, apiextensionsv1.Established) {
    		r.delegate.ServeHTTP(w, req)
    		return
    	}
    
    	terminating := apiextensionshelpers.IsCRDConditionTrue(crd, apiextensionsv1.Terminating)
    
    	crdInfo, err := r.getOrCreateServingInfoFor(crd.UID, crd.Name)
    	if apierrors.IsNotFound(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/controller_test.go

    	env.expectPath(s, "/apis/apiextensions.k8s.io/v1")
    
    	t.Log("Removing version v1beta1")
    	crd.Spec.Versions = crd.Spec.Versions[1:]
    	crd.Generation += 1
    	// Generation is updated before storage to etcd. Since we don't have that in the fake client, manually increase it.
    	env.Interface.ApiextensionsV1().CustomResourceDefinitions().Update(ctx, crd, metav1.UpdateOptions{})
    	env.pollForPathNotExists("/apis/stable.example.com/v1beta1/coolbars")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 22 17:10:53 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/helpers.go

    // NOTE: the newly logically-defaulted columns is not pointing to the original CRD object.
    // One cannot mutate the original CRD columns using the logically-defaulted columns. Please iterate through
    // the original CRD object instead.
    func getColumnsForVersion(crd *apiextensionsv1.CustomResourceDefinition, version string) ([]apiextensionsv1.CustomResourceColumnDefinition, error) {
    	for _, v := range crd.Spec.Versions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 30 11:46:49 UTC 2021
    - 7.2K bytes
    - Viewed (0)
  9. pilot/pkg/model/conversion_test.go

    		t.Error("should produce an error")
    	}
    
    	gotFromYAML, err := crd.FromYAML(destinationRuleSchema, wantYAML)
    	if err != nil {
    		t.Errorf("FromYAML failed: %v", err)
    	}
    	if !reflect.DeepEqual(gotFromYAML, msg) {
    		t.Errorf("FromYAML failed: got %+v want %+v", spew.Sdump(gotFromYAML), spew.Sdump(msg))
    	}
    
    	if _, err = crd.FromYAML(destinationRuleSchema, ":"); err == nil {
    		t.Errorf("should produce an error")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 02 20:50:14 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. tests/integration/pilot/mcs/common/common.go

    }
    
    func isCRDInstalled(c cluster.Cluster, crdName string, version string) bool {
    	crd, err := c.Ext().ApiextensionsV1().CustomResourceDefinitions().Get(context.TODO(), crdName, metav1.GetOptions{})
    	if err == nil {
    		// Found the CRD, now check against the version.
    		for _, v := range crd.Spec.Versions {
    			if v.Name == version {
    				// The CRD is already installed on this cluster.
    				return true
    			}
    		}
    	}
    	return false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 17:09:00 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top