Documentation ¶
Index ¶
- Constants
- func NewConflict(message string) error
- func NewInvalidRoleStatus(message string) error
- type ConflictError
- type IamPolicyReconciler
- type IamRoleBindingReconciler
- type IamRoleReconciler
- func (r *IamRoleReconciler) Finalize(ctx context.Context, instance *v1alpha1.IamRole) error
- func (r *IamRoleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *IamRoleReconciler) RemoveFinalizer(ctx context.Context, instance *v1alpha1.IamRole) error
- func (r *IamRoleReconciler) SetupWithManager(mgr ctrl.Manager) error
- type InvalidRoleStatusError
- type Notifier
Constants ¶
View Source
const ( IamPolicyFinalizer = "aws.jackhoman.com/delete-iam-policy" IamPolicyFieldOwner = client.FieldOwner("policy.iam.aws.controller") )
View Source
const ( PrometheusNamespace = "aws_iam_controller" PrometheusSubsystem = "role_reconciler" Finalizer = "jackhoman.com/delete-iam-role" FieldOwner client.FieldOwner = "aws-iam-controller" )
View Source
const ( ServiceAccountFinalizer = "aws.jackhoman.com/free-service-account" ServiceAccountAnnotation = "eks.amazonaws.com/role-arn" )
Variables ¶
This section is empty.
Functions ¶
func NewConflict ¶
func NewInvalidRoleStatus ¶
Types ¶
type ConflictError ¶
type ConflictError string
func (ConflictError) Error ¶
func (err ConflictError) Error() string
type IamPolicyReconciler ¶
type IamPolicyReconciler struct { client.Client Scheme *runtime.Scheme record.EventRecorder AWS iampolicy.Interface }
IamPolicyReconciler reconciles a IamPolicy object
func (*IamPolicyReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*IamPolicyReconciler) SetupWithManager ¶
func (r *IamPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IamRoleBindingReconciler ¶
func (*IamRoleBindingReconciler) SetupWithManager ¶
func (r *IamRoleBindingReconciler) SetupWithManager(mgr ctrl.Manager) error
type IamRoleReconciler ¶
type IamRoleReconciler struct { client.Client Scheme *runtime.Scheme record.EventRecorder RoleService iamrole.Interface DefaultPolicy string bindmanager.Manager // contains filtered or unexported fields }
IamRoleReconciler reconciles a IamRole object
func (*IamRoleReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile
func (*IamRoleReconciler) RemoveFinalizer ¶
func (*IamRoleReconciler) SetupWithManager ¶
func (r *IamRoleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type InvalidRoleStatusError ¶
type InvalidRoleStatusError string
func (InvalidRoleStatusError) Error ¶
func (err InvalidRoleStatusError) Error() string
Click to show internal directories.
Click to hide internal directories.