controllers

package
v0.0.0-...-9cdaeea Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 NewConflict(message string) error

func NewInvalidRoleStatus

func NewInvalidRoleStatus(message string) error

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

func (r *IamPolicyReconciler) Finalize(ctx context.Context, obj client.Object) (ctrl.Result, error)

func (*IamPolicyReconciler) Reconcile

func (r *IamPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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

type IamRoleBindingReconciler struct {
	client.Client
	*runtime.Scheme
	record.EventRecorder
}

func (*IamRoleBindingReconciler) Reconcile

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

func (r *IamRoleReconciler) Finalize(ctx context.Context, instance *v1alpha1.IamRole) error

func (*IamRoleReconciler) Reconcile

func (r *IamRoleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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 (r *IamRoleReconciler) RemoveFinalizer(ctx context.Context, instance *v1alpha1.IamRole) error

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

type Notifier

type Notifier interface {
	InvalidPolicyDocument(roleName string)
	Created(roleName string)
	Updated(roleName string)
	Deleted(roleName string)
	TrustPolicyUpdated(roleName string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL