v1alpha1

package
v0.0.0-...-2cb76a2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the deploy v1alpha1 API group +kubebuilder:object:generate=true +groupName=deploy.charlescd.io

Index

Constants

View Source
const (
	SourceReady string = "SourceReady"
	SourceValid        = "SourceValid"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "deploy.charlescd.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 Component

type Component struct {
	Name       string       `json:"name,omitempty"`
	Containers []*Container `json:"containers,omitempty"`
}

func (*Component) DeepCopy

func (in *Component) DeepCopy() *Component

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

func (*Component) DeepCopyInto

func (in *Component) DeepCopyInto(out *Component)

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

type Container

type Container struct {
	Name  string `json:"name,omitempty"`
	Image string `json:"image,omitempty"`
}

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

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

type GitRef

type GitRef struct {
	// +kubebuilder:validation:Enum=branch;commit;tag;semver
	Type string `json:"type"`
	// +kubebuilder:validation:Required
	Value string `json:"value"`
}

func (*GitRef) DeepCopy

func (in *GitRef) DeepCopy() *GitRef

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

func (*GitRef) DeepCopyInto

func (in *GitRef) DeepCopyInto(out *GitRef)

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

type GitRepository

type GitRepository struct {
	// +kubebuilder:default="60s"
	Interval metav1.Duration `json:"interval,omitempty"`
	// +kubebuilder:validation:Required
	URL string `json:"url"`
	// +kubebuilder:default="/"
	Path string `json:"path,omitempty"`
	// +kubebuilder:validation:Required
	Ref GitRef `json:"ref"`
	// +kubebuilder:validation:Optional
	SecretRef *SecretRef `json:"secretRef,omitempty"`
}

func (*GitRepository) DeepCopy

func (in *GitRepository) DeepCopy() *GitRepository

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

func (*GitRepository) DeepCopyInto

func (in *GitRepository) DeepCopyInto(out *GitRepository)

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

type Helm

type Helm struct {
	// +kubebuilder:validation:Optional
	Values *apiextensionsv1.JSON `json:"values,omitempty"`
	// +kubebuilder:validation:Optional
	GitRepository *GitRepository `json:"gitRepository,omitempty"`
	// +kubebuilder:validation:Optional
	HelmRepository *HelmRepository `json:"helmRepository,omitempty"`
}

func (*Helm) DeepCopy

func (in *Helm) DeepCopy() *Helm

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

func (*Helm) DeepCopyInto

func (in *Helm) DeepCopyInto(out *Helm)

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

type HelmChart

type HelmChart struct {
	// +kubebuilder:validation:Required
	Chart string `json:"chart"`
	// +kubebuilder:default:=*
	Version string `json:"version,omitempty"`
}

func (*HelmChart) DeepCopy

func (in *HelmChart) DeepCopy() *HelmChart

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

func (*HelmChart) DeepCopyInto

func (in *HelmChart) DeepCopyInto(out *HelmChart)

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

type HelmRepository

type HelmRepository struct {
	// +kubebuilder:default="60s"
	Interval metav1.Duration `json:"interval,omitempty"`
	// +kubebuilder:validation:Required
	URL string `json:"url"`
	// +kubebuilder:validation:Optional
	SecretRef *SecretRef `json:"secretRef,omitempty"`
	// +kubebuilder:validation:Required
	HelmChart HelmChart `json:"helmChart"`
}

func (*HelmRepository) DeepCopy

func (in *HelmRepository) DeepCopy() *HelmRepository

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

func (*HelmRepository) DeepCopyInto

func (in *HelmRepository) DeepCopyInto(out *HelmRepository)

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

type Kustomization

type Kustomization struct {
	// +kubebuilder:validation:Optional
	Patches *apiextensionsv1.JSON `json:"patches,omitempty"`
	// +kubebuilder:validation:Required
	GitRepository GitRepository `json:"gitRepository"`
}

func (*Kustomization) DeepCopy

func (in *Kustomization) DeepCopy() *Kustomization

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

func (*Kustomization) DeepCopyInto

func (in *Kustomization) DeepCopyInto(out *Kustomization)

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

type Manifests

type Manifests struct {
	// +kubebuilder:default=true
	Recursive bool `json:"recursive,omitempty"`
	// +kubebuilder:validation:Required
	GitRepository GitRepository `json:"gitRepository"`
}

func (*Manifests) DeepCopy

func (in *Manifests) DeepCopy() *Manifests

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

func (*Manifests) DeepCopyInto

func (in *Manifests) DeepCopyInto(out *Manifests)

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

type Module

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

	Spec   ModuleSpec   `json:"spec,omitempty"`
	Status ModuleStatus `json:"status,omitempty"`
}

Module is the Schema for the modules API

func (*Module) DeepCopy

func (in *Module) DeepCopy() *Module

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

func (*Module) DeepCopyInto

func (in *Module) DeepCopyInto(out *Module)

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

func (*Module) DeepCopyObject

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

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

func (*Module) GetGitRepository

func (in *Module) GetGitRepository() (*GitRepository, error)

func (*Module) IsSourceReady

func (in *Module) IsSourceReady() bool

func (*Module) IsSourceValid

func (in *Module) IsSourceValid() bool

func (*Module) SetComponents

func (in *Module) SetComponents(components []*Component) bool

func (*Module) SetSourceError

func (in *Module) SetSourceError(reason, message string) bool

func (*Module) SetSourceInvalid

func (in *Module) SetSourceInvalid(reason, message string) bool

func (*Module) SetSourceReady

func (in *Module) SetSourceReady(path string) bool

func (*Module) SetSourceValid

func (in *Module) SetSourceValid(message string) bool

func (*Module) UpdatePhase

func (in *Module) UpdatePhase() bool

type ModuleList

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

ModuleList contains a list of Module

func (*ModuleList) DeepCopy

func (in *ModuleList) DeepCopy() *ModuleList

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

func (*ModuleList) DeepCopyInto

func (in *ModuleList) DeepCopyInto(out *ModuleList)

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

func (*ModuleList) DeepCopyObject

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

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

type ModuleSpec

type ModuleSpec struct {
	// +kubebuilder:validation:Optional
	Manifests *Manifests `json:"manifests,omitempty"`
	// +kubebuilder:validation:Optional
	Kustomization *Kustomization `json:"kustomization,omitempty"`
	// +kubebuilder:validation:Optional
	Helm *Helm `json:"helm,omitempty"`
}

ModuleSpec defines the desired state of Module

func (*ModuleSpec) DeepCopy

func (in *ModuleSpec) DeepCopy() *ModuleSpec

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

func (*ModuleSpec) DeepCopyInto

func (in *ModuleSpec) DeepCopyInto(out *ModuleSpec)

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

type ModuleStatus

type ModuleStatus struct {
	// The phase of a Module is a simple, high-level summary of where the Module is in its lifecycle.
	// +optional
	Phase string `json:"phase,omitempty"`

	// +optional
	Source *Source `json:"source,omitempty"`

	Components []*Component `json:"components,omitempty"`

	// Represents the latest available observations of a Module's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ModuleStatus defines the observed state of Module

func (*ModuleStatus) DeepCopy

func (in *ModuleStatus) DeepCopy() *ModuleStatus

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

func (*ModuleStatus) DeepCopyInto

func (in *ModuleStatus) DeepCopyInto(out *ModuleStatus)

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

type MultipleGitRepositoryError

type MultipleGitRepositoryError struct {
	// contains filtered or unexported fields
}

+kubebuilder:object:generate=false

func (*MultipleGitRepositoryError) Error

type SecretRef

type SecretRef struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

type Source

type Source struct {
	Path string `json:"path,omitempty"`
}

func (*Source) DeepCopy

func (in *Source) DeepCopy() *Source

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

func (*Source) DeepCopyInto

func (in *Source) DeepCopyInto(out *Source)

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