From 468badd1780832182fd309e740819556ea9ae110 Mon Sep 17 00:00:00 2001
From: Gavin
Date: Fri, 13 Oct 2017 11:47:59 +0800
Subject: [PATCH] remove hairpin constant
---
pkg/apis/componentconfig/v1alpha1/types.go | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/pkg/apis/componentconfig/v1alpha1/types.go b/pkg/apis/componentconfig/v1alpha1/types.go
index 70654ca8c9e..937fa569e53 100644
--- a/pkg/apis/componentconfig/v1alpha1/types.go
+++ b/pkg/apis/componentconfig/v1alpha1/types.go
@@ -213,24 +213,6 @@ type KubeSchedulerConfiguration struct {
UseLegacyPolicyConfig bool `json:"useLegacyPolicyConfig"`
}
-// HairpinMode denotes how the kubelet should configure networking to handle
-// hairpin packets.
-type HairpinMode string
-
-// Enum settings for different ways to handle hairpin packets.
-const (
- // Set the hairpin flag on the veth of containers in the respective
- // container runtime.
- HairpinVeth = "hairpin-veth"
- // Make the container bridge promiscuous. This will force it to accept
- // hairpin packets, even if the flag isn't set on ports of the bridge.
- PromiscuousBridge = "promiscuous-bridge"
- // Neither of the above. If the kubelet is started in this hairpin mode
- // and kube-proxy is running in iptables mode, hairpin packets will be
- // dropped by the container bridge.
- HairpinNone = "none"
-)
-
// LeaderElectionConfiguration defines the configuration of leader election
// clients for components that can run with leader election enabled.
type LeaderElectionConfiguration struct {