v1alpha1

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the wego.weave.works v1alpha1 API group +kubebuilder:object:generate=true +groupName=wego.weave.works

Index

Constants

View Source
const ApplicationKind = "Application"
View Source
const DefaultNamespace = "wego-system"

Variables

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

func (*Application) IsHelmRepository added in v0.3.1

func (a *Application) IsHelmRepository() bool

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 {
	// ConfigURL is the address of the git repository containing the automation for this application
	ConfigURL string `json:"config_url,omitempty"`
	// URL is the address of the git repository for this application
	URL string `json:"url,omitempty"`
	// Path is the path in the repository where the k8s yaml files for this application are stored.
	Path string `json:"path,omitempty"`
	// Branch is the branch in the repository where the k8s yaml files for this application are stored.
	Branch string `json:"branch,omitempty"`
	// DeploymentType is the deployment method used to apply the manifests
	DeploymentType DeploymentType `json:"deployment_type,omitempty"`
	// SourceType is the type of repository containing the app manifests
	SourceType SourceType `json:"source_type,omitempty"`
	// HelmTargetNamespace is the namespace in which to deploy an added Helm Chart
	HelmTargetNamespace string `json:"helm_target_namespace,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 {
}

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 DeploymentType added in v0.2.1

type DeploymentType string

+kubebuilder:validation:Enum=helm;kustomize

const (
	DeploymentTypeHelm      DeploymentType = "helm"
	DeploymentTypeKustomize DeploymentType = "kustomize"
)

type SourceType added in v0.2.2

type SourceType string

+kubebuilder:validation:Enum=helm;git

const (
	SourceTypeGit  SourceType = "git"
	SourceTypeHelm SourceType = "helm"
)

type SuspendActionType added in v0.2.2

type SuspendActionType string

SuspendAction defines the command run to pause/unpause an application

const (
	SuspendAction SuspendActionType = "suspend"
	ResumeAction  SuspendActionType = "resume"
)

Jump to

Keyboard shortcuts

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