Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdates ¶
func CheckForUpdates(opts types.CheckForUpdatesOpts) (ucr *types.UpdateCheckResponse, finalError error)
CheckForUpdates checks, downloads, and makes sure the desired version for a specific app is deployed. if "DeployLatest" is set to true, the latest version will be deployed. otherwise, if "DeployVersionLabel" is set to true, then the version with the corresponding version label will be deployed (if found). otherwise, if "IsAutomatic" is set to true (which means it's an automatic update check), then the version that matches the auto deploy configuration (if enabled) will be deployed. Automatic update checks will not run on embedded clusters. returns the number of available updates.
func Configure ¶
Configure will check if the app has scheduled update checks enabled and: if enabled, and cron job was NOT found: add a new cron job to check app updates if enabled, and a cron job was found, update the existing cron job with the latest cron spec if disabled: stop the current running cron job (if exists) no-op for airgap and embedded cluster applications
Types ¶
This section is empty.