argoproj-labs / argocd-operator

A Kubernetes operator for managing Argo CD clusters.

Home Page:https://argocd-operator.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hardcoded default domain svc.cluster.local

54nd20 opened this issue · comments

Describe the bug
The DNS suffix svc.cluster.local is hardcoded, for instance in:

return fmt.Sprintf("%s.%s.svc.cluster.local:%d", nameWithSuffix(service, cr), cr.Namespace, port)

Because of this the operator can not be used on clusters where the default domain is different. For instance on Exoscale SKS a default domain like svc.CLUSTER_ID.cluster.local is used.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy operator on a cluster with non-default dns suffix
  2. DNS resolution will fail for Domains like argocd-repo-server.argocd.svc.cluster.local or argocd-redis.argocd.svc.cluster.local

Expected behavior
Default domain should be configurable for clusters that use a non-default configuration