Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for Webhooks (0.47 sec)

  1. docs/de/docs/advanced/openapi-webhooks.md

    Beachten Sie, dass Sie bei Webhooks tatsächlich keinen *Pfad* (wie `/items/`) deklarieren, sondern dass der Text, den Sie dort übergeben, lediglich eine **Kennzeichnung** des Webhooks (der Name des Events) ist. Zum Beispiel ist in `@app.webhooks.post("new-subscription")` der Webhook-Name `new-subscription`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 23 13:06:03 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/openapi-webhooks.md

    ```Python hl_lines="9-13  36-53"
    {!../../../docs_src/openapi_webhooks/tutorial001.py!}
    ```
    
    The webhooks that you define will end up in the **OpenAPI** schema and the automatic **docs UI**.
    
    !!! info
        The `app.webhooks` object is actually just an `APIRouter`, the same type you would use when structuring your app with multiple files.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. tests/test_webhooks_security.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    bearer_scheme = HTTPBearer()
    
    
    class Subscription(BaseModel):
        username: str
        monthly_fee: float
        start_date: datetime
    
    
    @app.webhooks.post("new-subscription")
    def new_subscription(
        body: Subscription, token: Annotated[str, Security(bearer_scheme)]
    ):
        """
        When a new user subscribes to your service we'll send you a POST request with this
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Oct 20 09:00:44 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/generate.go

    	if err != nil {
    		return "", fmt.Errorf("could not decode generated webhook: %w", err)
    	}
    	decodedWh := whObject.(*admitv1.MutatingWebhookConfiguration)
    	for i := range decodedWh.Webhooks {
    		decodedWh.Webhooks[i].ClientConfig.CABundle = []byte(config.CABundle)
    		if decodedWh.Webhooks[i].ClientConfig.Service != nil {
    			decodedWh.Webhooks[i].ClientConfig.Service.Path = &config.Path
    		}
    	}
    	if opts.WebhookName != "" {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      //
      // Never: the webhook will not be called more than once in a single admission evaluation.
      //
      // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
      // if the object being admitted is modified by other admission plugins after the initial webhook call.
      // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/util.go

    		return fmt.Errorf("expected a single webhook for default revision")
    	}
    	webhook := whs[0]
    	for i := range webhook.Webhooks {
    		wh := webhook.Webhooks[i]
    		// this is an abomination, but if this isn't a per-revision webhook, we want to make it ineffectual
    		// without deleting it. Add a nonsense match.
    		wh.NamespaceSelector = util.NeverMatch
    		wh.ObjectSelector = util.NeverMatch
    		webhook.Webhooks[i] = wh
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  7. common-protos/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // Allowed values are "Never" and "IfNeeded".
      //
      // Never: the webhook will not be called more than once in a single admission evaluation.
      //
      // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
      // if the object being admitted is modified by other admission plugins after the initial webhook call.
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/generate_test.go

    		if len(wh.Webhooks) != tc.numWebhooks {
    			t.Errorf("expected %d webhook(s) in MutatingWebhookConfiguration, found %d",
    				tc.numWebhooks, len(wh.Webhooks))
    		}
    		tag, exists := wh.ObjectMeta.Labels[IstioTagLabel]
    		if !exists {
    			t.Errorf("expected tag webhook to have %s label, did not find", IstioTagLabel)
    		}
    		if tag != tc.tagName {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/tag_test.go

    	"istio.io/istio/pkg/kube"
    )
    
    func TestTagList(t *testing.T) {
    	tcs := []struct {
    		name          string
    		webhooks      admitv1.MutatingWebhookConfigurationList
    		namespaces    corev1.NamespaceList
    		outputMatches []string
    		error         string
    	}{
    		{
    			name: "TestBasicTag",
    			webhooks: admitv1.MutatingWebhookConfigurationList{
    				Items: []admitv1.MutatingWebhookConfiguration{
    					{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  10. operator/cmd/mesh/testdata/manifest-generate/input-extra-resources/duplicate_mwc.yaml

        - pods
        scope: '*'
      sideEffects: None
      timeoutSeconds: 10
    ---
    # same webhook but with different name, will result in a duplicate
    apiVersion: admissionregistration.k8s.io/v1
    kind: MutatingWebhookConfiguration
    metadata:
      labels:
        app: sidecar-injector
        istio.io/tag: default
      name: w2-istio-sidecar-injector-istio-system
    
    webhooks:
    - admissionReviewVersions:
      - v1beta1
      - v1
      clientConfig:
        service:
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 1.9K bytes
    - Viewed (0)
Back to top