release

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorRelease

type OperatorRelease struct {
	Release []semver.PRVersion `json:"-"`
}

+k8s:openapi-gen=true OperatorRelease is a wrapper around a slice of semver.PRVersion which supports correct marshaling to YAML and JSON. +kubebuilder:validation:Type=string +kubebuilder:validation:MaxLength=20 +kubebuilder:validation:XValidation:rule="self.matches('^[0-9A-Za-z-]+(\\\\.[0-9A-Za-z-]+)*$')",message="release version must be composed of dot-separated identifiers containing only alphanumerics and hyphens" +kubebuilder:validation:XValidation:rule="!self.split('.').exists(x, x.matches('^0[0-9]+$'))",message="numeric identifiers in release version must not have leading zeros"

func (*OperatorRelease) DeepCopyInto

func (v *OperatorRelease) DeepCopyInto(out *OperatorRelease)

DeepCopyInto creates a deep-copy of the Version value.

func (OperatorRelease) MarshalJSON

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

MarshalJSON implements the encoding/json.Marshaler interface.

func (OperatorRelease) OpenAPISchemaFormat

func (_ OperatorRelease) OpenAPISchemaFormat() string

OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type. "semver" is not a standard openapi format but tooling may use the value regardless

func (OperatorRelease) OpenAPISchemaType

func (_ OperatorRelease) 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 (OperatorRelease) String

func (r OperatorRelease) String() string

func (*OperatorRelease) UnmarshalJSON

func (v *OperatorRelease) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements the encoding/json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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