Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager, cloudfront cloudfrontiface.CloudFrontAPI) error
- type ReconcileCloudFrontInvalidation
- func (r *ReconcileCloudFrontInvalidation) CreateInvalidation(distribution *awsv1beta1.CloudFront, ...) (awsv1beta1.CloudFrontInvalidationStatus, error)
- func (r *ReconcileCloudFrontInvalidation) DescribeInvalidation(distribution *awsv1beta1.CloudFront, ...) (awsv1beta1.CloudFrontInvalidationStatus, error)
- func (r *ReconcileCloudFrontInvalidation) Reconcile(request reconcile.Request) (reconcile.Result, error)
Constants ¶
const (
// ControllerName used for identifying which controller is performing an operation.
ControllerName = "cloudfront-invalidation-controller"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, cloudfront cloudfrontiface.CloudFrontAPI) error
Add creates a new CloudFrontInvalidation Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.
Types ¶
type ReconcileCloudFrontInvalidation ¶
type ReconcileCloudFrontInvalidation struct { client.Client // contains filtered or unexported fields }
ReconcileCloudFrontInvalidation reconciles a CloudFrontInvalidation object
func (*ReconcileCloudFrontInvalidation) CreateInvalidation ¶
func (r *ReconcileCloudFrontInvalidation) CreateInvalidation(distribution *awsv1beta1.CloudFront, invalidation *awsv1beta1.CloudFrontInvalidation) (awsv1beta1.CloudFrontInvalidationStatus, error)
CreateInvalidation will process an invalidation request assigned to a distribution.
func (*ReconcileCloudFrontInvalidation) DescribeInvalidation ¶
func (r *ReconcileCloudFrontInvalidation) DescribeInvalidation(distribution *awsv1beta1.CloudFront, invalidation *awsv1beta1.CloudFrontInvalidation) (awsv1beta1.CloudFrontInvalidationStatus, error)
DescribeInvalidation will lookup an invalidation request assigned to a distribution.
func (*ReconcileCloudFrontInvalidation) Reconcile ¶
func (r *ReconcileCloudFrontInvalidation) Reconcile(request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a CloudFrontInvalidation object and makes changes based on the state read and what is in the CloudFrontInvalidation.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=aws.skpr.io,resources=cloudfrontinvalidations,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=aws.skpr.io,resources=cloudfrontinvalidations/status,verbs=get;update;patch