Skip to content

Commit 4d86f87

Browse files
authored
Merge pull request #256 from mbrancato/issue_255
Return early when cluster domain is already set
2 parents 8fc33e4 + 768fdb0 commit 4d86f87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/controller/valkey_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,10 @@ func (r *ValkeyReconciler) detectClusterDomain(ctx context.Context, valkey *hype
17311731
logger := log.FromContext(ctx)
17321732

17331733
logger.Info("detecting cluster domain")
1734+
if valkey.Spec.ClusterDomain != "" {
1735+
return valkey.Spec.ClusterDomain, nil
1736+
}
1737+
17341738
clusterDomain := os.Getenv("CLUSTER_DOMAIN")
17351739
if clusterDomain == "" {
17361740
clusterDomain = "cluster.local"

0 commit comments

Comments
 (0)