Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrFederatedAccessRoleFailedCreate = errors.New("FederatedAccessRoleFailedCreate")
ErrFederatedAccessRoleFailedCreate indicates that the AWSFederatedRole requested failed to be created in the account requested by the AWSFederatedAccountAccess CR
var ErrFederatedAccessRoleNotFound = errors.New("FederatedAccessRoleNotFound")
ErrFederatedAccessRoleNotFound indicates the role requested by AWSFederatedAccountAccess Cr was not found as a AWSFederatedRole Cr
Functions ¶
func SetStatuswithCondition ¶
func SetStatuswithCondition(afaa *awsv1alpha1.AWSFederatedAccountAccess, message string, ctype awsv1alpha1.AWSFederatedAccountAccessConditionType, state awsv1alpha1.AWSFederatedAccountAccessState)
SetStatuswithCondition sets the status of an account
Types ¶
type AWSFederatedAccountAccessReconciler ¶
type AWSFederatedAccountAccessReconciler struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
AWSFederatedAccountAccessReconciler reconciles a AWSFederatedAccountAccess object
func (*AWSFederatedAccountAccessReconciler) Reconcile ¶
func (r *AWSFederatedAccountAccessReconciler) Reconcile(ctx context.Context, request 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 AWSFederatedAccountAccess 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.11.2/pkg/reconcile
func (*AWSFederatedAccountAccessReconciler) SetupWithManager ¶
func (r *AWSFederatedAccountAccessReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.