Documentation
¶
Overview ¶
Package eks implements EKS cluster operations. It implements "k8s.io/test-infra/kubetest2/pkg/types.Deployer" and "k8s.io/test-infra/kubetest2/pkg/types.Options". ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
Index ¶
- type Tester
- func (ts *Tester) ArtifactsDir() string
- func (ts *Tester) Build() error
- func (ts *Tester) Down() error
- func (ts *Tester) DownloadClusterLogs(artifactDir, _ string) error
- func (ts *Tester) DumpClusterLogs() error
- func (ts *Tester) HelpRequested() bool
- func (ts *Tester) IsUp() (up bool, err error)
- func (ts *Tester) Kubeconfig() (string, error)
- func (ts *Tester) KubernetesClientSet() *kubernetes.Clientset
- func (ts *Tester) LoadConfig() (eksconfig.Config, error)
- func (ts *Tester) LogWriter() io.Writer
- func (ts *Tester) Provider() string
- func (ts *Tester) ShouldBuild() bool
- func (ts *Tester) ShouldDown() bool
- func (ts *Tester) ShouldTest() bool
- func (ts *Tester) ShouldUp() bool
- func (ts *Tester) Up() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tester ¶ added in v0.5.0
type Tester struct {
// contains filtered or unexported fields
}
Tester implements "kubetest2" Deployer. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc
func New ¶ added in v0.5.0
New returns a new EKS kubetest2 Deployer. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) ArtifactsDir ¶ added in v0.8.7
ArtifactsDir returns the path to the directory where artifacts should be written (including metadata files like junit_runner.xml). ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) Build ¶ added in v0.5.0
Build should build kubernetes and package it in whatever format the deployer consumes. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) Down ¶ added in v0.5.0
Down cancels the cluster creation and destroy the test cluster if any. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) DownloadClusterLogs ¶ added in v0.5.0
DownloadClusterLogs dumps all logs to artifact directory. Let default kubetest log dumper handle all artifact uploads. See https://github.com/kubernetes/test-infra/pull/9811/files#r225776067. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) DumpClusterLogs ¶ added in v0.5.0
DumpClusterLogs should export logs from the cluster. It may be called multiple times. Options for this should come from New(...) ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) HelpRequested ¶ added in v0.8.7
HelpRequested true, help text will be shown to the user after instancing the deployer and tester. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) IsUp ¶ added in v0.5.0
IsUp should return true if a test cluster is successfully provisioned. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) Kubeconfig ¶ added in v0.5.0
Kubeconfig returns a path to a kubeconfig file for the cluster. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) KubernetesClientSet ¶ added in v0.5.0
func (ts *Tester) KubernetesClientSet() *kubernetes.Clientset
KubernetesClientSet returns Kubernetes Go client. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) LoadConfig ¶ added in v0.5.0
LoadConfig reloads configuration from disk to read the latest cluster configuration and its states. It's either reloaded from disk or returned from embedded EKS deployer. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) Provider ¶ added in v0.5.0
Provider returns the kubernetes provider for legacy deployers. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) ShouldBuild ¶ added in v0.8.7
ShouldBuild true, kubetest2 will be calling deployer.Build. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) ShouldDown ¶ added in v0.8.7
ShouldDown true, kubetest2 will be calling deployer.Down. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) ShouldTest ¶ added in v0.8.7
ShouldTest true, kubetest2 will be calling tester.Test. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) ShouldUp ¶ added in v0.8.7
ShouldUp true, kubetest2 will be calling deployer.Up. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
func (*Tester) Up ¶ added in v0.5.0
Up should provision a new cluster for testing. ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Deployer ref. https://pkgo.dev/k8s.io/test-infra/kubetest2/pkg/types?tab=doc#Options
Directories
¶
Path | Synopsis |
---|---|
Package alb2048 implements ALB plugin that installs 2048.
|
Package alb2048 implements ALB plugin that installs 2048. |
This is intended to test a soft lockup issue described here: https://github.com/awslabs/amazon-eks-ami/issues/454 This is based off of the following repro: https://github.com/mmerkes/eks-k8s-repro-assistant/tree/master/scenarios/decompression-loop
|
This is intended to test a soft lockup issue described here: https://github.com/awslabs/amazon-eks-ami/issues/454 This is based off of the following repro: https://github.com/mmerkes/eks-k8s-repro-assistant/tree/master/scenarios/decompression-loop |
Package appmesh implements App Mesh add-on.
|
Package appmesh implements App Mesh add-on. |
Package cluster implements EKS cluster tester.
|
Package cluster implements EKS cluster tester. |
version-upgrade
Package versionupgrade implements EKS cluster version upgrade tester.
|
Package versionupgrade implements EKS cluster version upgrade tester. |
wait
Package wait implements cluster waiter.
|
Package wait implements cluster waiter. |
wait-v2
Package wait_v2 implements cluster waiter.
|
Package wait_v2 implements cluster waiter. |
Package clusterloader implements cluster loader.
|
Package clusterloader implements cluster loader. |
local
Package local implements local cluster loader.
|
Package local implements local cluster loader. |
remote
Package remote implements remote cluster loader.
|
Package remote implements remote cluster loader. |
Package cnivpc installs "https://github.com/aws/amazon-vpc-cni-k8s".
|
Package cnivpc installs "https://github.com/aws/amazon-vpc-cni-k8s". |
Package configmaps implements tester for ConfigMap.
|
Package configmaps implements tester for ConfigMap. |
local
Package local implements tester for ConfigMap.
|
Package local implements tester for ConfigMap. |
remote
Package remote implements tester for ConfigMap.
|
Package remote implements tester for ConfigMap. |
Package conformance implements Conformance tests.
|
Package conformance implements Conformance tests. |
Package cronjobs creates CronJob objects in Kubernetes.
|
Package cronjobs creates CronJob objects in Kubernetes. |
Package csiebs installs "aws-ebs-csi-driver".
|
Package csiebs installs "aws-ebs-csi-driver". |
Package csrs implements tester for CertificateSigningRequest.
|
Package csrs implements tester for CertificateSigningRequest. |
local
Package local implements tester for CertificateSigningRequest.
|
Package local implements tester for CertificateSigningRequest. |
remote
Package remote implements tester for CertificateSigningRequest.
|
Package remote implements tester for CertificateSigningRequest. |
Package cudavectoradd implements tester for CUDA GPU Test.
|
Package cudavectoradd implements tester for CUDA GPU Test. |
Package cwagent implements CloudWatch agent plugin.
|
Package cwagent implements CloudWatch agent plugin. |
Package fargate implements tester for Fargate.
|
Package fargate implements tester for Fargate. |
wait
Package wait implements Fargate wait polling functions.
|
Package wait implements Fargate wait polling functions. |
Package fluentd implements Fluentd plugin.
|
Package fluentd implements Fluentd plugin. |
Package gpu implements GPU plugin.
|
Package gpu implements GPU plugin. |
Package helm implements helm utilities.
|
Package helm implements helm utilities. |
Package irsa implements tester for IAM Roles for Service Accounts (IRSA).
|
Package irsa implements tester for IAM Roles for Service Accounts (IRSA). |
Package irsafargate implements tester for "IAM Roles for Service Accounts (IRSA)" Pod with Fargate.
|
Package irsafargate implements tester for "IAM Roles for Service Accounts (IRSA)" Pod with Fargate. |
Package jobsecho creates Job objects in Kubernetes.
|
Package jobsecho creates Job objects in Kubernetes. |
Package jobspi creates example Job objects in Kubernetes.
|
Package jobspi creates example Job objects in Kubernetes. |
Package jupyterhub implements Jupyter Hub add-on.
|
Package jupyterhub implements Jupyter Hub add-on. |
Package kubeflow implements kubeflow add-on.
|
Package kubeflow implements kubeflow add-on. |
Package kubernetesdashboard implements Kubernetes dashboard add-on.
|
Package kubernetesdashboard implements Kubernetes dashboard add-on. |
Package metricsserver implements Kubernetes metrics server.
|
Package metricsserver implements Kubernetes metrics server. |
Package mng defines AWS EKS Managed Node Group configuration.
|
Package mng defines AWS EKS Managed Node Group configuration. |
scale
Package scale implements EKS cluster scaler tester.
|
Package scale implements EKS cluster scaler tester. |
version-upgrade
Package versionupgrade implements EKS cluster version upgrade tester.
|
Package versionupgrade implements EKS cluster version upgrade tester. |
wait
Package wait implements node waiter.
|
Package wait implements node waiter. |
Package ng implements EKS worker nodes with a custom AMI.
|
Package ng implements EKS worker nodes with a custom AMI. |
autoscaler
Package autoscaler implements various auto-scaler.
|
Package autoscaler implements various auto-scaler. |
wait
Package wait implements node waiter.
|
Package wait implements node waiter. |
Package nlbguestbook implements NLB plugin with a simple guestbook service.
|
Package nlbguestbook implements NLB plugin with a simple guestbook service. |
Package nlbhelloworld implements NLB plugin with a simple hello world service.
|
Package nlbhelloworld implements NLB plugin with a simple hello world service. |
Package phpapache implements PHP Apache with a simple PHP app.
|
Package phpapache implements PHP Apache with a simple PHP app. |
Package prometheusgrafana implements Prometheus/Grafana add-on.
|
Package prometheusgrafana implements Prometheus/Grafana add-on. |
Package secrets implements Secrets plugin.
|
Package secrets implements Secrets plugin. |
local
Package local implements Secrets plugin.
|
Package local implements Secrets plugin. |
remote
Package remote implements Secrets plugin.
|
Package remote implements Secrets plugin. |
Package stresser implements cluster load tests.
|
Package stresser implements cluster load tests. |
local
Package local implements cluster local load tests.
|
Package local implements cluster local load tests. |
remote
Package remote implements cluster remote load tests.
|
Package remote implements cluster remote load tests. |
Package tester defines EKS tester interface.
|
Package tester defines EKS tester interface. |
Package wordpress implements wordpress add-on.
|
Package wordpress implements wordpress add-on. |