Documentation ¶
Index ¶
- Constants
- func CreateDockerRegistrySecret(name string, namespace string)
- func HelmInstallWithOverrides(chartPath string, namespace string, overrides map[string]string)
- func HelmUpgradeWithOverrides(chartPath string, namespace string, overrides map[string]string)
- type NodetoolNodeInfo
- type NsWrapper
- func (ns NsWrapper) CqlExecute(podName string, stepDesc string, cql string, user string, pw string)
- func (ns *NsWrapper) DisableGossip(podName string)
- func (ns *NsWrapper) DisableGossipWaitNotReady(podName string)
- func (ns *NsWrapper) EnableGossip(podName string)
- func (ns *NsWrapper) EnableGossipWaitReady(podName string)
- func (ns *NsWrapper) ExecAndLog(description string, kcmd kubectl.KCmd)
- func (ns *NsWrapper) ExecAndLogAndExpectErrorString(description string, kcmd kubectl.KCmd, expectedError string)
- func (k NsWrapper) ExecV(kcmd kubectl.KCmd) error
- func (k NsWrapper) ExecVCapture(kcmd kubectl.KCmd) (string, string, error)
- func (k NsWrapper) ExecVPanic(kcmd kubectl.KCmd)
- func (ns NsWrapper) ExpectDoneReconciling(dcName string)
- func (ns NsWrapper) ExpectKeyValue(m map[string]interface{}, key string, expectedValue string)
- func (ns NsWrapper) ExpectKeyValues(actual map[string]interface{}, expected map[string]string)
- func (ns *NsWrapper) GetCassandraContainerImages(dcName string) []string
- func (ns *NsWrapper) GetDatacenterPodNames(dcName string) []string
- func (ns *NsWrapper) GetDatacenterReadyPodNames(dcName string) []string
- func (ns *NsWrapper) GetNodeStatusesHostIds(dcName string) []string
- func (ns NsWrapper) HelmInstall(chartPath string, overrides ...string)
- func (ns NsWrapper) HelmInstallWithPSPEnabled(chartPath string)
- func (k NsWrapper) Output(kcmd kubectl.KCmd) (string, error)
- func (ns *NsWrapper) OutputAndLog(description string, kcmd kubectl.KCmd) string
- func (k NsWrapper) OutputPanic(kcmd kubectl.KCmd) string
- func (ns NsWrapper) RetrieveStatusFromNodetool(podName string) []NodetoolNodeInfo
- func (ns NsWrapper) RetrieveSuperuserCreds(clusterName string) (string, string)
- func (ns NsWrapper) Terminate()
- func (ns *NsWrapper) WaitForCassandraImages(dcName string, expectedImages []string, timeout int)
- func (ns *NsWrapper) WaitForDatacenterCondition(dcName string, conditionType string, value string)
- func (ns *NsWrapper) WaitForDatacenterConditionWithReason(dcName string, conditionType string, value string, reason string)
- func (ns *NsWrapper) WaitForDatacenterOperatorProgress(dcName string, progressValue string, timeout int)
- func (ns *NsWrapper) WaitForDatacenterReady(dcName string)
- func (ns *NsWrapper) WaitForDatacenterReadyPodCount(dcName string, count int)
- func (ns *NsWrapper) WaitForDatacenterReadyPodCountWithTimeout(dcName string, count int, podCountTimeout int)
- func (ns *NsWrapper) WaitForDatacenterReadyWithTimeouts(dcName string, podCountTimeout int, dcReadyTimeout int)
- func (ns *NsWrapper) WaitForDatacenterToHaveNoPods(dcName string)
- func (ns *NsWrapper) WaitForOperatorReady()
- func (k NsWrapper) WaitForOutput(kcmd kubectl.KCmd, expected string, seconds int) error
- func (ns *NsWrapper) WaitForOutputAndLog(description string, kcmd kubectl.KCmd, expected string, seconds int)
- func (k NsWrapper) WaitForOutputContains(kcmd kubectl.KCmd, expected string, seconds int) error
- func (ns *NsWrapper) WaitForOutputContainsAndLog(description string, kcmd kubectl.KCmd, expected string, seconds int)
- func (k NsWrapper) WaitForOutputContainsPanic(kcmd kubectl.KCmd, expected string, seconds int)
- func (k NsWrapper) WaitForOutputPanic(kcmd kubectl.KCmd, expected string, seconds int)
- func (k NsWrapper) WaitForOutputPattern(kcmd kubectl.KCmd, pattern string, seconds int) error
- func (ns *NsWrapper) WaitForOutputPatternAndLog(description string, kcmd kubectl.KCmd, expected string, seconds int)
- func (ns *NsWrapper) WaitForPodNotStarted(podName string)
- func (ns *NsWrapper) WaitForPodStarted(podName string)
- func (ns *NsWrapper) WaitForSuperUserUpserted(dcName string, timeout int)
Constants ¶
View Source
const ( EnvNoCleanup = "M_NO_CLEANUP" ImagePullSecretName = "imagepullsecret" )
Variables ¶
This section is empty.
Functions ¶
func CreateDockerRegistrySecret ¶ added in v1.5.0
kubectl create secret docker-registry github-docker-registry --docker-username=USER --docker-password=PASS --docker-server docker.pkg.github.com
func HelmInstallWithOverrides ¶ added in v1.5.0
This is not a method on NsWrapper to allow mage to use it to create an example cluster.
Types ¶
type NodetoolNodeInfo ¶ added in v1.5.0
type NsWrapper ¶
type NsWrapper struct { Namespace string TestSuiteName string LogDir string // contains filtered or unexported fields }
Wrapper type to make it simpler to set a namespace one time and execute all of your KCmd objects inside of it, and then use Gomega assertions on panic
func NewWrapper ¶
func (NsWrapper) CqlExecute ¶ added in v1.5.0
func (*NsWrapper) DisableGossip ¶
func (*NsWrapper) DisableGossipWaitNotReady ¶
func (*NsWrapper) EnableGossip ¶
func (*NsWrapper) EnableGossipWaitReady ¶
func (*NsWrapper) ExecAndLog ¶
func (*NsWrapper) ExecAndLogAndExpectErrorString ¶
func (NsWrapper) ExecVCapture ¶
func (NsWrapper) ExecVPanic ¶
func (NsWrapper) ExpectDoneReconciling ¶ added in v1.5.0
func (NsWrapper) ExpectKeyValue ¶ added in v1.4.0
Note that the actual value will be cast to a string before the comparison with the expectedValue
func (NsWrapper) ExpectKeyValues ¶ added in v1.4.0
Compare all key/values from an expected map to an actual map
func (*NsWrapper) GetCassandraContainerImages ¶ added in v1.5.0
func (*NsWrapper) GetDatacenterPodNames ¶
func (*NsWrapper) GetDatacenterReadyPodNames ¶
func (*NsWrapper) GetNodeStatusesHostIds ¶
func (NsWrapper) HelmInstall ¶
func (NsWrapper) HelmInstallWithPSPEnabled ¶ added in v1.5.0
func (*NsWrapper) OutputAndLog ¶
func (NsWrapper) RetrieveStatusFromNodetool ¶ added in v1.5.0
func (ns NsWrapper) RetrieveStatusFromNodetool(podName string) []NodetoolNodeInfo
func (NsWrapper) RetrieveSuperuserCreds ¶ added in v1.5.0
func (*NsWrapper) WaitForCassandraImages ¶ added in v1.5.0
func (*NsWrapper) WaitForDatacenterCondition ¶
func (*NsWrapper) WaitForDatacenterConditionWithReason ¶ added in v1.5.0
func (*NsWrapper) WaitForDatacenterOperatorProgress ¶
func (*NsWrapper) WaitForDatacenterReady ¶
func (*NsWrapper) WaitForDatacenterReadyPodCount ¶
func (*NsWrapper) WaitForDatacenterReadyPodCountWithTimeout ¶ added in v1.4.1
func (*NsWrapper) WaitForDatacenterReadyWithTimeouts ¶ added in v1.4.1
func (*NsWrapper) WaitForDatacenterToHaveNoPods ¶
func (*NsWrapper) WaitForOperatorReady ¶
func (ns *NsWrapper) WaitForOperatorReady()
func (NsWrapper) WaitForOutput ¶
func (*NsWrapper) WaitForOutputAndLog ¶
func (NsWrapper) WaitForOutputContains ¶
func (*NsWrapper) WaitForOutputContainsAndLog ¶
func (NsWrapper) WaitForOutputContainsPanic ¶
func (NsWrapper) WaitForOutputPanic ¶
func (NsWrapper) WaitForOutputPattern ¶
func (*NsWrapper) WaitForOutputPatternAndLog ¶
func (*NsWrapper) WaitForPodNotStarted ¶
func (*NsWrapper) WaitForPodStarted ¶
func (*NsWrapper) WaitForSuperUserUpserted ¶
Click to show internal directories.
Click to hide internal directories.