addon

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Types

type AddonVersionInfoUpdate

type AddonVersionInfoUpdate struct {
	Current kubernetes.AddonsVersion
	Updated kubernetes.AddonsVersion
}

func UpdatedAddons

func UpdatedAddons(client clientset.Interface, clusterVersion *version.Version) (AddonVersionInfoUpdate, error)

Jump to

Keyboard shortcuts

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