Documentation ¶
Index ¶
- Constants
- func DeleteAll(kv *v1.KubeVirt, stores util.Stores, clientset kubecli.KubevirtClient, ...) error
- func GetCADuration(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration
- func GetCARenewBefore(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration
- func GetCertDuration(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration
- func GetCertRenewBefore(config *k8sv1.KubeVirtSelfSignConfiguration) *metav1.Duration
- func GetExpectedGeneration(required runtime.Object, previousGenerations []k6tv1.GenerationStatus) int64
- func InjectPlacementMetadata(componentConfig *v1.ComponentConfig, podSpec *corev1.PodSpec)
- func SetGeneration(generations *[]k6tv1.GenerationStatus, actual runtime.Object)
- type CanaryUpgradeStatus
- type Customizer
- func (c *Customizer) Apply(targetStrategy *install.Strategy) error
- func (c *Customizer) GenericApplyPatches(objects interface{}) error
- func (c *Customizer) GetPatches() []v1.CustomizeComponentsPatch
- func (c *Customizer) GetPatchesForResource(resourceType, name string) []v1.CustomizeComponentsPatch
- func (c *Customizer) Hash() string
- type Reconciler
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 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) 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 ¶
func (r *Reconciler) Sync(queue workqueue.RateLimitingInterface) (bool, error)
Click to show internal directories.
Click to hide internal directories.