Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for DefaultMode (0.51 sec)

  1. pkg/apis/storage/v1beta1/defaults_test.go

    	// field should be defaulted
    	defaultMode := storagev1beta1.VolumeBindingImmediate
    	output := roundTrip(t, runtime.Object(class)).(*storagev1beta1.StorageClass)
    	outMode := output.VolumeBindingMode
    	if outMode == nil {
    		t.Errorf("Expected VolumeBindingMode to be defaulted to: %+v, got: nil", defaultMode)
    	} else if *outMode != defaultMode {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. pkg/volume/secret/secret.go

    // MakePayload function is exported so that it can be called from the projection volume driver
    func MakePayload(mappings []v1.KeyToPath, secret *v1.Secret, defaultMode *int32, optional bool) (map[string]volumeutil.FileProjection, error) {
    	if defaultMode == nil {
    		return nil, fmt.Errorf("no defaultMode used, not even the default value for it")
    	}
    
    	payload := make(map[string]volumeutil.FileProjection, len(secret.Data))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. pkg/volume/configmap/configmap.go

    // MakePayload function is exported so that it can be called from the projection volume driver
    func MakePayload(mappings []v1.KeyToPath, configMap *v1.ConfigMap, defaultMode *int32, optional bool) (map[string]volumeutil.FileProjection, error) {
    	if defaultMode == nil {
    		return nil, fmt.Errorf("no defaultMode used, not even the default value for it")
    	}
    
    	payload := make(map[string]volumeutil.FileProjection, (len(configMap.Data) + len(configMap.BinaryData)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. pkg/volume/projected/projected_test.go

    		name        string
    		svcacct     string
    		audience    string
    		defaultMode *int32
    		fsUser      *int64
    		fsGroup     *int64
    		expiration  *int64
    		path        string
    
    		wantPayload map[string]util.FileProjection
    		wantErr     error
    	}{
    		{
    			name:        "good service account",
    			audience:    "https://example.com",
    			defaultMode: utilptr.Int32Ptr(0644),
    			path:        "token",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  5. pkg/apis/resource/v1alpha2/defaults_test.go

    	claim := &v1alpha2.ResourceClaim{}
    
    	// field should be defaulted
    	defaultMode := v1alpha2.AllocationModeWaitForFirstConsumer
    	output := roundTrip(t, runtime.Object(claim)).(*v1alpha2.ResourceClaim)
    	outMode := output.Spec.AllocationMode
    	if outMode != defaultMode {
    		t.Errorf("Expected AllocationMode to be defaulted to: %+v, got: %+v", defaultMode, outMode)
    	}
    
    	// field should not change
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 06:52:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. pkg/apis/storage/v1/defaults_test.go

    	class := &storagev1.StorageClass{}
    
    	// field should be defaulted
    	defaultMode := storagev1.VolumeBindingImmediate
    	output := roundTrip(t, runtime.Object(class)).(*storagev1.StorageClass)
    	outMode := output.VolumeBindingMode
    	if outMode == nil {
    		t.Errorf("Expected VolumeBindingMode to be defaulted to: %+v, got: nil", defaultMode)
    	} else if *outMode != defaultMode {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. pkg/volume/downwardapi/downwardapi.go

    func CollectData(items []v1.DownwardAPIVolumeFile, pod *v1.Pod, host volume.VolumeHost, defaultMode *int32) (map[string]volumeutil.FileProjection, error) {
    	if defaultMode == nil {
    		return nil, fmt.Errorf("no defaultMode used, not even the default value for it")
    	}
    
    	errlist := []error{}
    	data := make(map[string]volumeutil.FileProjection)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. pkg/apis/core/v1/defaults_test.go

    		Spec: s,
    	}
    	output := roundTrip(t, runtime.Object(pod))
    	pod2 := output.(*v1.Pod)
    	defaultMode := pod2.Spec.Volumes[0].VolumeSource.Secret.DefaultMode
    	expectedMode := v1.SecretVolumeSourceDefaultMode
    
    	if defaultMode == nil || *defaultMode != expectedMode {
    		t.Errorf("Expected secret DefaultMode %v, got %v", expectedMode, defaultMode)
    	}
    }
    
    func TestSetDefaultConfigMapVolumeSource(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  9. tests/integration/security/file_mounted_certs/main_test.go

                    secret:
                      secretName: ` + PilotSecretName + `
                      defaultMode: 420
                - path: spec.template.spec.volumes[101]
                  value: |-
                    name: client-certs
                    secret:
                      secretName: ` + PilotSecretName + `
                      defaultMode: 420
                - path: spec.template.spec.containers[0].volumeMounts[100]
                  value: |-
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. pkg/volume/projected/projected.go

    	}
    
    	setupSuccess = true
    	return nil
    }
    
    func (s *projectedVolumeMounter) collectData(mounterArgs volume.MounterArgs) (map[string]volumeutil.FileProjection, error) {
    	if s.source.DefaultMode == nil {
    		return nil, fmt.Errorf("no defaultMode used, not even the default value for it")
    	}
    
    	kubeClient := s.plugin.host.GetKubeClient()
    	if kubeClient == nil {
    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