我正在查看的场景是 CI 的过程 - 存在一个测试(使用 python 脚本实现)来检查 PR 的描述是否采用某种格式。如果不是,PR 就会被拒绝(失败)。
我不想失败,而是希望对描述进行更新,以便它能够通过其中的默认值。
所以主要问题是是否存在一种方法可以通过 Bitbucket API 添加/更新 Bitbucket Pull 请求的描述?(最好是在测试本身的 python 脚本中实现的方法)。
编辑:我找到了一个用于获取描述的 API,但我需要找到一个用于更新的 API。
我在运行以下命令时遇到 ci 问题 repo init(包含清单和存储库 url):
repo init --no-clone-bundle -u <manifest url> -b <branch name> --repo-url <repo url> --no-repo-verify
存储库初始化过程正在启动,但由于终止初始化的错误而无法完成:
fatal: refs/remotes/origin/stable^0: not a valid SHA1
我在同一个存储库中运行了几个分支,但它不起作用,但问题是当我尝试不同的存储库时- 错误不会出现。所以我假设这是回购级别的错误,主要问题是这个“稳定^ 0”是什么,我正在努力解决如何正确地做到这一点。
有什么建议么?
我的集群中的一些弹性搜索索引存在问题:
我有 5 个常规分片用于示例索引logs-2021.08,因此当我运行_cat/shards弹性 API 时,我得到了很好的结果(示例):
logs-2021.08 2 r STARTED 25008173 11.9gb 0.0.0.0 instance-0000000128
logs-2021.08 2 p STARTED 25008173 11.8gb 0.0.0.0 instance-0000000119
logs-2021.08 4 p STARTED 25012332 11.8gb 0.0.0.0 instance-0000000129
logs-2021.08 4 r STARTED 25012332 11.9gb 0.0.0.0 instance-0000000119
logs-2021.08 1 p STARTED 25003649 11.8gb 0.0.0.0 instance-0000000121
logs-2021.08 1 r STARTED 25003649 11.8gb 0.0.0.0 instance-0000000115
logs-2021.08 3 p STARTED 25006085 11.8gb 0.0.0.0 instance-0000000121
logs-2021.08 3 r STARTED 25006085 11.8gb 0.0.0.0 instance-0000000135
logs-2021.08 0 p STARTED 25007160 11.9gb …Run Code Online (Sandbox Code Playgroud) 我已由 AKS 设置和管理 Kubernetes 集群,并且可以使用 python 客户端访问它。
问题是,当我尝试发送补丁比例请求时,出现错误。
我在 GitHub 文档中找到了有关从 python 客户端扩展命名空间部署的信息,但不清楚使请求正常工作所需的主体是什么:
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.AppsV1Api(api_client)
name = 'name_example' # str | name of the Scale
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
body = None # object |
pretty = 'pretty_example' # str | If 'true', …Run Code Online (Sandbox Code Playgroud)