@@ -155,7 +155,7 @@ func (r *ConnectorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
155155 logger .Error (err , "Failed to resolve auth key for connector" )
156156 return ctrl.Result {}, err
157157 }
158- if authKeyResult .Requeue {
158+ if authKeyResult .Requeue || authKeyResult . RequeueAfter != 0 {
159159 return authKeyResult , nil
160160 }
161161 if resolvedAuth == nil {
@@ -647,6 +647,15 @@ func (r *ConnectorReconciler) deploymentForConnector(cr *v1alpha1.Connector, log
647647 }
648648 }
649649
650+ // Get annotations for pods
651+ var annotations map [string ]string
652+ if cr .Spec .Metadata != nil && cr .Spec .Metadata .Annotations != nil {
653+ annotations = make (map [string ]string )
654+ for k , v := range cr .Spec .Metadata .Annotations {
655+ annotations [k ] = v
656+ }
657+ }
658+
650659 deploy := & appsv1.Deployment {
651660 ObjectMeta : metav1.ObjectMeta {
652661 Name : cr .Name + deploymentNameSuffix ,
@@ -659,7 +668,8 @@ func (r *ConnectorReconciler) deploymentForConnector(cr *v1alpha1.Connector, log
659668 },
660669 Template : corev1.PodTemplateSpec {
661670 ObjectMeta : metav1.ObjectMeta {
662- Labels : labels ,
671+ Labels : labels ,
672+ Annotations : annotations ,
663673 },
664674 Spec : corev1.PodSpec {
665675 ServiceAccountName : "tailscale-connector" ,
0 commit comments