Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MaxEventSize (0.54 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/audit/truncate/truncate.go

    	annotationValue = "true"
    )
    
    // Config represents truncating backend configuration.
    type Config struct {
    	// MaxEventSize defines max allowed size of the event. If the event is larger,
    	// truncating will be performed.
    	MaxEventSize int64
    
    	// MaxBatchSize defined max allowed size of the batch of events, passed to the backend.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 00:03:53 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/audit/truncate/truncate_test.go

    					Raw: []byte("\"" + strings.Repeat("A", int(defaultConfig.MaxEventSize)) + "\""),
    				},
    			},
    			wantTruncated: true,
    		},
    		{
    			desc: "Event with too large metadata should be dropped",
    			event: &auditinternal.Event{
    				Annotations: map[string]string{
    					"key": strings.Repeat("A", int(defaultConfig.MaxEventSize)),
    				},
    			},
    			wantDropped: true,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 30 07:56:39 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/audit.go

    	config := o.TruncateConfig
    	if config.MaxEventSize <= 0 {
    		return fmt.Errorf("invalid audit truncate %s max event size %v, must be a positive number", pluginName, config.MaxEventSize)
    	}
    	if config.MaxBatchSize < config.MaxEventSize {
    		return fmt.Errorf("invalid audit truncate %s max batch size %v, must be greater than "+
    			"max event size (%v)", pluginName, config.MaxBatchSize, config.MaxEventSize)
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 24 06:30:04 UTC 2022
    - 20.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/audit_test.go

    			o.WebhookOptions.TruncateOptions.TruncateConfig.MaxEventSize = -1
    			return o
    		},
    	}, {
    		name: "invalid webhook truncate max batch size",
    		options: func() *AuditOptions {
    			o := NewAuditOptions()
    			o.WebhookOptions.ConfigFile = auditPath
    			o.WebhookOptions.TruncateOptions.Enabled = true
    			o.WebhookOptions.TruncateOptions.TruncateConfig.MaxEventSize = 2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 27 14:57:26 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  5. pkg/controlplane/apiserver/options/options_test.go

    						ThrottleBurst:  50,
    					},
    				},
    				TruncateOptions: apiserveroptions.AuditTruncateOptions{
    					Enabled: true,
    					TruncateConfig: audittruncate.Config{
    						MaxBatchSize: 45,
    						MaxEventSize: 44,
    					},
    				},
    				GroupVersionString: "audit.k8s.io/v1",
    			},
    			WebhookOptions: apiserveroptions.AuditWebhookOptions{
    				ConfigFile: "/webhook-config",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. cmd/kube-apiserver/app/options/options_test.go

    							ThrottleBurst:  50,
    						},
    					},
    					TruncateOptions: apiserveroptions.AuditTruncateOptions{
    						Enabled: true,
    						TruncateConfig: audittruncate.Config{
    							MaxBatchSize: 45,
    							MaxEventSize: 44,
    						},
    					},
    					GroupVersionString: "audit.k8s.io/v1",
    				},
    				WebhookOptions: apiserveroptions.AuditWebhookOptions{
    					ConfigFile: "/webhook-config",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top