Documentation ¶
Index ¶
- Constants
- Variables
- func PrintManifest(ms *Manifest, current *IstioDistribution) error
- type IstioDistribution
- func (x *IstioDistribution) Equal(j *IstioDistribution) bool
- func (x *IstioDistribution) ExistInManifest(ms *Manifest) (bool, error)
- func (x *IstioDistribution) GreaterThan(y *IstioDistribution) (bool, error)
- func (x *IstioDistribution) Group() (string, error)
- func (x *IstioDistribution) IsUpstream() bool
- func (x *IstioDistribution) Patch() (int, error)
- func (x *IstioDistribution) String() string
- type Manifest
Constants ¶
View Source
const ( IstioDistributionFlavorTetrate = "tetrate" IstioDistributionFlavorTetrateFIPS = "tetratefips" IstioDistributionFlavorIstio = "istio" )
Variables ¶
View Source
var GlobalManifestURLMux sync.Mutex
GlobalManifestURLMux for test purpose
Functions ¶
func PrintManifest ¶
func PrintManifest(ms *Manifest, current *IstioDistribution) error
Types ¶
type IstioDistribution ¶
type IstioDistribution struct { // Distributions are tagged with `x.y.z-${flavor}-v${flavor_version}` where // - ${flavor} is either "tetrate" or "tetratefips" // - ${flavor_version} is ""numeric"" and the version of that distribution Version string `json:"version,omitempty"` Flavor string `json:"flavor,omitempty"` FlavorVersion int64 `json:"flavor_version,omitempty"` // Supported k8s versions of this distribution. K8SVersions []string `json:"k8s_versions,omitempty"` // Indicates if this is a security update. IsSecurityPatch bool `json:"is_security_patch,omitempty"` // Release notes for this distribution. ReleaseNotes []string `json:"release_notes,omitempty"` // EndOfLife of this distribution (format: "YYYY-MM-DD") EndOfLife string `json:"end_of_life,omitempty"` }
func GetLatestDistribution ¶
func GetLatestDistribution(current *IstioDistribution, ms *Manifest) (foundLatest *IstioDistribution, includeSecurityPatch bool, err error)
get the istio distribution with latest patch version and latest flavor version
func IstioDistributionFromString ¶
func IstioDistributionFromString(in string) (*IstioDistribution, error)
func (*IstioDistribution) Equal ¶
func (x *IstioDistribution) Equal(j *IstioDistribution) bool
func (*IstioDistribution) ExistInManifest ¶
func (x *IstioDistribution) ExistInManifest(ms *Manifest) (bool, error)
func (*IstioDistribution) GreaterThan ¶
func (x *IstioDistribution) GreaterThan(y *IstioDistribution) (bool, error)
compare two (patch version, flavor version) tuples in the same group
func (*IstioDistribution) Group ¶
func (x *IstioDistribution) Group() (string, error)
func (*IstioDistribution) IsUpstream ¶
func (x *IstioDistribution) IsUpstream() bool
func (*IstioDistribution) Patch ¶
func (x *IstioDistribution) Patch() (int, error)
func (*IstioDistribution) String ¶
func (x *IstioDistribution) String() string
type Manifest ¶
type Manifest struct { IstioDistributions []*IstioDistribution `json:"istio_distributions"` // the end of life of Istio minor versions // key: "x.y", "1.7" for example // value: "YYYY-MM-DD" IstioMinorVersionsEOLDates map[string]string `json:"istio_minor_versions_eol_dates"` }
func FetchManifest ¶
func (*Manifest) SetEOLInIstioDistributions ¶ added in v1.1.5
Click to show internal directories.
Click to hide internal directories.