Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for volerr (0.14 sec)

  1. cmd/jwt_test.go

    				},
    			},
    			expectedErr: errAuthentication,
    		},
    	}
    
    	for i, testCase := range testCases {
    		_, _, _, gotErr := metricsRequestAuthenticate(testCase.req)
    		if testCase.expectedErr != gotErr {
    			t.Errorf("Test %d, expected err %s, got %s", i+1, testCase.expectedErr, gotErr)
    		}
    	}
    }
    
    func BenchmarkParseJWTStandardClaims(b *testing.B) {
    	ctx, cancel := context.WithCancel(context.Background())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:45:14 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwt_test.go

    		u, err := url.Parse(testCase.reqURL)
    		if err != nil {
    			t.Fatal(err)
    		}
    		d, err := GetDefaultExpiration(u.Query().Get("DurationSeconds"))
    		gotErr := (err != nil)
    		if testCase.expectErr != gotErr {
    			t.Errorf("Test %d: Expected %v, got %v with error %s", i+1, testCase.expectErr, gotErr, err)
    		}
    		if d != testCase.duration {
    			t.Errorf("Test %d: Expected duration %d, got %d", i+1, testCase.duration, d)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. pkg/wasm/convert_test.go

    					t.Errorf("wasm config conversion output index %d got %v want %v", i, ec, c.wantOutput[i])
    				}
    			}
    			if c.wantErr && gotErr == nil {
    				t.Error("wasm config conversion fails to raise an error")
    			} else if !c.wantErr && gotErr != nil {
    				t.Errorf("wasm config conversion got unexpected error: %v", gotErr)
    			}
    		})
    	}
    }
    
    func buildTypedStructExtensionConfig(name string, wasm *wasm.Wasm) *core.TypedExtensionConfig {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. docs/fr/docs/tutorial/body.md

    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    Tout comme pour la déclaration de paramètres de requête, quand un attribut de modèle a une valeur par défaut, il n'est pas nécessaire. Sinon, cet attribut doit être renseigné dans le corps de la requête. Pour rendre ce champ optionnel simplement, utilisez `None` comme valeur par défaut.
    
    Par exemple, le modèle ci-dessus déclare un "objet" JSON (ou `dict` Python) tel que :
    
    ```JSON
    {
        "name": "Foo",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. pkg/kubelet/lifecycle/handlers.go

    		Message: fmt.Sprintf("Cannot enforce AppArmor: %v", err),
    	}
    }
    
    func isHTTPResponseError(err error) bool {
    	if err == nil {
    		return false
    	}
    	urlErr := &url.Error{}
    	if !errors.As(err, &urlErr) {
    		return false
    	}
    	return strings.Contains(urlErr.Err.Error(), "server gave HTTP response to HTTPS client")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 11:40:52 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller.go

    		if err != nil {
    			return false, err
    		}
    
    		healthCheckError = kmsPluginHealthzCheck.Check(req)
    		return healthCheckError == nil, nil
    	})
    	if pollErr != nil {
    		return fmt.Errorf("health check for new transformers failed, polling error %v: %w", pollErr, healthCheckError)
    	}
    	klog.V(2).InfoS("Health check succeeded")
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. cmd/iam.go

    				if entityKeysInStorage.Contains(origKeys[i]) {
    					// Ignore any deletion error.
    					_, delErr := sys.PolicyDBSet(ctx, origKeys[i], "", stsUser, isGroup)
    					if delErr != nil {
    						logErr := fmt.Errorf("failed to delete extraneous LDAP DN mapping for `%s`: %w", origKeys[i], delErr)
    						iamLogIf(ctx, logErr)
    					}
    				}
    			}
    		}
    
    		// Replacing origKeys[0] with normKey in the policyMap
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_plugin.go

    	_ volume.VolumeOptions) (volume.Mounter, error) {
    
    	volSrc, pvSrc, err := getSourceFromSpec(spec)
    	if err != nil {
    		return nil, err
    	}
    
    	var (
    		driverName   string
    		volumeHandle string
    		readOnly     bool
    	)
    
    	switch {
    	case volSrc != nil:
    		volumeHandle = makeVolumeHandle(string(pod.UID), spec.Name())
    		driverName = volSrc.Driver
    		if volSrc.ReadOnly != nil {
    			readOnly = *volSrc.ReadOnly
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver.go

    		return err
    	}
    
    	log.Debugf("sending delete pod to ztunnel: %s %v", uid, r)
    
    	var delErr []error
    
    	z.conns.mu.Lock()
    	defer z.conns.mu.Unlock()
    	for conn := range z.conns.connectionSet {
    		_, err := conn.send(ctx, data, nil)
    		if err != nil {
    			delErr = append(delErr, err)
    		}
    	}
    	return errors.Join(delErr...)
    }
    
    func podToWorkload(pod *v1.Pod) *zdsapi.WorkloadInfo {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 22:07:03 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. pkg/controller/nodeipam/ipam/cidr_allocator.go

    	var nodeList *v1.NodeList
    	logger := klog.FromContext(ctx)
    
    	// We must poll because apiserver might not be up. This error causes
    	// controller manager to restart.
    	if pollErr := wait.PollUntilContextTimeout(ctx, nodePollInterval, apiserverStartupGracePeriod, true, func(ctx context.Context) (bool, error) {
    		var err error
    		nodeList, err = kubeClient.CoreV1().Nodes().List(ctx, metav1.ListOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top