Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 234 for podutil (0.28 sec)

  1. cmd/kubeadm/app/cmd/kubeconfig_test.go

    	kubeadmapiv1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3"
    	kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
    	kubeadmutil "k8s.io/kubernetes/cmd/kubeadm/app/util"
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil"
    	testutil "k8s.io/kubernetes/cmd/kubeadm/test"
    	kubeconfigtestutil "k8s.io/kubernetes/cmd/kubeadm/test/kubeconfig"
    )
    
    func generateTestKubeadmConfig(dir, id, certDir, clusterName string) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pkg/volume/fc/fc.go

    	}
    	mapper.MetricsProvider = volume.NewMetricsBlock(filepath.Join(blockPath, string(podUID)))
    
    	return mapper, nil
    }
    
    func (plugin *fcPlugin) NewUnmounter(volName string, podUID types.UID) (volume.Unmounter, error) {
    	// Inject real implementations here, test through the internal function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    	cert, key, err := pkiutil.NewCertAndKey(caCert, caKey, makeTestCertConfig(organization, notBefore, notAfter))
    	if err != nil {
    		t.Fatalf("couldn't generate certificate: %v", err)
    	}
    
    	if err := pkiutil.WriteCertAndKey(dir, name, cert, key); err != nil {
    		t.Fatalf("couldn't write out certificate %s to %s", name, dir)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. pkg/kubelet/pod_workers.go

    // UpdatePod.
    func (p *podWorkers) completeSync(podUID types.UID) {
    	p.podLock.Lock()
    	defer p.podLock.Unlock()
    
    	klog.V(4).InfoS("Pod indicated lifecycle completed naturally and should now terminate", "podUID", podUID)
    
    	status, ok := p.podSyncStatuses[podUID]
    	if !ok {
    		klog.V(4).InfoS("Pod had no status in completeSync, programmer error?", "podUID", podUID)
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/certs/certlist_test.go

    		},
    		ClusterConfiguration: kubeadmapi.ClusterConfiguration{
    			CertificatesDir: dir,
    		},
    	}
    
    	caCfg := Certificates{
    		{
    			config:   pkiutil.CertConfig{},
    			Name:     "test-ca",
    			BaseName: "test-ca",
    		},
    		{
    			config: pkiutil.CertConfig{
    				Config: certutil.Config{
    					AltNames: certutil.AltNames{
    						DNSNames: []string{"test-domain.space"},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_volumes.go

    	volumePaths, err := kl.getMountedVolumePathListFromDisk(podUID)
    	if err != nil {
    		klog.ErrorS(err, "Pod found, but error occurred during checking mounted volumes from disk", "podUID", podUID)
    		return true
    	}
    	if len(volumePaths) > 0 {
    		klog.V(4).InfoS("Pod found, but volumes are still mounted on disk", "podUID", podUID, "paths", volumePaths)
    		return true
    	}
    
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/certs/renewal/readwriter.go

    	"k8s.io/client-go/tools/clientcmd"
    	clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
    	certutil "k8s.io/client-go/util/cert"
    	"k8s.io/client-go/util/keyutil"
    
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil"
    )
    
    // certificateReadWriter defines the behavior of a component that
    // read or write a certificate stored/embedded in a file
    type certificateReadWriter interface {
    	//Exists return true if the certificate exists
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 01 03:09:53 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net_test.go

    	pod := buildConvincingPod(false)
    
    	var podUID string = string(pod.ObjectMeta.UID)
    	fakeIPSetDeps := ipset.FakeNLDeps()
    	set := ipset.IPSet{V4Name: "foo-v4", Prefix: "foo", Deps: fakeIPSetDeps}
    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    	return kubeconfigutil.CreateWithCerts(
    		spec.APIServer,
    		clustername,
    		spec.ClientName,
    		pkiutil.EncodeCertPEM(spec.CACert),
    		encodedClientKey,
    		pkiutil.EncodeCertPEM(clientCert),
    	), nil
    }
    
    func newClientCertConfigFromKubeConfigSpec(spec *kubeConfigSpec) pkiutil.CertConfig {
    	return pkiutil.CertConfig{
    		Config: certutil.Config{
    			CommonName:   spec.ClientName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. pkg/volume/projected/projected.go

    		&projectedVolume{
    			volName:         volName,
    			podUID:          podUID,
    			plugin:          plugin,
    			MetricsProvider: volume.NewCachedMetrics(volume.NewMetricsDu(getPath(podUID, volName, plugin.host))),
    		},
    	}, nil
    }
    
    func (plugin *projectedPlugin) ConstructVolumeSpec(volumeName, mountPath string) (volume.ReconstructedVolume, error) {
    	projectedVolume := &v1.Volume{
    		Name: volumeName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top