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.6.6", 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.6.6", 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.6.6 (manifest version from 0 to 1) - dex: 2.16.0 -> 2.17.0 - gangway: 3.1.0 (new addon)
Types ¶
type AddonVersionInfoUpdate ¶
type AddonVersionInfoUpdate struct { Current kubernetes.AddonsVersion Updated kubernetes.AddonsVersion }
func UpdatedAddons ¶
func UpdatedAddonsForAddonsVersion ¶ added in v1.3.1
func UpdatedAddonsForAddonsVersion(clusterVersion *version.Version, addonsVersion kubernetes.AddonsVersion, clusterAddonsKnownVersions kubernetes.ClusterAddonsKnownVersions) AddonVersionInfoUpdate
Click to show internal directories.
Click to hide internal directories.