Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProbeThreshold is the minimum time to wait between version upgrades. ProbeThreshold = 15 * time.Minute TmpCAPath = "/tmp/dynatrace-operator" TmpCAName = "dynatraceCustomCA.crt" )
View Source
const (
// VersionLabel is the name of the label used on ActiveGate-provided images.
VersionLabel = "com.dynatrace.build-version"
)
Variables ¶
This section is empty.
Functions ¶
func ReconcileVersions ¶
func ReconcileVersions( ctx context.Context, dkState *status.DynakubeState, apiReader client.Reader, fs afero.Afero, verProvider VersionProviderCallback, ) (bool, error)
ReconcileVersions updates the version and hash for the images used by the rec.Instance DynaKube instance.
Types ¶
type ImageVersion ¶
ImageVersion includes information for a given image. Version can be empty if the corresponding label isn't set.
func GetImageVersion ¶
func GetImageVersion(imageName string, dockerConfig *dockerconfig.DockerConfig) (ImageVersion, error)
GetImageVersion fetches image information for imageName
type ImageVersionProvider ¶
type ImageVersionProvider func(img string, dockerConfig *dockerconfig.DockerConfig) (ImageVersion, error)
ImageVersionProvider can fetch image information from img
type VersionProviderCallback ¶
type VersionProviderCallback func(string, *dockerconfig.DockerConfig) (ImageVersion, error)
VersionProviderCallback fetches the version for a given image.
Click to show internal directories.
Click to hide internal directories.