karmada/hack
karmada-bot a777c3a450
Merge pull request #4315 from zhzhuang-zju/crdgen
generate Embedded ObjectMeta in the CRDs
2023-12-13 17:31:10 +08:00
..
boilerplate add license for auto-generated files 2023-12-05 14:20:26 +08:00
tools Bump Kubernetes dependencies to v1.27.8 2023-11-28 10:23:43 +08:00
.import-aliases update .import-aliases 2022-12-19 18:29:54 +08:00
OWNERS Nominate code owners 2023-11-20 10:39:38 +08:00
README.md Merge pull request #1146 from leonharetd/master 2021-12-30 19:19:44 +08:00
build.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
cherry_pick_pull.sh Fix broken links in cherry-pick script 2022-08-25 10:22:13 +08:00
cli-testing-environment.sh make current image in CLI ci 2023-12-08 17:03:14 +08:00
create-cluster.sh create cluster script support MacOS 2023-11-24 15:00:30 +08:00
delete-cluster.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-agent-and-estimator.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-k8s-metrics-server.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-karmada-agent.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-karmada-opensearch.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-karmada.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-metrics-adapter.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
deploy-scheduler-estimator.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
docker.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
install-cli.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
local-down-karmada.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
local-up-karmada.sh fix a typo 2023-11-23 10:40:49 +08:00
package-helm-chart.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
post-run-e2e.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
pre-run-e2e.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
release.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
remote-up-karmada.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
run-e2e.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
undeploy-karmada-agent.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
undeploy-karmada.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-all.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-codegen.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-crdgen.sh generate Embedded ObjectMeta in the CRDs 2023-12-13 11:46:11 +08:00
update-estimator-protobuf.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-gofmt.sh Add gofmt script 2022-11-25 16:56:05 +08:00
update-import-aliases.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-lifted.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-mocks.sh install mockgen from vendor 2022-10-25 18:10:38 +08:00
update-swagger-docs.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
update-vendor.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
util.sh Fix local-up-karmada.sh is not working. 2023-11-24 14:14:43 +08:00
verify-all.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-codegen.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-crdgen.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-estimator-protobuf.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-gofmt.sh Add gofmt script 2022-11-25 16:56:05 +08:00
verify-import-aliases.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-license.sh fix estimator license 2023-12-05 19:02:26 +08:00
verify-lifted.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-mocks.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-staticcheck.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-swagger-docs.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
verify-vendor.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00
version.sh feat: add license and verify license for code file 2023-11-16 11:11:21 +08:00

README.md

Karmada hack GuideLines

This document describes how you can use the scripts from the hack directory and gives a brief introduction and explanation of these scripts.

Scripts in this directory are mainly for the purpose which improves development efficiency and ensures development quality.

Key scripts

For end-user

  • local-up-karmada.sh This script will quickly set up a local development environment with member clusters based on the current codebase.

  • remote-up-karmada.sh This script will install Karmada to a standalone K8s cluster, this cluster may be real, remote , and even for production. It is worth noting for the connectivity from your client to Karmada API server, it will directly use host network by default, else export LOAD_BALANCER=true with the LoadBalancer type service before the following script. If your want to customize a load balancer service, you may add the annotations at the metadata part of service karmada-apiserver in ../artifacts/deploy/karmada-apiserver.yaml before the installing. The following is an example.

  # If you want to use a internal IP in public cloud you need to fill the following annotation, 
  # For the more annotation settings please read your public cloud docs
  annotations: 
    # Aliyun cloud
    #service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: "intranet"
    # Huawei cloud
    #kubernetes.io/elb.autocreate: '{"type":"inner"}'
    # Tencent cloud (you need to replace words 'xxxxxxxx')
    #service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-xxxxxxxx

The usage of remote-up-karmada.sh:

# hack/remote-up-karmada.sh <kubeconfig> <context_name>

kubeconfig is your cluster's kubeconfig that you want to install to

context_name is the name of context in 'kubeconfig'

  • deploy-karmada-agent.sh This script will install Karmada Agent to the specific cluster.

  • deploy-scheduler-estimator.sh This script will only install Karmada Scheduler Estimator to the specific cluster. Please follow the instruction for more details.

  • deploy-agent-and-estimator.sh This script will install Karmada Agent and Karmada Scheduler Estimator to the specific cluster together. If applied, there is no need to use the extra deploy-karmada-agent.sh and deploy-scheduler-estimator.sh script.

  • undeploy-karmada.sh This script will uninstall Karmada from the specific cluster. It will uninstall Karmada from your local environment default. If you installed Karmada with remote-up-karmada.sh, please use it like this: hack/undeploy-karmada.sh <KUBECONFIG> <CONTEXT_NAME>, the same parameters as you input at the installing step.

  • delete-cluster.sh This script delete a kube cluster by kind, please use it like this: hack/delete-cluster.sh.sh <CLUSTER_NAME> <KUBECONFIG>

For CI pipeline

  • local-up-karmada.sh This script also used for testing.

  • run-e2e.sh This script runs e2e test against on Karmada control plane. You should prepare your environment in advance with local-up-karmada.sh.

Some internal scripts

These scripts are not intended used by end-users, just for the development

  • deploy-karmada.sh Underlying common implementation for local-up-karmada.sh and remote-up-karmada.sh.

  • util.sh All util functions.