Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper provide methods for replica update of deployment resource that has highAvailabilitylabel.
func (*Helper) UpdateBeforeNodeDrains ¶ added in v1.3.0
UpdateBeforeNodeDrains patches affinity rules and wait for pod running before node remove. Patch will apply to deployment with preferredDuringSchedulingIgnoredDuringExecution affinity when cluster size equal or less then replicas.
func (*Helper) UpdateNodes ¶
UpdateNodes patches for replicas affinity rules after adding nodes, before removing nodes, or after addon upgrade. This updates affinity rule to preferredDuringSchedulingIgnoredDuringExecution of cluster size less then replica size, and updates affinity rule to requiredDuringSchedulingIgnoredDuringExecution when cluster size is equal or greater to replicas.