package
0.0.0-20180612135327-062eff57d0b2
Repository: https://github.com/signalfx/istio.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Backoff returns a random value in [0, maxDelay] that increases exponentially with retries, starting from baseDelay.
CheckDeployment gets status of a deployment from a namespace.
CheckDeployments checks whether all deployment in a given namespace.
CheckDeploymentsReady checks if deployment resources are ready.
CheckPodRunning return if a given pod with labeled name in a namespace are in "Running" status.
CheckPodsRunning returns readiness of all pods within a namespace.
CheckPodsRunningWithMaxDuration returns if all pods in a namespace are in "Running" status Also check container status to be running.
Compare compares two byte slices.
CompareFiles compares the content of two files.
CompareToFile compares a content with a file.
CopyFile create a new file to src based on dst.
CreateAndFill fills in the given yaml template with the values and generates a temp file for the completed yaml.
CreateMultiClusterSecrets will create the secrets and configmap associated with the remote cluster.
CreateNamespace create a kubernetes namespace.
CreateTempfile creates a tempfile string.
CreateTLSSecret creates a secret from the provided cert and key files.
DeleteDeployment deletes deployment from the specified namespace.
DeleteNamespace delete a kubernetes namespace.
DownloadRelease gets the specified release from istio repo to tmpDir.
EnsureTestServer will ensure a pilot server is running in process and initializes the MockPilotUrl and MockPilotGrpcAddr to allow connections to the test pilot.
ExtractTarGz extracts a .tar.gz file into current dir.
FetchAndSaveClusterLogs will dump the logs for a cluster.
Fill complete a template with given values and generate a new output file.
GetAppPods gets a map of app names to the pods for the app, for the given namespace.
GetClusterSubnet returns the subnet (in CIDR form, e.g.
GetConfigs retrieves the configurations for the list of resources.
GetHeadCommitSHA finds the SHA of the commit to which the HEAD of branch points.
GetIngress get istio ingress ip and port.
GetIngressPodNames get the pod names for the Istio ingress deployment.
GetKubeConfig will create a kubeconfig file based on the active environment the test is run in.
GetKubeMasterIP returns the IP address of the kubernetes master service.
GetOsExt returns the current OS tag.
GetPodLabelValues gets a map of pod name to label value for the given label and namespace.
GetPodLogs retrieves the logs for the given namespace, pod and container.
GetPodLogsForLabel gets the logs for the given label selector and container.
GetPodName gets the pod name for the given namespace and label selector.
GetPodNames gets names of all pods in specific namespace and return in a slice.
GetPodStatus gets status of a pod from a namespace Note: It is not enough to check pod phase, which only implies there is at least one container running.
GetResourcePath give "path from WORKSPACE", return absolute path at runtime.
GitRootDir returns the absolute path to the root directory of the git repo where this function is called.
HelmDelete helm del --purge a chart.
HelmInit init helm with a service account.
HelmInstall helm install from a chart for a given namespace --set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2).
HelmInstallDryRun helm install dry run from a chart for a given namespace.
HTTPDownload download from src(url) and store into dst(local file).
IsProcessRunning check if a os.Process is running.
IsProcessRunningInt check if a process of the given pid(int) is running.
IsProcessRunningString check if a process of the given pid(string) is running.
KillProcess kill a os.Process.
KubeApply kubectl apply from file.
KubeApplyContents kubectl apply from contents.
KubeApplyContentSilent kubectl apply from contents silently.
KubeApplySilent kubectl apply from file silently.
KubeDelete kubectl delete from file.
KubeDeleteContents kubectl apply from contents.
NamespaceDeleted check if a kubernete namespace is deleted.
PodExec runs the specified command on the container for the specified namespace and pod.
Poll executes do() after time interval for a max of numTrials times.
Record run command and record output into a file.
RunBackground starts a background process and return the Process if succeed.
RunGRPC runs the GRPC service, with optional TLS.
RunHTTP runs the http echo service.
Shell run command on shell and get back output and error if get one.
ShellContext run command on shell and get back output and error if get one.
ShellMuteOutput run command on shell and get back output and error if get one without logging the output.
ShellSilent runs command on shell and get back output and error if get one without logging the command or output.
Teardown will cleanup the temp dir and remove the test data.
WaitForDeploymentsReady wait up to 'timeout' duration return an error if deployments are not ready.
WriteTempfile creates a tempfile with the specified contents.
WriteTextFile overwrites the file on the given path with content.

# Constants

LoadBalancerServiceType LoadBalancer type of Kubernetes Service.
NodePortServiceType NodePort type of Kubernetes Service.

# Variables

EnvoyErrWriter captures envoy errors.
EnvoyOutWriter captures envoy output Redirect out and err from envoy to buffer - coverage tests get confused if we write to out.
IstioBin is the location of the binary output directory.
IstioOut is the location of the output directory ($TOP/out).
IstioSrc is the location if istio source ($TOP/src/istio.io/istio.
IstioTop has the top of the istio tree, matches the env variable from make.
MockPilotGrpcAddr is the address to be used for grpc connections.
MockPilotGrpcPort is the dynamic port for pilot grpc.
MockPilotHTTPPort is the dynamic port for pilot http.
MockPilotSecureAddr is the address to be used for secure grpc connections.
MockPilotSecurePort is the secure port.
MockPilotURL is the URL for the pilot http endpoint.
MockTestServer is used for the unit tests.

# Structs

Break the retry loop if the error returned is of this type.
EchoClient controls the client.
Retrier contains the retry configuration parameters.