Skip to content

Commit 998643a

Browse files
committed
feat(main): rename operator
1 parent 3d9893e commit 998643a

File tree

20 files changed

+39
-41
lines changed

20 files changed

+39
-41
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: build (and publish) main image
4949
env:
5050
# fork friendly ^^
51-
DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/endpoints-balance
51+
DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/endpoints-operator
5252
run: |
5353
docker buildx build \
5454
--platform linux/amd64,linux/arm64 \

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ builds:
1515
- arm64
1616
main: ./cmd
1717
ldflags:
18-
- -X github.com/cuisongliu/endpoints-balance/library/version.gitVersion={{.Version}}
19-
- -X github.com/cuisongliu/endpoints-balance/library/version.gitCommit={{.ShortCommit}}
20-
- -X github.com/cuisongliu/endpoints-balance/library/version.buildDate={{.Date}}
18+
- -X github.com/sealyun/endpoints-operator/library/version.gitVersion={{.Version}}
19+
- -X github.com/sealyun/endpoints-operator/library/version.gitCommit={{.ShortCommit}}
20+
- -X github.com/sealyun/endpoints-operator/library/version.buildDate={{.Date}}
2121
- -s -w
2222
#archives:
2323
# - replacements:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
FROM alpine:latest
1717
MAINTAINER "cuisongliu <[email protected]>"
1818

19-
ENTRYPOINT ["/usr/bin/endpoints-balance"]
19+
ENTRYPOINT ["/usr/bin/endpoints-operator"]
2020

2121
ARG TARGETPLATFORM
2222
WORKDIR /usr/bin/
2323

24-
RUN --mount=target=/build tar xf /build/dist/endpoints-balance_*_$(echo ${TARGETPLATFORM} | tr '/' '_' | sed -e 's/arm_/arm/').tar.gz
24+
RUN --mount=target=/build tar xf /build/dist/endpoints-operator_*_$(echo ${TARGETPLATFORM} | tr '/' '_' | sed -e 's/arm_/arm/').tar.gz
2525

2626
CMD ["--help"]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install-goreleaser: ## check license if not exist install go-lint tools
3434

3535
build: SHELL:=/bin/bash
3636
build: install-goreleaser clean ## build binaries by default
37-
@echo "build endpoints-balance bin"
37+
@echo "build endpoints-operator bin"
3838
$(GORELEASER_BIN) build --snapshot --rm-dist --timeout=1h
3939

4040
help: ## this help
@@ -51,6 +51,6 @@ filelicense:
5151
filelicense: install-addlicense
5252
for file in ${Dirs} ; do \
5353
if [[ $$file != '_output' && $$file != 'docs' && $$file != 'vendor' && $$file != 'logger' && $$file != 'applications' ]]; then \
54-
$(ADDLICENSE_BIN) -y $(shell date +"%Y") -c "[email protected]." -f hack/LICENSE ./$$file ; \
54+
$(ADDLICENSE_BIN) -y $(shell date +"%Y") -c "sealyun." -f hack/LICENSE ./$$file ; \
5555
fi \
5656
done

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
domain: sealyun.com
2-
repo: endpoints-balance
2+
repo: endpoints-operator
33
version: "2"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# endpoints-balance
1+
# endpoints-operator
22
> 场景对于外部场景使用固定的endpoint维护增加探活功能
33
44
根据service数据生成endpoint数据

cmd/app/server.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ package app
1616

1717
import (
1818
"fmt"
19-
"github.com/cuisongliu/endpoints-balance/controllers"
19+
"github.com/sealyun/endpoints-operator/controllers"
2020
"k8s.io/apiserver/pkg/util/term"
2121
"net/http"
2222
"os"
2323

24-
"github.com/cuisongliu/endpoints-balance/cmd/app/options"
24+
"github.com/sealyun/endpoints-operator/cmd/app/options"
2525
"github.com/spf13/cobra"
2626
"k8s.io/apimachinery/pkg/runtime"
2727
utilerrors "k8s.io/apimachinery/pkg/util/errors"
@@ -47,7 +47,7 @@ func NewCommand() *cobra.Command {
4747

4848
cmd := &cobra.Command{
4949
Use: "controller-manager",
50-
Long: `endpoint-balance controller manager is a daemon that`,
50+
Long: `endpoints-operator controller manager is a daemon that`,
5151
Run: func(cmd *cobra.Command, args []string) {
5252
if errs := s.Validate(); len(errs) != 0 {
5353
klog.Error(utilerrors.NewAggregate(errs))
@@ -83,7 +83,7 @@ func run(s *options.Options, stopCh <-chan struct{}) error {
8383
mgrOptions = manager.Options{
8484
LeaderElection: s.LeaderElect,
8585
LeaderElectionNamespace: "kube-system",
86-
LeaderElectionID: "sealyun-endpoints-balance-leader-election",
86+
LeaderElectionID: "sealyun-endpoints-operator-leader-election",
8787
LeaseDuration: &s.LeaderElection.LeaseDuration,
8888
RetryPeriod: &s.LeaderElection.RetryPeriod,
8989
RenewDeadline: &s.LeaderElection.RenewDeadline,

cmd/endpoints-balance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package main
1818

1919
import (
20-
"github.com/cuisongliu/endpoints-balance/cmd/app"
20+
"github.com/sealyun/endpoints-operator/cmd/app"
2121
"os"
2222
)
2323

controllers/healthy.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ limitations under the License.
1717
package controllers
1818

1919
const (
20-
annotationServer = "sealyun.com/server"
21-
annotationType = "sealyun.com/type"
22-
annotationHTTP = "sealyun.com/type.http" //port=6443,schema=https:,path=/healthz&&
23-
annotationInterval = "sealyun.com/interval"
20+
annotationServer = "sealyun.com/server"
21+
annotationHTTP = "sealyun.com/http" //interval=5s,port=6443,schema=https:,path=/healthz
2422
)

controllers/probe.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ package controllers
1818

1919
import (
2020
"fmt"
21-
"github.com/cuisongliu/endpoints-balance/library/probe"
22-
execprobe "github.com/cuisongliu/endpoints-balance/library/probe/exec"
23-
httpprobe "github.com/cuisongliu/endpoints-balance/library/probe/http"
24-
tcpprobe "github.com/cuisongliu/endpoints-balance/library/probe/tcp"
21+
"github.com/sealyun/endpoints-operator/library/probe"
22+
execprobe "github.com/sealyun/endpoints-operator/library/probe/exec"
23+
httpprobe "github.com/sealyun/endpoints-operator/library/probe/http"
24+
tcpprobe "github.com/sealyun/endpoints-operator/library/probe/tcp"
2525
v1 "k8s.io/api/core/v1"
2626
"k8s.io/apimachinery/pkg/util/intstr"
2727
"k8s.io/klog"

0 commit comments

Comments
 (0)