v1alpha1

package
v0.0.0-...-a8de214 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the appstudio v1alpha1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com

Index

Constants

View Source
const (
	// FailedReason is the reason set when the PipelineRun failed
	FailedReason conditions.ConditionReason = "Failed"

	// RejectedReason is the reason set when the InternalRequest is rejected
	RejectedReason conditions.ConditionReason = "Rejected"

	// RunningReason is the reason set when the PipelineRun starts running
	RunningReason conditions.ConditionReason = "Running"

	// SucceededReason is the reason set when the PipelineRun has succeeded
	SucceededReason conditions.ConditionReason = "Succeeded"
)
View Source
const InternalServicesConfigResourceName string = "config"
View Source
const (
	// SucceededConditionType is the type used when setting a status condition
	SucceededConditionType conditions.ConditionType = "Succeeded"
)

Variables

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

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

	Spec   InternalRequestSpec   `json:"spec,omitempty"`
	Status InternalRequestStatus `json:"status,omitempty"`
}

InternalRequest is the Schema for the internalrequests API.

func (*InternalRequest) DeepCopy

func (in *InternalRequest) DeepCopy() *InternalRequest

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

func (*InternalRequest) DeepCopyInto

func (in *InternalRequest) DeepCopyInto(out *InternalRequest)

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

func (*InternalRequest) DeepCopyObject

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

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

func (*InternalRequest) HasCompleted

func (ir *InternalRequest) HasCompleted() bool

HasCompleted checks whether the InternalRequest has been completed.

func (*InternalRequest) HasFailed

func (ir *InternalRequest) HasFailed() bool

HasFailed checks whether the InternalRequest has failed.

func (*InternalRequest) HasSucceeded

func (ir *InternalRequest) HasSucceeded() bool

HasSucceeded checks whether the InternalRequest has succeeded.

func (*InternalRequest) IsRunning

func (ir *InternalRequest) IsRunning() bool

func (*InternalRequest) MarkFailed

func (ir *InternalRequest) MarkFailed(message string)

MarkFailed registers the completion time and changes the Succeeded condition to False with the provided message.

func (*InternalRequest) MarkRejected

func (ir *InternalRequest) MarkRejected(message string)

MarkRejected changes the Succeeded condition to False with the provided reason and message.

func (*InternalRequest) MarkRunning

func (ir *InternalRequest) MarkRunning()

MarkRunning registers the start time and changes the Succeeded condition to Unknown.

func (*InternalRequest) MarkSucceeded

func (ir *InternalRequest) MarkSucceeded()

MarkSucceeded registers the completion time and changes the Succeeded condition to True.

type InternalRequestList

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

InternalRequestList contains a list of InternalRequest.

func (*InternalRequestList) DeepCopy

func (in *InternalRequestList) DeepCopy() *InternalRequestList

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

func (*InternalRequestList) DeepCopyInto

func (in *InternalRequestList) DeepCopyInto(out *InternalRequestList)

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

func (*InternalRequestList) DeepCopyObject

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

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

type InternalRequestSpec

type InternalRequestSpec struct {
	// Request is the name of the internal internalrequest which will be translated into a Tekton pipeline
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	// +required
	Request string `json:"request"`

	// Params is the list of optional parameters to pass to the Tekton pipeline
	// kubebuilder:pruning:PreserveUnknownFields
	// +optional
	Params map[string]string `json:"params,omitempty"`

	// Timeouts defines the different Timeouts to use in the InternalRequest PipelineRun execution
	// +optional
	Timeouts tektonv1beta1.TimeoutFields `json:"timeouts,omitempty"`

	// ServiceAccount defines the serviceAccount to use in the InternalRequest PipelineRun execution.
	// If none is passed, the default Tekton ServiceAccount will be used
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	// +optional
	ServiceAccount string `json:"serviceAccount,omitempty"`
}

InternalRequestSpec defines the desired state of InternalRequest.

func (*InternalRequestSpec) DeepCopy

func (in *InternalRequestSpec) DeepCopy() *InternalRequestSpec

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

func (*InternalRequestSpec) DeepCopyInto

func (in *InternalRequestSpec) DeepCopyInto(out *InternalRequestSpec)

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

type InternalRequestStatus

type InternalRequestStatus struct {
	// StartTime is the time when the InternalRequest PipelineRun was created and set to run
	// +optional
	StartTime *metav1.Time `json:"startTime,omitempty"`

	// CompletionTime is the time the InternalRequest PipelineRun completed
	// +optional
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`

	// Conditions represent the latest available observations for the internalrequest
	// +optional
	Conditions []metav1.Condition `json:"conditions"`

	// Results is the list of optional results as seen in the Tekton PipelineRun
	// kubebuilder:pruning:PreserveUnknownFields
	// +optional
	Results map[string]string `json:"results,omitempty"`
}

InternalRequestStatus defines the observed state of InternalRequest.

func (*InternalRequestStatus) DeepCopy

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

func (*InternalRequestStatus) DeepCopyInto

func (in *InternalRequestStatus) DeepCopyInto(out *InternalRequestStatus)

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

type InternalServicesConfig

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

	Spec   InternalServicesConfigSpec   `json:"spec,omitempty"`
	Status InternalServicesConfigStatus `json:"status,omitempty"`
}

InternalServicesConfig is the Schema for the internalservicesconfigs API

func (*InternalServicesConfig) DeepCopy

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

func (*InternalServicesConfig) DeepCopyInto

func (in *InternalServicesConfig) DeepCopyInto(out *InternalServicesConfig)

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

func (*InternalServicesConfig) DeepCopyObject

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

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

type InternalServicesConfigList

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

InternalServicesConfigList contains a list of InternalServicesConfig.

func (*InternalServicesConfigList) DeepCopy

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

func (*InternalServicesConfigList) DeepCopyInto

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

func (*InternalServicesConfigList) DeepCopyObject

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

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

type InternalServicesConfigSpec

type InternalServicesConfigSpec struct {
	// AllowList is the list of remote namespaces that are allowed to execute InternalRequests
	// +required
	AllowList []string `json:"allowList,omitempty"`

	// Debug sets the operator to run in debug mode. In this mode, PipelineRuns and PVCs will not be removed
	// +optional
	Debug bool `json:"debug,omitempty"`

	// VolumeClaim holds information about the volume to request for Pipelines requiring a workspace
	// +kubebuilder:default={name:"workspace", size:"1Gi"}
	VolumeClaim VolumeClaim `json:"volumeClaim,omitempty"`
}

InternalServicesConfigSpec defines the desired state of InternalServicesConfig.

func (*InternalServicesConfigSpec) DeepCopy

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

func (*InternalServicesConfigSpec) DeepCopyInto

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

type InternalServicesConfigStatus

type InternalServicesConfigStatus struct {
}

InternalServicesConfigStatus defines the observed state of InternalServicesConfig.

func (*InternalServicesConfigStatus) DeepCopy

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

func (*InternalServicesConfigStatus) DeepCopyInto

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

type VolumeClaim

type VolumeClaim struct {
	// Name is the workspace name
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	// +kubebuilder:default="workspace"
	// +optional
	Name string `json:"name,omitempty"`

	// Size is the size that will be requested when a workspace is required by a Pipeline
	// +kubebuilder:validation:Pattern=^[1-9][0-9]*(K|M|G)i$
	// +kubebuilder:default="1Gi"
	Size string `json:"size,omitempty"`
}

func (*VolumeClaim) DeepCopy

func (in *VolumeClaim) DeepCopy() *VolumeClaim

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

func (*VolumeClaim) DeepCopyInto

func (in *VolumeClaim) DeepCopyInto(out *VolumeClaim)

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