These scripts are used for running tests locally in k3d. Don't use these on
production systems.
## Configuration
You can set these manually or put them in an `.envrc`:
# use fleet-default for fleet in Rancher, fleet-local for standalone
export FLEET_E2E_NS=fleet-local
# running single-cluster tests in Rancher Desktop
#export FLEET_E2E_CLUSTER=rancher-desktop
#export FLEET_E2E_CLUSTER_DOWNSTREAM=rancher-desktop
# running single-cluster tests in k3d (setup-k3d)
#export FLEET_E2E_CLUSTER=k3d-upstream
#export FLEET_E2E_CLUSTER_DOWNSTREAM=k3d-upstream
# running multi-cluster tests in k3d (setup-k3ds)
#export FLEET_E2E_CLUSTER=k3d-upstream
#export FLEET_E2E_CLUSTER_DOWNSTREAM=k3d-downstream
# for running tests on darwin/arm64
#export GOARCH=arm64
# needed for gitrepo tests
#export GIT_REPO_USER="git"
#export GIT_REPO_URL="git@github.com:yourprivate/repo.git"
#export GIT_REPO_HOST="github.com"
#export GIT_SSH_KEY="$HOME/.ssh/id_ecdsa_test"
#export GIT_SSH_PUBKEY="$HOME/.ssh/id_ecdsa_test.pub"
## Running Tests on K3D
This should set up k3d, and the fleet standalone images for single cluster tests
export FLEET_E2E_NS=fleet-local FLEET_E2E_CLUSTER=k3d-upstream
export FLEET_E2E_CLUSTER_DOWNSTREAM=k3d-upstream
dev/setup-k3d
dev/build-fleet
dev/import-images-k3d
dev/setup-fleet
ginkgo e2e/single-cluster
For multi-cluster tests we need to configure two clusters. You also need to
make the upstream clusters API accessible to the downstream cluster. The
default `url` in [dev/setup-fleet-downstream] should work with most systems.
export FLEET_E2E_NS=fleet-local FLEET_E2E_CLUSTER=k3d-upstream
export FLEET_E2E_CLUSTER_DOWNSTREAM=k3d-downstream
dev/setup-k3ds
dev/build-fleet
dev/import-images-k3d
dev/setup-fleet-multi-cluster
ginkgo e2e/multi-cluster
To test changes incrementally, rebuild just one binary, update the image in k3d
and restart the controller:
dev/update-agent-k3d
dev/update-controller-k3d
## Different Script Folders
Our CIs, dapper/drone and github actions, use a different set of scripts.
CI does not reuse dev scripts, however dev scripts may use CI scripts.
We want to keep CI scripts short, targeted and readable. Dev scripts may
change in an incompatible way anyday.
## Requirements
* docker
* git
* go
* helm
* jq
* k3d
* kubectl
* ...
## Run integration tests
```
./dev/run-integration-tests.sh
```
This will download and prepare setup-envtest, then it will execute all the integration tests.
没有合适的资源?快使用搜索试试~ 我知道了~
Fleet 是大规模的 GitOps Fleet 旨在管理多达 100 万个集群
共372个文件
go:173个
yaml:93个
yml:22个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 48 浏览量
2023-12-18
15:27:55
上传
评论
收藏 596KB ZIP 举报
温馨提示
Fleet 是大规模的 GitOps。Fleet 旨在管理多达 100 万个集群。Fleet 可以从原始 Kubernetes YAML、Helm 图表或 Kustomize 的 git 或三者的任意组合管理部署。 无论来源如何,所有资源都会动态转换为 Helm 图表,并使用 Helm 作为引擎 部署群集中的所有内容。这提供了高度的控制、一致性和可审计性。舰队不仅专注于 能够扩展,但可以对集群上安装的内容进行高度的控制和可见性
资源推荐
资源详情
资源评论
收起资源包目录
Fleet 是大规模的 GitOps Fleet 旨在管理多达 100 万个集群 (372个子文件)
Dockerfile-windows.agent 1KB
Dockerfile.agent 636B
agent-dev 939B
build 2KB
build-fleet 851B
ci 92B
CODEOWNERS 91B
Dockerfile.dapper 550B
default 67B
delve-debug 752B
Dockerfile 380B
.dockerignore 26B
entry 182B
.gitignore 139B
zz_generated_deepcopy.go 57KB
diff.go 24KB
deployer.go 23KB
git.go 20KB
target.go 20KB
bundle.go 16KB
clusterregistrationtoken.go 14KB
clusterregistration.go 13KB
image.go 13KB
bundledeployment.go 13KB
controller.go 13KB
clustergroup.go 13KB
import.go 12KB
imagescan.go 12KB
controller.go 12KB
gitrepo.go 12KB
cluster.go 12KB
bundle.go 12KB
controller.go 12KB
target_test.go 11KB
namespace_mock.go 11KB
bundlenamespacemapping.go 10KB
controllers.go 9KB
apply.go 9KB
register.go 9KB
gitreporestriction.go 9KB
manageagent_test.go 9KB
manageagent.go 8KB
handler.go 8KB
apply_test.go 8KB
monitor.go 8KB
content.go 8KB
read.go 8KB
suite_test.go 8KB
controller.go 7KB
bundle_deployment_status_test.go 7KB
git.go 7KB
manifest.go 7KB
target.go 7KB
manifest_test.go 7KB
setters.go 7KB
agent.go 6KB
zz_generated_list_types.go 6KB
controllers.go 6KB
bootstrap.go 6KB
crds.go 6KB
loaddirectory.go 6KB
resources.go 6KB
gitrepo.go 5KB
summary.go 5KB
helm_test.go 5KB
watcher.go 5KB
knowntypes_normalizer.go 5KB
filter.go 5KB
displaycontrollers.go 4KB
manager.go 4KB
config.go 4KB
multi_cluster_test.go 4KB
suite_test.go 4KB
mutatingwebhook.go 4KB
interface.go 4KB
apply.go 4KB
image.go 4KB
validatingwebhook.go 4KB
bundle_labels_test.go 4KB
controller.go 4KB
generate-cli-docs.go 4KB
bundle_diffs_test.go 4KB
cluster.go 4KB
filereader.go 4KB
handler.go 4KB
helm.go 4KB
helm_capabilities_test.go 4KB
bundle_namespace_mapping_test.go 4KB
calculate.go 4KB
capabilities.go 4KB
controller.go 4KB
single_cluster_test.go 3KB
partition.go 3KB
git.go 3KB
patch.go 3KB
helm_verify_test.go 3KB
ignore.go 3KB
verify_test.go 3KB
app.go 3KB
diff_normalizer.go 3KB
共 372 条
- 1
- 2
- 3
- 4
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6651
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功