dev-west Manifests
2026/9/13 10:42:21 网站建设 项目流程

dev-west Manifests

【免费下载链接】argo-cdDeclarative Continuous Deployment for Kubernetes项目地址: https://gitcode.com/GitHub_Trending/ar/argo-cd

manifest.yaml contains the hydrated manifests for the dev-west application.

These are the details of the most recent change;

  • Author: Michael Crenshaw michael@example.com
  • Message: chore: bumped image tag to v0.0.2
  • Time: 2024-03-27 10:32:04 UTC

To reproduce the manifest hydration, do the following:

git clone https://github.com/argoproj/argocd-example-apps cd argocd-example-apps git checkout ab2382f kustomize edit set image my-app:v0.0.2 kustomize build environments/dev/west
### 10.4 hydrator.metadata 与提交 API 除 README 外,hydrator 还会写入一个 **`hydrator.metadata` 文件**,内含可用于 README 模板化的全部值的 JSON 表示。该元数据可供外部系统(例如基于 PR 的晋升系统)生成关于水合清单**来源(provenance)**的上下文信息: ```json { "commands": ["kustomize edit set image my-app:v0.0.2", "kustomize build ."], "drySHA": "ab2382f", "commitAuthor": "Michael Crenshaw <michael@example.com>", "commitMessage": "chore: bump Helm dependency chart to 32.1.12", "repoURL": "https://github.com/argoproj/argocd-example-apps" }

为请求对水合分支进行提交,application controller 将调用 CommitManifests 服务,单次调用会捆绑所有发往给定 targetBranch 的变更;确保用户在调用前对仓库有写权限是 application controller 的职责。提案给出了对应的 protobuf 契约:

// CommitManifests represents the caller's request for some Kubernetes manifests to be pushed to a git repository. message CommitManifests { // repoURL is the URL of the repo we're pushing to. HTTPS or SSH URLs are acceptable. required string repoURL = 1; // targetBranch is the name of the branch we're pushing to. required string targetBranch = 2; // drySHA is the full SHA256 hash of the "dry commit" from which the manifests were hydrated. required string drySHA = 3; // commitAuthor is the name of the author of the dry commit. required string commitAuthor = 4; // commitMessage is the short commit message from the dry commit. required string commitMessage = 5; // commitTime is the dry commit timestamp. required string commitTime = 6; // details holds the information about the actual hydrated manifests. repeated CommitPathDetails details = 7; } // CommitManifestDetails represents the details about a message CommitPathDetails { // path is the path to the directory to which these manifests should be written. required string path = 1; // manifests is a list of JSON documents representing the Kubernetes manifests. repeated string manifests = 2; // readme is a string which will be written to a README.md alongside the manifest.yaml. required string readme = 3; } message CommitManifestsResponse { }

11. Push 访问:repository-write 类型的 Secret

hydrator 需要推送到 git 仓库,这要求一个包含 git 凭据的 Secret。写权限通过如下结构的 Kubernetes Secret 配置:

apiVersion: v1 kind: Secret metadata: labels: argocd.argoproj.io/secret-type: repository-write stringData: url: 'https://github.com/argoproj/argocd-example-apps' githubAppID: '123456' githubInstallationID: '123456' githubAppPrivateKey: | -----

【免费下载链接】argo-cdDeclarative Continuous Deployment for Kubernetes项目地址: https://gitcode.com/GitHub_Trending/ar/argo-cd

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询