package
3.4.3+incompatible
Repository: https://github.com/oracle/coherence-operator.git
Documentation: pkg.go.dev
# Packages
matchers contains custom implementations of Gomega matchers.
# Functions
No description provided by the author
AssertCoherenceJobs tests that one or more CoherenceJobs can be created using the specified yaml.
AssertCoherenceJobsInNamespace tests that a CoherenceJob can be created using the specified yaml.
AssertCoherenceJobsSpec tests that a CoherenceJob can be created.
AssertCoherenceJobsSpecInNamespace tests that a CoherenceJob can be created.
AssertDeployments tests that one or more clusters can be created using the specified yaml.
AssertDeploymentsInNamespace tests that a cluster can be created using the specified yaml.
AssertSingleDeployment tests that a cluster can be created using the specified yaml.
CheckCanary invokes the canary test in the deployment..
CheckCanaryEventuallyGood invokes the canary test in the deployment in a loop to ensure it is eventually ok.
ClearCanary clears the canary test in the deployment.
CreateSslSecret creates a k8s secret that can be used for SSL testing.
No description provided by the author
No description provided by the author
DumpOperatorLog dumps the Operator Pod log to a file.
DumpOperatorLogs dumps the operator logs.
DumpPodLog dumps the Pod log to a file.
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
FindK8sApiToolsDir returns the k8s API build tools directory.
FindOperatorHelmChartDir returns the Operator Helm chart directory.
FindOperatorTestHelmChartDir returns the Operator test Helm chart directory where previous version charts are downloaded to.
FindProjectRootDir returns the project root directory.
FindRuntimeCrdDir returns the CRD directory under the runtime assets.
FindTestCertsDir returns the test cert directory.
FindTestLogsDir returns the test log directory.
FindToolsDir returns the build tools directory.
GetAvailablePorts obtains an AvailablePorts that finds free ephemeral ports.
GetBuildOutputDirectory returns the build output directory.
GetClientImage returns the name of the client test image.
GetCoherence gets the specified Coherence resource.
GetCoherenceCompatibilityImage returns the name of the compatibility test image.
GetCoherenceJob gets the specified CoherenceJob resource.
GetDefaultCoherenceImage returns the full name of the default Coherence image.
GetDefaultCoherenceImageName returns the name part of the default Coherence image.
GetDefaultCoherenceImageRegistry returns the registry name of the default Coherence image.
GetDefaultCoherenceImageTag returns the tag part of the default Coherence image.
GetFirstPodReadyTime returns the first ready time from all the specified Pods for a given deployment.
GetFirstPodScheduledTime returns the earliest scheduled time from all the specified Pods for a given deployment.
GetImagePullSecrets returns the names of the image pull secrets.
GetKubeconfigAndNamespace returns the *rest.Config and default namespace defined in the kubeconfig at the specified path.
GetLastPodReadyTime returns the latest ready time from all the specified Pods for a given deployment.
GetOperatorImage returns the full name of the Operator image.
GetOperatorImageName returns the name part of the Operator image.
GetOperatorImageRegistry returns the registry name of the Operator image.
GetOperatorVersionEnvVar returns the Operator version.
GetPrometheusNamespace returns the name of the Prometheus namespace.
GetTestClientNamespace returns the name of the client test namespace.
GetTestClusterNamespace returns the name of the test cluster namespace.
GetTestNamespace returns the name of the test namespace.
GetTestSslSecret gets the test k8s secret that can be used for SSL testing.
GetTestSSLSecretName returns the name of the SSL cert secret.
IsCoherenceVersionAtLeast determines whether current Coherence version set in the COHERENCE_VERSION environment variable is greater than the specified version or the COHERENCE_VERSION environment variable has not been set.
No description provided by the author
No description provided by the author
No description provided by the author
ListCoherencePods lists the all Coherence deployment Pods in a namespace.
ListCoherencePodsForCluster lists the Coherence Cluster Pods that exist for a cluster - this is Pods with the label "coherenceCluster=<cluster>".
ListCoherencePodsForDeployment lists the Pods that exist for a deployment - this is Pods with the label "coherenceDeployment=<deployment>".
ListJobsWithLabelSelector lists the Coherence Cluster Jobs that exist for a given label selector.
ListOperatorPods lists the Operator Pods that exist - this is Pods with the label "name=coh-operator".
No description provided by the author
ListPodsWithLabelAndFieldSelector lists the Coherence Cluster Pods that exist for a given label and field selectors.
ListPodsWithLabelSelector lists the Coherence Cluster Pods that exist for a given label selector.
LoadFromYamlFile loads the specified value from the yaml file.
NewCoherenceFromYaml creates a new Coherence resource from a yaml file.
NewCoherenceFromYamlWithSuffix creates a new Coherence resource from a yaml file.
NewCoherenceJobFromYaml creates a new CoherenceJob resource from a yaml file.
NewContext creates a new TestContext.
NewSingleCoherenceFromYaml creates a single new Coherence resource from a yaml file.
NewSingleCoherenceFromYamlWithSuffix creates a single new Coherence resource from a yaml file and adds a specified suffix to the Coherence resource names.
NewSingleCoherenceJobFromYaml creates a single new CoherenceJob resource from a yaml file.
NewStartedContext creates a new TestContext starts it.
ObjectKey returns an instantiated ObjectKey for the provided object.
PortForwarderForPod forwards all ports in a Pod to local ports.
No description provided by the author
Shutdown stops the test Pod.
ShutdownWithExitCode stops the test Pod with the specified exit code.
SkipIfCoherenceVersionLessThan skips the specified test if the current Coherence version set in the COHERENCE_VERSION environment variable is less than the specified version.
StartCanary initialises the canary test in the deployment being scaled.
StartPortForwarderForPod forwards all ports in a Pod to local ports.
No description provided by the author
WaitForCoherence waits for a Coherence resource to be created.
WaitForCoherenceCleanup waits until there are no Coherence resources left in the test namespace.
WaitForCoherenceCondition waits for a Coherence resource to be created.
No description provided by the author
WaitForDelete waits for the provided runtime object to be deleted from cluster.
WaitForDeleteOfPodsWithSelector waits for Pods to be deleted.
WaitForDeletion waits for deletion of the specified resource.
WaitForDeploymentReady waits for a Coherence deployment to be ready.
WaitForEndpoints waits for Enpoints for a Service to be created.
WaitForJob waits for a Job to be created with the specified number of replicas.
WaitForJobCompletion waits for a specified k8s Job to complete.
WaitForJobsWithLabel waits for at least the required number of Jobs matching the specified labels selector to be created.
WaitForOperatorCleanup waits until there are no Operator Pods in the test namespace.
WaitForOperatorDeletion waits for deletion of the Operator Pods.
WaitForOperatorPods waits for a Coherence Operator Pods to be created.
WaitForPodReady waits for a Pods to be ready.
WaitForPodsWithLabel waits for at least the required number of Pods matching the specified labels selector to be created.
WaitForPodsWithLabelAndField waits for at least the required number of pending Pods.
WaitForPodsWithSelector waits for a Coherence Operator Pods to be created.
WaitForPodsWithSelectorAndReplicas waits for Pods to be created.
WaitForStatefulSet waits for a StatefulSet to be created with the specified number of replicas.
WaitForStatefulSetForDeployment waits for a StatefulSet to be created for the specified deployment.
WaitForStatefulSetPodCondition waits for all Pods in a StatefulSet to have the specified condition.
# Constants
BuildOutputEnv is environment variable holding the build output directory.
ClientImageEnv is environment variable holding the name of the client test image.
CohCompatibilityImageEnv is environment variable holding the name of the compatibility test image.
CoherenceImageNameEnv is environment variable holding the name part of the default Coherence image.
CoherenceImageRegistryEnv is environment variable holding the registry of the default Coherence image.
CoherenceImageTagEnv is environment variable holding the tag part of the default Coherence image.
CoherenceVersionEnv is environment variable holding the Coherence version.
ImagePullSecEnv is environment variable holding the name of the image pull secrets.
OperatorImageEnv is environment variable holding the full name of the Operator image.
OperatorImageNameEnv is environment variable holding the name part of the Operator image.
OperatorImageRegistryEnv is environment variable holding the registry of the Operator image.
PrometheusNamespaceEnv is environment variable holding the name of the Prometheus k8s namespace.
TestClientNamespaceEnv is environment variable holding the name of the client test k8s namespace.
TestClusterNamespaceEnv is environment variable holding the name of the coherence cluster test k8s namespace.
TestNamespaceEnv is environment variable holding the name of the test k8s namespace.
TestSslSecretEnv is environment variable holding the name of the SSL certs secret.
VersionEnv is environment variable holding the version the Operator.
# Structs
CoherenceLoader can load Coherence resources from yaml files.
OperatorSpec defines the settings for the Operator.
OperatorSSL defines the SSL settings for the Operator.
No description provided by the author
PortForwarder forwards ports from the local machine to a K8s Pod.
TestContext is a context for end-to-end tests.
# Interfaces
AvailablePorts finds free ports on the current machine.
DeploymentStateCondition is a function that takes a deployment and determines whether it meets a condition.