Skip to content

Add flag metrics-addr for Helm/Ansible #3358

@camilamacedo86

Description

@camilamacedo86

Feature Request

The new helm layout is working with the current/legacy image of the operator-sdk helm. This image is not allowing users to customize the metrics port.

We need to:

        
	pflag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
        ... 
       options := ctrl.Options{
		MetricsBindAddress:      metricsAddr,
		LeaderElection:          enableLeaderElection,
		LeaderElectionID:        leaderElectionID,
		LeaderElectionNamespace: leaderElectionNamespace,
		NewClient:               manager.NewDelegatingClientFunc(),
	}

Important: we should scaffold the projects to use by default the same go/kb port in order to keep a standard across all projects and then, describe in the migration guide how the users are able to still use the current port and no face breaking changes if they wish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.kubebuilder-integrationRelates to rewriting the SDK in Kubebuilder plugin formlanguage/ansibleIssue is related to an Ansible operator projectlanguage/helmIssue is related to a Helm operator project

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions