@@ -26,6 +26,7 @@ import (
2626 api "github.com/cockroachdb/cockroach-operator/apis/v1alpha1"
2727 "github.com/cockroachdb/cockroach-operator/pkg/clusterstatus"
2828 "github.com/cockroachdb/cockroach-operator/pkg/condition"
29+ "github.com/cockroachdb/cockroach-operator/pkg/util"
2930 "github.com/cockroachdb/errors"
3031 "github.com/gosimple/slug"
3132 corev1 "k8s.io/api/core/v1"
@@ -199,7 +200,7 @@ func (cluster Cluster) LookupSupportedVersion(version string) (string, bool) {
199200 return "" , false
200201}
201202
202- //GetVersionAnnotation gets the current version of the cluster retrieved by version checker action
203+ // GetVersionAnnotation gets the current version of the cluster retrieved by version checker action
203204func (cluster Cluster ) GetVersionAnnotation () string {
204205 return cluster .getAnnotation (CrdbVersionAnnotation )
205206}
@@ -270,7 +271,7 @@ func (cluster Cluster) GetCockroachDBImageName() string {
270271 }
271272 return NotSupportedVersion
272273 }
273- //we validate the version after the job runs with exec
274+ // we validate the version after the job runs with exec
274275 return cluster .Spec ().Image .Name
275276}
276277
@@ -308,7 +309,7 @@ func (cluster Cluster) CASecretName() string {
308309}
309310
310311func (cluster Cluster ) Domain () string {
311- return "svc.cluster.local"
312+ return fmt . Sprintf ( "svc.%s" , util . GetClusterDomain ())
312313}
313314
314315func (cluster Cluster ) SecureMode () string {
0 commit comments