Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the deploy v1alpha1 API group +kubebuilder:object:generate=true +groupName=deploy.charlescd.io
Index ¶
- Constants
- Variables
- type Component
- type Container
- type GitRef
- type GitRepository
- type Helm
- type HelmChart
- type HelmRepository
- type Kustomization
- type Manifests
- type Module
- func (in *Module) DeepCopy() *Module
- func (in *Module) DeepCopyInto(out *Module)
- func (in *Module) DeepCopyObject() runtime.Object
- func (in *Module) GetGitRepository() (*GitRepository, error)
- func (in *Module) IsSourceReady() bool
- func (in *Module) IsSourceValid() bool
- func (in *Module) SetComponents(components []*Component) bool
- func (in *Module) SetSourceError(reason, message string) bool
- func (in *Module) SetSourceInvalid(reason, message string) bool
- func (in *Module) SetSourceReady(path string) bool
- func (in *Module) SetSourceValid(message string) bool
- func (in *Module) UpdatePhase() bool
- type ModuleList
- type ModuleSpec
- type ModuleStatus
- type MultipleGitRepositoryError
- type SecretRef
- type Source
Constants ¶
const ( SourceReady string = "SourceReady" SourceValid = "SourceValid" )
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Container ¶
func (*Container) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Container.
func (*Container) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.
func (*GitRef) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Helm.
func (*Helm) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChart.
func (*HelmChart) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifests.
func (*Manifests) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Module.
func (*Module) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Module) DeepCopyObject ¶
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 (*Module) IsSourceValid ¶
func (*Module) SetComponents ¶
func (*Module) SetSourceError ¶
func (*Module) SetSourceInvalid ¶
func (*Module) SetSourceReady ¶
func (*Module) SetSourceValid ¶
func (*Module) UpdatePhase ¶
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 ¶
func (e *MultipleGitRepositoryError) Error() string
type SecretRef ¶
type SecretRef struct { // +kubebuilder:validation:Required Name string `json:"name"` }
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.