fix: use k8s git mirror source snapshots

This commit is contained in:
Codex
2026-07-01 11:03:18 +00:00
parent b972ebd290
commit d687bdf668
20 changed files with 465 additions and 57 deletions
+16 -1
View File
@@ -294,7 +294,22 @@ export interface ControlPlaneTargetSpec {
enabled: boolean;
ciNamespace: string;
runtimeNamespace: string;
source: { repository: string; branch: string };
source: {
repository: string;
branch: string;
sourceAuthority: {
mode: "gitMirrorSnapshot";
resolver: "k8s-git-mirror";
allowHostGit: false;
allowHostWorkspace: false;
allowGithubDirectInPipeline: false;
};
sourceSnapshot: {
stageRefPrefix: string;
missingObjectPolicy: "fail-fast";
refreshPolicy: "sync-before-snapshot";
};
};
gitops: { branch: string; path: string };
gitMirror: {
namespace: string;