Documentation ¶
Index ¶
Constants ¶
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" )
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 ¶
func (c AlbIngressControllerConnector) GetIngressList(ctx reconcile.Context) ([]networkingv1.Ingress, reconcile.Result)
type CertificateConnectorReconciler ¶
type CertificateConnectorReconciler struct { kubernetes.Client Scheme *runtime.Scheme }
CertificateConnectorReconciler reconciles a CertificateConnector object
func (*CertificateConnectorReconciler) Reconcile ¶
func (r *CertificateConnectorReconciler) 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 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 ¶
func NewConnector(client kubernetes.Client, cc acmawsv1alpha1.CertificateConnector) (Connector, error)
NewConnector returns a Connector