v1alpha1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=argoproj.io

Index

Constants

View Source
const (
	AnnotationKeyRefresh string = "argocd.argoproj.io/refresh"
)
View Source
const (
	EventReasonOperationStarted = "OperationStarted"
)

Variables

View Source
var (
	GroupVersion = schema.GroupVersion{
		Group:   "argoproj.io",
		Version: "v1alpha1",
	}

	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Application

type Application struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ApplicationSpec   `json:"spec"`
	Status            ApplicationStatus `json:"status,"`
	Operation         *Operation        `json:"operation,omitempty"`
}

func GetApplication

func GetApplication(
	ctx context.Context,
	ctrlRuntimeClient client.Client,
	namespace string,
	name string,
) (*Application, error)

GetApplication returns a pointer to the Argo CD Application resource specified by the namespace and name arguments. If no such resource is found, nil is returned instead.

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 ApplicationCondition added in v0.6.0

type ApplicationCondition struct {
	Type               ApplicationConditionType `json:"type"`
	Message            string                   `json:"message"`
	LastTransitionTime *metav1.Time             `json:"lastTransitionTime,omitempty"`
}

func (*ApplicationCondition) DeepCopy added in v0.6.0

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

func (*ApplicationCondition) DeepCopyInto added in v0.6.0

func (in *ApplicationCondition) DeepCopyInto(out *ApplicationCondition)

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

type ApplicationConditionType added in v0.6.0

type ApplicationConditionType string
var (
	ApplicationConditionInvalidSpecError ApplicationConditionType = "InvalidSpecError"
	ApplicationConditionComparisonError  ApplicationConditionType = "ComparisonError"
)

type ApplicationList

type ApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	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 ApplicationSource

type ApplicationSource struct {
	RepoURL        string                      `json:"repoURL"`
	TargetRevision string                      `json:"targetRevision,omitempty"`
	Helm           *ApplicationSourceHelm      `json:"helm,omitempty"`
	Kustomize      *ApplicationSourceKustomize `json:"kustomize,omitempty"`
	Chart          string                      `json:"chart,omitempty"`
}

func (*ApplicationSource) DeepCopy

func (in *ApplicationSource) DeepCopy() *ApplicationSource

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

func (*ApplicationSource) DeepCopyInto

func (in *ApplicationSource) DeepCopyInto(out *ApplicationSource)

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

func (*ApplicationSource) Equals added in v0.7.1

func (source *ApplicationSource) Equals(other *ApplicationSource) bool

Equals compares two instances of ApplicationSource and returns true if they are equal.

type ApplicationSourceHelm

type ApplicationSourceHelm struct {
	Parameters []HelmParameter `json:"parameters,omitempty"`
}

func (*ApplicationSourceHelm) DeepCopy

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

func (*ApplicationSourceHelm) DeepCopyInto

func (in *ApplicationSourceHelm) DeepCopyInto(out *ApplicationSourceHelm)

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

type ApplicationSourceKustomize

type ApplicationSourceKustomize struct {
	Images KustomizeImages `json:"images,omitempty"`
}

func (*ApplicationSourceKustomize) DeepCopy

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

func (*ApplicationSourceKustomize) DeepCopyInto

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

type ApplicationSources

type ApplicationSources []ApplicationSource

func (ApplicationSources) DeepCopy

func (in ApplicationSources) DeepCopy() ApplicationSources

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

func (ApplicationSources) DeepCopyInto

func (in ApplicationSources) DeepCopyInto(out *ApplicationSources)

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

func (ApplicationSources) Equals added in v0.7.1

func (s ApplicationSources) Equals(other ApplicationSources) bool

Equals compares two instances of ApplicationSources and returns true if they are equal.

type ApplicationSpec

type ApplicationSpec struct {
	Source     *ApplicationSource `json:"source,omitempty"`
	SyncPolicy *SyncPolicy        `json:"syncPolicy,omitempty"`
	Sources    ApplicationSources `json:"sources,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 ApplicationStatus

type ApplicationStatus struct {
	Health         HealthStatus           `json:"health,omitempty"`
	Sync           SyncStatus             `json:"sync,omitempty"`
	Conditions     []ApplicationCondition `json:"conditions,omitempty"`
	OperationState *OperationState        `json:"operationState,omitempty"`
}

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.

type Backoff

type Backoff struct {
	Duration    string `json:"duration,omitempty"`
	Factor      *int64 `json:"factor,omitempty"`
	MaxDuration string `json:"maxDuration,omitempty"`
}

func (*Backoff) DeepCopy

func (in *Backoff) DeepCopy() *Backoff

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

func (*Backoff) DeepCopyInto

func (in *Backoff) DeepCopyInto(out *Backoff)

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

type HealthStatus

type HealthStatus struct {
	Status  HealthStatusCode `json:"status,omitempty"`
	Message string           `json:"message,omitempty"`
}

func (*HealthStatus) DeepCopy

func (in *HealthStatus) DeepCopy() *HealthStatus

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

func (*HealthStatus) DeepCopyInto

func (in *HealthStatus) DeepCopyInto(out *HealthStatus)

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

type HealthStatusCode

type HealthStatusCode string
const (
	HealthStatusUnknown     HealthStatusCode = "Unknown"
	HealthStatusProgressing HealthStatusCode = "Progressing"
	HealthStatusHealthy     HealthStatusCode = "Healthy"
	HealthStatusSuspended   HealthStatusCode = "Suspended"
	HealthStatusDegraded    HealthStatusCode = "Degraded"
	HealthStatusMissing     HealthStatusCode = "Missing"
)

type HelmParameter

type HelmParameter struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*HelmParameter) DeepCopy

func (in *HelmParameter) DeepCopy() *HelmParameter

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

func (*HelmParameter) DeepCopyInto

func (in *HelmParameter) DeepCopyInto(out *HelmParameter)

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

type Info

type Info struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*Info) DeepCopy

func (in *Info) DeepCopy() *Info

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

func (*Info) DeepCopyInto

func (in *Info) DeepCopyInto(out *Info)

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

type KustomizeImage

type KustomizeImage string

type KustomizeImages

type KustomizeImages []KustomizeImage

func (KustomizeImages) DeepCopy

func (in KustomizeImages) DeepCopy() KustomizeImages

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

func (KustomizeImages) DeepCopyInto

func (in KustomizeImages) DeepCopyInto(out *KustomizeImages)

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

type Operation

type Operation struct {
	Sync        *SyncOperation     `json:"sync,omitempty"`
	InitiatedBy OperationInitiator `json:"initiatedBy,omitempty"`
	Info        []*Info            `json:"info,omitempty"`
	Retry       RetryStrategy      `json:"retry,omitempty"`
}

func (*Operation) DeepCopy

func (in *Operation) DeepCopy() *Operation

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

func (*Operation) DeepCopyInto

func (in *Operation) DeepCopyInto(out *Operation)

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

type OperationInitiator

type OperationInitiator struct {
	Username  string `json:"username,omitempty"`
	Automated bool   `json:"automated,omitempty"`
}

func (*OperationInitiator) DeepCopy

func (in *OperationInitiator) DeepCopy() *OperationInitiator

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

func (*OperationInitiator) DeepCopyInto

func (in *OperationInitiator) DeepCopyInto(out *OperationInitiator)

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

type OperationPhase added in v0.6.0

type OperationPhase string
const (
	OperationRunning     OperationPhase = "Running"
	OperationTerminating OperationPhase = "Terminating"
	OperationFailed      OperationPhase = "Failed"
	OperationError       OperationPhase = "Error"
	OperationSucceeded   OperationPhase = "Succeeded"
)

func (OperationPhase) Completed added in v0.6.0

func (os OperationPhase) Completed() bool

func (OperationPhase) Failed added in v0.6.0

func (os OperationPhase) Failed() bool

type OperationState added in v0.6.0

type OperationState struct {
	Operation  Operation            `json:"operation,omitempty"`
	Phase      OperationPhase       `json:"phase,omitempty"`
	Message    string               `json:"message,omitempty"`
	SyncResult *SyncOperationResult `json:"syncResult,omitempty"`
	FinishedAt *metav1.Time         `json:"finishedAt,omitempty"`
}

func (*OperationState) DeepCopy added in v0.6.0

func (in *OperationState) DeepCopy() *OperationState

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

func (*OperationState) DeepCopyInto added in v0.6.0

func (in *OperationState) DeepCopyInto(out *OperationState)

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

type RefreshType

type RefreshType string
const (
	RefreshTypeHard RefreshType = "hard"
)

type RetryStrategy

type RetryStrategy struct {
	Limit   int64    `json:"limit,omitempty"`
	Backoff *Backoff `json:"backoff,omitempty"`
}

func (*RetryStrategy) DeepCopy

func (in *RetryStrategy) DeepCopy() *RetryStrategy

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

func (*RetryStrategy) DeepCopyInto

func (in *RetryStrategy) DeepCopyInto(out *RetryStrategy)

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

type SyncOperation

type SyncOperation struct {
	SyncOptions SyncOptions `json:"syncOptions,omitempty"`
	Revisions   []string    `json:"revisions,omitempty"`
}

func (*SyncOperation) DeepCopy

func (in *SyncOperation) DeepCopy() *SyncOperation

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

func (*SyncOperation) DeepCopyInto

func (in *SyncOperation) DeepCopyInto(out *SyncOperation)

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

type SyncOperationResult added in v0.6.0

type SyncOperationResult struct {
	Revision string             `json:"revision,omitempty"`
	Source   ApplicationSource  `json:"source,omitempty"`
	Sources  ApplicationSources `json:"sources,omitempty"`
}

func (*SyncOperationResult) DeepCopy added in v0.6.0

func (in *SyncOperationResult) DeepCopy() *SyncOperationResult

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

func (*SyncOperationResult) DeepCopyInto added in v0.6.0

func (in *SyncOperationResult) DeepCopyInto(out *SyncOperationResult)

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

type SyncOptions

type SyncOptions []string

func (SyncOptions) DeepCopy

func (in SyncOptions) DeepCopy() SyncOptions

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

func (SyncOptions) DeepCopyInto

func (in SyncOptions) DeepCopyInto(out *SyncOptions)

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

type SyncPolicy

type SyncPolicy struct {
	SyncOptions SyncOptions    `json:"syncOptions,omitempty"`
	Retry       *RetryStrategy `json:"retry,omitempty"`
}

func (*SyncPolicy) DeepCopy

func (in *SyncPolicy) DeepCopy() *SyncPolicy

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

func (*SyncPolicy) DeepCopyInto

func (in *SyncPolicy) DeepCopyInto(out *SyncPolicy)

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

type SyncStatus

type SyncStatus struct {
	Status    SyncStatusCode `json:"status"`
	Revision  string         `json:"revision,omitempty"`
	Revisions []string       `json:"revisions,omitempty"`
}

func (*SyncStatus) DeepCopy

func (in *SyncStatus) DeepCopy() *SyncStatus

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

func (*SyncStatus) DeepCopyInto

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

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

type SyncStatusCode

type SyncStatusCode string
const (
	SyncStatusCodeSynced SyncStatusCode = "Synced"
)

Jump to

Keyboard shortcuts

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