Skip to content

Hardcoded default domain svc.cluster.local #1149

@54nd20

Description

@54nd20

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions