# Functions
AssertKEOperatorCRReadyStatus verifies if the KnativeEventing can reach the READY status.
AssertKnativeDeploymentStatus verifies if the Knative deployments reach the READY status.
AssertKnativeObsoleteResource verifies if all obsolete resources disappear in the cluster.
AssertKSOperatorCRReadyStatus verifies if the KnativeServing reaches the READY status.
DeleteAndVerifyDeployments verify whether all the deployments for knative serving are able to recreate, when they are deleted.
DeleteAndVerifyEventingDeployments verify whether all the deployments for knative eventing are able to recreate, when they are deleted.
EnsureKnativeEventingExists creates a KnativeEventingServing with the name names.KnativeEventing under the namespace names.Namespace.
EnsureKnativeServingExists creates a KnativeServing with the name names.KnativeServing under the namespace names.Namespace, if it does not exist.
GetExpectedDeployments will return an array of deployment resources based on the version for the knative component.
IsDeploymentAvailable will check the status conditions of the deployment and return true if the deployment is available.
IsKnativeDeploymentReady will check the status conditions of the deployments and return true if the deployments meet the desired status.
IsKnativeEventingReady will check the status conditions of the KnativeEventing and return true if the KnativeEventing is ready.
IsKnativeObsoleteResourceGone check the status conditions of the resources and return true if the obsolete resources are removed.
IsKnativeServingReady will check the status conditions of the KnativeServing and return true if the KnativeServing is ready.
KEOperatorCRDelete deletes tha KnativeEventing to see if all resources will be deleted.
KSOperatorCRDelete deletes tha KnativeServing to see if all resources will be deleted.
KSOperatorCRVerifyConfiguration verifies that KnativeServing config is set properly.
SetKodataDir will set the env var KO_DATA_PATH into the path of the kodata of this repository.
VerifyHADeployments verify whether all the deployments has scaled up.
WaitForConfigMap takes a condition function that evaluates ConfigMap data.
WaitForKnativeDeploymentState polls the status of the Knative deployments every `interval` until `inState` returns `true` indicating the deployments match the desired deployments.
WaitForKnativeEventingState polls the status of the KnativeEventing called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
WaitForKnativeResourceState returns the status of whether all obsolete resources are removed.
WaitForKnativeServingState polls the status of the KnativeServing called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
# Constants
DefaultsConfigKey specifies the key name of the default config map.
Interval specifies the time between two polls.
LoggingConfigKey specifies specifies the key name of the logging config map.
Timeout specifies the timeout for the function PollImmediate to reach a certain status.