addon

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 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.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 UpdatedAddons(client clientset.Interface, clusterVersion *version.Version) (AddonVersionInfoUpdate, error)

func UpdatedAddonsForAddonsVersion added in v1.3.1

func UpdatedAddonsForAddonsVersion(clusterVersion *version.Version, addonsVersion kubernetes.AddonsVersion, clusterAddonsKnownVersions kubernetes.ClusterAddonsKnownVersions) AddonVersionInfoUpdate

Jump to

Keyboard shortcuts

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