v1alpha1

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains the core resources of the argocd provider. +kubebuilder:object:generate=true +groupName=repositories.argocd.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "repositories.argocd.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	RepositoryKind             = reflect.TypeOf(Repository{}).Name()
	RepositoryGroupKind        = schema.GroupKind{Group: Group, Kind: RepositoryKind}.String()
	RepositoryKindAPIVersion   = RepositoryKind + "." + SchemeGroupVersion.String()
	RepositoryGroupVersionKind = SchemeGroupVersion.WithKind(RepositoryKind)
)

Repository type metadata

Functions

This section is empty.

Types

type ConnectionState

type ConnectionState struct {
	Status     string       `json:"status,omitempty"`
	Message    string       `json:"message,omitempty"`
	ModifiedAt *metav1.Time `json:"attemptedAt,omitempty"`
}

ConnectionState is the observed state of the argocd repository

func (*ConnectionState) DeepCopy

func (in *ConnectionState) DeepCopy() *ConnectionState

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

func (*ConnectionState) DeepCopyInto

func (in *ConnectionState) DeepCopyInto(out *ConnectionState)

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

type PasswordObservation added in v0.7.0

type PasswordObservation struct {
	Secret SecretObservation `json:"secret,omitempty"`
}

PasswordObservation holds the status of a referenced password

func (*PasswordObservation) DeepCopy added in v0.7.0

func (in *PasswordObservation) DeepCopy() *PasswordObservation

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

func (*PasswordObservation) DeepCopyInto added in v0.7.0

func (in *PasswordObservation) DeepCopyInto(out *PasswordObservation)

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

type Repository

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

	Spec   RepositorySpec   `json:"spec"`
	Status RepositoryStatus `json:"status,omitempty"`
}

A Repository is a managed resource that represents an ArgoCD Git Repository +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,argocd}

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.

func (*Repository) GetCondition

func (mg *Repository) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Repository.

func (*Repository) GetDeletionPolicy

func (mg *Repository) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Repository.

func (*Repository) GetManagementPolicies added in v0.7.0

func (mg *Repository) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Repository.

func (*Repository) GetProviderConfigReference

func (mg *Repository) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Repository.

func (*Repository) GetPublishConnectionDetailsTo added in v0.3.0

func (mg *Repository) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Repository.

func (*Repository) GetWriteConnectionSecretToReference

func (mg *Repository) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Repository.

func (*Repository) SetConditions

func (mg *Repository) SetConditions(c ...xpv1.Condition)

SetConditions of this Repository.

func (*Repository) SetDeletionPolicy

func (mg *Repository) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Repository.

func (*Repository) SetManagementPolicies added in v0.7.0

func (mg *Repository) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Repository.

func (*Repository) SetProviderConfigReference

func (mg *Repository) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Repository.

func (*Repository) SetPublishConnectionDetailsTo added in v0.3.0

func (mg *Repository) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Repository.

func (*Repository) SetWriteConnectionSecretToReference

func (mg *Repository) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Repository.

type RepositoryList

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

RepositoryList contains a list of Repository items

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.

func (*RepositoryList) GetItems

func (l *RepositoryList) GetItems() []resource.Managed

GetItems of this RepositoryList.

type RepositoryObservation

type RepositoryObservation struct {
	// Current state of repository server connecting
	ConnectionState ConnectionState `json:"connectionState,omitempty"`

	// Password tracks changes to a Password secret
	// +optional
	Password *PasswordObservation `json:"password,omitempty"`

	// SSHPrivateKey tracks changes to a SSHPrivateKey secret
	// +optional
	SSHPrivateKey *PasswordObservation `json:"sshPrivateKey,omitempty"`

	// TLSClientCertData tracks changes to a TLSClientCertData secret
	// +optional
	TLSClientCertData *PasswordObservation `json:"tlsClientCertData,omitempty"`

	// TLSClientCertKey tracks changes to a TLSClientCertKey secret
	// +optional
	TLSClientCertKey *PasswordObservation `json:"tlsClientCertKey,omitempty"`

	// GithubAppPrivateKey tracks changes to a GithubAppPrivateKey secret
	// +optional
	GithubAppPrivateKey *PasswordObservation `json:"githubAppPrivateKey,omitempty"`
}

RepositoryObservation represents an argocd repository.

func (*RepositoryObservation) DeepCopy

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

func (*RepositoryObservation) DeepCopyInto

func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation)

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

type RepositoryParameters

type RepositoryParameters struct {
	// URL of the repo
	// +immutable
	Repo string `json:"repo"`
	// Username for authenticating at the repo server
	// +optional
	Username *string `json:"username,omitempty"`
	// Password for authenticating at the repo server
	// +optional
	PasswordRef *SecretReference `json:"passwordRef,omitempty"`
	// SSH private key data for authenticating at the repo server
	// only for Git repos
	// +optional
	// SSHPrivateKey *string `json:"sshPrivateKey,omitempty"`
	SSHPrivateKeyRef *SecretReference `json:"sshPrivateKeyRef,omitempty"`
	// Whether the repo is insecure
	// +optional
	Insecure *bool `json:"insecure,omitempty"`
	// Whether git-lfs support should be enabled for this repo
	// +optional
	EnableLFS *bool `json:"enableLfs,omitempty"`
	// TLS client cert data for authenticating at the repo server
	// +optional
	TLSClientCertDataRef *SecretReference `json:"tlsClientCertDataRef,omitempty"`
	// TLS client cert key for authenticating at the repo server
	// +optional
	TLSClientCertKeyRef *SecretReference `json:"tlsClientCertKeyRef,omitempty"`
	// type of the repo, maybe "git or "helm, "git" is assumed if empty or absent
	// +optional
	Type *string `json:"type,omitempty"`
	// Project is a reference to the project with scoped repositories
	// +optional
	// only for git repos
	Project *string `json:"project,omitempty"`
	// only for Helm repos
	// +optional
	Name *string `json:"name,omitempty"`
	// Whether credentials were inherited from a credential set
	// +optional
	InheritedCreds *bool `json:"inheritedCreds,omitempty"`
	// Whether helm-oci support should be enabled for this repo
	// +optional
	EnableOCI *bool `json:"enableOCI,omitempty"`
	// Github App Private Key PEM data
	// +optional
	GithubAppPrivateKeyRef *SecretReference `json:"githubAppPrivateKeyRef,omitempty"`
	// Github App ID of the app used to access the repo
	// +optional
	GithubAppID *int64 `json:"githubAppID,omitempty"`
	// Github App Installation ID of the installed GitHub App
	// +optional
	GithubAppInstallationID *int64 `json:"githubAppInstallationID,omitempty"`
	// Github App Enterprise base url if empty will default to https://api.github.com
	// +optional
	GitHubAppEnterpriseBaseURL *string `json:"githubAppEnterpriseBaseUrl,omitempty"`
}

RepositoryParameters define the desired state of an ArgoCD Git Repository

func (*RepositoryParameters) DeepCopy

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

func (*RepositoryParameters) DeepCopyInto

func (in *RepositoryParameters) DeepCopyInto(out *RepositoryParameters)

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

type RepositorySpec

type RepositorySpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       RepositoryParameters `json:"forProvider"`
}

A RepositorySpec defines the desired state of an ArgoCD 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 {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          RepositoryObservation `json:"atProvider,omitempty"`
}

A RepositoryStatus represents the observed state of an ArgoCD Repository.

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.

type SecretObservation added in v0.7.0

type SecretObservation struct {
	// ResourceVersion tracks the meta1.ResourceVersion of an Object
	ResourceVersion string `json:"resourceVersion,omitempty"`
}

SecretObservation observes a secret

func (*SecretObservation) DeepCopy added in v0.7.0

func (in *SecretObservation) DeepCopy() *SecretObservation

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

func (*SecretObservation) DeepCopyInto added in v0.7.0

func (in *SecretObservation) DeepCopyInto(out *SecretObservation)

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

type SecretReference

type SecretReference struct {
	// Name of the secret.
	Name string `json:"name"`

	// Namespace of the secret.
	Namespace string `json:"namespace"`

	// Key whose value will be used.
	Key string `json:"key"`
}

SecretReference holds the reference to a Kubernetes secret

func (*SecretReference) DeepCopy

func (in *SecretReference) DeepCopy() *SecretReference

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

func (*SecretReference) DeepCopyInto

func (in *SecretReference) DeepCopyInto(out *SecretReference)

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

Jump to

Keyboard shortcuts

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