Skip to content

webhook_service/webhook_cert inconfigurable #2174

Closed

Description

@rogeryuchao

Is your feature request related to a problem?

In controller code, some environment variables is hard coded:

  1. controller => main.go => line 148, certServiceName , hardcode value: webhook-service
  2. controller => main.go => line 151, webhookSecretName, hardcode value: webhook-server-cert

Describe the solution you'd like

These 2 items naming is too common, when we want to merge the metallb system's component with other network plugin in k8s, the naming of this webhook cert and the service can be conflict with other project, it should be configurable in the variable name and use deployment manifest to config it, like the 'METALLB_ML_SECRET_NAME' and 'METALLB_DEPLOYMENT'

Additional context

No response

I've read and agree with the following

  • I've checked all open and closed issues and my request is not there.
  • I've checked all open and closed pull requests and my request is not there.

Activity

  1. fedepaol commented on Nov 30, 2023

    @fedepaol
    Member

    Makes sense! And thanks for filing this issue.
    Would changing the name to something less common suffice? I don't think this would require any level of configurability if we choose something taht is strictly metallb related.

    @rogeryuchao keen filing a pr for that? Should be quite straightforward.
    If not, we'll work on this.

  2. cyclinder commented on Jan 15, 2024

    @cyclinder
    Contributor

    A part of this has already finished in #2070

  3. cyclinder commented on Jan 15, 2024

    @cyclinder
    Contributor

    I think they're already configurable, but we could consider renaming them to make them less common suffice.

    • webhook-service -> metallb-webhook-service
    • webhook-server-cert -> metallb-secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions