Documentation
¶
Index ¶
Constants ¶
const (
AwsAccountFinalizer = "kuadra.kuadrant.io/aws-account"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsAccountReconciler ¶
type AwsAccountReconciler struct {
client.Client
Scheme *runtime.Scheme
IamWrapper IamWrapper
}
AwsAccountReconciler reconciles a AwsAccount object
func (*AwsAccountReconciler) Reconcile ¶
func (r *AwsAccountReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the AwsAccount object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile
func (*AwsAccountReconciler) SetupWithManager ¶
func (r *AwsAccountReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IamWrapper ¶
type IamWrapper interface {
IsExistingUser(ctx context.Context, userName string) (bool, error)
HasLoginProfile(ctx context.Context, userName string) (bool, error)
HasAccessKey(ctx context.Context, userName string) (bool, error)
ListGroupsForUser(ctx context.Context, userName string) ([]types.Group, error)
CreateUserIfNotExists(ctx context.Context, userName string) error
CreateLoginProfileIfNotExists(ctx context.Context, password string, userName string, passwordResetRequired bool) error
CreateAccessKeyPair(ctx context.Context, userName string) (*types.AccessKey, error)
AddUserToGroup(ctx context.Context, groupName string, userName string) (middleware.Metadata, error)
RemoveUserFromGroup(ctx context.Context, groupName string, userName string) (middleware.Metadata, error)
DeleteUser(ctx context.Context, userName string) error
DeleteLoginProfileIfExists(ctx context.Context, userName string) error
ListAccessKeys(ctx context.Context, userName string) ([]types.AccessKeyMetadata, error)
DeleteAccessKeyIfExists(ctx context.Context, userName string, keyId string) error
}
type UserReconciler ¶
UserReconciler reconciles a User object
func (*UserReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the User object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile
func (*UserReconciler) SetupWithManager ¶
func (r *UserReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.