Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for acquire (0.16 sec)

  1. pkg/kubelet/kubelet_test.go

    				),
    				test.containerName,
    				options,
    			)
    			require.Equal(t, test.expectedStatus, status)
    
    			if status != nil {
    				return
    			}
    
    			require.True(
    				t,
    				strings.HasPrefix(
    					options.Location,
    					test.expectedLocation,
    				),
    			)
    			require.Equal(
    				t,
    				options.ContainerId,
    				containerID.ID,
    			)
    
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    		assert.NoError(t, kubelet.updateNodeStatus(ctx))
    		actions := kubeClient.Actions()
    		require.Len(t, actions, 2)
    		require.True(t, actions[1].Matches("patch", "nodes"))
    		require.Equal(t, actions[1].GetSubresource(), "status")
    
    		updatedNode, err := kubeClient.CoreV1().Nodes().Get(ctx, testKubeletHostname, metav1.GetOptions{})
    		require.NoError(t, err, "can't apply node status patch")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  3. pkg/api/pod/util_test.go

    limitations under the License.
    */
    
    package pod
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_control_test.go

    func (rt *requestTracker) trackParallelRequests() {
    	if !rt.shouldTrackParallelRequests {
    		// do not track parallel requests unless specifically enabled
    		return
    	}
    	if rt.parallelLock.TryLock() {
    		// lock acquired: we are the only or the first concurrent request
    		// initialize the next set of parallel requests
    		rt.parallelRequests = 1
    	} else {
    		// lock is held by other requests
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  5. pkg/volume/util/operationexecutor/operation_generator.go

    	t, ok := pvc.Status.AllocatedResources[v1.ResourceStorage]
    	if ok {
    		allocatedSize = &t
    	}
    	var err error
    
    	if pvSize.Cmp(pvcSpecSize) < 0 {
    		// pv is not of requested size yet and hence will require expanding
    
    		switch resizeStatus {
    		case v1.PersistentVolumeClaimControllerResizeInProgress,
    			v1.PersistentVolumeClaimNodeResizePending,
    			v1.PersistentVolumeClaimNodeResizeInProgress,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  6. pkg/proxy/nftables/proxier_test.go

    			localDetector: false,
    			overrides: map[string]packetFlowTestOverride{
    				// With no LocalTrafficDetector, all traffic to a
    				// ClusterIP is assumed to be from a pod, and thus to not
    				// require masquerading.
    				"node to ClusterIP": {
    					masq: ptr.To(false),
    				},
    				"node to ClusterIP with eTP:Local": {
    					masq: ptr.To(false),
    				},
    				"node to ClusterIP with iTP:Local": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 173.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				c.newObj,
    				c.oldObj,
    				budget,
    				WithRatcheting(common.NewCorrelatedObject(c.newObj, c.oldObj, &model.Structural{Structural: c.schema})),
    			)
    
    			require.Len(t, errs, len(c.errors), "must have expected number of errors")
    			require.Len(t, recorder.Warnings(), len(c.warnings), "must have expected number of warnings")
    
    			// Check that the expected errors were raised
    			for _, expectedErr := range c.errors {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods_test.go

    			tmpdir, err := writeHostsFile(testCase.hostsFileName, testCase.rawHostsFileContent)
    			require.NoError(t, err, "could not create a temp hosts file")
    			defer os.RemoveAll(tmpdir)
    
    			actualContent, fileReadErr := nodeHostsFileContent(filepath.Join(tmpdir, testCase.hostsFileName), testCase.hostAliases)
    			require.NoError(t, fileReadErr, "could not create read hosts file")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet.go

    			}
    
    			klog.V(vLevel).InfoS("Image garbage collection succeeded")
    		}
    	}, ImageGCPeriod, wait.NeverStop)
    }
    
    // initializeModules will initialize internal modules that do not require the container runtime to be up.
    // Note that the modules here must not depend on modules that are not initialized here.
    func (kl *Kubelet) initializeModules() error {
    	// Prometheus metrics.
    	metrics.Register(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top