Skip to content

Unhardcode cluster.local domain #34

Closed
@kvaps

Description

Hi, Cozystack.io team here.

We have a problem of adopting fluxcd-opeator, because it expects user to explicitly specify cluster domain.

In fact user might have different domains for their clusters, and requirement for explicitly specifying the domain can be ommited which simplifying user experience and lowering down their cognitive load:

For the implementation, this default value should be removed:

This check:

options.EventsAddr = fmt.Sprintf("http://%s.%s.svc.%s./", options.NotificationController, options.Namespace, options.ClusterDomain)

should be extended to somewhat like

  if options.ClusterDomain == "" {
  options.EventsAddr = fmt.Sprintf("http://%s.%s.svc/", options.NotificationController, options.Namespace)
  } else {
  options.EventsAddr = fmt.Sprintf("http://%s.%s.svc.%s./", options.NotificationController, options.Namespace, options.ClusterDomain)
  }

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