Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager, cloudfront cloudfrontiface.CloudFrontAPI, prefix string) error
- type ReconcileCloudFront
- func (r *ReconcileCloudFront) DeleteExternal(instance *awsv1beta1.CloudFront) error
- func (r *ReconcileCloudFront) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileCloudFront) SyncExternal(log log.Logger, instance *awsv1beta1.CloudFront) (*cloudfront.Distribution, error)
- func (r *ReconcileCloudFront) UpdateDistribution(instance *awsv1beta1.CloudFront, config *cloudfront.DistributionConfig) (*cloudfront.Distribution, error)
Constants ¶
const ( // Finalizer used to trigger a deletion of the user prior to the object being deleted. Finalizer = "cloudfronts.aws.skpr.io" // ControllerName used for identifying which controller is performing an operation. ControllerName = "cloudfront-controller" )
const (
// OriginID which maps behaviors to origins.
OriginID = "skpr"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, cloudfront cloudfrontiface.CloudFrontAPI, prefix string) error
Add creates a new CloudFront 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 ReconcileCloudFront ¶
ReconcileCloudFront reconciles a CloudFront object
func (*ReconcileCloudFront) DeleteExternal ¶
func (r *ReconcileCloudFront) DeleteExternal(instance *awsv1beta1.CloudFront) error
DeleteExternal CloudFront distribution.
func (*ReconcileCloudFront) Reconcile ¶
Reconcile reads that state of the cluster for a CloudFront object and makes changes based on the state read and what is in the CloudFront.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=aws.skpr.io,resources=cloudfronts,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=aws.skpr.io,resources=cloudfronts/status,verbs=get;update;patch
func (*ReconcileCloudFront) SyncExternal ¶
func (r *ReconcileCloudFront) SyncExternal(log log.Logger, instance *awsv1beta1.CloudFront) (*cloudfront.Distribution, error)
SyncExternal CloudFront distribution.
func (*ReconcileCloudFront) UpdateDistribution ¶
func (r *ReconcileCloudFront) UpdateDistribution(instance *awsv1beta1.CloudFront, config *cloudfront.DistributionConfig) (*cloudfront.Distribution, error)
UpdateDistribution CloudFront distribution with new DistributionConfig.