feat: preserve non-hydrated files during hydration (#24129)

Signed-off-by: nitishfy <justnitish06@gmail.com>
This commit is contained in:
Nitish Kumar
2025-09-11 20:17:00 +05:30
committed by GitHub
parent 8b8d04ecfa
commit 7ae14c89d9
18 changed files with 625 additions and 74 deletions

View File

@@ -2636,7 +2636,12 @@ message SyncSource {
optional string targetBranch = 1;
// Path is a directory path within the git repository where hydrated manifests should be committed to and synced
// from. If hydrateTo is set, this is just the path from which hydrated manifests will be synced.
// from. The Path should never point to the root of the repo. If hydrateTo is set, this is just the path from which
// hydrated manifests will be synced.
//
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:Pattern=`^.{2,}|[^./]$`
optional string path = 2;
}

View File

@@ -446,7 +446,12 @@ type SyncSource struct {
// TargetBranch is the branch to which hydrated manifests should be committed
TargetBranch string `json:"targetBranch" protobuf:"bytes,1,name=targetBranch"`
// Path is a directory path within the git repository where hydrated manifests should be committed to and synced
// from. If hydrateTo is set, this is just the path from which hydrated manifests will be synced.
// from. The Path should never point to the root of the repo. If hydrateTo is set, this is just the path from which
// hydrated manifests will be synced.
//
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:Pattern=`^.{2,}|[^./]$`
Path string `json:"path" protobuf:"bytes,2,name=path"`
}