treewide: rename node.NodeManagement to node.NodeManagementPort
This is the only constant not having Port in its name which breaks the
naming scheme. Lets clean this up by adding it.
Change-Id: Ic34c81c6d80c69e20516f4fca3c26560bbcf3ac6
Reviewed-on: https://review.monogon.dev/c/monogon/+/2911
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/node/ports.go b/metropolis/node/ports.go
index f5f845a..793a68c 100644
--- a/metropolis/node/ports.go
+++ b/metropolis/node/ports.go
@@ -36,9 +36,9 @@
// WireGuardPort is the UDP port on which the Wireguard Kubernetes network
// overlay listens for incoming peer traffic.
WireGuardPort Port = 7838
- // NodeManagement is the TCP port on which the node-local management service
+ // NodeManagementPort is the TCP port on which the node-local management service
// serves gRPC traffic for NodeManagement.
- NodeManagement Port = 7839
+ NodeManagementPort Port = 7839
// MetricsPort is the TCP port on which the Metrics Service exports
// Prometheus-compatible metrics for this node, secured using TLS and the
// Cluster/Node certificates.
@@ -83,7 +83,7 @@
ConsensusPort,
DebugServicePort,
WireGuardPort,
- NodeManagement,
+ NodeManagementPort,
MetricsPort,
MetricsNodeListenerPort,
MetricsEtcdListenerPort,
@@ -103,7 +103,7 @@
return "debug"
case WireGuardPort:
return "wireguard"
- case NodeManagement:
+ case NodeManagementPort:
return "node-mgmt"
case KubernetesAPIPort:
return "kubernetes-api"