v1alpha1

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the rbac-operator.argoproj-labs.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=rbac-operator.argoproj-labs.io

Index

Constants

View Source
const ArgoCDProjectRoleBindingFinalizerName = "rbac-operator.argoproj-labs.io/finalizer"

ArgoCDProjectRoleFinalizerName is the name of the finalizer used to delete the Role

View Source
const ArgoCDProjectRoleFinalizerName = "rbac-operator.argoproj-labs.io/finalizer"

ArgoCDRoleFinalizerName is the name of the finalizer used to delete the Role

View Source
const ArgoCDRoleBindingFinalizerName = "rbac-operator.argoproj-labs.io/finalizer"

ArgoCDRoleFinalizerName is the name of the finalizer used to delete the Role

View Source
const ArgoCDRoleFinalizerName = "rbac-operator.argoproj-labs.io/finalizer"

ArgoCDRoleFinalizerName is the name of the finalizer used to delete the Role

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "rbac-operator.argoproj-labs.io", Version: "v1alpha1"}

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

Functions

This section is empty.

Types

type AppProjectSubject added in v0.2.0

type AppProjectSubject struct {
	// Reference to the AppProject the ArgoCDRole is bound to.
	AppProjectRef string `json:"appProjectRef"`
	// List of groups the role will be granted to.
	Groups []string `json:"groups"`
}

AppProjectSubject defines the subject being bound to ArgoCDProjectRole.

func (*AppProjectSubject) DeepCopy added in v0.2.0

func (in *AppProjectSubject) DeepCopy() *AppProjectSubject

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

func (*AppProjectSubject) DeepCopyInto added in v0.2.0

func (in *AppProjectSubject) DeepCopyInto(out *AppProjectSubject)

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

type ArgoCDProjectRole added in v0.2.0

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

	Spec   ArgoCDProjectRoleSpec   `json:"spec,omitempty"`
	Status ArgoCDProjectRoleStatus `json:"status,omitempty"`
}

ArgoCDProjectRole is the Schema for the argocdprojectroles API.

func (*ArgoCDProjectRole) AddFinalizer added in v0.2.0

func (r *ArgoCDProjectRole) AddFinalizer(finalizerName string)

AddFinalizer adds the finalizer to the Role

func (*ArgoCDProjectRole) DeepCopy added in v0.2.0

func (in *ArgoCDProjectRole) DeepCopy() *ArgoCDProjectRole

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

func (*ArgoCDProjectRole) DeepCopyInto added in v0.2.0

func (in *ArgoCDProjectRole) DeepCopyInto(out *ArgoCDProjectRole)

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

func (*ArgoCDProjectRole) DeepCopyObject added in v0.2.0

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

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

func (*ArgoCDProjectRole) HasArgoCDProjectRoleBindingRef added in v0.2.0

func (r *ArgoCDProjectRole) HasArgoCDProjectRoleBindingRef() bool

func (*ArgoCDProjectRole) HasFinalizer added in v0.2.0

func (r *ArgoCDProjectRole) HasFinalizer(finalizerName string) bool

HasFinalizer returns true if the Role has the finalizer

func (*ArgoCDProjectRole) IsBeingDeleted added in v0.2.0

func (r *ArgoCDProjectRole) IsBeingDeleted() bool

IsBeingDeleted returns true if a deletion timestamp is set

func (*ArgoCDProjectRole) RemoveFinalizer added in v0.2.0

func (r *ArgoCDProjectRole) RemoveFinalizer(finalizerName string)

RemoveFinalizer removes the finalizer from the Role

func (*ArgoCDProjectRole) SetArgoCDProjectRoleBindingRef added in v0.2.0

func (r *ArgoCDProjectRole) SetArgoCDProjectRoleBindingRef(ref string)

func (*ArgoCDProjectRole) SetConditions added in v0.2.0

func (r *ArgoCDProjectRole) SetConditions(c ...Condition)

SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set. Observed generation is updated if higher than the existing one.

type ArgoCDProjectRoleBinding added in v0.2.0

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

	Spec   ArgoCDProjectRoleBindingSpec   `json:"spec,omitempty"`
	Status ArgoCDProjectRoleBindingStatus `json:"status,omitempty"`
}

ArgoCDProjectRoleBinding is the Schema for the argocdprojectrolebindings API.

func (*ArgoCDProjectRoleBinding) AddFinalizer added in v0.2.0

func (r *ArgoCDProjectRoleBinding) AddFinalizer(finalizerName string)

AddFinalizer adds the finalizer to the Role

func (*ArgoCDProjectRoleBinding) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleBinding) DeepCopyInto added in v0.2.0

func (in *ArgoCDProjectRoleBinding) DeepCopyInto(out *ArgoCDProjectRoleBinding)

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

func (*ArgoCDProjectRoleBinding) DeepCopyObject added in v0.2.0

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

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

func (*ArgoCDProjectRoleBinding) HasFinalizer added in v0.2.0

func (r *ArgoCDProjectRoleBinding) HasFinalizer(finalizerName string) bool

HasFinalizer returns true if the Role has the finalizer

func (*ArgoCDProjectRoleBinding) IsBeingDeleted added in v0.2.0

func (r *ArgoCDProjectRoleBinding) IsBeingDeleted() bool

IsBeingDeleted returns true if a deletion timestamp is set

func (*ArgoCDProjectRoleBinding) RemoveFinalizer added in v0.2.0

func (r *ArgoCDProjectRoleBinding) RemoveFinalizer(finalizerName string)

RemoveFinalizer removes the finalizer from the Role

func (*ArgoCDProjectRoleBinding) SetConditions added in v0.2.0

func (rb *ArgoCDProjectRoleBinding) SetConditions(c ...Condition)

SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set. Observed generation is updated if higher than the existing one.

type ArgoCDProjectRoleBindingList added in v0.2.0

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

ArgoCDProjectRoleBindingList contains a list of ArgoCDProjectRoleBinding.

func (*ArgoCDProjectRoleBindingList) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleBindingList) DeepCopyInto added in v0.2.0

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

func (*ArgoCDProjectRoleBindingList) DeepCopyObject added in v0.2.0

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

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

type ArgoCDProjectRoleBindingSpec added in v0.2.0

type ArgoCDProjectRoleBindingSpec struct {
	// List of subjects being bound to ArgoCDProjectRole (argocdProjectRoleRef).
	// +kubebuilder:validation:MinItems=1
	Subjects             []AppProjectSubject  `json:"subjects"`
	ArgoCDProjectRoleRef ArgoCDProjectRoleRef `json:"argocdProjectRoleRef"`
}

ArgoCDProjectRoleBindingSpec defines the desired state of ArgoCDProjectRoleBinding.

func (*ArgoCDProjectRoleBindingSpec) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleBindingSpec) DeepCopyInto added in v0.2.0

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

type ArgoCDProjectRoleBindingStatus added in v0.2.0

type ArgoCDProjectRoleBindingStatus struct {
	// +listType=map
	// +listMapKey=type
	// Conditions defines the list of conditions.
	Conditions []Condition `json:"conditions,omitempty"`
	// AppProjectsBound is a list of AppProjects that the role is bound to.
	AppProjectsBound []string `json:"appProjectsBound,omitempty"`
}

ArgoCDProjectRoleBindingStatus defines the observed state of ArgoCDProjectRoleBinding.

func (*ArgoCDProjectRoleBindingStatus) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleBindingStatus) DeepCopyInto added in v0.2.0

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

type ArgoCDProjectRoleList added in v0.2.0

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

ArgoCDProjectRoleList contains a list of ArgoCDProjectRole.

func (*ArgoCDProjectRoleList) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleList) DeepCopyInto added in v0.2.0

func (in *ArgoCDProjectRoleList) DeepCopyInto(out *ArgoCDProjectRoleList)

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

func (*ArgoCDProjectRoleList) DeepCopyObject added in v0.2.0

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

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

type ArgoCDProjectRoleRef added in v0.2.0

type ArgoCDProjectRoleRef struct {
	// Name of the ArgoCDProjectRole. Should not start with "role:"
	Name string `json:"name"`
}

ArgocdProjectRoleRef defines the reference to the role being granted.

func (*ArgoCDProjectRoleRef) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleRef) DeepCopyInto added in v0.2.0

func (in *ArgoCDProjectRoleRef) DeepCopyInto(out *ArgoCDProjectRoleRef)

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

type ArgoCDProjectRoleSpec added in v0.2.0

type ArgoCDProjectRoleSpec struct {
	// Description of the role.
	Description string        `json:"description"`
	Rules       []ProjectRule `json:"rules"`
}

ArgoCDProjectRoleSpec defines the desired state of an AppProject scoped Role (patched to binded AppProject).

func (*ArgoCDProjectRoleSpec) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleSpec) DeepCopyInto added in v0.2.0

func (in *ArgoCDProjectRoleSpec) DeepCopyInto(out *ArgoCDProjectRoleSpec)

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

type ArgoCDProjectRoleStatus added in v0.2.0

type ArgoCDProjectRoleStatus struct {
	// argocdProjectRoleBindingRef defines the reference to the ArgoCDProjectRoleBinding Resource.
	ArgoCDProjectRoleBindingRef string `json:"argocdProjectRoleBindingRef,omitempty"`
	// +listType=map
	// +listMapKey=type
	// Conditions defines the list of conditions.
	Conditions []Condition `json:"conditions,omitempty"`
}

ArgoCDProjectRoleStatus defines the observed state of ArgoCDProjectRole.

func (*ArgoCDProjectRoleStatus) DeepCopy added in v0.2.0

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

func (*ArgoCDProjectRoleStatus) DeepCopyInto added in v0.2.0

func (in *ArgoCDProjectRoleStatus) DeepCopyInto(out *ArgoCDProjectRoleStatus)

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

type ArgoCDRole

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

	Spec   ArgoCDRoleSpec   `json:"spec,omitempty"`
	Status ArgoCDRoleStatus `json:"status,omitempty"`
}

ArgoCDRole is the Schema for the roles API

func (*ArgoCDRole) AddFinalizer

func (r *ArgoCDRole) AddFinalizer(finalizerName string)

AddFinalizer adds the finalizer to the Role

func (*ArgoCDRole) DeepCopy

func (in *ArgoCDRole) DeepCopy() *ArgoCDRole

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

func (*ArgoCDRole) DeepCopyInto

func (in *ArgoCDRole) DeepCopyInto(out *ArgoCDRole)

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

func (*ArgoCDRole) DeepCopyObject

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

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

func (*ArgoCDRole) HasArgoCDRoleBindingRef

func (r *ArgoCDRole) HasArgoCDRoleBindingRef() bool

func (*ArgoCDRole) HasFinalizer

func (r *ArgoCDRole) HasFinalizer(finalizerName string) bool

HasFinalizer returns true if the Role has the finalizer

func (*ArgoCDRole) IsBeingDeleted

func (r *ArgoCDRole) IsBeingDeleted() bool

IsBeingDeleted returns true if a deletion timestamp is set

func (*ArgoCDRole) RemoveFinalizer

func (r *ArgoCDRole) RemoveFinalizer(finalizerName string)

RemoveFinalizer removes the finalizer from the Role

func (*ArgoCDRole) SetArgoCDRoleBindingRef

func (r *ArgoCDRole) SetArgoCDRoleBindingRef(ref string)

func (*ArgoCDRole) SetConditions

func (r *ArgoCDRole) SetConditions(c ...Condition)

SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set. Observed generation is updated if higher than the existing one.

type ArgoCDRoleBinding

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

	Spec   ArgoCDRoleBindingSpec   `json:"spec,omitempty"`
	Status ArgoCDRoleBindingStatus `json:"status,omitempty"`
}

ArgoCDRoleBinding is the Schema for the argocdrolebindings API

func (*ArgoCDRoleBinding) AddFinalizer

func (r *ArgoCDRoleBinding) AddFinalizer(finalizerName string)

AddFinalizer adds the finalizer to the Role

func (*ArgoCDRoleBinding) DeepCopy

func (in *ArgoCDRoleBinding) DeepCopy() *ArgoCDRoleBinding

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

func (*ArgoCDRoleBinding) DeepCopyInto

func (in *ArgoCDRoleBinding) DeepCopyInto(out *ArgoCDRoleBinding)

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

func (*ArgoCDRoleBinding) DeepCopyObject

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

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

func (*ArgoCDRoleBinding) HasFinalizer

func (r *ArgoCDRoleBinding) HasFinalizer(finalizerName string) bool

HasFinalizer returns true if the Role has the finalizer

func (*ArgoCDRoleBinding) IsBeingDeleted

func (r *ArgoCDRoleBinding) IsBeingDeleted() bool

IsBeingDeleted returns true if a deletion timestamp is set

func (*ArgoCDRoleBinding) RemoveFinalizer

func (r *ArgoCDRoleBinding) RemoveFinalizer(finalizerName string)

RemoveFinalizer removes the finalizer from the Role

func (*ArgoCDRoleBinding) SetConditions

func (rb *ArgoCDRoleBinding) SetConditions(c ...Condition)

SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set. Observed generation is updated if higher than the existing one.

type ArgoCDRoleBindingList

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

ArgoCDRoleBindingList contains a list of ArgoCDRoleBinding

func (*ArgoCDRoleBindingList) DeepCopy

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

func (*ArgoCDRoleBindingList) DeepCopyInto

func (in *ArgoCDRoleBindingList) DeepCopyInto(out *ArgoCDRoleBindingList)

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

func (*ArgoCDRoleBindingList) DeepCopyObject

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

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

type ArgoCDRoleBindingSpec

type ArgoCDRoleBindingSpec struct {
	// List of subjects being bound to ArgoCDRole (argocdRoleRef).
	Subjects      []GlobalSubject `json:"subjects"`
	ArgoCDRoleRef ArgoCDRoleRef   `json:"argocdRoleRef"`
}

ArgoCDRoleBindingSpec defines the desired state of ArgoCDRoleBinding

func (*ArgoCDRoleBindingSpec) DeepCopy

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

func (*ArgoCDRoleBindingSpec) DeepCopyInto

func (in *ArgoCDRoleBindingSpec) DeepCopyInto(out *ArgoCDRoleBindingSpec)

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

type ArgoCDRoleBindingStatus

type ArgoCDRoleBindingStatus struct {
	// +listType=map
	// +listMapKey=type
	// Conditions defines the list of conditions.
	Conditions []Condition `json:"conditions,omitempty"`
}

ArgoCDRoleBindingStatus defines the observed state of ArgoCDRoleBinding

func (*ArgoCDRoleBindingStatus) DeepCopy

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

func (*ArgoCDRoleBindingStatus) DeepCopyInto

func (in *ArgoCDRoleBindingStatus) DeepCopyInto(out *ArgoCDRoleBindingStatus)

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

type ArgoCDRoleList

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

ArgoCDRoleList contains a list of Role

func (*ArgoCDRoleList) DeepCopy

func (in *ArgoCDRoleList) DeepCopy() *ArgoCDRoleList

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

func (*ArgoCDRoleList) DeepCopyInto

func (in *ArgoCDRoleList) DeepCopyInto(out *ArgoCDRoleList)

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

func (*ArgoCDRoleList) DeepCopyObject

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

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

type ArgoCDRoleRef

type ArgoCDRoleRef struct {
	// Name of the ArgoCDRole. Should not start with "role:"
	Name string `json:"name"`
}

ArgocdRoleRef defines the reference to the role being granted.

func (*ArgoCDRoleRef) DeepCopy

func (in *ArgoCDRoleRef) DeepCopy() *ArgoCDRoleRef

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

func (*ArgoCDRoleRef) DeepCopyInto

func (in *ArgoCDRoleRef) DeepCopyInto(out *ArgoCDRoleRef)

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

type ArgoCDRoleSpec

type ArgoCDRoleSpec struct {
	Rules []GlobalRule `json:"rules"`
}

ArgoCDRoleSpec defines the desired state of global scoped Role (written to argocd-rbac-cm ConfigMap)

func (*ArgoCDRoleSpec) DeepCopy

func (in *ArgoCDRoleSpec) DeepCopy() *ArgoCDRoleSpec

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

func (*ArgoCDRoleSpec) DeepCopyInto

func (in *ArgoCDRoleSpec) DeepCopyInto(out *ArgoCDRoleSpec)

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

type ArgoCDRoleStatus

type ArgoCDRoleStatus struct {
	// argocdRoleBindingRef defines the reference to the ArgoCDRoleBinding Resource.
	ArgoCDRoleBindingRef string `json:"argocdRoleBindingRef,omitempty"`
	// +listType=map
	// +listMapKey=type
	// Conditions defines the list of conditions.
	Conditions []Condition `json:"conditions,omitempty"`
}

ArgoCDRoleStatus defines the observed state of Role

func (*ArgoCDRoleStatus) DeepCopy

func (in *ArgoCDRoleStatus) DeepCopy() *ArgoCDRoleStatus

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

func (*ArgoCDRoleStatus) DeepCopyInto

func (in *ArgoCDRoleStatus) DeepCopyInto(out *ArgoCDRoleStatus)

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

type Condition

type Condition struct {
	// Type of this condition. At most one of each condition type may apply to
	// a resource at any point in time.
	Type ConditionType `json:"type"`

	// Status of this condition; is it currently True, False, or Unknown?
	Status corev1.ConditionStatus `json:"status"`

	// LastTransitionTime is the last time this condition transitioned from one
	// status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`

	// A Reason for this condition's last transition from one status to another.
	Reason ConditionReason `json:"reason"`

	// A Message containing details about this condition's last transition from
	// one status to another, if any.
	// +optional
	Message string `json:"message,omitempty"`

	// ObservedGeneration represents the .metadata.generation that the condition was set based upon.
	// For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
	// with respect to the current state of the instance.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

A Condition that may apply to a resource.

func Deleting

func Deleting() Condition

Deleting returns a condition that indicates the resource is currently being deleted.

func Pending

func Pending(err error) Condition

Pending returns a condition that indicates the resource is currently pending.

func ReconcileError

func ReconcileError(err error) Condition

ReconcileError returns a condition indicating that the Controller encountered an error while reconciling the resource.

func ReconcileSuccess

func ReconcileSuccess() Condition

ReconcileSuccess returns a condition indicating that the Controller successfully completed the most recent reconciliation of the resource.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

func (Condition) Equal

func (c Condition) Equal(other Condition) bool

Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime and ObservedGeneration.

func (Condition) WithMessage

func (c Condition) WithMessage(msg string) Condition

WithMessage returns a condition by adding the provided message to existing condition.

func (Condition) WithObservedGeneration

func (c Condition) WithObservedGeneration(gen int64) Condition

WithObservedGeneration returns a condition by adding the provided observed generation to existing condition.

type ConditionReason

type ConditionReason string

A ConditionReason represents the reason a resource is in a condition.

const (
	ReasonReconcileSuccess ConditionReason = "ReconcileSuccess"
	ReasonReconcileError   ConditionReason = "ReconcileError"
	ReasonDeleting         ConditionReason = "Deleting"
)

Reasons a resource is or is not synced.

type ConditionType

type ConditionType string

A ConditionType represents a condition a resource could be in.

const (
	// TypeReady resources are believed to be ready to handle work.
	TypeReady ConditionType = "Ready"

	// TypeSynced resources are believed to be in sync with the
	// Kubernetes resources that manage their lifecycle.
	TypeSynced ConditionType = "Synced"

	// TypePending resources are believed to be pending.
	TypePending ConditionType = "Pending"
)

Condition types.

type GlobalRule added in v0.2.0

type GlobalRule struct {
	// +kubebuilder:validation:Enum=clusters;projects;applications;applicationsets;repositories;certificates;accounts;gpgkeys;logs;exec;extensions
	// +kubebuilder:validation:example=clusters
	// Target resource type.
	Resource string `json:"resource"`
	// Verbs define the operations that are being performed on the resource.
	Verbs []string `json:"verbs"`
	// List of resource's objects the permissions are granted for.
	Objects []string `json:"objects"`
}

Rules define the desired set of permissions.

func (*GlobalRule) DeepCopy added in v0.2.0

func (in *GlobalRule) DeepCopy() *GlobalRule

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

func (*GlobalRule) DeepCopyInto added in v0.2.0

func (in *GlobalRule) DeepCopyInto(out *GlobalRule)

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

type GlobalSubject added in v0.2.0

type GlobalSubject struct {
	// +kubebuilder:validation:Enum=sso;local;role
	// Kind of the subject (sso, local or role).
	Kind string `json:"kind"`
	// Name of the subject. If Kind is "role", it shouldn't start with "role:"
	Name string `json:"name"`
}

GlobalSubject defines the subject being bound to ArgoCDRole.

func (*GlobalSubject) DeepCopy added in v0.2.0

func (in *GlobalSubject) DeepCopy() *GlobalSubject

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

func (*GlobalSubject) DeepCopyInto added in v0.2.0

func (in *GlobalSubject) DeepCopyInto(out *GlobalSubject)

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

type ProjectRule added in v0.2.0

type ProjectRule struct {
	// +kubebuilder:validation:Enum=clusters;applications;repositories;logs;exec;projects
	// +kubebuilder:validation:example=applications
	// Target resource type.
	Resource string `json:"resource"`
	// Verbs define the operations that are being performed on the resource.
	Verbs []string `json:"verbs"`
	// List of resource's objects the permissions are granted for.
	Objects []string `json:"objects"`
}

Rules define the desired set of permissions.

func (*ProjectRule) DeepCopy added in v0.2.0

func (in *ProjectRule) DeepCopy() *ProjectRule

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

func (*ProjectRule) DeepCopyInto added in v0.2.0

func (in *ProjectRule) DeepCopyInto(out *ProjectRule)

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