Skip to content

Commit

Permalink
chore: model and package refactor (#3299)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy authored Sep 23, 2024
1 parent e3ce354 commit a92adbd
Show file tree
Hide file tree
Showing 484 changed files with 85,967 additions and 102,349 deletions.
367 changes: 183 additions & 184 deletions LICENSE

Large diffs are not rendered by default.

1,346 changes: 0 additions & 1,346 deletions api/event-bus.html

This file was deleted.

2,258 changes: 0 additions & 2,258 deletions api/event-bus.md

This file was deleted.

6,671 changes: 0 additions & 6,671 deletions api/event-source.html

This file was deleted.

11,425 changes: 0 additions & 11,425 deletions api/event-source.md

This file was deleted.

5,916 changes: 2,916 additions & 3,000 deletions api/jsonschema/schema.json

Large diffs are not rendered by default.

5,292 changes: 2,604 additions & 2,688 deletions api/openapi-spec/swagger.json

Large diffs are not rendered by default.

4,015 changes: 0 additions & 4,015 deletions api/sensor.html

This file was deleted.

7,035 changes: 0 additions & 7,035 deletions api/sensor.md

This file was deleted.

14 changes: 7 additions & 7 deletions cmd/commands/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package commands
import (
"github.com/spf13/cobra"

"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/common/logging"
controllercmd "github.com/argoproj/argo-events/controllers/cmd"
envpkg "github.com/argoproj/pkg/env"
"github.com/argoproj/argo-events/pkg/apis/events/v1alpha1"
controllercmd "github.com/argoproj/argo-events/pkg/reconciler/cmd"
"github.com/argoproj/argo-events/pkg/shared/logging"
sharedutil "github.com/argoproj/argo-events/pkg/shared/util"
)

func NewControllerCommand() *cobra.Command {
Expand Down Expand Up @@ -35,10 +35,10 @@ func NewControllerCommand() *cobra.Command {
},
}
command.Flags().BoolVar(&namespaced, "namespaced", false, "Whether to run in namespaced scope, defaults to false.")
command.Flags().StringVar(&managedNamespace, "managed-namespace", envpkg.LookupEnvStringOr("NAMESPACE", "argo-events"), "The namespace that the controller watches when \"--namespaced\" is \"true\".")
command.Flags().StringVar(&managedNamespace, "managed-namespace", sharedutil.LookupEnvStringOr("NAMESPACE", "argo-events"), "The namespace that the controller watches when \"--namespaced\" is \"true\".")
command.Flags().BoolVar(&leaderElection, "leader-election", true, "Enable leader election")
command.Flags().Int32Var(&metricsPort, "metrics-port", common.ControllerMetricsPort, "Metrics port")
command.Flags().Int32Var(&healthPort, "health-port", common.ControllerHealthPort, "Health port")
command.Flags().Int32Var(&metricsPort, "metrics-port", v1alpha1.ControllerMetricsPort, "Metrics port")
command.Flags().Int32Var(&healthPort, "health-port", v1alpha1.ControllerHealthPort, "Health port")
command.Flags().IntVar(&klogLevel, "kloglevel", 0, "klog level")
return command
}
2 changes: 1 addition & 1 deletion cmd/commands/eventsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"github.com/spf13/cobra"

eventsourcecmd "github.com/argoproj/argo-events/eventsources/cmd"
eventsourcecmd "github.com/argoproj/argo-events/pkg/eventsources/cmd"
)

func NewEventSourceCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/commands/sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"github.com/spf13/cobra"

sensorcmd "github.com/argoproj/argo-events/sensors/cmd"
sensorcmd "github.com/argoproj/argo-events/pkg/sensors/cmd"
)

func NewSensorCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/commands/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"github.com/spf13/cobra"

webhookcmd "github.com/argoproj/argo-events/webhook/cmd"
webhookcmd "github.com/argoproj/argo-events/pkg/webhook/cmd"
)

func NewWebhookCommand() *cobra.Command {
Expand Down
30 changes: 0 additions & 30 deletions common/logging/logger_test.go

This file was deleted.

28 changes: 0 additions & 28 deletions common/time.go

This file was deleted.

36 changes: 0 additions & 36 deletions common/time_test.go

This file was deleted.

29 changes: 0 additions & 29 deletions common/viper.go

This file was deleted.

Loading

0 comments on commit a92adbd

Please sign in to comment.