v1alpha2

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the core v1alpha2 API group +kubebuilder:object:generate=true +groupName=core.expediagroup.com +versionName:=v1alpha2

Index

Constants

View Source
const ContainersNotReady = "ContainersNotReady"
View Source
const PodInitializing = "PodInitializing"
View Source
const PodReady = "PodReady"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.expediagroup.com", Version: "v1alpha2"}

	// 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

func AppErrorStatus

func AppErrorStatus(application *Application, error string)

func AppInProgressStatus

func AppInProgressStatus(application *Application)

func AppPodAnalysisCondition

func AppPodAnalysisCondition(application *Application, result analyzer.Result) bool

Types

type Application

type Application struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ApplicationSpec   `json:"spec,omitempty"`
	Status            ApplicationStatus `json:"status,omitempty"`
}

Application is the Schema for the applications API

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

type ApplicationList

type ApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Application `json:"items"`
}

ApplicationList contains a list of Application

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationSpec

type ApplicationSpec struct {

	// Data to be consolidated for the Helm Chart's values.yaml file
	// +optional
	Data map[string]string `json:"data,omitempty"`

	// PreRenderer holds custom templating delimiters and a flag.
	// By default, standard delimiters "{{" and "}}" will be used to render values within. If specified then the custom delimiters will be used.
	// +optional
	PreRenderer PreRenderer `json:"preRenderer,omitempty"`

	// Template of Release metadata and spec needed for the resources created by the Application Controller
	// +required
	Template ReleaseTemplate `json:"template,omitempty"`
}

ApplicationSpec defines the desired state of Application

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

type ApplicationStatus

type ApplicationStatus struct {

	// ObservedGeneration is the last observed generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions holds the conditions for the Application.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// HelmReleaseGeneration is the helm release generation number
	// +optional
	HelmReleaseGeneration int64 `json:"helmReleaseGeneration,omitempty"`

	// ValuesCheckSum is the checksum of the values file associated with the helm chart
	// +optional
	ValuesCheckSum string `json:"valuesCheckSum,omitempty"`

	// Failures is the reconciliation failure count against the latest desired
	// state. It is reset after a successful reconciliation.
	// +optional
	Failures int64 `json:"failures,omitempty"`
}

ApplicationStatus defines the observed state of Application

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

type Metadata

type Metadata struct {
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

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

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

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

type PreRenderer

type PreRenderer struct {
	// Custom non white-spaced and non alpha-numeric open delimiter used for go templating action to pre-render. For e.g., <%. Default is "{{"
	// +kubebuilder:validation:MinLength=2
	// +kubebuilder:validation:MaxLength=2
	// +optional
	LeftDelimiter string `json:"openDelimiter,omitempty"`

	// Custom non white-spaced and non alpha-numeric close delimiter used for go templating action to pre-render. For e.g., %>. Default is  }}
	// +kubebuilder:validation:MinLength=2
	// +kubebuilder:validation:MaxLength=2
	// +optional
	RightDelimiter string `json:"closeDelimiter,omitempty"`

	// Enable to allow Helm Templating to interpolate values within the delimiters "{{" "}}".
	// Defaults to false allowing the pre-renderer to do interpolation within the default delimiters. If both helm templating
	// and pre-rendering are desired, then enable EnableHelmTemplating and specify custom delimiters as LeftDelimiter and RightDelimiter
	// +optional
	EnableHelmTemplating bool `json:"enableHelmTemplating,omitempty"`
}

func (*PreRenderer) DeepCopy

func (in *PreRenderer) DeepCopy() *PreRenderer

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

func (*PreRenderer) DeepCopyInto

func (in *PreRenderer) DeepCopyInto(out *PreRenderer)

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

type ReleaseTemplate

type ReleaseTemplate struct {
	// Metadata to be applied to the resources created by the Application Controller
	// +optional
	Metadata `json:"metadata,omitempty"`

	// Spec to be applied to the Helm Release resource created by the Application Controller
	// +required
	Spec v2beta1.HelmReleaseSpec `json:"spec,omitempty"`
}

func (*ReleaseTemplate) DeepCopy

func (in *ReleaseTemplate) DeepCopy() *ReleaseTemplate

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

func (*ReleaseTemplate) DeepCopyInto

func (in *ReleaseTemplate) DeepCopyInto(out *ReleaseTemplate)

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