Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename manager to k8gb #806

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ builds:
- CGO_ENABLED=0
id: k8gb
main: ./main.go
binary: bin/manager
binary: bin/k8gb
goos:
- linux
goarch:
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
# limitations under the License.
#
# Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
# Build the manager binary
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY manager .
COPY k8gb .
USER nonroot:nonroot

ENTRYPOINT ["/manager"]
ENTRYPOINT ["/k8gb"]
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ lint:
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'

# build manager binary
.PHONY: manager
manager: lint
# build k8gb binary
.PHONY: k8gb
k8gb: lint
$(call generate)
go build -o bin/manager main.go
go build -o bin/k8gb main.go

.PHONY: mocks
mocks:
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func run() error {
LeaderElectionID: "8020e9ff.absa.oss",
})
if err != nil {
log.Err(err).Msg("Unable to start manager")
log.Err(err).Msg("Unable to start k8gb")
return err
}

Expand Down Expand Up @@ -135,9 +135,9 @@ func run() error {
}
metrics.Metrics().SetRuntimeInfo(version, commit)
// +kubebuilder:scaffold:builder
log.Info().Msg("Starting manager")
log.Info().Msg("Starting k8gb")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
log.Err(err).Msg("Problem running manager")
log.Err(err).Msg("Problem running k8gb controller")
return err
}
log.Info().Msg("Gracefully finished, bye!\n")
Expand Down