Documentation ¶
Index ¶
Constants ¶
const ( // InjectLabelKey is the label which indicates that the Service CA // certificate should be injected into the ConfigMap InjectLabelKey = "service.syn.tools/inject-ca-bundle" )
const ( // ServingCertLabelKey is the label key which the controller reacts to // to create a secret. The label value is used as the secret name // for the generated Certificate. ServingCertLabelKey = "service.syn.tools/serving-cert-secret-name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapReconciler ¶
ConfigMapReconciler injects the service CA certificate into field `ca.crt` of ConfigMap objects which have the label `service.syn.tools/inject-ca-bundle` set to `true`.
func (*ConfigMapReconciler) Reconcile ¶
Reconcile injects the service CA certificate into ConfigMaps which have the `service.syn.tools/inject-ca-bundle` label set to `true`. Please note that the reconciler will requeue requests until the Service CA is created an ready.
func (*ConfigMapReconciler) SetupWithManager ¶
func (r *ConfigMapReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ServiceReconciler ¶
ServiceReconciler reconcile Service objects which have the label `service.syn.tools/serving-cert-secret-name` set.
func (*ServiceReconciler) Reconcile ¶
Reconcile creates or updates a cert-manager Certificate resource for services which have label `service.syn.tools/serving-cert-secret-name` set. The Certificate resource is configured to use the Service CA cluster issuer, and the value of the `service.syn.tools/serving-cert-secret-name` label is used as the certificate secret name. Please note that the reconciler will requeue requests until the Service CA is created an ready.
func (*ServiceReconciler) SetupWithManager ¶
func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.