Align with kubernetes api naming conventions

This updates the api to use names consistent with the k8s api naming conventions:

https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#naming-conventions
https://github.com/kubernetes/community/blob/master/wg-naming/recommendations/001-master-control-plane.md

Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I46feda94ee5d22d724f5943dde32ffe0d06d7073
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
This commit is contained in:
Sean Eagan
2021-02-03 14:29:51 -06:00
parent 5fa448b575
commit e81e120dbf
17 changed files with 161 additions and 159 deletions

View File

@@ -125,7 +125,7 @@ func (lb loadBalancer) generateSecret() (*corev1.Secret, error) {
Backends: make([]backend, 0),
}
for _, machine := range lb.machines.Machines {
if machine.VMRole == airshipv1.VMMaster {
if machine.VMRole == airshipv1.VMControlPlane {
name := machine.BMH.Name
namespace := machine.BMH.Namespace
ip, exists := machine.Data.IPOnInterface[lb.config.NodeInterface]