Documentation
¶
Index ¶
- func GetCR() *vzapi.Verrazzano
- func GetCRV1beta1() *v1beta1.Verrazzano
- func IsCRReadyAfterUpdate(cr *v1beta1.Verrazzano, updatedTime time.Time) bool
- func RetryUpdate(m CRModifier, kubeconfigPath string, waitForReady bool, ...)
- func UpdateCR(m CRModifier, updateOpts ...client.UpdateOption) error
- func UpdateCRExpectError(m CRModifier) error
- func UpdateCRV1beta1(m CRModifierV1beta1, opts ...client.UpdateOption) error
- func UpdateCRV1beta1WithRetries(m CRModifierV1beta1, pollingInterval, waitTime time.Duration)
- func UpdateCRWithPlugins(m CRModifier, pollingInterval, timeout time.Duration, waitForReady bool)
- func UpdateCRWithRetries(m CRModifier, pollingInterval, timeout time.Duration)
- func UpdatePlugins(m CRModifier, kubeconfigPath string, waitForReady bool, ...)
- func ValidatePodMemoryRequest(labels map[string]string, nameSpace, containerPrefix string, ...)
- func ValidatePods(deployName string, labelName string, nameSpace string, ...)
- func WaitForReadyState(kubeconfigPath string, updateTime time.Time, ...)
- type CRModifier
- type CRModifierV1beta1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCR ¶
func GetCR() *vzapi.Verrazzano
GetCR gets the CR. If it is not "Ready", wait for up to 5 minutes for it to be "Ready".
func GetCRV1beta1 ¶
func GetCRV1beta1() *v1beta1.Verrazzano
GetCRV1beta1 gets the CR. If it is not "Ready", wait for up to 5 minutes for it to be "Ready".
func IsCRReadyAfterUpdate ¶
func IsCRReadyAfterUpdate(cr *v1beta1.Verrazzano, updatedTime time.Time) bool
IsCRReady return true if the verrazzano custom resource is in ready state after an update operation false otherwise
func RetryUpdate ¶
func RetryUpdate(m CRModifier, kubeconfigPath string, waitForReady bool, pollingInterval, timeout time.Duration)
RetryUpdate tries update with kubeconfigPath - if the modifier implements rest.WarningHandler it will be added to the client config
func UpdateCR ¶
func UpdateCR(m CRModifier, updateOpts ...client.UpdateOption) error
UpdateCR updates the CR with the given CRModifier - if the CRModifier implements rest.WarningHandler it will be added to the client config
First it waits for CR to be "Ready" before using the specified CRModifier modifies the CR. Then, it updates the modified. Any error during the process will cause Ginkgo Fail.
func UpdateCRExpectError ¶
func UpdateCRExpectError(m CRModifier) error
func UpdateCRV1beta1 ¶
func UpdateCRV1beta1(m CRModifierV1beta1, opts ...client.UpdateOption) error
UpdateCRV1beta1 updates the CR with the given CRModifierV1beta1. - if the modifier implements rest.WarningHandler it will be added to the client config
First it waits for CR to be "Ready" before using the specified CRModifierV1beta1 modifies the CR. Then, it updates the modified. Any error during the process will cause Ginkgo Fail.
func UpdateCRV1beta1WithRetries ¶
func UpdateCRV1beta1WithRetries(m CRModifierV1beta1, pollingInterval, waitTime time.Duration)
UpdateCRV1beta1WithRetries updates the CR with the given CRModifierV1beta1. First it waits for CR to be "Ready" before using the specified CRModifierV1beta1 modifies the CR. Then, it updates the modified. Any error during the process will cause Ginkgo Fail.
func UpdateCRWithPlugins ¶ added in v1.6.0
func UpdateCRWithPlugins(m CRModifier, pollingInterval, timeout time.Duration, waitForReady bool)
UpdateCRWithPlugins updates the CR with the given CRModifier. update till it succeeds or timesout.
func UpdateCRWithRetries ¶
func UpdateCRWithRetries(m CRModifier, pollingInterval, timeout time.Duration)
UpdateCRWithRetries updates the CR with the given CRModifier. UpdateCRV1beta1 updates the CR with the given CRModifierV1beta1. - if the modifier implements rest.WarningHandler it will be added to the client config
If the update fails, it retries by getting the latest version of CR and applying the same update till it succeeds or timesout.
func UpdatePlugins ¶ added in v1.6.0
func UpdatePlugins(m CRModifier, kubeconfigPath string, waitForReady bool, pollingInterval, timeout time.Duration)
UpdatePlugins tries update with kubeconfigPath
func ValidatePods ¶
Types ¶
type CRModifier ¶
type CRModifier interface {
ModifyCR(cr *vzapi.Verrazzano)
}
type CRModifierV1beta1 ¶
type CRModifierV1beta1 interface {
ModifyCRV1beta1(cr *v1beta1.Verrazzano)
}