Documentation
¶
Overview ¶
Package v1alpha1 contains the core resources of the argocd provider. +kubebuilder:object:generate=true +groupName=projects.argocd.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type ApplicationDestination
- type JWTToken
- type JWTTokens
- type OrphanedResourceKey
- type OrphanedResourcesMonitorSettings
- type Project
- func (in *Project) DeepCopy() *Project
- func (in *Project) DeepCopyInto(out *Project)
- func (in *Project) DeepCopyObject() runtime.Object
- func (mg *Project) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Project) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Project) GetManagementPolicies() xpv1.ManagementPolicies
- func (mg *Project) GetProviderConfigReference() *xpv1.Reference
- func (mg *Project) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *Project) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Project) SetConditions(c ...xpv1.Condition)
- func (mg *Project) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Project) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (mg *Project) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Project) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ProjectList
- type ProjectObservation
- type ProjectParameters
- type ProjectRole
- type ProjectSpec
- type ProjectStatus
- type SignatureKey
- type SyncWindow
- type SyncWindows
- type Token
- func (in *Token) DeepCopy() *Token
- func (in *Token) DeepCopyInto(out *Token)
- func (in *Token) DeepCopyObject() runtime.Object
- func (mg *Token) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Token) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Token) GetManagementPolicies() xpv1.ManagementPolicies
- func (mg *Token) GetProviderConfigReference() *xpv1.Reference
- func (mg *Token) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *Token) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Token) SetConditions(c ...xpv1.Condition)
- func (mg *Token) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Token) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (mg *Token) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Token) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type TokenList
- type TokenObservation
- type TokenParameters
- type TokenSpec
- type TokenStatus
Constants ¶
const ( Group = "projects.argocd.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
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} )
var ( ProjectKind = reflect.TypeOf(Project{}).Name() ProjectGroupKind = schema.GroupKind{Group: Group, Kind: ProjectKind}.String() ProjectKindAPIVersion = ProjectKind + "." + SchemeGroupVersion.String() ProjectGroupVersionKind = SchemeGroupVersion.WithKind(ProjectKind) TokenKind = reflect.TypeOf(Token{}).Name() TokenGroupKind = schema.GroupKind{Group: Group, Kind: TokenKind}.String() TokenKindAPIVersion = TokenKind + "." + SchemeGroupVersion.String() TokenGroupVersionKind = SchemeGroupVersion.WithKind(TokenKind) )
Project type metadata
Functions ¶
This section is empty.
Types ¶
type ApplicationDestination ¶
type ApplicationDestination struct {
// Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.Cluster
// +crossplane:generate:reference:refFieldName=ServerRef
// +crossplane:generate:reference:selectorFieldName=ServerSelector
// +optional
Server *string `json:"server,omitempty"`
// ServerRef is a reference to an Cluster used to set Server
// +optional
ServerRef *xpv1.Reference `json:"serverRef,omitempty"`
// SourceReposSelector selects references to Repositories used to set SourceRepos
// +optional
ServerSelector *xpv1.Selector `json:"serverSelector,omitempty"`
// Namespace specifies the target namespace for the application's resources.
// The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace
// +optional
Namespace *string `json:"namespace,omitempty"`
// Name is an alternate way of specifying the target cluster by its symbolic name
// +optional
Name *string `json:"name,omitempty"`
}
ApplicationDestination holds information about the application's destination
func (*ApplicationDestination) DeepCopy ¶
func (in *ApplicationDestination) DeepCopy() *ApplicationDestination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationDestination.
func (*ApplicationDestination) DeepCopyInto ¶
func (in *ApplicationDestination) DeepCopyInto(out *ApplicationDestination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JWTToken ¶
type JWTToken struct {
IssuedAt int64 `json:"iat"`
// +optional
ExpiresAt *int64 `json:"exp,omitempty"`
// +optional
ID *string `json:"id,omitempty"`
}
JWTToken holds the issuedAt and expiresAt values of a token
func (*JWTToken) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JWTToken.
func (*JWTToken) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JWTTokens ¶
type JWTTokens struct {
// +optional
Items []JWTToken `json:"items,omitempty"`
}
JWTTokens represents a list of JWT tokens
func (*JWTTokens) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JWTTokens.
func (*JWTTokens) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrphanedResourceKey ¶
type OrphanedResourceKey struct {
// +optional
Group *string `json:"group,omitempty"`
// +optional
Kind *string `json:"kind,omitempty"`
// +optional
Name *string `json:"name,omitempty"`
}
OrphanedResourceKey is a reference to a resource to be ignored from
func (*OrphanedResourceKey) DeepCopy ¶
func (in *OrphanedResourceKey) DeepCopy() *OrphanedResourceKey
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanedResourceKey.
func (*OrphanedResourceKey) DeepCopyInto ¶
func (in *OrphanedResourceKey) DeepCopyInto(out *OrphanedResourceKey)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrphanedResourcesMonitorSettings ¶
type OrphanedResourcesMonitorSettings struct {
// Warn indicates if warning condition should be created for apps which have orphaned resources
// +optional
Warn *bool `json:"warn,omitempty"`
// Ignore contains a list of resources that are to be excluded from orphaned resources monitoring
// +optional
Ignore []OrphanedResourceKey `json:"ignore,omitempty"`
}
OrphanedResourcesMonitorSettings holds settings of orphaned resources monitoring
func (*OrphanedResourcesMonitorSettings) DeepCopy ¶
func (in *OrphanedResourcesMonitorSettings) DeepCopy() *OrphanedResourcesMonitorSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanedResourcesMonitorSettings.
func (*OrphanedResourcesMonitorSettings) DeepCopyInto ¶
func (in *OrphanedResourcesMonitorSettings) DeepCopyInto(out *OrphanedResourcesMonitorSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProjectSpec `json:"spec"`
Status ProjectStatus `json:"status,omitempty"`
}
A Project is a managed resource that represents an ArgoCD Git Project +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 (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Project) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Project) GetCondition ¶
func (mg *Project) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Project.
func (*Project) GetDeletionPolicy ¶
func (mg *Project) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Project.
func (*Project) GetManagementPolicies ¶ added in v0.7.0
func (mg *Project) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Project.
func (*Project) GetProviderConfigReference ¶
GetProviderConfigReference of this Project.
func (*Project) GetWriteConnectionSecretToReference ¶
func (mg *Project) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Project.
func (*Project) ResolveReferences ¶
ResolveReferences of this Project.
func (*Project) SetConditions ¶
SetConditions of this Project.
func (*Project) SetDeletionPolicy ¶
func (mg *Project) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Project.
func (*Project) SetManagementPolicies ¶ added in v0.7.0
func (mg *Project) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Project.
func (*Project) SetProviderConfigReference ¶
SetProviderConfigReference of this Project.
func (*Project) SetWriteConnectionSecretToReference ¶
func (mg *Project) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Project.
type ProjectList ¶
type ProjectList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Project `json:"items"`
}
ProjectList contains a list of Project items
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) DeepCopyObject ¶
func (in *ProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProjectList) GetItems ¶
func (l *ProjectList) GetItems() []resource.Managed
GetItems of this ProjectList.
type ProjectObservation ¶
type ProjectObservation struct {
// JWTTokensByRole contains a list of JWT tokens issued for a given role
// +optional
JWTTokensByRole map[string]JWTTokens `json:"jwtTokensByRole,omitempty"`
}
ProjectObservation represents an argocd Project.
func (*ProjectObservation) DeepCopy ¶
func (in *ProjectObservation) DeepCopy() *ProjectObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectObservation.
func (*ProjectObservation) DeepCopyInto ¶
func (in *ProjectObservation) DeepCopyInto(out *ProjectObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectParameters ¶
type ProjectParameters struct {
// SourceRepos contains list of repository URLs which can be used for deployment
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/repositories/v1alpha1.Repository
// +crossplane:generate:reference:refFieldName=SourceReposRefs
// +crossplane:generate:reference:selectorFieldName=SourceReposSelector
// +optional
SourceRepos []string `json:"sourceRepos,omitempty"`
// SourceReposRefs is a reference to an array of Repository used to set SourceRepos
// +optional
SourceReposRefs []xpv1.Reference `json:"sourceReposRefs,omitempty"`
// SourceReposSelector selects references to Repositories used to set SourceRepos
// +optional
SourceReposSelector *xpv1.Selector `json:"sourceReposSelector,omitempty"`
// Destinations contains list of destinations available for deployment
// +optional
Destinations []ApplicationDestination `json:"destinations,omitempty"`
// SourceNamespaces contains list of namespaces which are authorized in the project
// +optional
SourceNamespaces []string `json:"sourceNamespaces,omitempty"`
// Description contains optional project description
// +optional
Description *string `json:"description,omitempty"`
// Roles are user defined RBAC roles associated with this project
// +optional
Roles []ProjectRole `json:"roles,omitempty"`
// ClusterResourceWhitelist contains list of whitelisted cluster level resources
// +optional
ClusterResourceWhitelist []metav1.GroupKind `json:"clusterResourceWhitelist,omitempty"`
// NamespaceResourceBlacklist contains list of blacklisted namespace level resources
// +optional
NamespaceResourceBlacklist []metav1.GroupKind `json:"namespaceResourceBlacklist,omitempty"`
// OrphanedResources specifies if controller should monitor orphaned resources of apps in this project
// +optional
OrphanedResources *OrphanedResourcesMonitorSettings `json:"orphanedResources,omitempty"`
// SyncWindows controls when syncs can be run for apps in this project
// +optional
SyncWindows SyncWindows `json:"syncWindows,omitempty"`
// NamespaceResourceWhitelist contains list of whitelisted namespace level resources
// +optional
NamespaceResourceWhitelist []metav1.GroupKind `json:"namespaceResourceWhitelist,omitempty"`
// SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync
// +optional
SignatureKeys []SignatureKey `json:"signatureKeys,omitempty"`
// ClusterResourceBlacklist contains list of blacklisted cluster level resources
// +optional
ClusterResourceBlacklist []metav1.GroupKind `json:"clusterResourceBlacklist,omitempty"`
// ProjectLabels labels that will be applied to the AppProject
// +optional
ProjectLabels map[string]string `json:"projectLabels,omitempty"`
}
ProjectParameters define the desired state of an ArgoCD Git Project
func (*ProjectParameters) DeepCopy ¶
func (in *ProjectParameters) DeepCopy() *ProjectParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectParameters.
func (*ProjectParameters) DeepCopyInto ¶
func (in *ProjectParameters) DeepCopyInto(out *ProjectParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectRole ¶
type ProjectRole struct {
// Name is a name for this role
Name string `json:"name"`
// Description is a description of the role
// +optional
Description *string `json:"description,omitempty"`
// Policies Stores a list of casbin formated strings that define access policies for the role in the project
// +optional
Policies []string `json:"policies,omitempty"`
// JWTTokens are a list of generated JWT tokens bound to this role
// +optional
JWTTokens []JWTToken `json:"jwtTokens,omitempty"`
// Groups are a list of OIDC group claims bound to this role
// +optional
Groups []string `json:"groups,omitempty"`
}
ProjectRole represents a role that has access to a project
func (*ProjectRole) DeepCopy ¶
func (in *ProjectRole) DeepCopy() *ProjectRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRole.
func (*ProjectRole) DeepCopyInto ¶
func (in *ProjectRole) DeepCopyInto(out *ProjectRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectSpec ¶
type ProjectSpec struct {
xpv1.ResourceSpec `json:",inline"`
ForProvider ProjectParameters `json:"forProvider"`
}
A ProjectSpec defines the desired state of an ArgoCD Project.
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectStatus ¶
type ProjectStatus struct {
xpv1.ResourceStatus `json:",inline"`
AtProvider ProjectObservation `json:"atProvider,omitempty"`
}
A ProjectStatus represents the observed state of an ArgoCD Project.
func (*ProjectStatus) DeepCopy ¶
func (in *ProjectStatus) DeepCopy() *ProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus.
func (*ProjectStatus) DeepCopyInto ¶
func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SignatureKey ¶
type SignatureKey struct {
// The ID of the key in hexadecimal notation
KeyID string `json:"keyID"`
}
SignatureKey is the specification of a key required to verify commit signatures with
func (*SignatureKey) DeepCopy ¶
func (in *SignatureKey) DeepCopy() *SignatureKey
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignatureKey.
func (*SignatureKey) DeepCopyInto ¶
func (in *SignatureKey) DeepCopyInto(out *SignatureKey)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncWindow ¶
type SyncWindow struct {
// Kind defines if the window allows or blocks syncs
// +optional
Kind *string `json:"kind,omitempty"`
// Schedule is the time the window will begin, specified in cron format
// +optional
Schedule *string `json:"schedule,omitempty"`
// Duration is the amount of time the sync window will be open
// +optional
Duration *string `json:"duration,omitempty"`
// Applications contains a list of applications that the window will apply to
// +optional
Applications []string `json:"applications,omitempty"`
// Namespaces contains a list of namespaces that the window will apply to
// +optional
Namespaces []string `json:"namespaces,omitempty"`
// Clusters contains a list of clusters that the window will apply to
// +optional
Clusters []string `json:"clusters,omitempty"`
// ManualSync enables manual syncs when they would otherwise be blocked
// +optional
ManualSync *bool `json:"manualSync,omitempty"`
}
SyncWindow contains the kind, time, duration and attributes that are used to assign the syncWindows to apps
func (*SyncWindow) DeepCopy ¶
func (in *SyncWindow) DeepCopy() *SyncWindow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncWindow.
func (*SyncWindow) DeepCopyInto ¶
func (in *SyncWindow) DeepCopyInto(out *SyncWindow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncWindows ¶
type SyncWindows []SyncWindow
SyncWindows is a collection of sync windows in this project
func (SyncWindows) DeepCopy ¶
func (in SyncWindows) DeepCopy() SyncWindows
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncWindows.
func (SyncWindows) DeepCopyInto ¶
func (in SyncWindows) DeepCopyInto(out *SyncWindows)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Token ¶ added in v0.10.0
type Token struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TokenSpec `json:"spec"`
Status TokenStatus `json:"status,omitempty"`
}
A Token is a managed resource that represents an ArgoCD Project Token +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="PROJECT",type="string",JSONPath=".spec.forProvider.project" +kubebuilder:printcolumn:name="ROLE",type="string",JSONPath=".spec.forProvider.role" +kubebuilder:printcolumn:name="EXPIRES-AT",type="string",JSONPath=".status.atProvider.exp" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,argocd}
func (*Token) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Token.
func (*Token) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Token) DeepCopyObject ¶ added in v0.10.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Token) GetCondition ¶ added in v0.10.0
func (mg *Token) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Token.
func (*Token) GetDeletionPolicy ¶ added in v0.10.0
func (mg *Token) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Token.
func (*Token) GetManagementPolicies ¶ added in v0.10.0
func (mg *Token) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Token.
func (*Token) GetProviderConfigReference ¶ added in v0.10.0
GetProviderConfigReference of this Token.
func (*Token) GetWriteConnectionSecretToReference ¶ added in v0.10.0
func (mg *Token) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Token.
func (*Token) ResolveReferences ¶ added in v0.10.0
ResolveReferences of this Token.
func (*Token) SetConditions ¶ added in v0.10.0
SetConditions of this Token.
func (*Token) SetDeletionPolicy ¶ added in v0.10.0
func (mg *Token) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Token.
func (*Token) SetManagementPolicies ¶ added in v0.10.0
func (mg *Token) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Token.
func (*Token) SetProviderConfigReference ¶ added in v0.10.0
SetProviderConfigReference of this Token.
func (*Token) SetWriteConnectionSecretToReference ¶ added in v0.10.0
func (mg *Token) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Token.
type TokenList ¶ added in v0.10.0
type TokenList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Token `json:"items"`
}
TokenList contains a list of Token items
func (*TokenList) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenList.
func (*TokenList) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TokenList) DeepCopyObject ¶ added in v0.10.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TokenObservation ¶ added in v0.10.0
type TokenObservation struct {
IssuedAt int64 `json:"iat"`
// +optional
ExpiresAt *int64 `json:"exp,omitempty"`
// +optional
ID *string `json:"id,omitempty"`
}
TokenObservation holds the issuedAt and expiresAt values of a token
func (*TokenObservation) DeepCopy ¶ added in v0.10.0
func (in *TokenObservation) DeepCopy() *TokenObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenObservation.
func (*TokenObservation) DeepCopyInto ¶ added in v0.10.0
func (in *TokenObservation) DeepCopyInto(out *TokenObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenParameters ¶ added in v0.10.0
type TokenParameters struct {
// Project is the project associated with the token
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/projects/v1alpha1.Project
// +crossplane:generate:reference:refFieldName=ProjectRef
// +crossplane:generate:reference:selectorFieldName=ProjectSelector
Project *string `json:"project"`
// ProjectRefs is a reference to a Project used to set Project
// +optional
ProjectRef *xpv1.Reference `json:"projectRef,omitempty"`
// ProjectSelector selects reference to a Project used to ProjectRef
// +optional
ProjectSelector *xpv1.Selector `json:"projectSelector,omitempty"`
// Role is the role associated with the token.
Role string `json:"role"`
// ID is an id for the token
// +optional
ID string `json:"id"`
// Description is a description for the token
// +optional
Description *string `json:"description,omitempty"`
// Duration before the token will expire. Valid time units are `s`, `m`, `h` and `d` E.g. 12h, 7d. No expiration if not set.
// +optional
// +kubebuilder:validation:Pattern=`^(0|[0-9]+(s|m|h|d))$`
ExpiresIn *string `json:"expiresIn,omitempty"`
// Duration to control token regeneration based on token age. Valid time units are `s`, `m`, `h` and `d`.
// +optional
// +kubebuilder:validation:Pattern=`^([0-9]+)(s|m|h|d)$`
RenewAfter *string `json:"renewAfter,omitempty"`
// Duration to control token regeneration based on remaining token lifetime. Valid time units are `s`, `m`, `h` and `d`.
// +optional
// +kubebuilder:validation:Pattern=`^([0-9]+)(s|m|h|d)$`
RenewBefore *string `json:"renewBefore,omitempty"`
}
TokenParameters define the desired state of an ArgoCD Project Token
func (*TokenParameters) DeepCopy ¶ added in v0.10.0
func (in *TokenParameters) DeepCopy() *TokenParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenParameters.
func (*TokenParameters) DeepCopyInto ¶ added in v0.10.0
func (in *TokenParameters) DeepCopyInto(out *TokenParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenSpec ¶ added in v0.10.0
type TokenSpec struct {
xpv1.ResourceSpec `json:",inline"`
ForProvider TokenParameters `json:"forProvider"`
}
A TokenSpec defines the desired state of an ArgoCD Token.
func (*TokenSpec) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenSpec.
func (*TokenSpec) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenStatus ¶ added in v0.10.0
type TokenStatus struct {
xpv1.ResourceStatus `json:",inline"`
AtProvider TokenObservation `json:"atProvider,omitempty"`
}
A TokenStatus represents the observed state of an ArgoCD Project Token.
func (*TokenStatus) DeepCopy ¶ added in v0.10.0
func (in *TokenStatus) DeepCopy() *TokenStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenStatus.
func (*TokenStatus) DeepCopyInto ¶ added in v0.10.0
func (in *TokenStatus) DeepCopyInto(out *TokenStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.