Skip to content

Commit 7e68996

Browse files
committed
Remove unused stuff from konnectivity agent manifest
Signed-off-by: Tom Wieczorek <[email protected]>
1 parent 82ef786 commit 7e68996

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

pkg/component/controller/konnectivityagent.go

+7-19
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,13 @@ func (k *KonnectivityAgent) writeKonnectivityAgent(clusterConfig *v1beta1.Cluste
188188
}
189189

190190
type konnectivityAgentConfig struct {
191-
ProxyServerHost string
192-
ProxyServerPort uint16
193-
AgentPort uint16
194-
Image string
195-
ServerCount uint
196-
PullPolicy string
197-
HostNetwork bool
198-
BindToNodeIP bool
199-
APIServerPortMapping string
200-
FeatureGates string
191+
ProxyServerHost string
192+
ProxyServerPort uint16
193+
AgentPort uint16
194+
Image string
195+
ServerCount uint
196+
PullPolicy string
197+
HostNetwork bool
201198
}
202199

203200
const konnectivityAgentTemplate = `
@@ -276,15 +273,6 @@ spec:
276273
- --service-account-token-path=/var/run/secrets/tokens/konnectivity-agent-token
277274
- --agent-identifiers=host=$(NODE_IP)
278275
- --agent-id=$(NODE_IP)
279-
{{- if .BindToNodeIP }}
280-
- --bind-address=$(NODE_IP)
281-
{{- end }}
282-
{{- if .APIServerPortMapping }}
283-
- --apiserver-port-mapping={{ .APIServerPortMapping }}
284-
{{- end }}
285-
{{- if .FeatureGates }}
286-
- "--feature-gates={{ .FeatureGates }}"
287-
{{- end }}
288276
volumeMounts:
289277
- mountPath: /var/run/secrets/tokens
290278
name: konnectivity-agent-token

0 commit comments

Comments
 (0)