v1alpha1

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PhasePending    = "Pending"
	PhaseDeployed   = "Deployed"
	PhaseSuperseded = "Superseded"
	PhaseSuspended  = "Suspended"
	PhaseSkipped    = "Skipped"
)

Variables

View Source
var (
	DeckhouseReleaseGVR = schema.GroupVersionResource{
		Group:    "deckhouse.io",
		Version:  "v1alpha1",
		Resource: "deckhousereleases",
	}
)

Functions

This section is empty.

Types

type DeckhouseRelease

type DeckhouseRelease struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Approved bool `json:"approved"`

	Spec DeckhouseReleaseSpec `json:"spec"`

	Status DeckhouseReleaseStatus `json:"status,omitempty"`
}

DeckhouseRelease is a deckhouse release object.

type DeckhouseReleaseSpec

type DeckhouseReleaseSpec struct {
	Version       string                 `json:"version,omitempty"`
	ApplyAfter    *time.Time             `json:"applyAfter,omitempty"`
	Requirements  map[string]string      `json:"requirements,omitempty"`
	Disruptions   []string               `json:"disruptions,omitempty"`
	Changelog     map[string]interface{} `json:"changelog,omitempty"`
	ChangelogLink string                 `json:"changelogLink,omitempty"`
}

type DeckhouseReleaseStatus

type DeckhouseReleaseStatus struct {
	Phase          string    `json:"phase,omitempty"`
	Approved       bool      `json:"approved"`
	TransitionTime time.Time `json:"transitionTime,omitempty"`
	Message        string    `json:"message"`
}

func (*DeckhouseReleaseStatus) GetObjectKind

func (in *DeckhouseReleaseStatus) GetObjectKind() schema.ObjectKind

type Duration

type Duration struct {
	time.Duration
}

Duration custom type for appropriate json marshalling / unmarshalling (like "15m")

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type ModuleError

type ModuleError struct {
	Name  string `json:"name"`
	Error string `json:"error"`
}

type ModuleSource

type ModuleSource struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the behavior of an ModuleSource.
	Spec ModuleSourceSpec `json:"spec"`

	// Status of an ModuleSource.
	Status ModuleSourceStatus `json:"status,omitempty"`
}

type ModuleSourceSpec

type ModuleSourceSpec struct {
	Registry       ModuleSourceSpecRegistry `json:"registry"`
	ReleaseChannel string                   `json:"releaseChannel"`
}

type ModuleSourceSpecRegistry

type ModuleSourceSpecRegistry struct {
	Scheme    string `json:"scheme,omitempty"`
	Repo      string `json:"repo"`
	DockerCFG string `json:"dockerCfg"`
	CA        string `json:"ca"`
}

type ModuleSourceStatus

type ModuleSourceStatus struct {
	SyncTime         time.Time     `json:"syncTime"`
	ModulesCount     int           `json:"modulesCount"`
	AvailableModules []string      `json:"availableModules"`
	Msg              string        `json:"message"`
	ModuleErrors     []ModuleError `json:"moduleErrors"`
}

Jump to

Keyboard shortcuts

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