mirror of https://github.com/linkerd/linkerd2.git
chore: fix function name in comment (#12396)
Fixed comments for `subscribeToServicesWithContext` and `reconcileByAddressType`. Previously, the comments contained incorrect function names. Signed-off-by: hanghuge <cmoman@outlook.com>
This commit is contained in:
parent
3574a2c26c
commit
78d42b230d
|
|
@ -116,7 +116,7 @@ func (r *endpointsReconciler) reconcile(svc *corev1.Service, ews []*ewv1beta1.Ex
|
||||||
return utilerrors.NewAggregate(errs)
|
return utilerrors.NewAggregate(errs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// reconcileIPv4Endpoints operates on a set of external workloads, their
|
// reconcileByAddressType operates on a set of external workloads, their
|
||||||
// service, and any endpointslices that have been created by the controller. It
|
// service, and any endpointslices that have been created by the controller. It
|
||||||
// will compute the diff that needs to be written to the API Server.
|
// will compute the diff that needs to be written to the API Server.
|
||||||
func (r *endpointsReconciler) reconcileByAddressType(svc *corev1.Service, extWorkloads []*ewv1beta1.ExternalWorkload, existingSlices []*discoveryv1.EndpointSlice, addrType discoveryv1.AddressType) error {
|
func (r *endpointsReconciler) reconcileByAddressType(svc *corev1.Service, extWorkloads []*ewv1beta1.ExternalWorkload, existingSlices []*discoveryv1.EndpointSlice, addrType discoveryv1.AddressType) error {
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,7 @@ func (s *server) subscribeToServiceProfile(
|
||||||
return s.subscribeToServicesWithContext(fqn, token, listener, canceled, log, streamEnd)
|
return s.subscribeToServicesWithContext(fqn, token, listener, canceled, log, streamEnd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// subscribeToServiceWithContext establishes two profile watches: a "backup"
|
// subscribeToServicesWithContext establishes two profile watches: a "backup"
|
||||||
// watch (ignoring the client namespace) and a preferred "primary" watch
|
// watch (ignoring the client namespace) and a preferred "primary" watch
|
||||||
// assuming the client's context. Once updates are received for both watches, we
|
// assuming the client's context. Once updates are received for both watches, we
|
||||||
// select over both watches to send profile updates to the stream. A nil update
|
// select over both watches to send profile updates to the stream. A nil update
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue