File tree Expand file tree Collapse file tree 4 files changed +8
-29
lines changed Expand file tree Collapse file tree 4 files changed +8
-29
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ limitations under the License.
19
19
20
20
package iptables
21
21
22
- //
23
- // NOTE: this needs to be tested in e2e since it uses iptables for everything.
24
- //
25
-
26
22
import (
27
23
"bytes"
28
24
"context"
@@ -135,8 +131,7 @@ func NewDualStackProxier(
135
131
return metaproxier .NewMetaProxier (ipv4Proxier , ipv6Proxier ), nil
136
132
}
137
133
138
- // Proxier is an iptables based proxy for connections between a localhost:lport
139
- // and services that provide the actual backends.
134
+ // Proxier is an iptables-based proxy
140
135
type Proxier struct {
141
136
// ipFamily defines the IP family which this proxier is tracking.
142
137
ipFamily v1.IPFamily
@@ -218,11 +213,7 @@ type Proxier struct {
218
213
// Proxier implements proxy.Provider
219
214
var _ proxy.Provider = & Proxier {}
220
215
221
- // NewProxier returns a new Proxier given an iptables Interface instance.
222
- // Because of the iptables logic, it is assumed that there is only a single Proxier active on a machine.
223
- // An error will be returned if iptables fails to update or acquire the initial lock.
224
- // Once a proxier is created, it will keep iptables up to date in the background and
225
- // will not terminate if a particular iptables call fails.
216
+ // NewProxier returns a new single-stack IPTables proxier.
226
217
func NewProxier (ctx context.Context ,
227
218
ipFamily v1.IPFamily ,
228
219
ipt utiliptables.Interface ,
Original file line number Diff line number Diff line change @@ -159,8 +159,7 @@ func NewDualStackProxier(
159
159
return metaproxier .NewMetaProxier (ipv4Proxier , ipv6Proxier ), nil
160
160
}
161
161
162
- // Proxier is an ipvs based proxy for connections between a localhost:lport
163
- // and services that provide the actual backends.
162
+ // Proxier is an ipvs-based proxy
164
163
type Proxier struct {
165
164
// the ipfamily on which this proxy is operating on.
166
165
ipFamily v1.IPFamily
@@ -254,11 +253,7 @@ type Proxier struct {
254
253
// Proxier implements proxy.Provider
255
254
var _ proxy.Provider = & Proxier {}
256
255
257
- // NewProxier returns a new Proxier given an iptables and ipvs Interface instance.
258
- // Because of the iptables and ipvs logic, it is assumed that there is only a single Proxier active on a machine.
259
- // An error will be returned if it fails to update or acquire the initial lock.
260
- // Once a proxier is created, it will keep iptables and ipvs rules up to date in the background and
261
- // will not terminate if a particular iptables or ipvs call fails.
256
+ // NewProxier returns a new single-stack IPVS proxier.
262
257
func NewProxier (
263
258
ctx context.Context ,
264
259
ipFamily v1.IPFamily ,
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ limitations under the License.
19
19
20
20
package nftables
21
21
22
- //
23
- // NOTE: this needs to be tested in e2e since it uses nftables for everything.
24
- //
25
-
26
22
import (
27
23
"context"
28
24
"crypto/sha256"
@@ -143,7 +139,7 @@ func NewDualStackProxier(
143
139
return metaproxier .NewMetaProxier (ipv4Proxier , ipv6Proxier ), nil
144
140
}
145
141
146
- // Proxier is an nftables based proxy
142
+ // Proxier is an nftables- based proxy
147
143
type Proxier struct {
148
144
// ipFamily defines the IP family which this proxier is tracking.
149
145
ipFamily v1.IPFamily
@@ -211,9 +207,7 @@ type Proxier struct {
211
207
// Proxier implements proxy.Provider
212
208
var _ proxy.Provider = & Proxier {}
213
209
214
- // NewProxier returns a new nftables Proxier. Once a proxier is created, it will keep
215
- // nftables up to date in the background and will not terminate if a particular nftables
216
- // call fails.
210
+ // NewProxier returns a new single-stack NFTables proxier.
217
211
func NewProxier (ctx context.Context ,
218
212
ipFamily v1.IPFamily ,
219
213
syncPeriod time.Duration ,
Original file line number Diff line number Diff line change @@ -623,8 +623,7 @@ func (network hnsNetworkInfo) findRemoteSubnetProviderAddress(ip string) string
623
623
624
624
type endPointsReferenceCountMap map [string ]* uint16
625
625
626
- // Proxier is an hns based proxy for connections between a localhost:lport
627
- // and services that provide the actual backends.
626
+ // Proxier is an HNS-based proxy
628
627
type Proxier struct {
629
628
// ipFamily defines the IP family which this proxier is tracking.
630
629
ipFamily v1.IPFamily
@@ -701,7 +700,7 @@ type closeable interface {
701
700
// Proxier implements proxy.Provider
702
701
var _ proxy.Provider = & Proxier {}
703
702
704
- // NewProxier returns a new Proxier
703
+ // NewProxier returns a new single-stack winkernel proxier.
705
704
func NewProxier (
706
705
ipFamily v1.IPFamily ,
707
706
syncPeriod time.Duration ,
You can’t perform that action at this time.
0 commit comments