Documentation ¶
Overview ¶
+kubebuilder:object:generate=true
Index ¶
- Variables
- func PersistenceJobTag(version *Version) string
- type Version
- func (in *Version) DeepCopy() *Version
- func (in *Version) DeepCopyInto(out *Version)
- func (v *Version) GreaterOrEqual(compare *Version) bool
- func (v *Version) LessThan(compare *Version) bool
- func (v Version) MarshalJSON() ([]byte, error)
- func (Version) OpenAPISchemaFormat() string
- func (Version) OpenAPISchemaType() []string
- func (v *Version) ToUnstructured() any
- func (v *Version) UnmarshalJSON(b []byte) error
- func (v *Version) UpgradeConstraint() (*semver.Constraints, error)
- func (v *Version) Validate() error
Constants ¶
This section is empty.
Variables ¶
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
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 NewVersionFromString ¶ added in v0.8.0
func (*Version) DeepCopy ¶ added in v0.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶ added in v0.8.0
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
GreaterOrEqual returns whenever version is greater or equal than the provided version.
func (*Version) LessThan ¶ added in v0.20.0
LessThan returns whenever version is less than the provided version.
func (Version) MarshalJSON ¶ added in v0.8.0
MarshalJSON implements the json.Marshaler interface.
func (Version) OpenAPISchemaFormat ¶ added in v0.8.0
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (Version) OpenAPISchemaType ¶ added in v0.8.0
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
ToUnstructured implements the value.UnstructuredConverter interface.
func (*Version) UnmarshalJSON ¶ added in v0.8.0
UnmarshalJSON implements the json.Unmarshaller interface.
func (*Version) UpgradeConstraint ¶ added in v0.10.0
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.