kubesphere

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CNSource = map[string]bool{
	V310.String(): true,
	V311.String(): true,
	V320.String(): true,
	V321.String(): true,
	V330.String(): true,
	V331.String(): true,
}
View Source
var KsV211 = &KsInstaller{
	Version:                      V211.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V211,
	K8sSupportVersions: []string{
		"v1.15",
		"v1.16",
		"v1.17",
		"v1.18",
	},
	UpgradeSupportVersions: []string{
		V211.String(),
	},
}
View Source
var KsV300 = &KsInstaller{
	Version:                      V300.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V300,
	K8sSupportVersions: []string{
		"v1.15",
		"v1.16",
		"v1.17",
		"v1.18",
	},
	UpgradeSupportVersions: []string{
		V211.String(),
	},
}
View Source
var KsV310 = &KsInstaller{
	Version:                      V310.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V310,
	K8sSupportVersions: []string{
		"v1.15",
		"v1.16",
		"v1.17",
		"v1.18",
		"v1.19",
		"v1.20",
	},
	UpgradeSupportVersions: []string{
		V300.String(),
	},
}
View Source
var KsV311 = &KsInstaller{
	Version:                      V311.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V311,
	K8sSupportVersions: []string{
		"v1.15",
		"v1.16",
		"v1.17",
		"v1.18",
		"v1.19",
		"v1.20",
	},
	UpgradeSupportVersions: []string{
		V300.String(),
		V310.String(),
	},
}
View Source
var KsV320 = &KsInstaller{
	Version:                      V320.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V320,
	K8sSupportVersions: []string{
		"v1.19",
		"v1.20",
		"v1.21",
		"v1.22",
	},
	UpgradeSupportVersions: []string{
		V310.String(),
		V311.String(),
	},
}
View Source
var KsV321 = &KsInstaller{
	Version:                      V321.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V321,
	K8sSupportVersions: []string{
		"v1.19",
		"v1.20",
		"v1.21",
		"v1.22",
	},
	UpgradeSupportVersions: []string{
		V310.String(),
		V311.String(),
		V320.String(),
	},
}
View Source
var KsV330 = &KsInstaller{
	Version:                      V330.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V330,
	K8sSupportVersions: []string{
		"v1.19",
		"v1.20",
		"v1.21",
		"v1.22",
		"v1.23",
	},
	UpgradeSupportVersions: []string{
		V320.String(),
		V321.String(),
	},
}
View Source
var KsV331 = &KsInstaller{
	Version:                      V331.String(),
	CRDTemplate:                  templates.KsInstaller,
	ClusterConfigurationTemplate: templates.V331,
	K8sSupportVersions: []string{
		"v1.19",
		"v1.20",
		"v1.21",
		"v1.22",
		"v1.23",
	},
	UpgradeSupportVersions: []string{
		V330.String(),
		V320.String(),
		V321.String(),
	},
}
View Source
var VersionList = []Version{
	V211,
	V300,
	V310,
	V311,
	V320,
	V321,
	V330,
	V331,
}
View Source
var VersionMap = map[string]*KsInstaller{
	V211.String(): KsV211,
	V300.String(): KsV300,
	V310.String(): KsV310,
	V311.String(): KsV311,
	V320.String(): KsV320,
	V321.String(): KsV321,
	V330.String(): KsV330,
	V331.String(): KsV331,
}

Functions

func VersionsStringArr

func VersionsStringArr() []string

Types

type KsInstaller

type KsInstaller struct {
	Version                      string
	CRDTemplate                  *template.Template
	ClusterConfigurationTemplate *template.Template
	K8sSupportVersions           []string
	UpgradeSupportVersions       []string
}

func DevRelease

func DevRelease(version string) (*KsInstaller, bool)

func Latest

func Latest() *KsInstaller

func LatestRelease

func LatestRelease(version string) (*KsInstaller, bool)

func StabledVersionSupport

func StabledVersionSupport(version string) (*KsInstaller, bool)

func (*KsInstaller) CCToString

func (k *KsInstaller) CCToString() string

func (*KsInstaller) K8sSupport

func (k *KsInstaller) K8sSupport(version string) bool

func (*KsInstaller) UpgradeSupport

func (k *KsInstaller) UpgradeSupport(version string) bool

type Version

type Version int
const (
	V211 Version = iota
	V300
	V310
	V311
	V320
	V321
	V330
	V331
)

func (Version) String

func (v Version) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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