v1alpha1

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group +kubebuilder:object:generate=true +groupName=pipeline.jquad.rocks

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "pipeline.jquad.rocks", 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 Branch added in v0.2.0

type Branch struct {
	Name              string `json:"name"`
	Commit            string `json:"commit,omitempty"`
	LatestPipelineRun string `json:"latestPipelineRun,omitempty"`
	Details           string `json:"details,omitempty"`
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*Branch) AddOrReplaceCondition added in v0.2.0

func (branch *Branch) AddOrReplaceCondition(c metav1.Condition)

func (*Branch) DeepCopy added in v0.2.0

func (in *Branch) DeepCopy() *Branch

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

func (*Branch) DeepCopyInto added in v0.2.0

func (in *Branch) DeepCopyInto(out *Branch)

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

func (*Branch) Equals added in v0.2.0

func (currentBranch *Branch) Equals(newBranch Branch) bool

func (*Branch) GenerateBranchLabelsAsHash added in v0.2.0

func (currentBranch *Branch) GenerateBranchLabelsAsHash() map[string]string

func (*Branch) GenerateBranchLabelsAsString added in v0.2.0

func (currentBranch *Branch) GenerateBranchLabelsAsString() string

func (*Branch) GetBranch added in v0.2.0

func (currentBranch *Branch) GetBranch(jqBranch pullrequestv1alpha1.Branch)

func (*Branch) GetCondition added in v0.2.0

func (branch *Branch) GetCondition(conditionType string) (metav1.Condition, bool)

func (*Branch) GetLastCondition added in v0.3.3

func (branch *Branch) GetLastCondition() metav1.Condition

GetLastCondition retruns the last condition based on the condition timestamp. if no condition is present it return false.

func (*Branch) Rewrite added in v0.2.0

func (currentBranch *Branch) Rewrite() string

type Branches added in v0.2.0

type Branches struct {
	// +kubebuilder:validation:Optional
	Branches map[string]Branch `json:"branch,omitempty"`
}

func (*Branches) DeepCopy added in v0.2.0

func (in *Branches) DeepCopy() *Branches

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

func (*Branches) DeepCopyInto added in v0.2.0

func (in *Branches) DeepCopyInto(out *Branches)

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

func (*Branches) Equals added in v0.2.0

func (branches *Branches) Equals(newBranch Branch) bool

func (*Branches) GenerateLabelsAsString added in v0.2.0

func (branches *Branches) GenerateLabelsAsString() []string

func (*Branches) GetPrBranches added in v0.2.0

func (branches *Branches) GetPrBranches(prBranches pullrequestv1alpha1.Branches)

func (*Branches) GetSize added in v0.2.0

func (branches *Branches) GetSize() int

type GitRepository added in v0.2.0

type GitRepository struct {
	// +kubebuilder:validation:Required
	BranchName string `json:"branchName,omitempty"`

	// +kubebuilder:validation:Required
	CommitId string `json:"commitId,omitempty"`

	// +kubebuilder:validation:Required
	RepositoryName string `json:"repositoryName,omitempty"`

	// +kubebuilder:validation:Required
	LatestPipelineRun string `json:"latestPipelineRun,omitempty"`

	Details string `json:"details,omitempty"`

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

func (*GitRepository) AddOrReplaceCondition added in v0.2.0

func (gitRepository *GitRepository) AddOrReplaceCondition(c metav1.Condition)

func (*GitRepository) DeepCopy added in v0.2.0

func (in *GitRepository) DeepCopy() *GitRepository

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

func (*GitRepository) DeepCopyInto added in v0.2.0

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

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

func (*GitRepository) Equals added in v0.2.0

func (currentGitRepository *GitRepository) Equals(newGitRepository GitRepository) bool

func (*GitRepository) GenerateDetails added in v0.2.0

func (gitRepository *GitRepository) GenerateDetails()

func (*GitRepository) GenerateGitRepositoryLabelsAsHash added in v0.2.0

func (currentGitRepository *GitRepository) GenerateGitRepositoryLabelsAsHash() map[string]string

func (*GitRepository) GenerateGitRepositoryLabelsAsString added in v0.2.0

func (currentGitRepository *GitRepository) GenerateGitRepositoryLabelsAsString() string

func (*GitRepository) GetCondition added in v0.2.0

func (gitRepository *GitRepository) GetCondition(conditionType string) (metav1.Condition, bool)

func (*GitRepository) GetGitRepository added in v0.2.0

func (gitRepository *GitRepository) GetGitRepository(fluxGitRepository sourcev1.GitRepository)

func (*GitRepository) GetLastCondition added in v0.3.3

func (gitRepository *GitRepository) GetLastCondition() metav1.Condition

GetLastCondition retruns the last condition based on the condition timestamp. if no condition is present it return false.

func (*GitRepository) Rewrite added in v0.2.0

func (gitRepository *GitRepository) Rewrite() string

type ImagePolicy added in v0.2.0

type ImagePolicy struct {

	// +kubebuilder:validation:Required
	RepositoryName string `json:"repositoryName,omitempty"`

	// +kubebuilder:validation:Required
	ImageName string `json:"imageName,omitempty"`

	// +kubebuilder:validation:Required
	ImageVersion string `json:"imageVersion,omitempty"`

	// +kubebuilder:validation:Required
	LatestPipelineRun string `json:"latestPipelineRun,omitempty"`

	Details string `json:"details,omitempty"`

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

func (*ImagePolicy) AddOrReplaceCondition added in v0.2.0

func (imagePolicy *ImagePolicy) AddOrReplaceCondition(c metav1.Condition)

func (*ImagePolicy) DeepCopy added in v0.2.0

func (in *ImagePolicy) DeepCopy() *ImagePolicy

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

func (*ImagePolicy) DeepCopyInto added in v0.2.0

func (in *ImagePolicy) DeepCopyInto(out *ImagePolicy)

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

func (*ImagePolicy) Equals added in v0.2.0

func (currentImagePolicy *ImagePolicy) Equals(newImagePolicy ImagePolicy) bool

func (*ImagePolicy) GenerateDetails added in v0.2.0

func (imagePolicy *ImagePolicy) GenerateDetails()

func (*ImagePolicy) GenerateImagePolicyLabelsAsHash added in v0.2.0

func (currentImagePolicy *ImagePolicy) GenerateImagePolicyLabelsAsHash() map[string]string

func (*ImagePolicy) GenerateImagePolicyLabelsAsString added in v0.2.0

func (currentImagePolicy *ImagePolicy) GenerateImagePolicyLabelsAsString() string

func (*ImagePolicy) GetCondition added in v0.2.0

func (imagePolicy *ImagePolicy) GetCondition(conditionType string) (metav1.Condition, bool)

func (*ImagePolicy) GetImagePolicy added in v0.2.0

func (imagePolicy *ImagePolicy) GetImagePolicy(fluxImagePolicy imagereflectorv1.ImagePolicy)

func (*ImagePolicy) GetLastCondition added in v0.3.3

func (imagePolicy *ImagePolicy) GetLastCondition() metav1.Condition

GetLastCondition retruns the last condition based on the condition timestamp. if no condition is present it return false.

func (*ImagePolicy) Rewrite added in v0.2.0

func (imagePolicy *ImagePolicy) Rewrite() string

type PipelineTrigger

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

	Spec PipelineTriggerSpec `json:"spec,omitempty"`

	Status PipelineTriggerStatus `json:"status,omitempty"`
}

PipelineTrigger is the Schema for the pipelinetriggers API

func (*PipelineTrigger) AddOrReplaceCondition added in v0.1.5

func (m *PipelineTrigger) AddOrReplaceCondition(c metav1.Condition)

func (*PipelineTrigger) CreatePipelineRunResource added in v0.3.0

func (pipelineTrigger *PipelineTrigger) CreatePipelineRunResource() *tektondevv1.PipelineRun

func (*PipelineTrigger) CreatePipelineRunResourceForBranch added in v0.3.0

func (pipelineTrigger *PipelineTrigger) CreatePipelineRunResourceForBranch(currentBranch Branch, labels map[string]string) *tektondevv1.PipelineRun

func (*PipelineTrigger) DeepCopy

func (in *PipelineTrigger) DeepCopy() *PipelineTrigger

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

func (*PipelineTrigger) DeepCopyInto

func (in *PipelineTrigger) DeepCopyInto(out *PipelineTrigger)

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

func (*PipelineTrigger) DeepCopyObject

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

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

func (*PipelineTrigger) GetCondition added in v0.1.5

func (m *PipelineTrigger) GetCondition(conditionType string) (metav1.Condition, bool)

func (*PipelineTrigger) GetConditions

func (m *PipelineTrigger) GetConditions() []metav1.Condition

func (*PipelineTrigger) GetLastCondition added in v0.1.5

func (m *PipelineTrigger) GetLastCondition() metav1.Condition

GetLastCondition retruns the last condition based on the condition timestamp. if no condition is present it return false.

func (*PipelineTrigger) ReplaceCondition added in v0.1.5

func (m *PipelineTrigger) ReplaceCondition(c metav1.Condition)

func (*PipelineTrigger) SetConditions

func (m *PipelineTrigger) SetConditions(conditions []metav1.Condition)

func (*PipelineTrigger) StartPipelineRun added in v0.2.0

func (pipelineTrigger *PipelineTrigger) StartPipelineRun(pr *tektondevv1.PipelineRun, ctx context.Context, req ctrl.Request, tektonClient client.Client) (string, *tektondevv1.PipelineRun)

type PipelineTriggerList

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

PipelineTriggerList contains a list of PipelineTrigger

func (*PipelineTriggerList) DeepCopy

func (in *PipelineTriggerList) DeepCopy() *PipelineTriggerList

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

func (*PipelineTriggerList) DeepCopyInto

func (in *PipelineTriggerList) DeepCopyInto(out *PipelineTriggerList)

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

func (*PipelineTriggerList) DeepCopyObject

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

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

type PipelineTriggerSpec

type PipelineTriggerSpec struct {
	// Source points at the object specifying the Image Policy, Git Repository or Pull Request found
	// +kubebuilder:validation:Required
	Source Source `json:"source"`

	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	PipelineRunSpec tektondevv1.PipelineRunSpec `json:"pipelineRunSpec"`
}

PipelineTriggerSpec defines the desired state of PipelineTrigger

func (*PipelineTriggerSpec) DeepCopy

func (in *PipelineTriggerSpec) DeepCopy() *PipelineTriggerSpec

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

func (*PipelineTriggerSpec) DeepCopyInto

func (in *PipelineTriggerSpec) DeepCopyInto(out *PipelineTriggerSpec)

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

type PipelineTriggerStatus

type PipelineTriggerStatus struct {
	// +kubebuilder:validation:Optional
	ImagePolicy ImagePolicy `json:"imagePolicy,omitempty"`

	// +kubebuilder:validation:Optional
	GitRepository GitRepository `json:"gitRepository,omitempty"`

	// +kubebuilder:validation:Optional
	Branches Branches `json:"branches,omitempty"`

	// https://github.com/kubernetes-sigs/cli-utils/blob/master/pkg/kstatus/README.md
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

PipelineTriggerStatus defines the observed state of PipelineTrigger

func (*PipelineTriggerStatus) DeepCopy

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

func (*PipelineTriggerStatus) DeepCopyInto

func (in *PipelineTriggerStatus) DeepCopyInto(out *PipelineTriggerStatus)

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

type Source

type Source struct {
	// Kind of the source refernce.
	// +kubebuilder:validation:Enum=ImagePolicy;GitRepository;PullRequest
	// +kubebuilder:validation:Required
	Kind string `json:"kind"`

	// Name of the source reference.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:Required
	Name string `json:"name"`
}

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