Skip to content

Commit

Permalink
Update controller package names to match the owning API group name (#…
Browse files Browse the repository at this point in the history
…2150)

* Update controller package names to match the owning API group name

* feedback.

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
  • Loading branch information
TingluoHuang and Link- authored Jan 12, 2023
1 parent ab04a2b commit eaa451d
Show file tree
Hide file tree
Showing 36 changed files with 37 additions and 410 deletions.
6 changes: 3 additions & 3 deletions cmd/githubwebhookserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"time"

actionsv1alpha1 "github.com/actions/actions-runner-controller/apis/actions.summerwind.net/v1alpha1"
"github.com/actions/actions-runner-controller/controllers/actions.summerwind.net"
actionssummerwindnet "github.com/actions/actions-runner-controller/controllers/actions.summerwind.net"
"github.com/actions/actions-runner-controller/github"
"github.com/actions/actions-runner-controller/logging"

Expand Down Expand Up @@ -90,7 +90,7 @@ func main() {
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
flag.StringVar(&watchNamespace, "watch-namespace", "", "The namespace to watch for HorizontalRunnerAutoscaler's to scale on Webhook. Set to empty for letting it watch for all namespaces.")
flag.StringVar(&logLevel, "log-level", logging.LogLevelDebug, `The verbosity of the logging. Valid values are "debug", "info", "warn", "error". Defaults to "debug".`)
flag.IntVar(&queueLimit, "queue-limit", controllers.DefaultQueueLimit, `The maximum length of the scale operation queue. The scale opration is enqueued per every matching webhook event, and the server returns a 500 HTTP status when the queue was already full on enqueue attempt.`)
flag.IntVar(&queueLimit, "queue-limit", actionssummerwindnet.DefaultQueueLimit, `The maximum length of the scale operation queue. The scale opration is enqueued per every matching webhook event, and the server returns a 500 HTTP status when the queue was already full on enqueue attempt.`)
flag.StringVar(&webhookSecretToken, "github-webhook-secret-token", "", "The personal access token of GitHub.")
flag.StringVar(&c.Token, "github-token", c.Token, "The personal access token of GitHub.")
flag.Int64Var(&c.AppID, "github-app-id", c.AppID, "The application ID of GitHub App.")
Expand Down Expand Up @@ -160,7 +160,7 @@ func main() {
os.Exit(1)
}

hraGitHubWebhook := &controllers.HorizontalRunnerAutoscalerGitHubWebhook{
hraGitHubWebhook := &actionssummerwindnet.HorizontalRunnerAutoscalerGitHubWebhook{
Name: "webhookbasedautoscaler",
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("webhookbasedautoscaler"),
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/autoscaling.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/autoscaling_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/constants.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import "time"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/multi_githubclient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/new_runner_pod_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/runner_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/runner_graceful_stop.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/runner_pod.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import corev1 "k8s.io/api/core/v1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/runner_pod_owner.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/runnerset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/schedule.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/schedule_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controllers
package actionssummerwindnet

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/sync_volumes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/testresourcereader.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

func filterLabels(labels map[string]string, filter string) map[string]string {
filtered := map[string]string{}
Expand Down
2 changes: 1 addition & 1 deletion controllers/actions.summerwind.net/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers
package actionssummerwindnet

import (
"reflect"
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ require (
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
Expand Down
Loading

0 comments on commit eaa451d

Please sign in to comment.