Skip to content

Commit

Permalink
add the manager.Options.HealthProbeBindAddress config
Browse files Browse the repository at this point in the history
  • Loading branch information
alphashaw committed Nov 13, 2023
1 parent 75a5973 commit 3586578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var loggerOnce sync.Once

var envOperatorHost = "K8S-OPERATOR_HOST"
var envEnableWebHooks = "ENABLE_WEBHOOKS"
var envHealthProbeAddress = "K8S-HEALTH_PROBE_ADDRESS"
var envWebHookCertificateDir = "WEBHOOK_CERTIFICATES_DIR"
var envNamespacesToWatch = "NAMESPACES_TO_WATCH"
var envEnableLeaderElection = "ENABLE_LEADER_ELECTION"
Expand Down Expand Up @@ -86,7 +87,8 @@ func RequireClientset() *kubernetes.Clientset {
// GetManagerParams get the manager options to use
func GetManagerParams(scheme *runtime.Scheme, operatorName, domainName string) (*rest.Config, ctrl.Options) {
options := ctrl.Options{
Scheme: scheme,
Scheme: scheme,
HealthProbeBindAddress: env.GetString(envHealthProbeAddress, ":8081"),
WebhookServer: webhook.NewServer(webhook.Options{
Host: env.GetString(envOperatorHost, ""),
Port: 9443,
Expand Down

0 comments on commit 3586578

Please sign in to comment.