Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAddonUpdate ¶
func HasAddonUpdate(aviu AddonVersionInfoUpdate) bool
func PrintAddonUpdates ¶
func PrintAddonUpdates(updatedAddons AddonVersionInfoUpdate)
Example ¶
PrintAddonUpdates(AddonVersionInfoUpdate{ Current: kubernetes.AddonsVersion{ kubernetes.Cilium: &kubernetes.AddonVersion{Version: "1.5.3", ManifestVersion: 0}, kubernetes.Kured: &kubernetes.AddonVersion{Version: "1.2.0", ManifestVersion: 0}, kubernetes.Dex: &kubernetes.AddonVersion{Version: "2.16.0", ManifestVersion: 1}, kubernetes.Gangway: nil, }, Updated: kubernetes.AddonsVersion{ kubernetes.Cilium: &kubernetes.AddonVersion{Version: "1.5.3", ManifestVersion: 1}, kubernetes.Dex: &kubernetes.AddonVersion{Version: "2.17.0", ManifestVersion: 1}, kubernetes.Gangway: &kubernetes.AddonVersion{Version: "3.1.0", ManifestVersion: 0}, }, })
Output: - cilium: 1.5.3 -> 1.5.3 (manifest version from 0 to 1) - dex: 2.16.0 -> 2.17.0 - gangway: 3.1.0 (new addon) Please, run `skuba addon upgrade apply` in order to upgrade addons.
Types ¶
type AddonVersionInfoUpdate ¶
type AddonVersionInfoUpdate struct { Current kubernetes.AddonsVersion Updated kubernetes.AddonsVersion }
func UpdatedAddons ¶
Click to show internal directories.
Click to hide internal directories.