v1alpha1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the k8s v1alpha1 API group +kubebuilder:object:generate=true +groupName=kubefox.xigxog.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kubefox.xigxog.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AppDeployment

type AppDeployment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec    AppDeploymentSpec    `json:"spec,omitempty"`
	Status  AppDeploymentStatus  `json:"status,omitempty"`
	Details AppDeploymentDetails `json:"details,omitempty"`
}

AppDeployment is the Schema for the AppDeployments API

func (*AppDeployment) DeepCopy

func (in *AppDeployment) DeepCopy() *AppDeployment

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

func (*AppDeployment) DeepCopyInto

func (in *AppDeployment) DeepCopyInto(out *AppDeployment)

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

func (*AppDeployment) DeepCopyObject

func (in *AppDeployment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AppDeployment) GetDefinition

func (a *AppDeployment) GetDefinition(comp *core.Component) (*api.ComponentDefinition, error)

func (*AppDeployment) HasDependency

func (a *AppDeployment) HasDependency(name string, typ api.ComponentType) bool

func (*AppDeployment) Validate

func (d *AppDeployment) Validate(data *api.Data, getAdapter common.GetAdapterFunc) (api.Problems, error)

type AppDeploymentDetails

type AppDeploymentDetails struct {
	api.Details `json:",inline"`

	Components map[string]api.Details `json:"components,omitempty"`
}

AppDeploymentDetails defines additional details of AppDeployment

func (*AppDeploymentDetails) DeepCopy

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

func (*AppDeploymentDetails) DeepCopyInto

func (in *AppDeploymentDetails) DeepCopyInto(out *AppDeploymentDetails)

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

type AppDeploymentList

type AppDeploymentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []AppDeployment `json:"items"`
}

AppDeploymentList contains a list of AppDeployments

func (*AppDeploymentList) DeepCopy

func (in *AppDeploymentList) DeepCopy() *AppDeploymentList

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

func (*AppDeploymentList) DeepCopyInto

func (in *AppDeploymentList) DeepCopyInto(out *AppDeploymentList)

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

func (*AppDeploymentList) DeepCopyObject

func (in *AppDeploymentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppDeploymentManifest

type AppDeploymentManifest struct {
	metav1.TypeMeta `json:",inline"`

	common.ObjectRef `json:"metadata"`

	Spec    AppDeploymentSpec    `json:"spec"`
	Details AppDeploymentDetails `json:"details,omitempty"`
}

func (*AppDeploymentManifest) DeepCopy

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

func (*AppDeploymentManifest) DeepCopyInto

func (in *AppDeploymentManifest) DeepCopyInto(out *AppDeploymentManifest)

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

type AppDeploymentSpec

type AppDeploymentSpec struct {
	AppName string `json:"appName"`

	// Version of the defined App. Use of semantic versioning is recommended.
	// Once set the AppDeployment spec becomes immutable.
	Version string `json:"version,omitempty"`

	Commit string `json:"commit"`

	CommitTime          metav1.Time `json:"commitTime"`
	Branch              string      `json:"branch,omitempty"`
	Tag                 string      `json:"tag,omitempty"`
	RepoURL             string      `json:"repoURL,omitempty"`
	ContainerRegistry   string      `json:"containerRegistry,omitempty"`
	ImagePullSecretName string      `json:"imagePullSecretName,omitempty"`

	Components map[string]*api.ComponentDefinition `json:"components"`
}

AppDeploymentSpec defines the desired state of AppDeployment

func (*AppDeploymentSpec) DeepCopy

func (in *AppDeploymentSpec) DeepCopy() *AppDeploymentSpec

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

func (*AppDeploymentSpec) DeepCopyInto

func (in *AppDeploymentSpec) DeepCopyInto(out *AppDeploymentSpec)

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

type AppDeploymentStatus

type AppDeploymentStatus struct {
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
	Problems   api.Problems       `json:"problems,omitempty"`
}

AppDeploymentStatus defines the observed state of AppDeployment

func (*AppDeploymentStatus) DeepCopy

func (in *AppDeploymentStatus) DeepCopy() *AppDeploymentStatus

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

func (*AppDeploymentStatus) DeepCopyInto

func (in *AppDeploymentStatus) DeepCopyInto(out *AppDeploymentStatus)

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

type BrokerSpec

type BrokerSpec struct {
	PodSpec       common.PodSpec       `json:"podSpec,omitempty"`
	ContainerSpec common.ContainerSpec `json:"containerSpec,omitempty"`
}

func (*BrokerSpec) DeepCopy

func (in *BrokerSpec) DeepCopy() *BrokerSpec

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

func (*BrokerSpec) DeepCopyInto

func (in *BrokerSpec) DeepCopyInto(out *BrokerSpec)

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

type ComponentStatus

type ComponentStatus struct {
	Ready    bool              `json:"ready"`
	Name     string            `json:"name"`
	Hash     string            `json:"hash,omitempty"`
	Type     api.ComponentType `json:"type,omitempty"`
	PodName  string            `json:"podName"`
	PodIP    string            `json:"podIP"`
	NodeName string            `json:"nodeName"`
	NodeIP   string            `json:"nodeIP"`
}

func (*ComponentStatus) DeepCopy

func (in *ComponentStatus) DeepCopy() *ComponentStatus

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

func (*ComponentStatus) DeepCopyInto

func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)

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

type EnvHistoryLimits

type EnvHistoryLimits struct {

	// Maximum number of Releases to keep in history. Once the limit is reached
	// the oldest Release in history will be deleted. Age is based on
	// archiveTime. Pointer is used to distinguish between not set and false.
	Count *uint `json:"count,omitempty"`

	// Maximum age of the Release to keep in history. Once the limit is reached
	// the oldest Release in history will be deleted. Age is based on
	// archiveTime. Set to 0 to disable. Pointer is used to distinguish between
	// not set and false.
	AgeDays *uint `json:"ageDays,omitempty"`
}

func (*EnvHistoryLimits) DeepCopy

func (in *EnvHistoryLimits) DeepCopy() *EnvHistoryLimits

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

func (*EnvHistoryLimits) DeepCopyInto

func (in *EnvHistoryLimits) DeepCopyInto(out *EnvHistoryLimits)

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

type EnvReleasePolicy

type EnvReleasePolicy struct {
	Type api.ReleaseType `json:"type,omitempty"`

	// If the pending Release cannot be activated before the activation deadline
	// it will be considered failed and the Release will automatically rolled
	// back to the current active Release. Pointer is used to distinguish
	// between not set and false.
	ActivationDeadlineSeconds *uint `json:"activationDeadlineSeconds,omitempty"`

	HistoryLimits EnvHistoryLimits `json:"historyLimits,omitempty"`
}

func (*EnvReleasePolicy) DeepCopy

func (in *EnvReleasePolicy) DeepCopy() *EnvReleasePolicy

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

func (*EnvReleasePolicy) DeepCopyInto

func (in *EnvReleasePolicy) DeepCopyInto(out *EnvReleasePolicy)

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

type Environment

type Environment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec    EnvironmentSpec `json:"spec,omitempty"`
	Data    api.Data        `json:"data,omitempty"`
	Details api.DataDetails `json:"details,omitempty"`
}

func (*Environment) DeepCopy

func (in *Environment) DeepCopy() *Environment

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

func (*Environment) DeepCopyInto

func (in *Environment) DeepCopyInto(out *Environment)

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

func (*Environment) DeepCopyObject

func (in *Environment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Environment) GetData

func (env *Environment) GetData() *api.Data

func (*Environment) GetDataKey

func (d *Environment) GetDataKey() api.DataKey

type EnvironmentList

type EnvironmentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Environment `json:"items"`
}

+kubebuilder:object:root=true

func (*EnvironmentList) DeepCopy

func (in *EnvironmentList) DeepCopy() *EnvironmentList

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

func (*EnvironmentList) DeepCopyInto

func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList)

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

func (*EnvironmentList) DeepCopyObject

func (in *EnvironmentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EnvironmentManifest

type EnvironmentManifest struct {
	metav1.TypeMeta `json:",inline"`

	common.ObjectRef `json:"metadata"`

	Spec    EnvironmentSpec `json:"spec,omitempty"`
	Data    api.Data        `json:"data,omitempty"`
	Details api.DataDetails `json:"details,omitempty"`
}

func (*EnvironmentManifest) DeepCopy

func (in *EnvironmentManifest) DeepCopy() *EnvironmentManifest

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

func (*EnvironmentManifest) DeepCopyInto

func (in *EnvironmentManifest) DeepCopyInto(out *EnvironmentManifest)

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

type EnvironmentSpec

type EnvironmentSpec struct {
	ReleasePolicy EnvReleasePolicy `json:"releasePolicy,omitempty"`
}

func (*EnvironmentSpec) DeepCopy

func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec

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

func (*EnvironmentSpec) DeepCopyInto

func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec)

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

type EventsSpec

type EventsSpec struct {
	// +kubebuilder:validation:Minimum=3
	// +kubebuilder:default=30
	TimeoutSeconds uint `json:"timeoutSeconds,omitempty"`

	// Large events reduce performance and increase memory usage. Default 5Mi.
	// Maximum 16Mi.
	MaxSize resource.Quantity `json:"maxSize,omitempty"`
}

func (*EventsSpec) DeepCopy

func (in *EventsSpec) DeepCopy() *EventsSpec

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

func (*EventsSpec) DeepCopyInto

func (in *EventsSpec) DeepCopyInto(out *EventsSpec)

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

type HTTPAdapter

type HTTPAdapter struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec    HTTPAdapterSpec `json:"spec,omitempty"`
	Details api.Details     `json:"details,omitempty"`
}

func (*HTTPAdapter) DeepCopy

func (in *HTTPAdapter) DeepCopy() *HTTPAdapter

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

func (*HTTPAdapter) DeepCopyInto

func (in *HTTPAdapter) DeepCopyInto(out *HTTPAdapter)

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

func (*HTTPAdapter) DeepCopyObject

func (in *HTTPAdapter) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*HTTPAdapter) GetComponentType

func (a *HTTPAdapter) GetComponentType() api.ComponentType

func (*HTTPAdapter) Resolve

func (a *HTTPAdapter) Resolve(data *api.Data) error

func (*HTTPAdapter) Validate

func (a *HTTPAdapter) Validate(data *api.Data) api.Problems

type HTTPAdapterList

type HTTPAdapterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []HTTPAdapter `json:"items"`
}

+kubebuilder:object:root=true

func (*HTTPAdapterList) DeepCopy

func (in *HTTPAdapterList) DeepCopy() *HTTPAdapterList

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

func (*HTTPAdapterList) DeepCopyInto

func (in *HTTPAdapterList) DeepCopyInto(out *HTTPAdapterList)

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

func (*HTTPAdapterList) DeepCopyObject

func (in *HTTPAdapterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HTTPAdapterManifest

type HTTPAdapterManifest struct {
	metav1.TypeMeta `json:",inline"`

	common.ObjectRef `json:"metadata"`

	Spec    HTTPAdapterSpec `json:"spec"`
	Details api.Details     `json:"details,omitempty"`
}

func (*HTTPAdapterManifest) DeepCopy

func (in *HTTPAdapterManifest) DeepCopy() *HTTPAdapterManifest

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

func (*HTTPAdapterManifest) DeepCopyInto

func (in *HTTPAdapterManifest) DeepCopyInto(out *HTTPAdapterManifest)

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

type HTTPAdapterSpec

type HTTPAdapterSpec struct {
	URL     string            `json:"url"`
	Headers map[string]string `json:"headers,omitempty"`

	// InsecureSkipVerify controls whether the Adapter verifies the server's
	// certificate chain and host name. If InsecureSkipVerify is true, any
	// certificate presented by the server and any host name in that certificate
	// is accepted. In this mode, TLS is susceptible to machine-in-the-middle
	// attacks.
	InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"`

	FollowRedirects api.FollowRedirects `json:"followRedirects,omitempty"`
}

func (*HTTPAdapterSpec) DeepCopy

func (in *HTTPAdapterSpec) DeepCopy() *HTTPAdapterSpec

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

func (*HTTPAdapterSpec) DeepCopyInto

func (in *HTTPAdapterSpec) DeepCopyInto(out *HTTPAdapterSpec)

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

type HTTPAdapterTemplate

type HTTPAdapterTemplate struct {
	URL     *api.EnvTemplate
	Headers map[string]*api.EnvTemplate
}

+kubebuilder:object:generate=false

type HTTPSrvPorts

type HTTPSrvPorts struct {
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:default=80
	HTTP uint `json:"http,omitempty"`
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:default=443
	HTTPS uint `json:"https,omitempty"`
}

func (*HTTPSrvPorts) DeepCopy

func (in *HTTPSrvPorts) DeepCopy() *HTTPSrvPorts

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

func (*HTTPSrvPorts) DeepCopyInto

func (in *HTTPSrvPorts) DeepCopyInto(out *HTTPSrvPorts)

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

type HTTPSrvService

type HTTPSrvService struct {
	// +kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer
	// +kubebuilder:default=ClusterIP
	Type  string       `json:"type,omitempty"`
	Ports HTTPSrvPorts `json:"ports,omitempty"`

	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication
	// controllers and services. [More
	// info](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
	Labels map[string]string `json:"labels,omitempty"`
	// Annotations is an unstructured key value map stored with a resource that
	// may be set by external tools to store and retrieve arbitrary metadata.
	// They are not queryable and should be preserved when modifying objects.
	// [More
	// info](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations).
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*HTTPSrvService) DeepCopy

func (in *HTTPSrvService) DeepCopy() *HTTPSrvService

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

func (*HTTPSrvService) DeepCopyInto

func (in *HTTPSrvService) DeepCopyInto(out *HTTPSrvService)

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

type HTTPSrvSpec

type HTTPSrvSpec struct {
	PodSpec       common.PodSpec       `json:"podSpec,omitempty"`
	ContainerSpec common.ContainerSpec `json:"containerSpec,omitempty"`
	Service       HTTPSrvService       `json:"service,omitempty"`
}

func (*HTTPSrvSpec) DeepCopy

func (in *HTTPSrvSpec) DeepCopy() *HTTPSrvSpec

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

func (*HTTPSrvSpec) DeepCopyInto

func (in *HTTPSrvSpec) DeepCopyInto(out *HTTPSrvSpec)

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

type HistoryLimits

type HistoryLimits struct {

	// Maximum number of Releases to keep in history. Once the limit is reached
	// the oldest Release in history will be deleted. Age is based on
	// archiveTime. Pointer is used to distinguish between not set and false.
	Count *uint `json:"count,omitempty"`

	// Maximum age of the Release to keep in history. Once the limit is reached
	// the oldest Release in history will be deleted. Age is based on
	// archiveTime. Set to 0 to disable. Pointer is used to distinguish between
	// not set and false.
	AgeDays *uint `json:"ageDays,omitempty"`
}

func (*HistoryLimits) DeepCopy

func (in *HistoryLimits) DeepCopy() *HistoryLimits

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

func (*HistoryLimits) DeepCopyInto

func (in *HistoryLimits) DeepCopyInto(out *HistoryLimits)

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

type NATSSpec

type NATSSpec struct {
	PodSpec       common.PodSpec       `json:"podSpec,omitempty"`
	ContainerSpec common.ContainerSpec `json:"containerSpec,omitempty"`
}

func (*NATSSpec) DeepCopy

func (in *NATSSpec) DeepCopy() *NATSSpec

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

func (*NATSSpec) DeepCopyInto

func (in *NATSSpec) DeepCopyInto(out *NATSSpec)

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

type Platform

type Platform struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec    PlatformSpec    `json:"spec,omitempty"`
	Status  PlatformStatus  `json:"status,omitempty"`
	Details PlatformDetails `json:"details,omitempty"`
}

Platform is the Schema for the Platforms API

func (*Platform) DeepCopy

func (in *Platform) DeepCopy() *Platform

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

func (*Platform) DeepCopyInto

func (in *Platform) DeepCopyInto(out *Platform)

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

func (*Platform) DeepCopyObject

func (in *Platform) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlatformDetails

type PlatformDetails struct {
	api.Details `json:",inline"`
}

PlatformDetails defines additional details of Platform

func (*PlatformDetails) DeepCopy

func (in *PlatformDetails) DeepCopy() *PlatformDetails

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

func (*PlatformDetails) DeepCopyInto

func (in *PlatformDetails) DeepCopyInto(out *PlatformDetails)

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

type PlatformList

type PlatformList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Platform `json:"items"`
}

PlatformList contains a list of Platforms

func (*PlatformList) DeepCopy

func (in *PlatformList) DeepCopy() *PlatformList

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

func (*PlatformList) DeepCopyInto

func (in *PlatformList) DeepCopyInto(out *PlatformList)

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

func (*PlatformList) DeepCopyObject

func (in *PlatformList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlatformSpec

type PlatformSpec struct {
	Events  EventsSpec        `json:"events,omitempty"`
	Broker  BrokerSpec        `json:"broker,omitempty"`
	HTTPSrv HTTPSrvSpec       `json:"httpsrv,omitempty"`
	NATS    NATSSpec          `json:"nats,omitempty"`
	Logger  common.LoggerSpec `json:"logger,omitempty"`
}

PlatformSpec defines the desired state of Platform

func (*PlatformSpec) DeepCopy

func (in *PlatformSpec) DeepCopy() *PlatformSpec

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

func (*PlatformSpec) DeepCopyInto

func (in *PlatformSpec) DeepCopyInto(out *PlatformSpec)

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

type PlatformStatus

type PlatformStatus struct {
	// +patchStrategy=merge
	// +patchMergeKey=podName
	// +listType=map
	// +listMapKey=podName
	Components []ComponentStatus `json:"components,omitempty" patchStrategy:"merge" patchMergeKey:"podName"`
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

PlatformStatus defines the observed state of Platform

func (*PlatformStatus) DeepCopy

func (in *PlatformStatus) DeepCopy() *PlatformStatus

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

func (*PlatformStatus) DeepCopyInto

func (in *PlatformStatus) DeepCopyInto(out *PlatformStatus)

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

type Release

type Release struct {
	Apps map[string]ReleaseApp `json:"apps"`
}

func (*Release) DeepCopy

func (in *Release) DeepCopy() *Release

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

func (*Release) DeepCopyInto

func (in *Release) DeepCopyInto(out *Release)

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

type ReleaseApp

type ReleaseApp struct {
	AppDeployment string `json:"appDeployment"`

	// Version of the App being released. Use of semantic versioning is
	// recommended. If set the value is compared to the AppDeployment version.
	// If the two versions do not match the release will fail.
	Version string `json:"version,omitempty"`
}

func (*ReleaseApp) DeepCopy

func (in *ReleaseApp) DeepCopy() *ReleaseApp

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

func (*ReleaseApp) DeepCopyInto

func (in *ReleaseApp) DeepCopyInto(out *ReleaseApp)

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

type ReleaseManifest

type ReleaseManifest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ReleaseManifestSpec `json:"spec"`

	// Data is the merged values of the Environment and VirtualEnvironment Data.
	Data api.Data `json:"data"`
}

func (*ReleaseManifest) AddAdapter

func (d *ReleaseManifest) AddAdapter(adapter common.Adapter)

func (*ReleaseManifest) AddAppDeployment

func (d *ReleaseManifest) AddAppDeployment(appDep *AppDeployment)

func (*ReleaseManifest) DeepCopy

func (in *ReleaseManifest) DeepCopy() *ReleaseManifest

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

func (*ReleaseManifest) DeepCopyInto

func (in *ReleaseManifest) DeepCopyInto(out *ReleaseManifest)

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

func (*ReleaseManifest) DeepCopyObject

func (in *ReleaseManifest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ReleaseManifest) GetAdapter

func (d *ReleaseManifest) GetAdapter(name string, typ api.ComponentType) (common.Adapter, error)

func (*ReleaseManifest) GetAppDeployment

func (d *ReleaseManifest) GetAppDeployment(name string) (*AppDeployment, error)

func (*ReleaseManifest) GetData

func (d *ReleaseManifest) GetData() *api.Data

func (*ReleaseManifest) GetDataKey

func (d *ReleaseManifest) GetDataKey() api.DataKey

type ReleaseManifestAdapters

type ReleaseManifestAdapters struct {
	HTTPAdapters []HTTPAdapterManifest `json:"http,omitempty"`
}

func (*ReleaseManifestAdapters) DeepCopy

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

func (*ReleaseManifestAdapters) DeepCopyInto

func (in *ReleaseManifestAdapters) DeepCopyInto(out *ReleaseManifestAdapters)

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

type ReleaseManifestList

type ReleaseManifestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ReleaseManifest `json:"items"`
}

+kubebuilder:object:root=true

func (*ReleaseManifestList) DeepCopy

func (in *ReleaseManifestList) DeepCopy() *ReleaseManifestList

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

func (*ReleaseManifestList) DeepCopyInto

func (in *ReleaseManifestList) DeepCopyInto(out *ReleaseManifestList)

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

func (*ReleaseManifestList) DeepCopyObject

func (in *ReleaseManifestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReleaseManifestSpec

type ReleaseManifestSpec struct {
	ReleaseId string `json:"releaseId"`

	Environment EnvironmentManifest `json:"environment"`

	VirtualEnvironment VirtualEnvironmentManifest `json:"virtualEnvironment"`

	AppDeployments []AppDeploymentManifest `json:"appDeployments"`

	Adapters *ReleaseManifestAdapters `json:"adapters,omitempty"`
}

func (*ReleaseManifestSpec) DeepCopy

func (in *ReleaseManifestSpec) DeepCopy() *ReleaseManifestSpec

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

func (*ReleaseManifestSpec) DeepCopyInto

func (in *ReleaseManifestSpec) DeepCopyInto(out *ReleaseManifestSpec)

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

type ReleasePolicy

type ReleasePolicy struct {
	Type api.ReleaseType `json:"type,omitempty"`

	// If the pending Release cannot be activated before the activation deadline
	// it will be considered failed and the Release will automatically rolled
	// back to the current active Release. Pointer is used to distinguish
	// between not set and false.
	ActivationDeadlineSeconds *uint `json:"activationDeadlineSeconds,omitempty"`

	HistoryLimits *HistoryLimits `json:"historyLimits,omitempty"`
}

func (*ReleasePolicy) DeepCopy

func (in *ReleasePolicy) DeepCopy() *ReleasePolicy

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

func (*ReleasePolicy) DeepCopyInto

func (in *ReleasePolicy) DeepCopyInto(out *ReleasePolicy)

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

func (*ReleasePolicy) GetPendingDeadline

func (p *ReleasePolicy) GetPendingDeadline() time.Duration

type ReleaseStatus

type ReleaseStatus struct {
	Release `json:",inline"`

	Id string `json:"id"`

	ReleaseManifest string `json:"releaseManifest,omitempty"`
	// Time at which the VirtualEnvironment was updated to use the Release.
	RequestTime metav1.Time `json:"requestTime,omitempty"`
	// Time at which the Release became active. If not set the Release was never
	// activated.
	ActivationTime *metav1.Time `json:"activationTime,omitempty"`
	// Time at which the Release was archived to history.
	ArchiveTime *metav1.Time `json:"archiveTime,omitempty"`

	// Reason Release was archived.
	ArchiveReason api.ArchiveReason `json:"archiveReason,omitempty"`
	Problems      []common.Problem  `json:"problems,omitempty"`
}

func (*ReleaseStatus) ContainsAppDeployment

func (s *ReleaseStatus) ContainsAppDeployment(name string) bool

func (*ReleaseStatus) ContainsReleaseManifest

func (s *ReleaseStatus) ContainsReleaseManifest(name string) bool

func (*ReleaseStatus) DeepCopy

func (in *ReleaseStatus) DeepCopy() *ReleaseStatus

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

func (*ReleaseStatus) DeepCopyInto

func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus)

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

type VirtualEnvironment

type VirtualEnvironment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec    VirtualEnvironmentSpec   `json:"spec,omitempty"`
	Data    api.Data                 `json:"data,omitempty"`
	Details api.DataDetails          `json:"details,omitempty"`
	Status  VirtualEnvironmentStatus `json:"status,omitempty"`
}

func (*VirtualEnvironment) DeepCopy

func (in *VirtualEnvironment) DeepCopy() *VirtualEnvironment

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

func (*VirtualEnvironment) DeepCopyInto

func (in *VirtualEnvironment) DeepCopyInto(out *VirtualEnvironment)

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

func (*VirtualEnvironment) DeepCopyObject

func (in *VirtualEnvironment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VirtualEnvironment) GetData

func (ve *VirtualEnvironment) GetData() *api.Data

func (*VirtualEnvironment) GetDataKey

func (d *VirtualEnvironment) GetDataKey() api.DataKey

func (*VirtualEnvironment) GetReleasePendingDuration

func (ve *VirtualEnvironment) GetReleasePendingDuration() time.Duration

GetReleasePendingDuration returns the current duration that the Release has been pending. If there is no Release pending 0 is returned.

func (*VirtualEnvironment) GetReleasePolicy

func (ve *VirtualEnvironment) GetReleasePolicy(env *Environment) *ReleasePolicy

func (*VirtualEnvironment) UsesAppDeployment

func (ve *VirtualEnvironment) UsesAppDeployment(name string) bool

func (*VirtualEnvironment) UsesReleaseManifest

func (ve *VirtualEnvironment) UsesReleaseManifest(name string) bool

type VirtualEnvironmentList

type VirtualEnvironmentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []VirtualEnvironment `json:"items"`
}

func (*VirtualEnvironmentList) DeepCopy

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

func (*VirtualEnvironmentList) DeepCopyInto

func (in *VirtualEnvironmentList) DeepCopyInto(out *VirtualEnvironmentList)

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

func (*VirtualEnvironmentList) DeepCopyObject

func (in *VirtualEnvironmentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualEnvironmentManifest

type VirtualEnvironmentManifest struct {
	metav1.TypeMeta `json:",inline"`

	common.ObjectRef `json:"metadata"`

	Spec    VirtualEnvironmentSpec `json:"spec,omitempty"`
	Data    api.Data               `json:"data,omitempty"`
	Details api.DataDetails        `json:"details,omitempty"`
}

func (*VirtualEnvironmentManifest) DeepCopy

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

func (*VirtualEnvironmentManifest) DeepCopyInto

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

type VirtualEnvironmentSpec

type VirtualEnvironmentSpec struct {

	// Name of the Environment this VirtualEnvironment is part of. This field is
	// immutable.
	Environment   string         `json:"environment"`
	Release       *Release       `json:"release,omitempty"`
	ReleasePolicy *ReleasePolicy `json:"releasePolicy,omitempty"`
}

func (*VirtualEnvironmentSpec) DeepCopy

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

func (*VirtualEnvironmentSpec) DeepCopyInto

func (in *VirtualEnvironmentSpec) DeepCopyInto(out *VirtualEnvironmentSpec)

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

type VirtualEnvironmentStatus

type VirtualEnvironmentStatus struct {
	// DataChecksum is a hash value of the Data object. The Environment Data
	// object is merged before the hash is created. It can be used to check for
	// changes to the Data object.
	DataChecksum string `json:"dataChecksum,omitempty"`

	PendingReleaseFailed bool `json:"pendingReleaseFailed,omitempty"`

	ActiveRelease *ReleaseStatus `json:"activeRelease"`

	PendingRelease *ReleaseStatus `json:"pendingRelease,omitempty"`

	ReleaseHistory []ReleaseStatus `json:"releaseHistory,omitempty"`

	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*VirtualEnvironmentStatus) DeepCopy

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

func (*VirtualEnvironmentStatus) DeepCopyInto

func (in *VirtualEnvironmentStatus) DeepCopyInto(out *VirtualEnvironmentStatus)

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

Jump to

Keyboard shortcuts

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