version

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHealthConfigInterval    = 10 * time.Second
	DefaultHealthConfigStartPeriod = 1200 * time.Second
	DefaultHealthConfigTimeout     = 30 * time.Second
	DefaultHealthConfigRetries     = 3
)

Variables

This section is empty.

Functions

func GetOneAgentHealthConfig

func GetOneAgentHealthConfig(ctx context.Context, apiReader client.Reader, registryClient registry.ImageGetter, dynakube *dynatracev1beta1.DynaKube, imageUri string) (*containerv1.HealthConfig, error)

Types

type Reconciler

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

func NewReconciler

func NewReconciler(dynakube *dynatracev1beta1.DynaKube, apiReader client.Reader, dtClient dtclient.Client, registryClient registry.ImageGetter, fs afero.Afero, timeProvider *timeprovider.Provider) *Reconciler

func (*Reconciler) Reconcile

func (reconciler *Reconciler) Reconcile(ctx context.Context) error

Reconcile updates the version status used by the dynakube

type StatusUpdater

type StatusUpdater interface {
	Name() string
	IsEnabled() bool
	Target() *status.VersionStatus

	CustomImage() string
	CustomVersion() string
	IsAutoUpdateEnabled() bool
	IsPublicRegistryEnabled() bool
	CheckForDowngrade(latestVersion string) (bool, error)
	ValidateStatus() error
	LatestImageInfo() (*dtclient.LatestImageInfo, error)

	UseTenantRegistry(context.Context) error
}

Jump to

Keyboard shortcuts

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