update

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 17 Imported by: 0

Documentation

Index

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 ValidatePodMemoryRequest

func ValidatePodMemoryRequest(labels map[string]string, nameSpace, containerPrefix string, expectedMemory string)

func ValidatePods

func ValidatePods(deployName string, labelName string, nameSpace string, expectedPodsRunning uint32, hasPending bool)

func WaitForReadyState

func WaitForReadyState(kubeconfigPath string, updateTime time.Time, pollingInterval, timeout time.Duration)

WaitForReadyState waits till the verrazzano custom resource becomes ready or times out

Types

type CRModifier

type CRModifier interface {
	ModifyCR(cr *vzapi.Verrazzano)
}

type CRModifierV1beta1

type CRModifierV1beta1 interface {
	ModifyCRV1beta1(cr *v1beta1.Verrazzano)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL