Skip to content

Commit 232652d

Browse files
committed
rename to usage
1 parent 55d1e98 commit 232652d

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/install/installer/pkg/components/public-api-server @gitpod-io/engineering-webapp
4242
/install/installer/pkg/components/server @gitpod-io/engineering-webapp
4343
/install/installer/pkg/components/server/ide @gitpod-io/engineering-ide
44-
/install/installer/pkg/components/usage-controller @gitpod-io/engineering-webapp
44+
/install/installer/pkg/components/usage @gitpod-io/engineering-webapp
4545
/install/installer/pkg/components/workspace @gitpod-io/engineering-workspace
4646
/install/installer/pkg/components/workspace/ide @gitpod-io/engineering-ide
4747
/install/installer/pkg/components/ws-daemon @gitpod-io/engineering-workspace

components/BUILD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ packages:
5454
- components/image-builder-mk3:docker
5555
- components/local-app:docker
5656
- components/public-api-server:docker
57-
- components/usage-controller:docker
57+
- components/usage:docker
5858
- components/openvsx-proxy:docker
5959
- components/proxy:docker
6060
- components/registry-facade:docker

components/usage-controller/BUILD.yaml renamed to components/usage/BUILD.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ packages:
1212
- GOOS=linux
1313
config:
1414
packaging: app
15-
buildCommand: ["go", "build", "-trimpath", "-ldflags", "-buildid= -w -s -X 'github.com/gitpod-io/gitpod/usage-controller/cmd.Version=commit-${__git_commit}'"]
15+
buildCommand: ["go", "build", "-trimpath", "-ldflags", "-buildid= -w -s -X 'github.com/gitpod-io/gitpod/usage/cmd.Version=commit-${__git_commit}'"]
1616
- name: docker
1717
type: docker
1818
deps:
@@ -24,7 +24,7 @@ packages:
2424
VERSION: ${version}
2525
dockerfile: leeway.Dockerfile
2626
metadata:
27-
helm-component: usage-controller
27+
helm-component: usage
2828
image:
29-
- ${imageRepoBase}/usage-controller:${version}
30-
- ${imageRepoBase}/usage-controller:commit-${__git_commit}
29+
- ${imageRepoBase}/usage:${version}
30+
- ${imageRepoBase}/usage:commit-${__git_commit}

components/usage-controller/cmd/root.go renamed to components/usage/cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ import (
1414

1515
var (
1616
// ServiceName is the name we use for tracing/logging
17-
ServiceName = "usage-controller"
17+
ServiceName = "usage"
1818
// Version of this service - set during build
1919
Version = ""
2020
)
2121

2222
// rootCmd represents the base command when called without any subcommands
2323
var rootCmd = &cobra.Command{
2424
Use: ServiceName,
25-
Short: "Runs usage controller",
25+
Short: "Usage service & controller",
2626
}
2727

2828
func Execute() {

components/usage-controller/cmd/run.go renamed to components/usage/cmd/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func run() *cobra.Command {
2828
Run: func(cmd *cobra.Command, args []string) {
2929
log.Init(ServiceName, Version, true, verbose)
3030

31-
log.Info("Hello world usage-controller")
31+
log.Info("Hello world usage server")
3232

3333
done := make(chan bool, 1)
3434
sigs := make(chan os.Signal, 1)

components/usage-controller/go.mod renamed to components/usage/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/gitpod-io/gitpod/usage-controller
1+
module github.com/gitpod-io/gitpod/usage
22

33
go 1.18
44

File renamed without changes.

components/usage-controller/leeway.Dockerfile renamed to components/usage/leeway.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk upgrade --no-cache \
99
&& apk add --no-cache ca-certificates
1010

1111
RUN adduser -S -D -H -h /app -u 1000 appuser
12-
COPY components-usage-controller--app/usage-controller /app/usage-controller
12+
COPY components-usage--app/usage /app/usage
1313
RUN chown -R appuser /app
1414

1515
USER appuser
@@ -19,5 +19,5 @@ ARG VERSION
1919

2020
ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT}
2121
ENV GITPOD_BUILD_VERSION=${VERSION}
22-
ENTRYPOINT [ "/app/usage-controller" ]
22+
ENTRYPOINT [ "/app/usage" ]
2323
CMD [ "-v", "help" ]

components/usage-controller/main.go renamed to components/usage/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package main
66

7-
import "github.com/gitpod-io/gitpod/usage-controller/cmd"
7+
import "github.com/gitpod-io/gitpod/usage/cmd"
88

99
func main() {
1010
cmd.Execute()

0 commit comments

Comments
 (0)