From 77db0f63af6f9a2736066fab1a5d5bbe02c23679 Mon Sep 17 00:00:00 2001 From: Matteo Gastaldello Date: Mon, 4 Aug 2025 20:27:02 +0200 Subject: [PATCH 1/3] feat: update crd --- chart/crds/git.krateo.io_repoes.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/chart/crds/git.krateo.io_repoes.yaml b/chart/crds/git.krateo.io_repoes.yaml index e3e5a60..81cf0ef 100644 --- a/chart/crds/git.krateo.io_repoes.yaml +++ b/chart/crds/git.krateo.io_repoes.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.1 + controller-gen.kubebuilder.io/version: v0.17.1 name: repoes.git.krateo.io spec: group: git.krateo.io @@ -111,6 +111,11 @@ spec: - If the branch exists, the parameter is ignored. - If the parameter is not set, the branch is created empty and has no parents (no history) - `git switch --orphan branch-name` type: string + krateoIgnorePath: + default: / + description: 'KrateoIgnorePath: path to the krateo ignore file, + if not set the default is `/`, the root of the repository' + type: string path: default: / description: 'Path: if in spec.fromRepo, Represents the folder @@ -168,6 +173,14 @@ spec: description: 'Insecure: Insecure is useful with hand made SSL certs (default: false)' type: boolean + override: + default: false + description: |- + Override: If `true`, the provider will override the existing files in the destination repository with the files from the source repository. + If `false`, the provider will only add new files and update existing files in the destination repository. + If not set, the provider will use the default behavior of adding new files. + Avoid using this option with originPath from / to /, as it will override also service folders like .git, .github, .gitignore, etc. + type: boolean toRepo: description: 'ToRepo: repo destination to copy to' properties: From 55217b5bea2bbe555528e57bb56bc0d27466163e Mon Sep 17 00:00:00 2001 From: Matteo Gastaldello Date: Mon, 4 Aug 2025 20:27:14 +0200 Subject: [PATCH 2/3] ci: update ci --- .github/workflows/release-tag.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release-tag.yaml b/.github/workflows/release-tag.yaml index bf02c28..45f77b4 100644 --- a/.github/workflows/release-tag.yaml +++ b/.github/workflows/release-tag.yaml @@ -75,11 +75,4 @@ jobs: charts_url: https://charts.krateo.io owner: krateoplatformops repository: helm-charts - branch: gh-pages - - update-crd-doc: - runs-on: ubuntu-latest - steps: - - name: Update CRD doc - run: | - curl -s https://doc.crds.dev/github.com/${{ github.repository }}@${{ github.ref_name }} \ No newline at end of file + branch: gh-pages \ No newline at end of file From 47f21b017719b33080a64a8d2ace9388687b709c Mon Sep 17 00:00:00 2001 From: Matteo Gastaldello Date: Mon, 4 Aug 2025 20:27:51 +0200 Subject: [PATCH 3/3] chore: changed default log level to false --- chart/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/values.yaml b/chart/values.yaml index 4b4dfba..8ba5d70 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -78,6 +78,6 @@ tolerations: [] affinity: {} env: - GIT_PROVIDER_DEBUG: "true" + GIT_PROVIDER_DEBUG: "false" GIT_PROVIDER_POLL_INTERVAL: "3m" GIT_PROVIDER_SERVICE_PORT_HACK: "false"