|
1 | 1 | // |
2 | 2 | // DISCLAIMER |
3 | 3 | // |
4 | | -// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany |
| 4 | +// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany |
5 | 5 | // |
6 | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 7 | // you may not use this file except in compliance with the License. |
@@ -114,7 +114,7 @@ func (dr *DeploymentReplication) createArangoSyncEndpoint(epSpec api.EndpointSpe |
114 | 114 | dr.log.Err(err).Str("deployment", deploymentName).Debug("Failed to get deployment") |
115 | 115 | return nil, errors.WithStack(err) |
116 | 116 | } |
117 | | - dnsName := k8sutil.CreateSyncMasterClientServiceDNSNameWithDomain(depl, depl.Spec.ClusterDomain) |
| 117 | + dnsName := k8sutil.CreateSyncMasterClientServiceDNSNameWithDomain(depl, depl.GetAcceptedSpec().ClusterDomain) |
118 | 118 | return client.Endpoint{"https://" + net.JoinHostPort(dnsName, strconv.Itoa(shared.ArangoSyncMasterPort))}, nil |
119 | 119 | } |
120 | 120 | return client.Endpoint(epSpec.MasterEndpoint), nil |
@@ -176,7 +176,7 @@ func (dr *DeploymentReplication) getEndpointSecretNames(epSpec api.EndpointSpec) |
176 | 176 | dr.log.Err(err).Str("deployment", deploymentName).Debug("Failed to get deployment") |
177 | 177 | return "", "", "", "", errors.WithStack(err) |
178 | 178 | } |
179 | | - return clientAuthCertKeyfileSecretName, userSecretName, depl.Spec.Sync.Authentication.GetJWTSecretName(), depl.Spec.Sync.TLS.GetCASecretName(), nil |
| 179 | + return clientAuthCertKeyfileSecretName, userSecretName, depl.GetAcceptedSpec().Sync.Authentication.GetJWTSecretName(), depl.GetAcceptedSpec().Sync.TLS.GetCASecretName(), nil |
180 | 180 | } |
181 | 181 | return clientAuthCertKeyfileSecretName, userSecretName, "", epSpec.TLS.GetCASecretName(), nil |
182 | 182 | } |
0 commit comments