Moving to kubebuilder. Refactor work can be found here.
Overview
A kubernetes operator to create and manage AWS S3 buckets from single control plane. The operator needs AWS access credentials
to manage other resources. It needs permissions to IAM and S3. When a CR is created, the operator will create IAM user
with a inline policy to allow all S3 actions ONLY on the specified S3 bucket ( this way the IAM user being created only has
access to perform actions against the bucket that gets created). The operator also generates and manages AWS creds for that
IAM user in a kubernetes secret within the same namespace. If the creds no longer match with the one on AWS, the secret will
get updated with correct access keys. Users also have ability to get new fresh pair of Access keys by simply deleting
the kubernetes secret created by the operator. Finally S3 bucket is created and kept up to date. If the CR is deleted, all
the IAM resources and S3 resources will get deleted with it.
In addition to event based trigger to reconcile, a periodic sync is also in place to reconcile every n seconds.
Default periodic sync period is set to 300 seconds.
Can be changed by update syncPeriod env variable in operator deployment.
TODO
Add tags to cloud resources ( as a way to own them ), this way if user or bucket already exists and does not have tags, operator should complain and not perform any actions on it.
Package v1alpha1 contains API Schema definitions for the agill v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=agill.apps Package v1alpha1 contains API Schema definitions for the agill v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=agill.apps
Package v1alpha1 contains API Schema definitions for the agill v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=agill.apps Package v1alpha1 contains API Schema definitions for the agill v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=agill.apps