package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package junit provides data structures to allow easy XML encoding and decoding of JUnit test results.

# Functions

No description provided by the author
AdmissionWebhookHandler creates a HandlerFunc that decodes/encodes AdmissionReview and performs given admit function.
CheckAuditLines searches the audit log for the expected audit lines.
CheckAuditList searches an audit event list for the expected audit events.
CheckDeploymentRevisionAndImage checks if the input deployment's and its new replica set's revision and image are as expected.
CheckForDuplicates checks a list for duplicate events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Diff computes a PodDiff given 2 lists of pods.
No description provided by the author
No description provided by the author
EncodeCertPEM returns PEM-endcoded certificate data.
FailedContainers inspects all containers in a pod and returns failure information for containers that have failed or been restarted.
GetCAdvisorRootDir returns the root directory for cAdvisor, if present in the gopath.
GetK8sBuildOutputDir returns the build output directory for k8s.
GetK8sRootDir returns the root directory for kubernetes, if present in the gopath.
GetNodeCondition extracts the provided condition from the given status and returns that.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewAdmissionWebhookServer sets up a webhook server with TLS enabled, returns URL and Close function for the server.
NewAuditTestServer returns a new audit test server.
No description provided by the author
No description provided by the author
No description provided by the author
NewLockedEventList returns a new LockedEventList.
No description provided by the author
No description provided by the author
NewPrivateKey creates an RSA private key.
NewSignedCert creates a signed certificate using the given CA certificate and key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PodNotReady checks whether pod p's has a ready condition of status false.
PodRunningReady checks whether pod p's phase is running and it has a ready condition of status true.
No description provided by the author
RemoveLabelOffNode is for cleaning up labels temporarily added to node, won't fail if target label doesn't exist or has been removed.
No description provided by the author
Utility for retrying the given function with exponential backoff.
RootDir gets the on-disk kubernetes source directory, returning an error is none is found.
RunDeployment Launches (and verifies correctness) of a Deployment and will wait for all pods it spawns to become "Running".
RunJob baunches (and verifies correctness) of a Job and will wait for all pods it spawns to become "Running".
No description provided by the author
RunRC Launches (and verifies correctness) of a Replication Controller and will wait for all pods it spawns to become "Running".
RunReplicaSet launches (and verifies correctness) of a ReplicaSet and waits until all the pods it launches to reach the "Running" state.
No description provided by the author
Simplified version of RunRC, that does not create RC, but creates plain Pods.
TerminatedContainers inspects all containers in a pod and returns a map of "container name: termination reason", for all currently terminated containers.
No description provided by the author
No description provided by the author
No description provided by the author
VerifyLabelsRemoved checks if Node for given nodeName does not have any of labels from labelKeys.
Waits for the deployment to complete, and don't check if rolling update strategy is broken.
Waits for the deployment to complete, and check rolling update strategy isn't broken at any times.
WaitForDeploymentRevisionAndImage waits for the deployment's and its new RS's revision and container image to match the given revision and image.
WaitForDeploymentRollbackCleared waits for given deployment either started rolling back or doesn't need to rollback.
WaitForDeploymentUpdatedReplicasGTE waits for given deployment to be observed by the controller and has at least a number of updatedReplicas.
No description provided by the author
Wait up to 10 minutes for at least 'replicas' many pods to be Running and at least one matching pod exists.
No description provided by the author
Wait up to 10 minutes for all matching pods to become Running and at least one matching pod exists.
Verify .Status.Replicas is equal to .Spec.Replicas.
No description provided by the author

# Variables

LocalhostCert was generated from crypto/tls/generate_cert.go with the following command: go run generate_cert.go --rsa-bits 512 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h.
LocalhostKey is the private key for LocalhostCert.

# Structs

AuditEvent is a simplified representation of an audit event for testing purposes.
AuditTestServer is a helper server for dynamic audit testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LockedEventList is an event list with a lock for concurrent access.
MissingEventsReport provides an analysis if any events are missing.
NodeAllocatableStrategy fills node.status.allocatable and csiNode.spec.drivers[*].allocatable.
Convenient wrapper around cache.Store that returns list of v1.Pod instead of interface{}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
PodDiff is a map of pod name to podInfos.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author