acmaws

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AlbIngressControllerIngressAnnotation_CertificateArnKey is the annotation key used by ALB Ingress Controller to look for certificates to assign to the ALB listener for HTTPS
	AlbIngressControllerIngressAnnotation_CertificateArnKey = "alb.ingress.kubernetes.io/certificate-arn"

	// AlbIngressControllerIngressAnnotation_OperatorOriginalCertificateArnKey is the annotation key containing a static set of certificate arns to include in the final list of arns
	AlbIngressControllerIngressAnnotation_OperatorStaticCertificateArnKey = "acm.aws.aeto.net/static-certificate-arn"

	// AlbIngressControllerIngressAnnotation_OperatorControlled indicates that the ingress resource is controlled by the operator when the value is set to true
	AlbIngressControllerIngressAnnotation_OperatorControlled = "aeto.net/controlled"
)
View Source
const (
	FinalizerName = "certificate.acm.aws.aeto.net/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbIngressControllerConnector

type AlbIngressControllerConnector struct {
	kubernetes.Client
	Spec acmawsv1alpha1.IngressSpec
}

AlbIngressControllerConnector defines a connector of certificates for use with ALB Ingress Contoller

func (AlbIngressControllerConnector) Connect

func (c AlbIngressControllerConnector) Connect(ctx reconcile.Context, certificates []acmawsv1alpha1.Certificate) (changed bool, connected bool, result reconcile.Result)

Connect reconciles certificate connections for ALB Ingress Controller

func (AlbIngressControllerConnector) GetIngressList

type CertificateConnectorReconciler

type CertificateConnectorReconciler struct {
	kubernetes.Client
	Scheme *runtime.Scheme
}

CertificateConnectorReconciler reconciles a CertificateConnector object

func (*CertificateConnectorReconciler) Reconcile

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 CertificateConnector 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.10.0/pkg/reconcile

func (*CertificateConnectorReconciler) SetupWithManager

func (r *CertificateConnectorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CertificateReconciler

type CertificateReconciler struct {
	kubernetes.Client
	Scheme *runtime.Scheme
	AWS    awsclients.Clients
}

CertificateReconciler reconciles a Certificate object

func (*CertificateReconciler) Reconcile

func (r *CertificateReconciler) Reconcile(ctx context.Context, req 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 Certificate 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.10.0/pkg/reconcile

func (*CertificateReconciler) SetupWithManager

func (r *CertificateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Connector

type Connector interface {
	// Connect reconciles certificate connections
	Connect(ctx reconcile.Context, certificates []acmawsv1alpha1.Certificate) (changed bool, connected bool, result reconcile.Result)
}

Connector defines a connector of certificates

func NewConnector

NewConnector returns a Connector

Jump to

Keyboard shortcuts

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