cloudfront

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2019 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	// OriginID which maps behaviors to origins.
	OriginID = "skpr"
	// TagLogGroup is used to determine the destination for the logs.
	TagLogGroup = "edge.skpr.io/loggroup"
	// TagLogStream is used to determine the destination for the logs.
	TagLogStream = "edge.skpr.io/logstream"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, cloudfront cloudfrontiface.CloudFrontAPI, params Params) 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 Params added in v0.4.2

type Params struct {
	Prefix        string
	LoggingBucket string
}

Params which are passed into this reconciler.

type ReconcileCloudFront

type ReconcileCloudFront struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileCloudFront reconciles a CloudFront object

func (*ReconcileCloudFront) DeleteExternal

func (r *ReconcileCloudFront) DeleteExternal(instance *awsv1beta1.CloudFront) error

DeleteExternal CloudFront distribution.

func (*ReconcileCloudFront) Reconcile

func (r *ReconcileCloudFront) Reconcile(request reconcile.Request) (reconcile.Result, error)

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

UpdateDistribution CloudFront distribution with new DistributionConfig.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL