v1alpha1

package
v0.4.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 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 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) GetProviderConfigReference

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

GetProviderConfigReference of this Repository.

func (*Repository) GetProviderReference

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

GetProviderReference of this Repository. Deprecated: Use GetProviderConfigReference.

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) SetProviderConfigReference

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

SetProviderConfigReference of this Repository.

func (*Repository) SetProviderReference

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

SetProviderReference of this Repository. Deprecated: Use SetProviderConfigReference.

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"`
}

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"`
	// 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 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