v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 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 ArgoCDRoleBindingFinalizerName = "rolebinding.rbac-operator.argoproj-labs.io"

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

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

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 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 {
	Subjects      []Subject     `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 []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"`
}

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 string `json:"argocdRoleBindingRef,omitempty"`
	// +listType=map
	// +listMapKey=type
	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 Rule

type Rule struct {
	// +kubebuilder:validation:Enum=clusters;projects;applications;applicationsets;repositories;certificates;accounts;gpgkeys;logs;exec;extensions
	// +kubebuilder:validation:example=clusters
	Resource string   `json:"resource"`
	Verbs    []string `json:"verbs"`
	Objects  []string `json:"objects"`
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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 string `json:"kind"`
	// Name of the subject. If Kind is "role", it shouldn't start with "role:"
	Name string `json:"name"`
}

func (*Subject) DeepCopy

func (in *Subject) DeepCopy() *Subject

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

func (*Subject) DeepCopyInto

func (in *Subject) DeepCopyInto(out *Subject)

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