From 2abbd5e6bb5cb3671fab9d0c6d50863424d74e3c Mon Sep 17 00:00:00 2001 From: Dave Langlois SSC <85115688+davelanglois-ssc@users.noreply.github.com> Date: Mon, 19 Jun 2023 08:26:23 -0400 Subject: [PATCH] adding customization for csync (#2) * adding customization for csync * adding source-base modif * folder --- csync/source-base/root-sync-git/setters.yaml | 4 ++-- .../dev/root-sync-git/setters-version.yaml | 9 ++++++++ .../dev/root-sync-git/setters.yaml | 22 +++++++++++++++++++ .../root-sync-git/setters-version.yaml | 9 ++++++++ .../root-sync-git/setters.yaml | 22 +++++++++++++++++++ .../root-sync-git/setters-version.yaml | 9 ++++++++ .../preprod/root-sync-git/setters.yaml | 22 +++++++++++++++++++ .../prod/root-sync-git/setters-version.yaml | 9 ++++++++ .../prod/root-sync-git/setters.yaml | 22 +++++++++++++++++++ 9 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 csync/source-customization/dev/root-sync-git/setters-version.yaml create mode 100644 csync/source-customization/dev/root-sync-git/setters.yaml create mode 100644 csync/source-customization/experimentation/root-sync-git/setters-version.yaml create mode 100644 csync/source-customization/experimentation/root-sync-git/setters.yaml create mode 100644 csync/source-customization/preprod/root-sync-git/setters-version.yaml create mode 100644 csync/source-customization/preprod/root-sync-git/setters.yaml create mode 100644 csync/source-customization/prod/root-sync-git/setters-version.yaml create mode 100644 csync/source-customization/prod/root-sync-git/setters.yaml diff --git a/csync/source-base/root-sync-git/setters.yaml b/csync/source-base/root-sync-git/setters.yaml index 3b7ad01..4d6652d 100644 --- a/csync/source-base/root-sync-git/setters.yaml +++ b/csync/source-base/root-sync-git/setters.yaml @@ -13,10 +13,10 @@ data: id: id1 ## Folder: 'csync' or 'tier1' or 'tier2' ## 'tier3' or 'tier4' are used only with RepoSync - folder: folder1 + folder: tier1 # Git repo values repo-url: https://AZDO-ORG@dev.azure.com/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME # repo-url: https://github.com/GITHUB-ORG/REPO-NAME # Alternate, GitHub repo-branch: main - repo-dir: deploy/env + repo-dir: tier1/deploy/env diff --git a/csync/source-customization/dev/root-sync-git/setters-version.yaml b/csync/source-customization/dev/root-sync-git/setters-version.yaml new file mode 100644 index 0000000..25dac65 --- /dev/null +++ b/csync/source-customization/dev/root-sync-git/setters-version.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters-version + annotations: + config.kubernetes.io/local-config: 'true' +data: + # set to HEAD or a git tag or a commit or a hash for the revision that should be checked out + version: HEAD diff --git a/csync/source-customization/dev/root-sync-git/setters.yaml b/csync/source-customization/dev/root-sync-git/setters.yaml new file mode 100644 index 0000000..caf3f6c --- /dev/null +++ b/csync/source-customization/dev/root-sync-git/setters.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters + annotations: + config.kubernetes.io/local-config: 'true' +data: + # Used for naming of the root-sync + ## id : + ### tier1: 'experimentation' or 'env' + ### tier2: [client-name] + ### tier34: [project-id] (we replace environment code with “x”) + id: env + ## Folder: 'csync' or 'tier1' or 'tier2' + ## 'tier3' or 'tier4' are used only with RepoSync + folder: tier1 + + # Git repo values + repo-url: https://AZDO-ORG@dev.azure.com/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME + # repo-url: https://github.com/GITHUB-ORG/REPO-NAME # Alternate, GitHub + repo-branch: main + repo-dir: tier1/deploy/dev diff --git a/csync/source-customization/experimentation/root-sync-git/setters-version.yaml b/csync/source-customization/experimentation/root-sync-git/setters-version.yaml new file mode 100644 index 0000000..25dac65 --- /dev/null +++ b/csync/source-customization/experimentation/root-sync-git/setters-version.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters-version + annotations: + config.kubernetes.io/local-config: 'true' +data: + # set to HEAD or a git tag or a commit or a hash for the revision that should be checked out + version: HEAD diff --git a/csync/source-customization/experimentation/root-sync-git/setters.yaml b/csync/source-customization/experimentation/root-sync-git/setters.yaml new file mode 100644 index 0000000..73ed585 --- /dev/null +++ b/csync/source-customization/experimentation/root-sync-git/setters.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters + annotations: + config.kubernetes.io/local-config: 'true' +data: + # Used for naming of the root-sync + ## id : + ### tier1: 'experimentation' or 'env' + ### tier2: [client-name] + ### tier34: [project-id] (we replace environment code with “x”) + id: experimentation + ## Folder: 'csync' or 'tier1' or 'tier2' + ## 'tier3' or 'tier4' are used only with RepoSync + folder: tier1 + + # Git repo values + repo-url: https://AZDO-ORG@dev.azure.com/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME + # repo-url: https://github.com/GITHUB-ORG/REPO-NAME # Alternate, GitHub + repo-branch: main + repo-dir: tier1/deploy/experimentation diff --git a/csync/source-customization/preprod/root-sync-git/setters-version.yaml b/csync/source-customization/preprod/root-sync-git/setters-version.yaml new file mode 100644 index 0000000..25dac65 --- /dev/null +++ b/csync/source-customization/preprod/root-sync-git/setters-version.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters-version + annotations: + config.kubernetes.io/local-config: 'true' +data: + # set to HEAD or a git tag or a commit or a hash for the revision that should be checked out + version: HEAD diff --git a/csync/source-customization/preprod/root-sync-git/setters.yaml b/csync/source-customization/preprod/root-sync-git/setters.yaml new file mode 100644 index 0000000..d247062 --- /dev/null +++ b/csync/source-customization/preprod/root-sync-git/setters.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters + annotations: + config.kubernetes.io/local-config: 'true' +data: + # Used for naming of the root-sync + ## id : + ### tier1: 'experimentation' or 'env' + ### tier2: [client-name] + ### tier34: [project-id] (we replace environment code with “x”) + id: env + ## Folder: 'csync' or 'tier1' or 'tier2' + ## 'tier3' or 'tier4' are used only with RepoSync + folder: tier1 + + # Git repo values + repo-url: https://AZDO-ORG@dev.azure.com/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME + # repo-url: https://github.com/GITHUB-ORG/REPO-NAME # Alternate, GitHub + repo-branch: main + repo-dir: tier1/deploy/preprod diff --git a/csync/source-customization/prod/root-sync-git/setters-version.yaml b/csync/source-customization/prod/root-sync-git/setters-version.yaml new file mode 100644 index 0000000..25dac65 --- /dev/null +++ b/csync/source-customization/prod/root-sync-git/setters-version.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters-version + annotations: + config.kubernetes.io/local-config: 'true' +data: + # set to HEAD or a git tag or a commit or a hash for the revision that should be checked out + version: HEAD diff --git a/csync/source-customization/prod/root-sync-git/setters.yaml b/csync/source-customization/prod/root-sync-git/setters.yaml new file mode 100644 index 0000000..ec3a169 --- /dev/null +++ b/csync/source-customization/prod/root-sync-git/setters.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: setters + annotations: + config.kubernetes.io/local-config: 'true' +data: + # Used for naming of the root-sync + ## id : + ### tier1: 'experimentation' or 'env' + ### tier2: [client-name] + ### tier34: [project-id] (we replace environment code with “x”) + id: env + ## Folder: 'csync' or 'tier1' or 'tier2' + ## 'tier3' or 'tier4' are used only with RepoSync + folder: tier1 + + # Git repo values + repo-url: https://AZDO-ORG@dev.azure.com/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME + # repo-url: https://github.com/GITHUB-ORG/REPO-NAME # Alternate, GitHub + repo-branch: main + repo-dir: tier1/deploy/prod