version

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

View Source
var (
	// SupportedVersionsRange holds all supported temporal versions.
	SupportedVersionsRange  = mustNewConstraint(">= 1.14.0 < 1.25.0")
	ForbiddenBrokenReleases = []*Version{

		MustNewVersionFromString("1.21.0"),

		MustNewVersionFromString("1.21.1"),

		MustNewVersionFromString("1.24.0"),
	}
	V1_18_0 = MustNewVersionFromString("1.18.0") //nolint:stylecheck,revive
	V1_20_0 = MustNewVersionFromString("1.20.0") //nolint:stylecheck,revive
	V1_21_0 = MustNewVersionFromString("1.21.0") //nolint:stylecheck,revive
	V1_22_0 = MustNewVersionFromString("1.22.0") //nolint:stylecheck,revive
	V1_23_0 = MustNewVersionFromString("1.23.0") //nolint:stylecheck,revive
	V1_24_0 = MustNewVersionFromString("1.24.0") //nolint:stylecheck,revive
	V1_25_0 = MustNewVersionFromString("1.25.0") //nolint:stylecheck,revive
)

Functions

func PersistenceJobTag added in v0.20.0

func PersistenceJobTag(version *Version) string

PersistenceJobTag returns the tag of the persistence job image for the given version. It's required as 1.24.x had really bad image tagging.

Types

type Version

type Version struct {
	*semver.Version
}

Version is a wrapper around semver.Version which supports correct marshaling to YAML and JSON. In particular, it marshals into strings. +kubebuilder:validation:Type=string

func MustNewVersionFromString added in v0.8.0

func MustNewVersionFromString(v string) *Version

func NewVersionFromString added in v0.8.0

func NewVersionFromString(v string) (*Version, error)

func (*Version) DeepCopy added in v0.8.0

func (in *Version) DeepCopy() *Version

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.

func (*Version) DeepCopyInto added in v0.8.0

func (in *Version) DeepCopyInto(out *Version)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Version) GreaterOrEqual added in v0.8.0

func (v *Version) GreaterOrEqual(compare *Version) bool

GreaterOrEqual returns whenever version is greater or equal than the provided version.

func (*Version) LessThan added in v0.20.0

func (v *Version) LessThan(compare *Version) bool

LessThan returns whenever version is less than the provided version.

func (Version) MarshalJSON added in v0.8.0

func (v Version) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (Version) OpenAPISchemaFormat added in v0.8.0

func (Version) OpenAPISchemaFormat() string

OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.

func (Version) OpenAPISchemaType added in v0.8.0

func (Version) OpenAPISchemaType() []string

OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.

See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators

func (*Version) ToUnstructured added in v0.8.0

func (v *Version) ToUnstructured() any

ToUnstructured implements the value.UnstructuredConverter interface.

func (*Version) UnmarshalJSON added in v0.8.0

func (v *Version) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

func (*Version) UpgradeConstraint added in v0.10.0

func (v *Version) UpgradeConstraint() (*semver.Constraints, error)

UpgradeConstraint returns the Temporal Server upgrade constraint. Users should upgrade Temporal Server sequentially. The returned constraint ensures that, we're could only upgrade to upgrade from v1.n.x to v1.n+1.x.

func (*Version) Validate added in v0.8.0

func (v *Version) Validate() error

Validate checks if the current version is in the supported temporal cluster version range.

Jump to

Keyboard shortcuts

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