apply

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const Duration1d = time.Hour * 24
View Source
const Duration7d = time.Hour * 24 * 7

Variables

This section is empty.

Functions

func DeleteAll

func DeleteAll(kv *v1.KubeVirt,
	stores util.Stores,
	clientset kubecli.KubevirtClient,
	aggregatorclient install.APIServiceInterface,
	expectations *util.Expectations) error

func GetAppComponent added in v1.1.1

func GetAppComponent(kv *v1.KubeVirt) string

func GetCADuration added in v0.41.0

func GetCADuration(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration

func GetCARenewBefore added in v0.41.0

func GetCARenewBefore(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration

func GetCertDuration added in v0.41.0

func GetCertDuration(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration

func GetCertRenewBefore added in v0.41.0

func GetCertRenewBefore(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration

func GetExpectedGeneration added in v0.41.0

func GetExpectedGeneration(required runtime.Object, previousGenerations []k6tv1.GenerationStatus) int64

func InjectPlacementMetadata added in v0.58.2

func InjectPlacementMetadata(componentConfig *v1.ComponentConfig, podSpec *corev1.PodSpec)

Merge all Tolerations, Affinity and NodeSelectos from NodePlacement into pod spec

func SetGeneration added in v0.41.0

func SetGeneration(generations *[]k6tv1.GenerationStatus, actual runtime.Object)

Types

type CanaryUpgradeStatus added in v0.49.0

type CanaryUpgradeStatus string
const (
	CanaryUpgradeStatusStarted                 CanaryUpgradeStatus = "started"
	CanaryUpgradeStatusUpgradingDaemonSet      CanaryUpgradeStatus = "upgrading daemonset"
	CanaryUpgradeStatusWaitingDaemonSetRollout CanaryUpgradeStatus = "waiting for daemonset rollout"
	CanaryUpgradeStatusSuccessful              CanaryUpgradeStatus = "successful"
	CanaryUpgradeStatusFailed                  CanaryUpgradeStatus = "failed"
)

type Customizer

type Customizer struct {
	Patches []v1.CustomizeComponentsPatch
	// contains filtered or unexported fields
}

func NewCustomizer

func NewCustomizer(customizations v1.CustomizeComponents) (*Customizer, error)

func (*Customizer) Apply

func (c *Customizer) Apply(targetStrategy *install.Strategy) error

func (*Customizer) GenericApplyPatches

func (c *Customizer) GenericApplyPatches(objects interface{}) error

func (*Customizer) GetPatches

func (c *Customizer) GetPatches() []v1.CustomizeComponentsPatch

func (*Customizer) GetPatchesForResource

func (c *Customizer) GetPatchesForResource(resourceType, name string) []v1.CustomizeComponentsPatch

func (*Customizer) Hash added in v0.40.0

func (c *Customizer) Hash() string

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(kv *v1.KubeVirt, targetStrategy *install.Strategy, stores util.Stores, clientset kubecli.KubevirtClient, aggregatorclient install.APIServiceInterface, expectations *util.Expectations, recorder record.EventRecorder) (*Reconciler, error)

func (*Reconciler) Sync

Jump to

Keyboard shortcuts

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