@@ -36,8 +36,8 @@ type EndpointSpec struct {
3636 // DeploymentName holds the name of an ArangoDeployment resource.
3737 // If set this provides default values for masterEndpoint, auth & tls.
3838 DeploymentName * string `json:"deploymentName,omitempty"`
39- // Endpoint holds a list of URLs used to reach the syncmaster(s).
40- Endpoint []string `json:"endpoint ,omitempty"`
39+ // MasterEndpoint holds a list of URLs used to reach the syncmaster(s).
40+ MasterEndpoint []string `json:"masterEndpoint ,omitempty"`
4141 // Authentication holds settings needed to authentication at the syncmaster.
4242 Authentication EndpointAuthenticationSpec `json:"auth"`
4343 // TLS holds settings needed to verify the TLS connection to the syncmaster.
@@ -60,13 +60,13 @@ func (s EndpointSpec) Validate(isSourceEndpoint bool) error {
6060 if err := k8sutil .ValidateOptionalResourceName (s .GetDeploymentName ()); err != nil {
6161 return maskAny (err )
6262 }
63- for _ , ep := range s .Endpoint {
63+ for _ , ep := range s .MasterEndpoint {
6464 if _ , err := url .Parse (ep ); err != nil {
6565 return maskAny (errors .Wrapf (ValidationError , "Invalid master endpoint '%s': %s" , ep , err ))
6666 }
6767 }
6868 hasDeploymentName := s .HasDeploymentName ()
69- if ! hasDeploymentName && len (s .Endpoint ) == 0 {
69+ if ! hasDeploymentName && len (s .MasterEndpoint ) == 0 {
7070 return maskAny (errors .Wrapf (ValidationError , "Provide a deploy name or at least one master endpoint" ))
7171 }
7272 if err := s .Authentication .Validate (isSourceEndpoint || ! hasDeploymentName ); err != nil {
0 commit comments