csrs

package module
v0.0.0-...-6d46272 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Overview

Package csrs a simple pi Pod with Job. Replace https://github.com/aws/aws-k8s-tester/tree/v1.5.9/eks/csrs.

Index

Constants

View Source
const (
	DefaultMinimumNodes                int    = 1
	DefaultObjects                     int    = 10 // 1000 objects generates 5 MB data to etcd
	DefaultInitialRequestConditionType string = "Pending"
)

Variables

This section is empty.

Functions

func Env

func Env() string

func New

func New(cfg *Config) k8s_tester.Tester

Types

type Config

type Config struct {
	Enable bool `json:"enable"`
	Prompt bool `json:"-"`

	Stopc     chan struct{} `json:"-"`
	Logger    *zap.Logger   `json:"-"`
	LogWriter io.Writer     `json:"-"`
	Client    client.Client `json:"-"`

	// MinimumNodes is the minimum number of Kubernetes nodes required for installing this addon.
	MinimumNodes int `json:"minimum_nodes"`

	// Objects is the desired number of objects to create.
	Objects int `json:"objects"`
	// InitialRequestConditionType is the initial CSR condition type
	// to simulate CSR condition.
	//
	// Valid values are:
	//   "k8s.io/api/certificates/v1beta1.CertificateApproved" == "Approved"
	//   "k8s.io/api/certificates/v1beta1.CertificateDenied" == "Denied"
	//   "Random"
	//   "Pending"
	//   ""
	//
	InitialRequestConditionType string `json:"initial_request_condition_type"`

	LatencySummary latency.Summary `json:"latency_summary" read-only:"true"`
}

func NewDefault

func NewDefault() *Config

func (*Config) ValidateAndSetDefaults

func (cfg *Config) ValidateAndSetDefaults() error

Directories

Path Synopsis
cmd
k8s-tester-csrs
k8s-tester-csrs installs Kubernetes CSR tester.
k8s-tester-csrs installs Kubernetes CSR tester.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL