Skip to content

Remove hardcoded namespace - make metallb namespace-agnostic #193

Description

@simontesar

Is this a bug report or a feature request?:
I'd consider the hardcoded namespace a bug, making metallb independent from a configured namespace a feature.

What happened:
I deployed metallb in the default namespace.

What you expected to happen:
The speakers not failing to elect a leader with the recurring error message:

E0313 10:35:36.630874       1 leaderelection.go:228] error initially creating leader election record: namespaces "metallb-system" not found

How to reproduce it (as minimally and precisely as possible):
Deploy metallb in the "default" namespace, with --config-ns default set on both the controller and the speakers.

Anything else we need to know?:
I'm using the helm chart of the currenlty pending PR helm/charts/pull/3974 and I'm the the process of patching it.

Environment:

  • MetalLB version: 0.4.3
  • Kubernetes version: 1.9.2
  • BGP router type/version: none, using arp
  • OS (e.g. from /etc/os-release): CentOS 7
  • Kernel (e.g. uname -a): 3.10.0-693.2.2.el7.x86_64

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions