Introduction
copy
- copy repo
replace all 'rocktemplate' to 'YourRepoName'
replace all 'spidernet-io' and 'spidernet.io' to 'YourOrigin'
-
grep "====modify====" * -RHn --colour and modify all of them
-
update api/v1/openapi.yaml and
make update_openapi_sdk
-
redefine CRD in pkg/k8s/v1 rename directory name 'pkg/k8s/v1/rocktemplate.spidernet.io' replace all 'mybook' to 'YourCRDName' and
make update_crd_sdk
, and code pkg/mybookManagerrename pkg/mybookManager and replace all 'mybook' with your CRD name in this directory
rm charts/crds/rocktemplate.spidernet.io_mybooks.yaml
in repo: replace all "github.com/spidernet-io/spiderdoctor/pkg/mybookManager" to "github.com/spidernet-io/spiderdoctor/pkg/${crdName}Manager" in repo: find and replace all "mybook" to YourCrd
-
update charts/ , and images/ , and CODEOWNERS
-
go mod tidy
,go mod vendor
,go vet ./...
, double check all is ok -
go get -u
,go mod tidy
,go mod vendor
,go vet ./...
, update all vendor -
create an empty branch 'github_pages' and mkdir 'docs'
-
github seetings:
spidernet.io -> settings -> secrets -> actions -> grant secret to repo
spidernet.io/REPO -> settings -> general -> feature -> issue
repo -> packages -> package settings -> Change package visibility
create 'github_pages' branch, and repo -> settings -> pages -> add branch 'github_pages', directory 'docs'
repo -> settings -> branch -> add protection rules for 'main' and 'github_pages' and 'release*'
-
enable third app
codefactor: https://www.codefactor.io/dashboard
sonarCloud: https://sonarcloud.io/projects/create
codecov: https://app.codecov.io/gh
-
add badge to readme:
github/workflows/call-e2e.yaml
github/workflows/badge.yaml
auto nightly ci
release version
code coverage from https://app.codecov.io/gh
go report from https://goreportcard.com
codefactor: https://www.codefactor.io/dashboard
sonarCloud: https://sonarcloud.io/projects
-
build base image , update BASE_IMAGE in images/agent/Dockerfile and images/controller/Dockerfile run test
local develop
-
make build_local_image
-
make e2e_init
-
make e2e_run
-
check proscope, browser vists http://NodeIP:4040
-
apply cr
cat <<EOF > mybook.yaml apiVersion: rocktemplate.spidernet.io/v1 kind: Mybook metadata: name: test spec: ipVersion: 4 subnet: "1.0.0.0/8" EOF kubectl apply -f mybook.yaml
chart develop
helm repo add rock https://spidernet-io.github.io/rocktemplate/