v1alpha1

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software

Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software

Index

Constants

View Source
const (
	// SnapshotGetFailedReason is used when the needed snapshot does not exist.
	SnapshotGetFailedReason = "SnapshotGetFailed"

	// RepositoryGetFailedReason is used when the needed repository does not exist.
	RepositoryGetFailedReason = "RepositoryGetFailed"

	// CredentialsNotFoundReason is used when the needed authentication does not exist.
	CredentialsNotFoundReason = "CredentialsNotFound"

	// GitRepositoryPushFailedReason is used when the needed pushing to a git repository failed.
	GitRepositoryPushFailedReason = "GitRepositoryPushFailed"

	// CreatePullRequestFailedReason is used when creating a pull request failed.
	CreatePullRequestFailedReason = "CreatePullRequestFailed"
)
View Source
const (
	LevelDebug = 4
)
View Source
const (
	// StatusCheckName defines the name of the check a PullRequest will have.
	StatusCheckName = "mpas/validation-check"
)

Variables

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

type CommitTemplate struct {
	Name    string `json:"name"`
	Email   string `json:"email"`
	Message string `json:"message"`

	//+optional
	TargetBranch string `json:"targetBranch,omitempty"`
	//+optional
	//+kubebuilder:default:=main
	BaseBranch string `json:"baseBranch,omitempty"`
}

CommitTemplate defines the details of the commit to the external repository.

func (*CommitTemplate) DeepCopy

func (in *CommitTemplate) DeepCopy() *CommitTemplate

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

func (*CommitTemplate) DeepCopyInto

func (in *CommitTemplate) DeepCopyInto(out *CommitTemplate)

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

type PullRequestTemplate

type PullRequestTemplate struct {
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
	Base        string `json:"base,omitempty"`
}

PullRequestTemplate provides information for the created pull request.

func (*PullRequestTemplate) DeepCopy

func (in *PullRequestTemplate) DeepCopy() *PullRequestTemplate

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

func (*PullRequestTemplate) DeepCopyInto

func (in *PullRequestTemplate) DeepCopyInto(out *PullRequestTemplate)

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

type Sync

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

	Spec   SyncSpec   `json:"spec,omitempty"`
	Status SyncStatus `json:"status,omitempty"`
}

Sync is the Schema for the syncs API.

func (*Sync) DeepCopy

func (in *Sync) DeepCopy() *Sync

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

func (*Sync) DeepCopyInto

func (in *Sync) DeepCopyInto(out *Sync)

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

func (*Sync) DeepCopyObject

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

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

func (*Sync) GetConditions

func (in *Sync) GetConditions() []metav1.Condition

GetConditions returns the conditions of the ComponentVersion.

func (Sync) GetRequeueAfter

func (in Sync) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.

func (*Sync) GetVID added in v0.10.0

func (in *Sync) GetVID() map[string]string

func (*Sync) SetConditions

func (in *Sync) SetConditions(conditions []metav1.Condition)

SetConditions sets the conditions of the ComponentVersion.

func (*Sync) SetObservedGeneration added in v0.10.0

func (in *Sync) SetObservedGeneration(v int64)

type SyncList

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

SyncList contains a list of Sync.

func (*SyncList) DeepCopy

func (in *SyncList) DeepCopy() *SyncList

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

func (*SyncList) DeepCopyInto

func (in *SyncList) DeepCopyInto(out *SyncList)

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

func (*SyncList) DeepCopyObject

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

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

type SyncSpec

type SyncSpec struct {
	SnapshotRef    v1.LocalObjectReference        `json:"snapshotRef"`
	RepositoryRef  meta.NamespacedObjectReference `json:"repositoryRef"`
	Interval       metav1.Duration                `json:"interval"`
	CommitTemplate CommitTemplate                 `json:"commitTemplate"`
	SubPath        string                         `json:"subPath"`
	Prune          bool                           `json:"prune,omitempty"`

	//+optional
	AutomaticPullRequestCreation bool `json:"automaticPullRequestCreation,omitempty"`
	//+optional
	PullRequestTemplate PullRequestTemplate `json:"pullRequestTemplate,omitempty"`
}

SyncSpec defines the desired state of Sync.

func (*SyncSpec) DeepCopy

func (in *SyncSpec) DeepCopy() *SyncSpec

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

func (*SyncSpec) DeepCopyInto

func (in *SyncSpec) DeepCopyInto(out *SyncSpec)

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

type SyncStatus

type SyncStatus struct {
	Digest string `json:"digest,omitempty"`

	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
	// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// +optional
	PullRequestID int `json:"pullRequestID,omitempty"`
}

SyncStatus defines the observed state of Sync.

func (*SyncStatus) DeepCopy

func (in *SyncStatus) DeepCopy() *SyncStatus

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

func (*SyncStatus) DeepCopyInto

func (in *SyncStatus) DeepCopyInto(out *SyncStatus)

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