Add cmd line arg for enterprise url. Fix enterprise bug. (#1)

* Add cmd line arg for enterprise url. Fix enterprise bug.

* Fix package import order

* Fix comment
This commit is contained in:
Barun Mishra
2022-09-05 13:50:17 +01:00
committed by GitHub
parent 623c84fa52
commit 921daff61b
3 changed files with 9 additions and 6 deletions

View File

@@ -19,12 +19,12 @@ package main
import (
"flag"
"fmt"
"github.com/actions-runner-controller/actions-runner-controller/build"
"os"
"strings"
"time"
actionsv1alpha1 "github.com/actions-runner-controller/actions-runner-controller/api/v1alpha1"
"github.com/actions-runner-controller/actions-runner-controller/build"
"github.com/actions-runner-controller/actions-runner-controller/controllers"
"github.com/actions-runner-controller/actions-runner-controller/github"
"github.com/actions-runner-controller/actions-runner-controller/logging"
@@ -103,6 +103,7 @@ func main() {
flag.Var(&runnerImagePullSecrets, "runner-image-pull-secret", "The default image-pull secret name for self-hosted runner container.")
flag.StringVar(&dockerRegistryMirror, "docker-registry-mirror", "", "The default Docker Registry Mirror used by runners.")
flag.StringVar(&c.Token, "github-token", c.Token, "The personal access token of GitHub.")
flag.StringVar(&c.EnterpriseURL, "github-enterprise-url", c.EnterpriseURL, "Enterprise URL to be used for your GitHub API calls")
flag.Int64Var(&c.AppID, "github-app-id", c.AppID, "The application ID of GitHub App.")
flag.Int64Var(&c.AppInstallationID, "github-app-installation-id", c.AppInstallationID, "The installation ID of GitHub App.")
flag.StringVar(&c.AppPrivateKey, "github-app-private-key", c.AppPrivateKey, "The path of a private key file to authenticate as a GitHub App")