Skip to content

Commit

Permalink
feature(main): change gomod sealyun to labring crd (#84)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu committed Aug 1, 2022
1 parent 383c423 commit 859fc10
Show file tree
Hide file tree
Showing 42 changed files with 482 additions and 477 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@
- 新增对应的监控数据
- 新增cepctl工具做数据转换
- 新增webhook证书维护代码

## [v0.2.0](#v0.2.0)

- 所有的domain更正为sealos.io
- FixBug #86 不支持clusterIP=None
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ filelicense:
filelicense: install-addlicense
for file in ${Dirs} ; do \
if [[ $$file != '_output' && $$file != 'docs' && $$file != 'vendor' && $$file != 'logger' && $$file != 'applications' ]]; then \
$(ADDLICENSE_BIN) -y $(shell date +"%Y") -c "The sealyun Authors." -f hack/LICENSE ./$$file ; \
$(ADDLICENSE_BIN) -y $(shell date +"%Y") -c "The sealos Authors." -f hack/LICENSE ./$$file ; \
fi \
done

Expand All @@ -68,7 +68,12 @@ deepcopy:install-deepcopy
-O zz_generated.deepcopy \
--go-header-file "$(HEAD_FILE)" \
--output-base "${GOPATH}/src"
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
.PHONY: controller-gen
controller-gen: ## Download controller-gen locally if necessary.
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected])

# Generate manifests e.g. CRD, RBAC etc.
manifests:
controller-gen crd:trivialVersions=true rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd
manifests: controller-gen
#$(CONTROLLER_GEN) crd:trivialVersions=true rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
### 注意事项:

v0.1.1 版本的数据是sealyun.com的domain
v0.1.2 之后所有的domain都是sealos.io
- v0.1.1 版本的数据是sealyun.com的domain
- v0.2.0 之后所有的domain都是sealos.io

也可以手动执行一下脚本,namespace为xxx
```shell
Expand Down
2 changes: 1 addition & 1 deletion api/network/v1beta1/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/network/v1beta1/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/network/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/cep.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 The sealyun Authors.
// Copyright © 2022 The sealos Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion client/kube.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 The sealyun Authors.
// Copyright © 2022 The sealos Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion client/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 The sealyun Authors.
// Copyright © 2022 The sealos Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cmd/cepctl/app/client.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The sealyun Authors.
Copyright 2022 The sealos Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cmd/cepctl/app/options/options.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 The sealyun Authors.
// Copyright © 2022 The sealos Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cmd/cepctl/cepctl.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The sealyun Authors.
Copyright 2022 The sealos Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cmd/endpoints-operator/app/options/options.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 The sealyun Authors.
// Copyright © 2022 The sealos Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cmd/endpoints-operator/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func run(s *options.Options, ctx context.Context) error {
mgrOptions = manager.Options{
LeaderElection: s.LeaderElect,
LeaderElectionNamespace: "kube-system",
LeaderElectionID: "sealyun-endpoints-operator-leader-election",
LeaderElectionID: "sealos-endpoints-operator-leader-election",
LeaderElectionResourceLock: s.LeaderElectionResourceLock,
LeaseDuration: &s.LeaderElection.LeaseDuration,
RetryPeriod: &s.LeaderElection.RetryPeriod,
Expand Down
2 changes: 1 addition & 1 deletion cmd/endpoints-operator/endpoints-operator.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The sealyun Authors.
Copyright 2022 The sealos Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion config/charts/endpoints-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2022 The sealyun Authors.
# Copyright © 2022 The sealos Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 859fc10

Please sign in to comment.