mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-14 17:48:44 +00:00
run gofmt
Updates #15875 Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
This commit is contained in:
parent
70b0bd1b44
commit
52e640ee07
@ -171,7 +171,6 @@ func (r *RecorderReconciler) maybeProvision(ctx context.Context, tsr *tsapi.Reco
|
|||||||
}
|
}
|
||||||
// Create the ServiceAccount only if the user hasn't specified a custom name
|
// Create the ServiceAccount only if the user hasn't specified a custom name
|
||||||
if tsr.Spec.StatefulSet.Pod.ServiceAccountName == "" {
|
if tsr.Spec.StatefulSet.Pod.ServiceAccountName == "" {
|
||||||
<<<<<<< HEAD
|
|
||||||
sa := tsrServiceAccount(tsr, r.tsNamespace)
|
sa := tsrServiceAccount(tsr, r.tsNamespace)
|
||||||
if _, err := createOrUpdate(ctx, r.Client, r.tsNamespace, sa, func(s *corev1.ServiceAccount) {
|
if _, err := createOrUpdate(ctx, r.Client, r.tsNamespace, sa, func(s *corev1.ServiceAccount) {
|
||||||
s.ObjectMeta.Labels = sa.ObjectMeta.Labels
|
s.ObjectMeta.Labels = sa.ObjectMeta.Labels
|
||||||
@ -181,26 +180,6 @@ func (r *RecorderReconciler) maybeProvision(ctx context.Context, tsr *tsapi.Reco
|
|||||||
return fmt.Errorf("error creating ServiceAccount: %w", err)
|
return fmt.Errorf("error creating ServiceAccount: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
||||||| b03a2a323
|
|
||||||
sa := tsrServiceAccount(tsr, r.tsNamespace)
|
|
||||||
if _, err := createOrUpdate(ctx, r.Client, r.tsNamespace, sa, func(s *corev1.ServiceAccount) {
|
|
||||||
s.ObjectMeta.Labels = sa.ObjectMeta.Labels
|
|
||||||
s.ObjectMeta.Annotations = sa.ObjectMeta.Annotations
|
|
||||||
s.ObjectMeta.OwnerReferences = sa.ObjectMeta.OwnerReferences
|
|
||||||
}); err != nil {
|
|
||||||
return fmt.Errorf("error creating ServiceAccount: %w", err)
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
sa := tsrServiceAccount(tsr, r.tsNamespace)
|
|
||||||
if _, err := createOrUpdate(ctx, r.Client, r.tsNamespace, sa, func(s *corev1.ServiceAccount) {
|
|
||||||
s.ObjectMeta.Labels = sa.ObjectMeta.Labels
|
|
||||||
s.ObjectMeta.Annotations = sa.ObjectMeta.Annotations
|
|
||||||
s.ObjectMeta.OwnerReferences = sa.ObjectMeta.OwnerReferences
|
|
||||||
}); err != nil {
|
|
||||||
return fmt.Errorf("error creating ServiceAccount: %w", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>>>>>>> upstream/proxyclass/sa
|
|
||||||
role := tsrRole(tsr, r.tsNamespace)
|
role := tsrRole(tsr, r.tsNamespace)
|
||||||
if _, err := createOrUpdate(ctx, r.Client, r.tsNamespace, role, func(r *rbacv1.Role) {
|
if _, err := createOrUpdate(ctx, r.Client, r.tsNamespace, role, func(r *rbacv1.Role) {
|
||||||
r.ObjectMeta.Labels = role.ObjectMeta.Labels
|
r.ObjectMeta.Labels = role.ObjectMeta.Labels
|
||||||
|
Loading…
x
Reference in New Issue
Block a user