v1alpha1

package
v0.62.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=resolution.tekton.dev

Index

Constants

View Source
const ManagedByLabelKey = "app.kubernetes.io/managed-by"

ManagedByLabelKey is the label key used to mark what is managing this resource

Variables

View Source
var (
	// SchemeBuilder builds a scheme with the types known to the package.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme adds the types known to this package to an existing schema.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: resolution.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ResolutionRequest

type ResolutionRequest struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the information for the request part of the resource request.
	// +optional
	Spec ResolutionRequestSpec `json:"spec,omitempty"`

	// Status communicates the state of the request and, ultimately,
	// the content of the resolved resource.
	// +optional
	Status ResolutionRequestStatus `json:"status,omitempty"`
}

ResolutionRequest is an object for requesting the content of a Tekton resource like a pipeline.yaml.

+genclient +genreconciler

func (*ResolutionRequest) ConvertFrom

func (rr *ResolutionRequest) ConvertFrom(ctx context.Context, from apis.Convertible) error

ConvertFrom implements apis.Convertible

func (*ResolutionRequest) ConvertTo

func (rr *ResolutionRequest) ConvertTo(ctx context.Context, sink apis.Convertible) error

ConvertTo implements apis.Convertible

func (*ResolutionRequest) DeepCopy

func (in *ResolutionRequest) DeepCopy() *ResolutionRequest

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

func (*ResolutionRequest) DeepCopyInto

func (in *ResolutionRequest) DeepCopyInto(out *ResolutionRequest)

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

func (*ResolutionRequest) DeepCopyObject

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

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

func (*ResolutionRequest) GetConditionSet

func (*ResolutionRequest) GetConditionSet() apis.ConditionSet

GetConditionSet implements KRShaped.

func (*ResolutionRequest) GetGroupVersionKind

func (*ResolutionRequest) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable.

func (*ResolutionRequest) GetStatus

func (rr *ResolutionRequest) GetStatus() *duckv1.Status

GetStatus implements KRShaped.

func (*ResolutionRequest) HasStarted

func (rr *ResolutionRequest) HasStarted() bool

HasStarted returns whether a ResolutionRequests Status is considered to be in-progress.

func (*ResolutionRequest) IsDone

func (rr *ResolutionRequest) IsDone() bool

IsDone returns whether a ResolutionRequests Status is considered to be in a completed state, independent of success/failure.

func (*ResolutionRequest) SetDefaults

func (rr *ResolutionRequest) SetDefaults(ctx context.Context)

SetDefaults walks a ResolutionRequest object and sets any default values that are required to be set before a reconciler sees it.

func (*ResolutionRequest) Validate

func (rr *ResolutionRequest) Validate(ctx context.Context) (errs *apis.FieldError)

Validate checks that a submitted ResolutionRequest is structurally sound before the controller receives it.

type ResolutionRequestList

type ResolutionRequestList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata"`
	Items           []ResolutionRequest `json:"items"`
}

ResolutionRequestList is a list of ResolutionRequests.

func (*ResolutionRequestList) DeepCopy

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

func (*ResolutionRequestList) DeepCopyInto

func (in *ResolutionRequestList) DeepCopyInto(out *ResolutionRequestList)

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

func (*ResolutionRequestList) DeepCopyObject

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

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

type ResolutionRequestSpec

type ResolutionRequestSpec struct {
	// Parameters are the runtime attributes passed to
	// the resolver to help it figure out how to resolve the
	// resource being requested. For example: repo URL, commit SHA,
	// path to file, the kind of authentication to leverage, etc.
	// +optional
	Parameters map[string]string `json:"params,omitempty"`
}

ResolutionRequestSpec are all the fields in the spec of the ResolutionRequest CRD.

func (*ResolutionRequestSpec) ConvertFrom

ConvertFrom converts a v1beta1.ResolutionRequestSpec to a v1alpha1.ResolutionRequestSpec

func (*ResolutionRequestSpec) ConvertTo

ConvertTo converts a v1alpha1.ResolutionRequestSpec to a v1beta1.ResolutionRequestSpec

func (*ResolutionRequestSpec) DeepCopy

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

func (*ResolutionRequestSpec) DeepCopyInto

func (in *ResolutionRequestSpec) DeepCopyInto(out *ResolutionRequestSpec)

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

func (*ResolutionRequestSpec) Validate

func (rs *ResolutionRequestSpec) Validate(ctx context.Context) (errs *apis.FieldError)

Validate checks the spec field of a ResolutionRequest is valid.

type ResolutionRequestStatus

type ResolutionRequestStatus struct {
	duckv1.Status                 `json:",inline"`
	ResolutionRequestStatusFields `json:",inline"`
}

ResolutionRequestStatus are all the fields in a ResolutionRequest's status subresource.

func (*ResolutionRequestStatus) DeepCopy

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

func (*ResolutionRequestStatus) DeepCopyInto

func (in *ResolutionRequestStatus) DeepCopyInto(out *ResolutionRequestStatus)

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

func (*ResolutionRequestStatus) InitializeConditions

func (s *ResolutionRequestStatus) InitializeConditions()

InitializeConditions set ths initial values of the conditions.

func (*ResolutionRequestStatus) MarkFailed

func (s *ResolutionRequestStatus) MarkFailed(reason, message string)

MarkFailed sets the Succeeded condition to False with an accompanying error message.

func (*ResolutionRequestStatus) MarkInProgress

func (s *ResolutionRequestStatus) MarkInProgress(message string)

MarkInProgress updates the Succeeded condition to Unknown with an accompanying message.

func (*ResolutionRequestStatus) MarkSucceeded

func (s *ResolutionRequestStatus) MarkSucceeded()

MarkSucceeded sets the Succeeded condition to True.

type ResolutionRequestStatusFields

type ResolutionRequestStatusFields struct {
	// Data is a string representation of the resolved content
	// of the requested resource in-lined into the ResolutionRequest
	// object.
	Data string `json:"data"`
	// RefSource is the source reference of the remote data that records where the remote
	// file came from including the url, digest and the entrypoint.
	RefSource *pipelinev1.RefSource `json:"refSource"`
}

ResolutionRequestStatusFields are the ResolutionRequest-specific fields for the status subresource.

func (*ResolutionRequestStatusFields) DeepCopy

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

func (*ResolutionRequestStatusFields) DeepCopyInto

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