Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 130 for CRD (0.02 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go

    	}
    
    	// update condition
    	crd := inCustomResourceDefinition.DeepCopy()
    	if cond == nil {
    		apiextensionshelpers.RemoveCRDCondition(crd, apiextensionsv1.NonStructuralSchema)
    	} else {
    		cond.LastTransitionTime = metav1.NewTime(time.Now())
    		apiextensionshelpers.SetCRDCondition(crd, *cond)
    	}
    
    	_, err = c.crdClient.CustomResourceDefinitions().UpdateStatus(context.TODO(), crd, metav1.UpdateOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy.go

    func (strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	crd := obj.(*apiextensions.CustomResourceDefinition)
    	crd.Status = apiextensions.CustomResourceDefinitionStatus{}
    	crd.Generation = 1
    
    	for _, v := range crd.Spec.Versions {
    		if v.Storage {
    			if !apiextensions.IsStoredVersion(crd, v.Name) {
    				crd.Status.StoredVersions = append(crd.Status.StoredVersions, v.Name)
    			}
    			break
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/crd/config_test.go

    package crd_test
    
    import (
    	"encoding/json"
    	"reflect"
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/pilot/pkg/config/kube/crd"
    	"istio.io/istio/pkg/ptr"
    )
    
    func TestKind(t *testing.T) {
    	obj := crd.IstioKind{}
    
    	spec := json.RawMessage(`{"a":"b"}`)
    	obj.Spec = spec
    	if got := obj.GetSpec(); !reflect.DeepEqual(spec, got) {
    		t.Errorf("GetSpec() => got %v, want %v", got, spec)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 18:26:16 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. pkg/kube/kclient/client_test.go

    		}, 1)
    		tracker.WaitOrdered("add/name")
    	})
    	t.Run("CRD fully ready", func(t *testing.T) {
    		stop := test.NewStop(t)
    		c := kube.NewFakeClient()
    
    		// Only CRD is ready to go by the time we start informers
    		clienttest.MakeCRD(t, c, gvr.WasmPlugin)
    		c.RunAndWait(stop)
    
    		// Now that CRD is synced, we create the client
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. pilot/pkg/config/monitor/file_snapshot.go

    	"os"
    	"path/filepath"
    	"sort"
    
    	"istio.io/istio/pilot/pkg/config/kube/crd"
    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/schema/collection"
    	"istio.io/istio/pkg/config/schema/collections"
    )
    
    var supportedExtensions = map[string]bool{
    	".yaml": true,
    	".yml":  true,
    }
    
    // FileSnapshot holds a reference to a file directory that contains crd
    // config and filter criteria for which of those configs will be parsed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. pkg/kube/kclient/crdwatcher_test.go

    		t.Fatalf("callback should not be called")
    	}), true)
    
    	// Create CRD later
    	saCalls := atomic.NewInt32(0)
    	// When should return false
    	assert.Equal(t, ctl.KnownOrCallback(gvr.ServiceAccount, func(s <-chan struct{}) {
    		assert.Equal(t, s, stop)
    		saCalls.Inc()
    	}), false)
    	clienttest.MakeCRD(t, c, gvr.ServiceAccount)
    	// And call the callback when the CRD is created
    	assert.EventuallyEqual(t, saCalls.Load, 1)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller.go

    		return nil
    	}
    
    	crd := inCustomResourceDefinition.DeepCopy()
    	crd.Status.AcceptedNames = acceptedNames
    	apiextensionshelpers.SetCRDCondition(crd, namingCondition)
    	apiextensionshelpers.SetCRDCondition(crd, establishedCondition)
    
    	updatedObj, err := c.crdClient.CustomResourceDefinitions().UpdateStatus(context.TODO(), crd, metav1.UpdateOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller_test.go

    	require.NoError(t, err)
    }
    
    // Tests that if a CRD is deleted at runtime, the discovery controller will
    // remove its information from its ResourceManager
    func TestDiscoveryControllerResourceManagerRemovedCRD(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	env := setup()
    	env.Start(ctx)
    
    	// Create CRD after the controller has already started
    	_, err := env.Interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/autoserviceexportcontroller.go

    		switch {
    		case errors.IsAlreadyExists(err):
    			// The ServiceExport already exists. Nothing to do.
    			return nil
    		case errors.IsNotFound(err):
    			log.Warnf("%s ServiceExport CRD Not found. Shutting down MCS ServiceExport sync. "+
    				"Please add the CRD then restart the istiod deployment", c.logPrefix())
    			c.mcsSupported = false
    
    			// Do not return the error, so that the queue does not attempt a retry.
    			return nil
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    // NOTE That this function assumes version always exist since it's used by the validation process
    // that iterates through the existing versions.
    func getSubresourcesForVersion(crd *apiextensions.CustomResourceDefinitionSpec, version string) *apiextensions.CustomResourceSubresources {
    	if !hasPerVersionSubresources(crd.Versions) {
    		return crd.Subresources
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
Back to top