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
- Variables
- type ArgoCDRole
- func (r *ArgoCDRole) AddFinalizer(finalizerName string)
- func (in *ArgoCDRole) DeepCopy() *ArgoCDRole
- func (in *ArgoCDRole) DeepCopyInto(out *ArgoCDRole)
- func (in *ArgoCDRole) DeepCopyObject() runtime.Object
- func (r *ArgoCDRole) HasArgoCDRoleBindingRef() bool
- func (r *ArgoCDRole) HasFinalizer(finalizerName string) bool
- func (r *ArgoCDRole) IsBeingDeleted() bool
- func (r *ArgoCDRole) RemoveFinalizer(finalizerName string)
- func (r *ArgoCDRole) SetArgoCDRoleBindingRef(ref string)
- func (r *ArgoCDRole) SetConditions(c ...Condition)
- type ArgoCDRoleBinding
- func (r *ArgoCDRoleBinding) AddFinalizer(finalizerName string)
- func (in *ArgoCDRoleBinding) DeepCopy() *ArgoCDRoleBinding
- func (in *ArgoCDRoleBinding) DeepCopyInto(out *ArgoCDRoleBinding)
- func (in *ArgoCDRoleBinding) DeepCopyObject() runtime.Object
- func (r *ArgoCDRoleBinding) HasFinalizer(finalizerName string) bool
- func (r *ArgoCDRoleBinding) IsBeingDeleted() bool
- func (r *ArgoCDRoleBinding) RemoveFinalizer(finalizerName string)
- func (rb *ArgoCDRoleBinding) SetConditions(c ...Condition)
- type ArgoCDRoleBindingList
- type ArgoCDRoleBindingSpec
- type ArgoCDRoleBindingStatus
- type ArgoCDRoleList
- type ArgoCDRoleRef
- type ArgoCDRoleSpec
- type ArgoCDRoleStatus
- type Condition
- type ConditionReason
- type ConditionType
- type Rule
- type Subject
Constants ¶
const ArgoCDRoleBindingFinalizerName = "rbac-operator.argoproj-labs.io/finalizer"
ArgoCDRoleFinalizerName is the name of the finalizer used to delete the Role
const ArgoCDRoleFinalizerName = "rbac-operator.argoproj-labs.io/finalizer"
ArgoCDRoleFinalizerName is the name of the finalizer used to delete the Role
Variables ¶
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 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 ¶
func (in *ArgoCDRoleBindingList) DeepCopy() *ArgoCDRoleBindingList
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 []Subject `json:"subjects"` ArgoCDRoleRef ArgoCDRoleRef `json:"argocdRoleRef"` }
ArgoCDRoleBindingSpec defines the desired state of ArgoCDRoleBinding
func (*ArgoCDRoleBindingSpec) DeepCopy ¶
func (in *ArgoCDRoleBindingSpec) DeepCopy() *ArgoCDRoleBindingSpec
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 ¶
func (in *ArgoCDRoleBindingStatus) DeepCopy() *ArgoCDRoleBindingStatus
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 []Rule `json:"rules"`
}
ArgoCDRoleSpec defines the desired state of Role
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 ReconcileError ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Condition) Equal ¶
Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime and ObservedGeneration.
func (Condition) WithMessage ¶
WithMessage returns a condition by adding the provided message to existing condition.
func (Condition) WithObservedGeneration ¶
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 Rule ¶
type Rule 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 (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subject ¶
type Subject 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"` }
Subject defines the subject being bound to ArgoCDRole.
func (*Subject) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject.
func (*Subject) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.