Skip to content

Commit 51e47c9

Browse files
authored
Merge pull request #5750 from twz123/remove-unused-ka-manifest-stuff
Remove unused stuff from konnectivity agent manifest
2 parents 30de7b8 + 7e68996 commit 51e47c9

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 = `
@@ -278,15 +275,6 @@ spec:
278275
- --service-account-token-path=/var/run/secrets/tokens/konnectivity-agent-token
279276
- --agent-identifiers=host=$(NODE_IP)
280277
- --agent-id=$(NODE_IP)
281-
{{- if .BindToNodeIP }}
282-
- --bind-address=$(NODE_IP)
283-
{{- end }}
284-
{{- if .APIServerPortMapping }}
285-
- --apiserver-port-mapping={{ .APIServerPortMapping }}
286-
{{- end }}
287-
{{- if .FeatureGates }}
288-
- "--feature-gates={{ .FeatureGates }}"
289-
{{- end }}
290278
volumeMounts:
291279
- mountPath: /var/run/secrets/tokens
292280
name: konnectivity-agent-token

0 commit comments

Comments
 (0)