extender

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainers

func GetContainers(obj *unstructured.Unstructured) []map[string]interface{}

func GetDataVolumeClaims added in v1.5.0

func GetDataVolumeClaims(obj *unstructured.Unstructured) []map[string]interface{}

func GetReplicas

func GetReplicas(obj *unstructured.Unstructured) *int32

func GetSpec

func GetSpec(obj *unstructured.Unstructured) map[string]interface{}

func GetStatus

func GetStatus(obj *unstructured.Unstructured) map[string]interface{}

func GetTemplateSpec

func GetTemplateSpec(obj *unstructured.Unstructured) map[string]interface{}

func IsUpdating

func IsUpdating(obj *unstructured.Unstructured) bool

func ObjectEqual

func ObjectEqual(newUnstruct, oldUnstruct *unstructured.Unstructured) bool

func PodTemplateEqual

func PodTemplateEqual(newUnstruct, oldUnstruct *unstructured.Unstructured) bool

func SetContainerImage

func SetContainerImage(obj *unstructured.Unstructured, containerName, image string) error

func SetLastAppliedConfigAnnotation

func SetLastAppliedConfigAnnotation(obj *unstructured.Unstructured) error

func SetLastReplicasAnnotation added in v1.8.0

func SetLastReplicasAnnotation(obj *unstructured.Unstructured) error

func SetRestartTimestamp added in v1.8.0

func SetRestartTimestamp(obj *unstructured.Unstructured) error

func SetSpecField

func SetSpecField(obj *unstructured.Unstructured, value interface{}, fields ...string) error

func SetTemplateAnnotations

func SetTemplateAnnotations(obj *unstructured.Unstructured, ann map[string]string) error

func SetUpdatePartition

func SetUpdatePartition(
	obj *unstructured.Unstructured,
	upgradeOrdinal,
	gracePeriod int64,
	advanced bool,
) error

func UpdateWorkload

func UpdateWorkload(
	workloadClient kube.Workload,
	newUnstruct,
	oldUnstruct *unstructured.Unstructured,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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