v1

package
v0.0.0-...-03eeb13 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the devbot.kfirs.com v1 API group +kubebuilder:object:generate=true +groupName=devbot.kfirs.com

Index

Constants

View Source
const (
	UseDefaultBranchStrategy = "UseDefaultBranch"
	IgnoreStrategy           = "Ignore"
)
View Source
const (
	ControllerNotAccessible    = "ControllerNotAccessible"
	ControllerNotFound         = "ControllerNotFound"
	ControllerReferenceMissing = "ControllerReferenceMissing"
	FinalizationFailed         = "FinalizationFailed"
	FinalizerRemovalFailed     = "FinalizerRemovalFailed"
	InProgress                 = "InProgress"
	InternalError              = "InternalError"
)
View Source
const (
	Domain                       = "devbot.kfirs.com"
	Version                      = "v1"
	MinRepositoryRefreshInterval = 5 * time.Second
)
View Source
const (
	ApplyFailed                    = "ApplyFailed"
	Applying                       = "Applying"
	AuthConfigMissing              = "AuthConfigMissing"
	AuthSecretForbidden            = "AuthSecretForbidden"
	AuthSecretKeyMissing           = "AuthSecretKeyMissing"
	AuthSecretKeyNotFound          = "AuthSecretKeyNotFound"
	AuthSecretNameMissing          = "AuthSecretNameMissing"
	AuthSecretNotFound             = "AuthSecretNotFound"
	AuthTokenEmpty                 = "AuthTokenEmpty"
	Authenticated                  = "Authenticated"
	AuthenticationFailed           = "AuthenticationFailed"
	Baking                         = "Baking"
	BakingFailed                   = "BakingFailed"
	BranchNotFound                 = "BranchNotFound"
	BranchesOutOfSync              = "BranchesOutOfSync"
	CloneFailed                    = "CloneFailed"
	Cloning                        = "Cloning"
	Current                        = "Current"
	DefaultBranchOutOfSync         = "DefaultBranchOutOfSync"
	DeploymentsAreStale            = "DeploymentsAreStale"
	EnvironmentsAreStale           = "EnvironmentsAreStale"
	FailedCreatingDeployment       = "FailedCreatingDeployment"
	FailedDeletingDeployment       = "FailedDeletingDeployment"
	FailedToInitialize             = "FailedToInitialize"
	Finalized                      = "Finalized"
	Finalizing                     = "Finalizing"
	Initialized                    = "Initialized"
	Invalid                        = "Invalid"
	InvalidBranchSpecification     = "InvalidBranchSpecification"
	InvalidRefreshInterval         = "InvalidRefreshInterval"
	PersistentVolumeCreationFailed = "PersistentVolumeCreationFailed"
	PersistentVolumeMissing        = "PersistentVolumeMissing"
	RepositoryNameMissing          = "RepositoryNameMissing"
	RepositoryNotAccessible        = "RepositoryNotAccessible"
	RepositoryNotFound             = "RepositoryNotFound"
	RepositoryNotSupported         = "RepositoryNotSupported"
	RepositoryOwnerMissing         = "RepositoryOwnerMissing"
	Stale                          = "Stale"
	Unauthenticated                = "Unauthenticated"
	UnknownRepositoryType          = "UnknownRepositoryType"
	Valid                          = "Valid"
	WebhookSecretEmpty             = "WebhookSecretEmpty"
	WebhookSecretForbidden         = "WebhookSecretForbidden"
	WebhookSecretKeyMissing        = "WebhookSecretKeyMissing"
	WebhookSecretKeyNotFound       = "WebhookSecretKeyNotFound"
	WebhookSecretNameMissing       = "WebhookSecretNameMissing"
	WebhookSecretNotFound          = "WebhookSecretNotFound"
	WebhooksNotEnabled             = "WebhooksNotEnabled"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: Domain, Version: Version}

	// 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
)
View Source
var (
	ApplicationGVK = schema.GroupVersionKind{Group: Domain, Version: Version, Kind: "Application"}
	EnvironmentGVK = schema.GroupVersionKind{Group: Domain, Version: Version, Kind: "Environment"}
	DeploymentGVK  = schema.GroupVersionKind{Group: Domain, Version: Version, Kind: "Deployment"}
	RepositoryGVK  = schema.GroupVersionKind{Group: Domain, Version: Version, Kind: "Repository"}
)

Functions

This section is empty.

Types

type Application

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

	// Spec is the desired state of the Application.
	// +required
	// +kubebuilder:validation:Required
	Spec ApplicationSpec `json:"spec"`

	// Status is the observed state of the Application.
	// +kubebuilder:validation:Optional
	Status ApplicationStatus `json:"status,omitempty"`
}

Application represents a single application, optionally spanning multiple repositories (or a single one) and manages multiple deployment environments, as deducted from the different branches in said repositories. +kubebuilder:object:root=true +kubebuilder:subresource:status +condition:commons +condition:Current,Stale:EnvironmentsAreStale,InternalError,RepositoryNotAccessible,RepositoryNotFound +condition:Valid,Invalid:InvalidBranchSpecification +kubebuilder:printcolumn:name="Service Account",type=string,JSONPath=`.spec.serviceAccountName` +kubebuilder:printcolumn:name="Valid",type=string,JSONPath=`.status.privateArea.Valid` +kubebuilder:printcolumn:name="Current",type=string,JSONPath=`.status.privateArea.Current`

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.

type ApplicationList

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

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 {

	// Repositories is a list of repositories to be deployed as part of this application.
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:Required
	Repositories []ApplicationSpecRepository `json:"repositories"`

	// ServiceAccountName is the name of the service account used by the deployment apply job.
	// +required
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Required
	ServiceAccountName string `json:"serviceAccountName"`

	// List of branch regular expressions to track in the participating repositories. Only branches matching one of the
	// expressions listed here will be considered for deployment. If no expressions are provided, all branches will be
	// tracked.
	// +kubebuilder:validation:Optional
	Branches []string `json:"branches,omitempty"`
}

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 ApplicationSpecRepository

type ApplicationSpecRepository struct {
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	Namespace string `json:"namespace,omitempty"`

	// +kubebuilder:default=deploy
	// +kubebuilder:validation:Optional
	Path string `json:"path,omitempty"`

	// MissingBranchStrategy defines what to do when the desired branch of an environment is missing in this repository.
	// If "UseDefaultBranch" is set, then instead of the desired branch the default branch of the repository is used.
	// If "Ignore" is set, then the repository is ignored and not deployed to the application environment.
	// +kubebuilder:default=UseDefaultBranch
	// +kubebuilder:validation:Enum=Ignore;UseDefaultBranch
	MissingBranchStrategy string `json:"missingBranchStrategy,omitempty"`
}

func (*ApplicationSpecRepository) DeepCopy

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

func (*ApplicationSpecRepository) DeepCopyInto

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

func (*ApplicationSpecRepository) GetObjectKey

func (in *ApplicationSpecRepository) GetObjectKey(defaultNamespace string) client.ObjectKey

type ApplicationStatus

type ApplicationStatus struct {

	// Conditions represent the latest available observations of the application's state.
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// PrivateArea is not meant for public consumption, nor is it part of the public API. It is exposed due to Go and
	// controller-runtime limitations but is an internal part of the implementation.
	PrivateArea ConditionsInverseState `json:"privateArea,omitempty"`
}

func (*ApplicationStatus) ClearStaleConditions

func (s *ApplicationStatus) ClearStaleConditions(currentGeneration int64)

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.

func (*ApplicationStatus) GetCondition

func (s *ApplicationStatus) GetCondition(conditionType string) *v1.Condition

func (*ApplicationStatus) GetConditions

func (s *ApplicationStatus) GetConditions() []v1.Condition

func (*ApplicationStatus) GetFailedToInitializeCondition

func (s *ApplicationStatus) GetFailedToInitializeCondition() *v1.Condition

func (*ApplicationStatus) GetFailedToInitializeMessage

func (s *ApplicationStatus) GetFailedToInitializeMessage() string

func (*ApplicationStatus) GetFailedToInitializeReason

func (s *ApplicationStatus) GetFailedToInitializeReason() string

func (*ApplicationStatus) GetFailedToInitializeStatus

func (s *ApplicationStatus) GetFailedToInitializeStatus() *v1.ConditionStatus

func (*ApplicationStatus) GetFinalizingCondition

func (s *ApplicationStatus) GetFinalizingCondition() *v1.Condition

func (*ApplicationStatus) GetFinalizingMessage

func (s *ApplicationStatus) GetFinalizingMessage() string

func (*ApplicationStatus) GetFinalizingReason

func (s *ApplicationStatus) GetFinalizingReason() string

func (*ApplicationStatus) GetFinalizingStatus

func (s *ApplicationStatus) GetFinalizingStatus() *v1.ConditionStatus

func (*ApplicationStatus) GetInvalidCondition

func (s *ApplicationStatus) GetInvalidCondition() *v1.Condition

func (*ApplicationStatus) GetInvalidMessage

func (s *ApplicationStatus) GetInvalidMessage() string

func (*ApplicationStatus) GetInvalidReason

func (s *ApplicationStatus) GetInvalidReason() string

func (*ApplicationStatus) GetInvalidStatus

func (s *ApplicationStatus) GetInvalidStatus() *v1.ConditionStatus

func (*ApplicationStatus) GetStaleCondition

func (s *ApplicationStatus) GetStaleCondition() *v1.Condition

func (*ApplicationStatus) GetStaleMessage

func (s *ApplicationStatus) GetStaleMessage() string

func (*ApplicationStatus) GetStaleReason

func (s *ApplicationStatus) GetStaleReason() string

func (*ApplicationStatus) GetStaleStatus

func (s *ApplicationStatus) GetStaleStatus() *v1.ConditionStatus

func (*ApplicationStatus) IsCurrent

func (s *ApplicationStatus) IsCurrent() bool

func (*ApplicationStatus) IsFailedToInitialize

func (s *ApplicationStatus) IsFailedToInitialize() bool

func (*ApplicationStatus) IsFinalized

func (s *ApplicationStatus) IsFinalized() bool

func (*ApplicationStatus) IsFinalizing

func (s *ApplicationStatus) IsFinalizing() bool

func (*ApplicationStatus) IsInitialized

func (s *ApplicationStatus) IsInitialized() bool

func (*ApplicationStatus) IsInvalid

func (s *ApplicationStatus) IsInvalid() bool

func (*ApplicationStatus) IsStale

func (s *ApplicationStatus) IsStale() bool

func (*ApplicationStatus) IsValid

func (s *ApplicationStatus) IsValid() bool

func (*ApplicationStatus) SetCurrent

func (s *ApplicationStatus) SetCurrent() bool

func (*ApplicationStatus) SetCurrentIfStaleDueToAnyOf

func (s *ApplicationStatus) SetCurrentIfStaleDueToAnyOf(reasons ...string) bool

func (*ApplicationStatus) SetFailedToInitializeDueToInternalError

func (s *ApplicationStatus) SetFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*ApplicationStatus) SetFinalized

func (s *ApplicationStatus) SetFinalized() bool

func (*ApplicationStatus) SetFinalizedIfFinalizingDueToAnyOf

func (s *ApplicationStatus) SetFinalizedIfFinalizingDueToAnyOf(reasons ...string) bool

func (*ApplicationStatus) SetFinalizingDueToFinalizationFailed

func (s *ApplicationStatus) SetFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*ApplicationStatus) SetFinalizingDueToFinalizerRemovalFailed

func (s *ApplicationStatus) SetFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*ApplicationStatus) SetFinalizingDueToInProgress

func (s *ApplicationStatus) SetFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*ApplicationStatus) SetGenerationAndTransitionTime

func (s *ApplicationStatus) SetGenerationAndTransitionTime(generation int64)

func (*ApplicationStatus) SetInitialized

func (s *ApplicationStatus) SetInitialized() bool

func (*ApplicationStatus) SetInitializedIfFailedToInitializeDueToAnyOf

func (s *ApplicationStatus) SetInitializedIfFailedToInitializeDueToAnyOf(reasons ...string) bool

func (*ApplicationStatus) SetInvalidDueToControllerNotAccessible

func (s *ApplicationStatus) SetInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*ApplicationStatus) SetInvalidDueToControllerNotFound

func (s *ApplicationStatus) SetInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*ApplicationStatus) SetInvalidDueToControllerReferenceMissing

func (s *ApplicationStatus) SetInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*ApplicationStatus) SetInvalidDueToInternalError

func (s *ApplicationStatus) SetInvalidDueToInternalError(message string, args ...interface{}) bool

func (*ApplicationStatus) SetInvalidDueToInvalidBranchSpecification

func (s *ApplicationStatus) SetInvalidDueToInvalidBranchSpecification(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeFailedToInitializeDueToInternalError

func (s *ApplicationStatus) SetMaybeFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeFinalizingDueToFinalizationFailed

func (s *ApplicationStatus) SetMaybeFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed

func (s *ApplicationStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeFinalizingDueToInProgress

func (s *ApplicationStatus) SetMaybeFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeInvalidDueToControllerNotAccessible

func (s *ApplicationStatus) SetMaybeInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeInvalidDueToControllerNotFound

func (s *ApplicationStatus) SetMaybeInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeInvalidDueToControllerReferenceMissing

func (s *ApplicationStatus) SetMaybeInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeInvalidDueToInternalError

func (s *ApplicationStatus) SetMaybeInvalidDueToInternalError(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeInvalidDueToInvalidBranchSpecification

func (s *ApplicationStatus) SetMaybeInvalidDueToInvalidBranchSpecification(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeStaleDueToEnvironmentsAreStale

func (s *ApplicationStatus) SetMaybeStaleDueToEnvironmentsAreStale(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeStaleDueToInternalError

func (s *ApplicationStatus) SetMaybeStaleDueToInternalError(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeStaleDueToRepositoryNotAccessible

func (s *ApplicationStatus) SetMaybeStaleDueToRepositoryNotAccessible(message string, args ...interface{}) bool

func (*ApplicationStatus) SetMaybeStaleDueToRepositoryNotFound

func (s *ApplicationStatus) SetMaybeStaleDueToRepositoryNotFound(message string, args ...interface{}) bool

func (*ApplicationStatus) SetStaleDueToEnvironmentsAreStale

func (s *ApplicationStatus) SetStaleDueToEnvironmentsAreStale(message string, args ...interface{}) bool

func (*ApplicationStatus) SetStaleDueToInternalError

func (s *ApplicationStatus) SetStaleDueToInternalError(message string, args ...interface{}) bool

func (*ApplicationStatus) SetStaleDueToRepositoryNotAccessible

func (s *ApplicationStatus) SetStaleDueToRepositoryNotAccessible(message string, args ...interface{}) bool

func (*ApplicationStatus) SetStaleDueToRepositoryNotFound

func (s *ApplicationStatus) SetStaleDueToRepositoryNotFound(message string, args ...interface{}) bool

func (*ApplicationStatus) SetValid

func (s *ApplicationStatus) SetValid() bool

func (*ApplicationStatus) SetValidIfInvalidDueToAnyOf

func (s *ApplicationStatus) SetValidIfInvalidDueToAnyOf(reasons ...string) bool

type ConditionsInverseState

type ConditionsInverseState map[string]string

func (ConditionsInverseState) DeepCopy

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

func (ConditionsInverseState) DeepCopyInto

func (in ConditionsInverseState) DeepCopyInto(out *ConditionsInverseState)

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

type Deployment

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

	// Spec is the desired state of the Deployment.
	// +kubebuilder:validation:Required
	Spec DeploymentSpec `json:"spec"`

	// Status is the observed state of the Deployment.
	// +kubebuilder:validation:Optional
	Status DeploymentStatus `json:"status,omitempty"`
}

Deployment represents a deployment of a repository into an environment. +kubebuilder:object:root=true +kubebuilder:subresource:status +condition:commons +condition:Current,Stale:InternalError,Invalid +condition:Current,Stale:PersistentVolumeCreationFailed,PersistentVolumeMissing +condition:Current,Stale:Cloning,CloneFailed,BranchNotFound,RepositoryNotAccessible,RepositoryNotFound +condition:Current,Stale:Baking,BakingFailed +condition:Current,Stale:Applying,ApplyFailed +condition:Valid,Invalid:RepositoryNotSupported +kubebuilder:printcolumn:name="Valid",type=string,JSONPath=`.status.privateArea.Valid` +kubebuilder:printcolumn:name="Repository",type=string,JSONPath=`.status.resolvedRepository` +kubebuilder:printcolumn:name="Branch",type=string,JSONPath=`.status.branch` +kubebuilder:printcolumn:name="PVC",type=string,JSONPath=`.status.persistentVolumeNameClaim` +kubebuilder:printcolumn:name="Last Attempted Revision",type=string,JSONPath=`.status.lastAttemptedRevision` +kubebuilder:printcolumn:name="Last Applied Revision",type=string,JSONPath=`.status.lastAppliedRevision` +kubebuilder:printcolumn:name="Current",type=string,JSONPath=`.status.privateArea.Current`

func (*Deployment) DeepCopy

func (in *Deployment) DeepCopy() *Deployment

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

func (*Deployment) DeepCopyInto

func (in *Deployment) DeepCopyInto(out *Deployment)

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

func (*Deployment) DeepCopyObject

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

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

type DeploymentList

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

func (*DeploymentList) DeepCopy

func (in *DeploymentList) DeepCopy() *DeploymentList

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

func (*DeploymentList) DeepCopyInto

func (in *DeploymentList) DeepCopyInto(out *DeploymentList)

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

func (*DeploymentList) DeepCopyObject

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

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

type DeploymentReference

type DeploymentReference struct {
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9][a-z0-9-]*[a-z0-9]$
	// +kubebuilder:validation:Required
	Name string `json:"name"`
}

func (*DeploymentReference) DeepCopy

func (in *DeploymentReference) DeepCopy() *DeploymentReference

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

func (*DeploymentReference) DeepCopyInto

func (in *DeploymentReference) DeepCopyInto(out *DeploymentReference)

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

func (*DeploymentReference) GetObjectKey

func (in *DeploymentReference) GetObjectKey(namespace string) client.ObjectKey

type DeploymentRepositoryReference

type DeploymentRepositoryReference struct {
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	Namespace string `json:"namespace,omitempty"`
}

func (*DeploymentRepositoryReference) DeepCopy

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

func (*DeploymentRepositoryReference) DeepCopyInto

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

func (*DeploymentRepositoryReference) GetObjectKey

func (in *DeploymentRepositoryReference) GetObjectKey(namespace string) client.ObjectKey

type DeploymentSpec

type DeploymentSpec struct {

	// Repository is the reference to the repository this deployment will deploy. The specific branch will be determined
	// during runtime based on existence of the parent environment's preferred branch and the repository's default
	// branch.
	// +kubebuilder:validation:Required
	Repository DeploymentRepositoryReference `json:"repository"`
}

func (*DeploymentSpec) DeepCopy

func (in *DeploymentSpec) DeepCopy() *DeploymentSpec

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

func (*DeploymentSpec) DeepCopyInto

func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)

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

type DeploymentStatus

type DeploymentStatus struct {

	// Conditions represent the latest available observations of the deployment's state.
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// The fully qualified (namespace + name) of the repository this deployment applies.
	// +kubebuilder:validation:Optional
	ResolvedRepository string `json:"resolvedRepository,omitempty"`

	// Branch is the actual branch being deployed from the repository. This may be the preferred branch from the parent
	// environment, or the repository's default branch if the preferred branch is not available.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	Branch string `json:"branch,omitempty"`

	// PersistentVolumeClaimName points to the name of the [k8s.io/api/core/v1.PersistentVolumeClaim] used for hosting
	// the cloned Git repository that this deployment will apply. The volume will be mounted to the various jobs this
	// deployment will create & run over its lifetime.
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Optional
	PersistentVolumeClaimName string `json:"persistentVolumeNameClaim,omitempty"`

	// LastAppliedCommitSHA is the commit SHA last applied (deployed) from the source into the target environment, if
	// any.
	// +kubebuilder:validation:MaxLength=40
	// +kubebuilder:validation:MinLength=40
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-f0-9]+$
	LastAttemptedRevision string `json:"lastAttemptedRevision,omitempty"`

	// LastAppliedCommitSHA is the commit SHA last applied (deployed) from the source into the target environment, if
	// any.
	// +kubebuilder:validation:MaxLength=40
	// +kubebuilder:validation:MinLength=40
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-f0-9]+$
	LastAppliedRevision string `json:"lastAppliedRevision,omitempty"`

	// PrivateArea is not meant for public consumption, nor is it part of the public API. It is exposed due to Go and
	// controller-runtime limitations but is an internal part of the implementation.
	PrivateArea ConditionsInverseState `json:"privateArea,omitempty"`
}

func (*DeploymentStatus) ClearStaleConditions

func (s *DeploymentStatus) ClearStaleConditions(currentGeneration int64)

func (*DeploymentStatus) DeepCopy

func (in *DeploymentStatus) DeepCopy() *DeploymentStatus

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

func (*DeploymentStatus) DeepCopyInto

func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus)

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

func (*DeploymentStatus) GetCondition

func (s *DeploymentStatus) GetCondition(conditionType string) *v1.Condition

func (*DeploymentStatus) GetConditions

func (s *DeploymentStatus) GetConditions() []v1.Condition

func (*DeploymentStatus) GetFailedToInitializeCondition

func (s *DeploymentStatus) GetFailedToInitializeCondition() *v1.Condition

func (*DeploymentStatus) GetFailedToInitializeMessage

func (s *DeploymentStatus) GetFailedToInitializeMessage() string

func (*DeploymentStatus) GetFailedToInitializeReason

func (s *DeploymentStatus) GetFailedToInitializeReason() string

func (*DeploymentStatus) GetFailedToInitializeStatus

func (s *DeploymentStatus) GetFailedToInitializeStatus() *v1.ConditionStatus

func (*DeploymentStatus) GetFinalizingCondition

func (s *DeploymentStatus) GetFinalizingCondition() *v1.Condition

func (*DeploymentStatus) GetFinalizingMessage

func (s *DeploymentStatus) GetFinalizingMessage() string

func (*DeploymentStatus) GetFinalizingReason

func (s *DeploymentStatus) GetFinalizingReason() string

func (*DeploymentStatus) GetFinalizingStatus

func (s *DeploymentStatus) GetFinalizingStatus() *v1.ConditionStatus

func (*DeploymentStatus) GetInvalidCondition

func (s *DeploymentStatus) GetInvalidCondition() *v1.Condition

func (*DeploymentStatus) GetInvalidMessage

func (s *DeploymentStatus) GetInvalidMessage() string

func (*DeploymentStatus) GetInvalidReason

func (s *DeploymentStatus) GetInvalidReason() string

func (*DeploymentStatus) GetInvalidStatus

func (s *DeploymentStatus) GetInvalidStatus() *v1.ConditionStatus

func (*DeploymentStatus) GetStaleCondition

func (s *DeploymentStatus) GetStaleCondition() *v1.Condition

func (*DeploymentStatus) GetStaleMessage

func (s *DeploymentStatus) GetStaleMessage() string

func (*DeploymentStatus) GetStaleReason

func (s *DeploymentStatus) GetStaleReason() string

func (*DeploymentStatus) GetStaleStatus

func (s *DeploymentStatus) GetStaleStatus() *v1.ConditionStatus

func (*DeploymentStatus) IsCurrent

func (s *DeploymentStatus) IsCurrent() bool

func (*DeploymentStatus) IsFailedToInitialize

func (s *DeploymentStatus) IsFailedToInitialize() bool

func (*DeploymentStatus) IsFinalized

func (s *DeploymentStatus) IsFinalized() bool

func (*DeploymentStatus) IsFinalizing

func (s *DeploymentStatus) IsFinalizing() bool

func (*DeploymentStatus) IsInitialized

func (s *DeploymentStatus) IsInitialized() bool

func (*DeploymentStatus) IsInvalid

func (s *DeploymentStatus) IsInvalid() bool

func (*DeploymentStatus) IsStale

func (s *DeploymentStatus) IsStale() bool

func (*DeploymentStatus) IsValid

func (s *DeploymentStatus) IsValid() bool

func (*DeploymentStatus) SetCurrent

func (s *DeploymentStatus) SetCurrent() bool

func (*DeploymentStatus) SetCurrentIfStaleDueToAnyOf

func (s *DeploymentStatus) SetCurrentIfStaleDueToAnyOf(reasons ...string) bool

func (*DeploymentStatus) SetFailedToInitializeDueToInternalError

func (s *DeploymentStatus) SetFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*DeploymentStatus) SetFinalized

func (s *DeploymentStatus) SetFinalized() bool

func (*DeploymentStatus) SetFinalizedIfFinalizingDueToAnyOf

func (s *DeploymentStatus) SetFinalizedIfFinalizingDueToAnyOf(reasons ...string) bool

func (*DeploymentStatus) SetFinalizingDueToFinalizationFailed

func (s *DeploymentStatus) SetFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetFinalizingDueToFinalizerRemovalFailed

func (s *DeploymentStatus) SetFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetFinalizingDueToInProgress

func (s *DeploymentStatus) SetFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*DeploymentStatus) SetGenerationAndTransitionTime

func (s *DeploymentStatus) SetGenerationAndTransitionTime(generation int64)

func (*DeploymentStatus) SetInitialized

func (s *DeploymentStatus) SetInitialized() bool

func (*DeploymentStatus) SetInitializedIfFailedToInitializeDueToAnyOf

func (s *DeploymentStatus) SetInitializedIfFailedToInitializeDueToAnyOf(reasons ...string) bool

func (*DeploymentStatus) SetInvalidDueToControllerNotAccessible

func (s *DeploymentStatus) SetInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*DeploymentStatus) SetInvalidDueToControllerNotFound

func (s *DeploymentStatus) SetInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*DeploymentStatus) SetInvalidDueToControllerReferenceMissing

func (s *DeploymentStatus) SetInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*DeploymentStatus) SetInvalidDueToInternalError

func (s *DeploymentStatus) SetInvalidDueToInternalError(message string, args ...interface{}) bool

func (*DeploymentStatus) SetInvalidDueToRepositoryNotSupported

func (s *DeploymentStatus) SetInvalidDueToRepositoryNotSupported(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeFailedToInitializeDueToInternalError

func (s *DeploymentStatus) SetMaybeFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeFinalizingDueToFinalizationFailed

func (s *DeploymentStatus) SetMaybeFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed

func (s *DeploymentStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeFinalizingDueToInProgress

func (s *DeploymentStatus) SetMaybeFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeInvalidDueToControllerNotAccessible

func (s *DeploymentStatus) SetMaybeInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeInvalidDueToControllerNotFound

func (s *DeploymentStatus) SetMaybeInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeInvalidDueToControllerReferenceMissing

func (s *DeploymentStatus) SetMaybeInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeInvalidDueToInternalError

func (s *DeploymentStatus) SetMaybeInvalidDueToInternalError(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeInvalidDueToRepositoryNotSupported

func (s *DeploymentStatus) SetMaybeInvalidDueToRepositoryNotSupported(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToApplyFailed

func (s *DeploymentStatus) SetMaybeStaleDueToApplyFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToApplying

func (s *DeploymentStatus) SetMaybeStaleDueToApplying(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToBaking

func (s *DeploymentStatus) SetMaybeStaleDueToBaking(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToBakingFailed

func (s *DeploymentStatus) SetMaybeStaleDueToBakingFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToBranchNotFound

func (s *DeploymentStatus) SetMaybeStaleDueToBranchNotFound(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToCloneFailed

func (s *DeploymentStatus) SetMaybeStaleDueToCloneFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToCloning

func (s *DeploymentStatus) SetMaybeStaleDueToCloning(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToInternalError

func (s *DeploymentStatus) SetMaybeStaleDueToInternalError(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToInvalid

func (s *DeploymentStatus) SetMaybeStaleDueToInvalid(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToPersistentVolumeCreationFailed

func (s *DeploymentStatus) SetMaybeStaleDueToPersistentVolumeCreationFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToPersistentVolumeMissing

func (s *DeploymentStatus) SetMaybeStaleDueToPersistentVolumeMissing(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToRepositoryNotAccessible

func (s *DeploymentStatus) SetMaybeStaleDueToRepositoryNotAccessible(message string, args ...interface{}) bool

func (*DeploymentStatus) SetMaybeStaleDueToRepositoryNotFound

func (s *DeploymentStatus) SetMaybeStaleDueToRepositoryNotFound(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToApplyFailed

func (s *DeploymentStatus) SetStaleDueToApplyFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToApplying

func (s *DeploymentStatus) SetStaleDueToApplying(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToBaking

func (s *DeploymentStatus) SetStaleDueToBaking(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToBakingFailed

func (s *DeploymentStatus) SetStaleDueToBakingFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToBranchNotFound

func (s *DeploymentStatus) SetStaleDueToBranchNotFound(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToCloneFailed

func (s *DeploymentStatus) SetStaleDueToCloneFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToCloning

func (s *DeploymentStatus) SetStaleDueToCloning(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToInternalError

func (s *DeploymentStatus) SetStaleDueToInternalError(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToInvalid

func (s *DeploymentStatus) SetStaleDueToInvalid(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToPersistentVolumeCreationFailed

func (s *DeploymentStatus) SetStaleDueToPersistentVolumeCreationFailed(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToPersistentVolumeMissing

func (s *DeploymentStatus) SetStaleDueToPersistentVolumeMissing(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToRepositoryNotAccessible

func (s *DeploymentStatus) SetStaleDueToRepositoryNotAccessible(message string, args ...interface{}) bool

func (*DeploymentStatus) SetStaleDueToRepositoryNotFound

func (s *DeploymentStatus) SetStaleDueToRepositoryNotFound(message string, args ...interface{}) bool

func (*DeploymentStatus) SetValid

func (s *DeploymentStatus) SetValid() bool

func (*DeploymentStatus) SetValidIfInvalidDueToAnyOf

func (s *DeploymentStatus) SetValidIfInvalidDueToAnyOf(reasons ...string) bool

type Environment

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

	// Spec is the desired state of the Environment.
	// +kubebuilder:validation:Required
	Spec EnvironmentSpec `json:"spec"`

	// Status is the observed state of the Environment.
	// +kubebuilder:validation:Optional
	Status EnvironmentStatus `json:"status,omitempty"`
}

Environment is the Schema for the environments API. +kubebuilder:object:root=true +kubebuilder:subresource:status +condition:commons +condition:Current,Stale:DeploymentsAreStale,FailedCreatingDeployment,FailedDeletingDeployment,InternalError +kubebuilder:printcolumn:name="Preferred Branch",type=string,JSONPath=`.spec.branch` +kubebuilder:printcolumn:name="Valid",type=string,JSONPath=`.status.privateArea.Valid` +kubebuilder:printcolumn:name="Current",type=string,JSONPath=`.status.privateArea.Current`

func (*Environment) DeepCopy

func (in *Environment) DeepCopy() *Environment

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

func (*Environment) DeepCopyInto

func (in *Environment) DeepCopyInto(out *Environment)

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

func (*Environment) DeepCopyObject

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

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

type EnvironmentList

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

func (*EnvironmentList) DeepCopy

func (in *EnvironmentList) DeepCopy() *EnvironmentList

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

func (*EnvironmentList) DeepCopyInto

func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList)

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

func (*EnvironmentList) DeepCopyObject

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

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

type EnvironmentSpec

type EnvironmentSpec struct {
	// PreferredBranch is the preferred branch for deployment to this environment from each repository. Repositories
	// that lack this branch may opt to deploy their default branch instead (see [ApplicationSpecRepository.MissingBranchStrategy]).
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	PreferredBranch string `json:"branch"`
}

func (*EnvironmentSpec) DeepCopy

func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec

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

func (*EnvironmentSpec) DeepCopyInto

func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec)

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

type EnvironmentStatus

type EnvironmentStatus struct {

	// Conditions represent the latest available observations of the application environment's state.
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// PrivateArea is not meant for public consumption, nor is it part of the public API. It is exposed due to Go and
	// controller-runtime limitations but is an internal part of the implementation.
	PrivateArea ConditionsInverseState `json:"privateArea,omitempty"`
}

func (*EnvironmentStatus) ClearStaleConditions

func (s *EnvironmentStatus) ClearStaleConditions(currentGeneration int64)

func (*EnvironmentStatus) DeepCopy

func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus

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

func (*EnvironmentStatus) DeepCopyInto

func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus)

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

func (*EnvironmentStatus) GetCondition

func (s *EnvironmentStatus) GetCondition(conditionType string) *v1.Condition

func (*EnvironmentStatus) GetConditions

func (s *EnvironmentStatus) GetConditions() []v1.Condition

func (*EnvironmentStatus) GetFailedToInitializeCondition

func (s *EnvironmentStatus) GetFailedToInitializeCondition() *v1.Condition

func (*EnvironmentStatus) GetFailedToInitializeMessage

func (s *EnvironmentStatus) GetFailedToInitializeMessage() string

func (*EnvironmentStatus) GetFailedToInitializeReason

func (s *EnvironmentStatus) GetFailedToInitializeReason() string

func (*EnvironmentStatus) GetFailedToInitializeStatus

func (s *EnvironmentStatus) GetFailedToInitializeStatus() *v1.ConditionStatus

func (*EnvironmentStatus) GetFinalizingCondition

func (s *EnvironmentStatus) GetFinalizingCondition() *v1.Condition

func (*EnvironmentStatus) GetFinalizingMessage

func (s *EnvironmentStatus) GetFinalizingMessage() string

func (*EnvironmentStatus) GetFinalizingReason

func (s *EnvironmentStatus) GetFinalizingReason() string

func (*EnvironmentStatus) GetFinalizingStatus

func (s *EnvironmentStatus) GetFinalizingStatus() *v1.ConditionStatus

func (*EnvironmentStatus) GetInvalidCondition

func (s *EnvironmentStatus) GetInvalidCondition() *v1.Condition

func (*EnvironmentStatus) GetInvalidMessage

func (s *EnvironmentStatus) GetInvalidMessage() string

func (*EnvironmentStatus) GetInvalidReason

func (s *EnvironmentStatus) GetInvalidReason() string

func (*EnvironmentStatus) GetInvalidStatus

func (s *EnvironmentStatus) GetInvalidStatus() *v1.ConditionStatus

func (*EnvironmentStatus) GetStaleCondition

func (s *EnvironmentStatus) GetStaleCondition() *v1.Condition

func (*EnvironmentStatus) GetStaleMessage

func (s *EnvironmentStatus) GetStaleMessage() string

func (*EnvironmentStatus) GetStaleReason

func (s *EnvironmentStatus) GetStaleReason() string

func (*EnvironmentStatus) GetStaleStatus

func (s *EnvironmentStatus) GetStaleStatus() *v1.ConditionStatus

func (*EnvironmentStatus) IsCurrent

func (s *EnvironmentStatus) IsCurrent() bool

func (*EnvironmentStatus) IsFailedToInitialize

func (s *EnvironmentStatus) IsFailedToInitialize() bool

func (*EnvironmentStatus) IsFinalized

func (s *EnvironmentStatus) IsFinalized() bool

func (*EnvironmentStatus) IsFinalizing

func (s *EnvironmentStatus) IsFinalizing() bool

func (*EnvironmentStatus) IsInitialized

func (s *EnvironmentStatus) IsInitialized() bool

func (*EnvironmentStatus) IsInvalid

func (s *EnvironmentStatus) IsInvalid() bool

func (*EnvironmentStatus) IsStale

func (s *EnvironmentStatus) IsStale() bool

func (*EnvironmentStatus) IsValid

func (s *EnvironmentStatus) IsValid() bool

func (*EnvironmentStatus) SetCurrent

func (s *EnvironmentStatus) SetCurrent() bool

func (*EnvironmentStatus) SetCurrentIfStaleDueToAnyOf

func (s *EnvironmentStatus) SetCurrentIfStaleDueToAnyOf(reasons ...string) bool

func (*EnvironmentStatus) SetFailedToInitializeDueToInternalError

func (s *EnvironmentStatus) SetFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetFinalized

func (s *EnvironmentStatus) SetFinalized() bool

func (*EnvironmentStatus) SetFinalizedIfFinalizingDueToAnyOf

func (s *EnvironmentStatus) SetFinalizedIfFinalizingDueToAnyOf(reasons ...string) bool

func (*EnvironmentStatus) SetFinalizingDueToFinalizationFailed

func (s *EnvironmentStatus) SetFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetFinalizingDueToFinalizerRemovalFailed

func (s *EnvironmentStatus) SetFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetFinalizingDueToInProgress

func (s *EnvironmentStatus) SetFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetGenerationAndTransitionTime

func (s *EnvironmentStatus) SetGenerationAndTransitionTime(generation int64)

func (*EnvironmentStatus) SetInitialized

func (s *EnvironmentStatus) SetInitialized() bool

func (*EnvironmentStatus) SetInitializedIfFailedToInitializeDueToAnyOf

func (s *EnvironmentStatus) SetInitializedIfFailedToInitializeDueToAnyOf(reasons ...string) bool

func (*EnvironmentStatus) SetInvalidDueToControllerNotAccessible

func (s *EnvironmentStatus) SetInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetInvalidDueToControllerNotFound

func (s *EnvironmentStatus) SetInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetInvalidDueToControllerReferenceMissing

func (s *EnvironmentStatus) SetInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetInvalidDueToInternalError

func (s *EnvironmentStatus) SetInvalidDueToInternalError(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeFailedToInitializeDueToInternalError

func (s *EnvironmentStatus) SetMaybeFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeFinalizingDueToFinalizationFailed

func (s *EnvironmentStatus) SetMaybeFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed

func (s *EnvironmentStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeFinalizingDueToInProgress

func (s *EnvironmentStatus) SetMaybeFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeInvalidDueToControllerNotAccessible

func (s *EnvironmentStatus) SetMaybeInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeInvalidDueToControllerNotFound

func (s *EnvironmentStatus) SetMaybeInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeInvalidDueToControllerReferenceMissing

func (s *EnvironmentStatus) SetMaybeInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeInvalidDueToInternalError

func (s *EnvironmentStatus) SetMaybeInvalidDueToInternalError(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeStaleDueToDeploymentsAreStale

func (s *EnvironmentStatus) SetMaybeStaleDueToDeploymentsAreStale(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeStaleDueToFailedCreatingDeployment

func (s *EnvironmentStatus) SetMaybeStaleDueToFailedCreatingDeployment(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeStaleDueToFailedDeletingDeployment

func (s *EnvironmentStatus) SetMaybeStaleDueToFailedDeletingDeployment(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetMaybeStaleDueToInternalError

func (s *EnvironmentStatus) SetMaybeStaleDueToInternalError(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetStaleDueToDeploymentsAreStale

func (s *EnvironmentStatus) SetStaleDueToDeploymentsAreStale(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetStaleDueToFailedCreatingDeployment

func (s *EnvironmentStatus) SetStaleDueToFailedCreatingDeployment(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetStaleDueToFailedDeletingDeployment

func (s *EnvironmentStatus) SetStaleDueToFailedDeletingDeployment(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetStaleDueToInternalError

func (s *EnvironmentStatus) SetStaleDueToInternalError(message string, args ...interface{}) bool

func (*EnvironmentStatus) SetValid

func (s *EnvironmentStatus) SetValid() bool

func (*EnvironmentStatus) SetValidIfInvalidDueToAnyOf

func (s *EnvironmentStatus) SetValidIfInvalidDueToAnyOf(reasons ...string) bool

type GitHubRepositoryPersonalAccessToken

type GitHubRepositoryPersonalAccessToken struct {

	// Secret is the reference to the secret containing the GitHub personal access token.
	// +kubebuilder:validation:Required
	Secret SecretReferenceWithOptionalNamespace `json:"secret"`

	// Key is the key in the secret containing the GitHub personal access token.
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-zA-Z0-9][a-zA-Z0-9-_.]*[a-zA-Z0-9_.]$
	// +kubebuilder:validation:Required
	Key string `json:"key"`
}

GitHubRepositoryPersonalAccessToken specifies the Kubernetes secret & key that house the GitHub personal access token to be used to access the repository.

func (*GitHubRepositoryPersonalAccessToken) DeepCopy

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

func (*GitHubRepositoryPersonalAccessToken) DeepCopyInto

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

type GitHubRepositorySpec

type GitHubRepositorySpec struct {

	// Owner is the GitHub user or organization that owns the repository.
	// +kubebuilder:validation:MaxLength=39
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9_]$
	// +kubebuilder:validation:Required
	Owner string `json:"owner"`

	// Name is the name of the repository.
	// +kubebuilder:validation:MaxLength=100
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-zA-Z0-9_][a-zA-Z0-9-_.]*[a-zA-Z0-9_.]$
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// PersonalAccessToken signals that we should use a GitHub personal access token (PAT) when accessing the repository
	// and specifies the Kubernetes secret & key that house the token (namespace is optional and will default to the
	// repository's namespace if missing).
	// +kubebuilder:validation:Optional
	PersonalAccessToken *GitHubRepositoryPersonalAccessToken `json:"personalAccessToken,omitempty"`

	// WebhookSecret specifies where to find the webhook secret used to validate incoming webhook requests from GitHub.
	// +kubebuilder:validation:Optional
	WebhookSecret *GitHubRepositoryWebhookSecret `json:"webhookSecret,omitempty"`
}

GitHubRepositorySpec provides the specification for a GitHub repository.

func (*GitHubRepositorySpec) DeepCopy

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

func (*GitHubRepositorySpec) DeepCopyInto

func (in *GitHubRepositorySpec) DeepCopyInto(out *GitHubRepositorySpec)

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

type GitHubRepositoryWebhookSecret

type GitHubRepositoryWebhookSecret struct {

	// Secret is the reference to the secret containing the GitHub webhook secret.
	// +kubebuilder:validation:Required
	Secret SecretReferenceWithOptionalNamespace `json:"secret"`

	// Key is the key in the secret containing the GitHub webhook secret.
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-zA-Z0-9][a-zA-Z0-9-_.]*[a-zA-Z0-9_.]$
	// +kubebuilder:validation:Required
	Key string `json:"key"`
}

GitHubRepositoryWebhookSecret specifies the Kubernetes secret & key that house the GitHub webhook secret, used to validate incoming webhook requests from GitHub.

func (*GitHubRepositoryWebhookSecret) DeepCopy

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

func (*GitHubRepositoryWebhookSecret) DeepCopyInto

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

type NamespacedReference

type NamespacedReference struct {
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	APIVersion string `json:"apiVersion"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Kind string `json:"kind"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	Namespace string `json:"namespace"`
}

func (*NamespacedReference) DeepCopy

func (in *NamespacedReference) DeepCopy() *NamespacedReference

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

func (*NamespacedReference) DeepCopyInto

func (in *NamespacedReference) DeepCopyInto(out *NamespacedReference)

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

func (*NamespacedReference) GetGVK

func (in *NamespacedReference) GetGVK() (v1.GroupVersionKind, error)

func (*NamespacedReference) GetObjectKey

func (in *NamespacedReference) GetObjectKey() client.ObjectKey

type OptionallyNamespacedReference

type OptionallyNamespacedReference struct {
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	APIVersion string `json:"apiVersion"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Kind string `json:"kind"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	Namespace string `json:"namespace,omitempty"`
}

func (*OptionallyNamespacedReference) DeepCopy

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

func (*OptionallyNamespacedReference) DeepCopyInto

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

func (*OptionallyNamespacedReference) GetGVK

func (*OptionallyNamespacedReference) GetObjectKey

func (in *OptionallyNamespacedReference) GetObjectKey(defaultNamespace string) client.ObjectKey

func (*OptionallyNamespacedReference) ToNamespacedRepositoryReference

func (in *OptionallyNamespacedReference) ToNamespacedRepositoryReference(defaultNamespace string) NamespacedReference

type Repository

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

	// Spec is the desired state of the repository.
	// +kubebuilder:validation:Required
	Spec RepositorySpec `json:"spec"`

	// Status is the observed state of the repository.
	// +kubebuilder:validation:Optional
	Status RepositoryStatus `json:"status,omitempty"`
}

Repository represents a single source code repository hosted remotely (e.g. on GitHub). +kubebuilder:object:root=true +kubebuilder:subresource:status +condition:commons +condition:Authenticated,Unauthenticated:AuthenticationFailed,AuthSecretForbidden,AuthSecretKeyNotFound,AuthSecretNotFound,AuthTokenEmpty,InternalError,Invalid +condition:Current,Stale:BranchesOutOfSync,DefaultBranchOutOfSync,InternalError,Invalid,RepositoryNotFound,Unauthenticated +condition:Valid,Invalid:InvalidRefreshInterval,RepositoryNameMissing,RepositoryOwnerMissing,UnknownRepositoryType +condition:Valid,Invalid:AuthConfigMissing,AuthSecretKeyMissing,AuthSecretNameMissing +condition:Valid,Invalid:WebhookSecretEmpty,WebhookSecretForbidden,WebhookSecretKeyMissing,WebhookSecretKeyNotFound,WebhookSecretNameMissing,WebhookSecretNotFound,WebhooksNotEnabled +kubebuilder:printcolumn:name="Refresh Interval",type=string,JSONPath=`.spec.refreshInterval` +kubebuilder:printcolumn:name="Valid",type=string,JSONPath=`.status.privateArea.Valid` +kubebuilder:printcolumn:name="Authenticated",type=string,JSONPath=`.status.privateArea.Authenticated` +kubebuilder:printcolumn:name="Default Branch",type=string,JSONPath=`.status.defaultBranch` +kubebuilder:printcolumn:name="Current",type=string,JSONPath=`.status.privateArea.Current`

func (*Repository) DeepCopy

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto

func (in *Repository) DeepCopyInto(out *Repository)

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

func (*Repository) DeepCopyObject

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

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

type RepositoryList

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

RepositoryList contains a list of Repository objects. +kubebuilder:object:root=true

func (*RepositoryList) DeepCopy

func (in *RepositoryList) DeepCopy() *RepositoryList

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

func (*RepositoryList) DeepCopyInto

func (in *RepositoryList) DeepCopyInto(out *RepositoryList)

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

func (*RepositoryList) DeepCopyObject

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

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

type RepositorySpec

type RepositorySpec struct {

	// GitHub is the specification for a GitHub repository. Setting this property will mark this repository as a GitHub
	// repository.
	// +kubebuilder:validation:Optional
	GitHub *GitHubRepositorySpec `json:"github,omitempty"`

	// RefreshInterval is the interval at which to refresh the list of branches in the repository. The value should be
	// specified as a duration string, e.g. "5m" for 5 minutes. The default value is "5m".
	// +kubebuilder:default="5m"
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	RefreshInterval string `json:"refreshInterval,omitempty"`
}

RepositorySpec provides the specification of the remote source code repository.

func (*RepositorySpec) DeepCopy

func (in *RepositorySpec) DeepCopy() *RepositorySpec

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

func (*RepositorySpec) DeepCopyInto

func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)

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

type RepositoryStatus

type RepositoryStatus struct {

	// Conditions represent the latest available observations of the GitHubRepository's state.
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// DefaultBranch is the default branch of the repository.
	// +kubebuilder:validation:MaxLength=250
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-zA-Z0-9_.-]+(/[a-zA-Z0-9_.-]+)*$
	DefaultBranch string `json:"defaultBranch,omitempty"`

	// ResolvedName is a universal human-readable name of the repository. The format of this field can vary depending on
	// the type of repository (e.g. GitHub, GitLab, Bitbucket, etc.).
	// +kubebuilder:validation:Optional
	ResolvedName string `json:"resolvedName,omitempty"`

	// Revisions is a map of branch names to their last detected revision.
	// +kubebuilder:validation:Optional
	Revisions map[string]string `json:"revisions,omitempty"`

	// LastWebhookPing is the last time a successful
	LastWebhookPing *metav1.Time `json:"lastWebhookPing,omitempty"`

	// PrivateArea is not meant for public consumption, nor is it part of the public API. It is exposed due to Go and
	// controller-runtime limitations but is an internal part of the implementation.
	PrivateArea ConditionsInverseState `json:"privateArea,omitempty"`
}

RepositoryStatus represents the observed state of the Repository.

func (*RepositoryStatus) ClearStaleConditions

func (s *RepositoryStatus) ClearStaleConditions(currentGeneration int64)

func (*RepositoryStatus) DeepCopy

func (in *RepositoryStatus) DeepCopy() *RepositoryStatus

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

func (*RepositoryStatus) DeepCopyInto

func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)

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

func (*RepositoryStatus) GetCondition

func (s *RepositoryStatus) GetCondition(conditionType string) *v1.Condition

func (*RepositoryStatus) GetConditions

func (s *RepositoryStatus) GetConditions() []v1.Condition

func (*RepositoryStatus) GetFailedToInitializeCondition

func (s *RepositoryStatus) GetFailedToInitializeCondition() *v1.Condition

func (*RepositoryStatus) GetFailedToInitializeMessage

func (s *RepositoryStatus) GetFailedToInitializeMessage() string

func (*RepositoryStatus) GetFailedToInitializeReason

func (s *RepositoryStatus) GetFailedToInitializeReason() string

func (*RepositoryStatus) GetFailedToInitializeStatus

func (s *RepositoryStatus) GetFailedToInitializeStatus() *v1.ConditionStatus

func (*RepositoryStatus) GetFinalizingCondition

func (s *RepositoryStatus) GetFinalizingCondition() *v1.Condition

func (*RepositoryStatus) GetFinalizingMessage

func (s *RepositoryStatus) GetFinalizingMessage() string

func (*RepositoryStatus) GetFinalizingReason

func (s *RepositoryStatus) GetFinalizingReason() string

func (*RepositoryStatus) GetFinalizingStatus

func (s *RepositoryStatus) GetFinalizingStatus() *v1.ConditionStatus

func (*RepositoryStatus) GetInvalidCondition

func (s *RepositoryStatus) GetInvalidCondition() *v1.Condition

func (*RepositoryStatus) GetInvalidMessage

func (s *RepositoryStatus) GetInvalidMessage() string

func (*RepositoryStatus) GetInvalidReason

func (s *RepositoryStatus) GetInvalidReason() string

func (*RepositoryStatus) GetInvalidStatus

func (s *RepositoryStatus) GetInvalidStatus() *v1.ConditionStatus

func (*RepositoryStatus) GetStaleCondition

func (s *RepositoryStatus) GetStaleCondition() *v1.Condition

func (*RepositoryStatus) GetStaleMessage

func (s *RepositoryStatus) GetStaleMessage() string

func (*RepositoryStatus) GetStaleReason

func (s *RepositoryStatus) GetStaleReason() string

func (*RepositoryStatus) GetStaleStatus

func (s *RepositoryStatus) GetStaleStatus() *v1.ConditionStatus

func (*RepositoryStatus) GetUnauthenticatedCondition

func (s *RepositoryStatus) GetUnauthenticatedCondition() *v1.Condition

func (*RepositoryStatus) GetUnauthenticatedMessage

func (s *RepositoryStatus) GetUnauthenticatedMessage() string

func (*RepositoryStatus) GetUnauthenticatedReason

func (s *RepositoryStatus) GetUnauthenticatedReason() string

func (*RepositoryStatus) GetUnauthenticatedStatus

func (s *RepositoryStatus) GetUnauthenticatedStatus() *v1.ConditionStatus

func (*RepositoryStatus) IsAuthenticated

func (s *RepositoryStatus) IsAuthenticated() bool

func (*RepositoryStatus) IsCurrent

func (s *RepositoryStatus) IsCurrent() bool

func (*RepositoryStatus) IsFailedToInitialize

func (s *RepositoryStatus) IsFailedToInitialize() bool

func (*RepositoryStatus) IsFinalized

func (s *RepositoryStatus) IsFinalized() bool

func (*RepositoryStatus) IsFinalizing

func (s *RepositoryStatus) IsFinalizing() bool

func (*RepositoryStatus) IsInitialized

func (s *RepositoryStatus) IsInitialized() bool

func (*RepositoryStatus) IsInvalid

func (s *RepositoryStatus) IsInvalid() bool

func (*RepositoryStatus) IsStale

func (s *RepositoryStatus) IsStale() bool

func (*RepositoryStatus) IsUnauthenticated

func (s *RepositoryStatus) IsUnauthenticated() bool

func (*RepositoryStatus) IsValid

func (s *RepositoryStatus) IsValid() bool

func (*RepositoryStatus) SetAuthenticated

func (s *RepositoryStatus) SetAuthenticated() bool

func (*RepositoryStatus) SetAuthenticatedIfUnauthenticatedDueToAnyOf

func (s *RepositoryStatus) SetAuthenticatedIfUnauthenticatedDueToAnyOf(reasons ...string) bool

func (*RepositoryStatus) SetCurrent

func (s *RepositoryStatus) SetCurrent() bool

func (*RepositoryStatus) SetCurrentIfStaleDueToAnyOf

func (s *RepositoryStatus) SetCurrentIfStaleDueToAnyOf(reasons ...string) bool

func (*RepositoryStatus) SetFailedToInitializeDueToInternalError

func (s *RepositoryStatus) SetFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetFinalized

func (s *RepositoryStatus) SetFinalized() bool

func (*RepositoryStatus) SetFinalizedIfFinalizingDueToAnyOf

func (s *RepositoryStatus) SetFinalizedIfFinalizingDueToAnyOf(reasons ...string) bool

func (*RepositoryStatus) SetFinalizingDueToFinalizationFailed

func (s *RepositoryStatus) SetFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*RepositoryStatus) SetFinalizingDueToFinalizerRemovalFailed

func (s *RepositoryStatus) SetFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*RepositoryStatus) SetFinalizingDueToInProgress

func (s *RepositoryStatus) SetFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*RepositoryStatus) SetGenerationAndTransitionTime

func (s *RepositoryStatus) SetGenerationAndTransitionTime(generation int64)

func (*RepositoryStatus) SetInitialized

func (s *RepositoryStatus) SetInitialized() bool

func (*RepositoryStatus) SetInitializedIfFailedToInitializeDueToAnyOf

func (s *RepositoryStatus) SetInitializedIfFailedToInitializeDueToAnyOf(reasons ...string) bool

func (*RepositoryStatus) SetInvalidDueToAuthConfigMissing

func (s *RepositoryStatus) SetInvalidDueToAuthConfigMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToAuthSecretKeyMissing

func (s *RepositoryStatus) SetInvalidDueToAuthSecretKeyMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToAuthSecretNameMissing

func (s *RepositoryStatus) SetInvalidDueToAuthSecretNameMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToControllerNotAccessible

func (s *RepositoryStatus) SetInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToControllerNotFound

func (s *RepositoryStatus) SetInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToControllerReferenceMissing

func (s *RepositoryStatus) SetInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToInternalError

func (s *RepositoryStatus) SetInvalidDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToInvalidRefreshInterval

func (s *RepositoryStatus) SetInvalidDueToInvalidRefreshInterval(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToRepositoryNameMissing

func (s *RepositoryStatus) SetInvalidDueToRepositoryNameMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToRepositoryOwnerMissing

func (s *RepositoryStatus) SetInvalidDueToRepositoryOwnerMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToUnknownRepositoryType

func (s *RepositoryStatus) SetInvalidDueToUnknownRepositoryType(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhookSecretEmpty

func (s *RepositoryStatus) SetInvalidDueToWebhookSecretEmpty(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhookSecretForbidden

func (s *RepositoryStatus) SetInvalidDueToWebhookSecretForbidden(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhookSecretKeyMissing

func (s *RepositoryStatus) SetInvalidDueToWebhookSecretKeyMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhookSecretKeyNotFound

func (s *RepositoryStatus) SetInvalidDueToWebhookSecretKeyNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhookSecretNameMissing

func (s *RepositoryStatus) SetInvalidDueToWebhookSecretNameMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhookSecretNotFound

func (s *RepositoryStatus) SetInvalidDueToWebhookSecretNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetInvalidDueToWebhooksNotEnabled

func (s *RepositoryStatus) SetInvalidDueToWebhooksNotEnabled(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeFailedToInitializeDueToInternalError

func (s *RepositoryStatus) SetMaybeFailedToInitializeDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeFinalizingDueToFinalizationFailed

func (s *RepositoryStatus) SetMaybeFinalizingDueToFinalizationFailed(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed

func (s *RepositoryStatus) SetMaybeFinalizingDueToFinalizerRemovalFailed(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeFinalizingDueToInProgress

func (s *RepositoryStatus) SetMaybeFinalizingDueToInProgress(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToAuthConfigMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToAuthConfigMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToAuthSecretKeyMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToAuthSecretKeyMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToAuthSecretNameMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToAuthSecretNameMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToControllerNotAccessible

func (s *RepositoryStatus) SetMaybeInvalidDueToControllerNotAccessible(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToControllerNotFound

func (s *RepositoryStatus) SetMaybeInvalidDueToControllerNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToControllerReferenceMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToControllerReferenceMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToInternalError

func (s *RepositoryStatus) SetMaybeInvalidDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToInvalidRefreshInterval

func (s *RepositoryStatus) SetMaybeInvalidDueToInvalidRefreshInterval(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToRepositoryNameMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToRepositoryNameMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToRepositoryOwnerMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToRepositoryOwnerMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToUnknownRepositoryType

func (s *RepositoryStatus) SetMaybeInvalidDueToUnknownRepositoryType(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhookSecretEmpty

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhookSecretEmpty(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhookSecretForbidden

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhookSecretForbidden(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhookSecretKeyMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhookSecretKeyMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhookSecretKeyNotFound

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhookSecretKeyNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhookSecretNameMissing

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhookSecretNameMissing(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhookSecretNotFound

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhookSecretNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeInvalidDueToWebhooksNotEnabled

func (s *RepositoryStatus) SetMaybeInvalidDueToWebhooksNotEnabled(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeStaleDueToBranchesOutOfSync

func (s *RepositoryStatus) SetMaybeStaleDueToBranchesOutOfSync(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeStaleDueToDefaultBranchOutOfSync

func (s *RepositoryStatus) SetMaybeStaleDueToDefaultBranchOutOfSync(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeStaleDueToInternalError

func (s *RepositoryStatus) SetMaybeStaleDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeStaleDueToInvalid

func (s *RepositoryStatus) SetMaybeStaleDueToInvalid(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeStaleDueToRepositoryNotFound

func (s *RepositoryStatus) SetMaybeStaleDueToRepositoryNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeStaleDueToUnauthenticated

func (s *RepositoryStatus) SetMaybeStaleDueToUnauthenticated(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToAuthSecretForbidden

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToAuthSecretForbidden(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToAuthSecretKeyNotFound

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToAuthSecretKeyNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToAuthSecretNotFound

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToAuthSecretNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToAuthTokenEmpty

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToAuthTokenEmpty(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToAuthenticationFailed

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToAuthenticationFailed(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToInternalError

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetMaybeUnauthenticatedDueToInvalid

func (s *RepositoryStatus) SetMaybeUnauthenticatedDueToInvalid(message string, args ...interface{}) bool

func (*RepositoryStatus) SetStaleDueToBranchesOutOfSync

func (s *RepositoryStatus) SetStaleDueToBranchesOutOfSync(message string, args ...interface{}) bool

func (*RepositoryStatus) SetStaleDueToDefaultBranchOutOfSync

func (s *RepositoryStatus) SetStaleDueToDefaultBranchOutOfSync(message string, args ...interface{}) bool

func (*RepositoryStatus) SetStaleDueToInternalError

func (s *RepositoryStatus) SetStaleDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetStaleDueToInvalid

func (s *RepositoryStatus) SetStaleDueToInvalid(message string, args ...interface{}) bool

func (*RepositoryStatus) SetStaleDueToRepositoryNotFound

func (s *RepositoryStatus) SetStaleDueToRepositoryNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetStaleDueToUnauthenticated

func (s *RepositoryStatus) SetStaleDueToUnauthenticated(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToAuthSecretForbidden

func (s *RepositoryStatus) SetUnauthenticatedDueToAuthSecretForbidden(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToAuthSecretKeyNotFound

func (s *RepositoryStatus) SetUnauthenticatedDueToAuthSecretKeyNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToAuthSecretNotFound

func (s *RepositoryStatus) SetUnauthenticatedDueToAuthSecretNotFound(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToAuthTokenEmpty

func (s *RepositoryStatus) SetUnauthenticatedDueToAuthTokenEmpty(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToAuthenticationFailed

func (s *RepositoryStatus) SetUnauthenticatedDueToAuthenticationFailed(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToInternalError

func (s *RepositoryStatus) SetUnauthenticatedDueToInternalError(message string, args ...interface{}) bool

func (*RepositoryStatus) SetUnauthenticatedDueToInvalid

func (s *RepositoryStatus) SetUnauthenticatedDueToInvalid(message string, args ...interface{}) bool

func (*RepositoryStatus) SetValid

func (s *RepositoryStatus) SetValid() bool

func (*RepositoryStatus) SetValidIfInvalidDueToAnyOf

func (s *RepositoryStatus) SetValidIfInvalidDueToAnyOf(reasons ...string) bool

type RepositoryStatusPrivateArea

type RepositoryStatusPrivateArea struct {
	Initialized   string `json:"-"`
	Finalized     string `json:"-"`
	Valid         string `json:"valid,omitempty"`
	Authenticated string `json:"authenticated,omitempty"`
	Current       string `json:"current,omitempty"`
}

func (*RepositoryStatusPrivateArea) DeepCopy

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

func (*RepositoryStatusPrivateArea) DeepCopyInto

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

type SecretReferenceWithOptionalNamespace

type SecretReferenceWithOptionalNamespace struct {
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-z0-9]+(\-[a-z0-9]+)*$
	Namespace string `json:"namespace,omitempty"`
}

func (*SecretReferenceWithOptionalNamespace) DeepCopy

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

func (*SecretReferenceWithOptionalNamespace) DeepCopyInto

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

func (*SecretReferenceWithOptionalNamespace) GetObjectKey

func (in *SecretReferenceWithOptionalNamespace) GetObjectKey(defaultNamespace string) client.ObjectKey

Jump to

Keyboard shortcuts

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