You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.schema.json
+20-7Lines changed: 20 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -164,18 +164,18 @@
164
164
"items" : {
165
165
"type" : "object",
166
166
"properties" : {
167
-
"folderBased" : {
167
+
"createJenkinsJob" : {
168
168
"type" : [ "boolean", "null" ],
169
-
"description" : "When true, interpret the folder structure of each repo as repos. That is, root folder becomes namespace in SCM, sub folders become repository names in SCM"
169
+
"description" : "If true, creates a Jenkins job, if jenkinsfile exists in one of the content repo's branches."
170
170
},
171
-
"overrideMode" : {
171
+
"overwriteMode" : {
172
172
"anyOf" : [ {
173
173
"type" : "null"
174
174
}, {
175
175
"type" : "string",
176
176
"enum" : [ "INIT", "RESET", "UPGRADE" ]
177
177
} ],
178
-
"description" : "This defines, how customer repos will be updated.\nINIT - push only if repo does not exist.\nRESET - delete all files after cloning source - files not in content are deleted\nUPGRADE - clone and copy - existing files will be overwritten, files not in content are kept"
178
+
"description" : "This defines, how customer repos will be updated.\nINIT - push only if repo does not exist.\nRESET - delete all files after cloning source - files not in content are deleted\nUPGRADE - clone and copy - existing files will be overwritten, files not in content are kept. For type: MIRROR reset and upgrade have same result: in both cases source repo will be force pushed to target repo."
179
179
},
180
180
"password" : {
181
181
"type" : [ "string", "null" ],
@@ -187,19 +187,32 @@
187
187
},
188
188
"ref" : {
189
189
"type" : [ "string", "null" ],
190
-
"description" : "Reference for a specific branch, tag, or commit. Emtpy defaults to default branch of the repo"
190
+
"description" : "Reference for a specific branch, tag, or commit. Emtpy defaults to default branch of the repo. With type MIRROR: ref must not be a commit hash; Choosing a ref only mirrors the ref but does not delete other branches/tags!"
191
191
},
192
192
"target" : {
193
193
"type" : [ "string", "null" ],
194
-
"description" : "Target path for the repository"
194
+
"description" : "Target repo for the repository in the for of namespace/name. Must contain one slash to separate namespace from name."
195
+
},
196
+
"targetRef" : {
197
+
"type" : [ "string", "null" ],
198
+
"description" : "Reference for a specific branch or tag in the target repo of a MIRROR or COPY repo. If ref is a tag, targetRef is treated as tag as well. Except: targetRef is full ref like refs/heads/my-branch or refs/tags/my-tag. Empty defaults to the source ref."
195
199
},
196
200
"templating" : {
197
201
"type" : [ "boolean", "null" ],
198
202
"description" : "When true, template all files ending in .ftl within the repo"
199
203
},
204
+
"type" : {
205
+
"anyOf" : [ {
206
+
"type" : "null"
207
+
}, {
208
+
"type" : "string",
209
+
"enum" : [ "FOLDER_BASED", "COPY", "MIRROR" ]
210
+
} ],
211
+
"description" : "Content Repos can either be:\ncopied (only the files, starting on ref, starting at path within the repo. Requires target)\n, mirrored (FORCE pushes ref or the whole git repo if no ref set). Requires target, does not allow path and template.)\nfolderBased (folder structure is interpreted as repos. That is, root folder becomes namespace in SCM, sub folders become repository names in SCM, files are copied. Requires target.)"
212
+
},
200
213
"url" : {
201
214
"type" : [ "string", "null" ],
202
-
"description" : "URL of the content repo"
215
+
"description" : "URL of the content repo. Mandatory for each type."
publicstaticfinalStringAPP_DESCRIPTION='CLI-tool to deploy gitops-playground.'
8
-
8
+
9
9
// group registry
10
10
StringREGISTRY_ENABLE_DESCRIPTION='Installs a simple cluster-local registry for demonstration purposes. Warning: Registry does not provide authentication!'
11
11
StringREGISTRY_DESCRIPTION='Config parameters for Registry'
@@ -18,7 +18,7 @@ interface ConfigConstants {
18
18
StringREGISTRY_PROXY_URL_DESCRIPTION='The url of your proxy-registry. Used in pipelines to authorize pull base images. Use in conjunction with petclinic base image. Used in helm charts when create-image-pull-secrets is set. Use in conjunction with helm.*image fields.'
19
19
StringREGISTRY_PROXY_USERNAME_DESCRIPTION='Use with registry-proxy-url, added to Jenkins as credentials and created as pull secrets, when create-image-pull-secrets is set.'
20
20
StringREGISTRY_PROXY_PASSWORD_DESCRIPTION='Use with registry-proxy-url, added to Jenkins as credentials and created as pull secrets, when create-image-pull-secrets is set.'
21
-
21
+
22
22
StringREGISTRY_USERNAME_RO_DESCRIPTION='Optional alternative username for registry-url with read-only permissions that is used when create-image-pull-secrets is set.'
23
23
StringREGISTRY_PASSWORD_RO_DESCRIPTION='Optional alternative password for registry-url with read-only permissions that is used when create-image-pull-secrets is set.'
24
24
StringREGISTRY_CREATE_IMAGE_PULL_SECRETS_DESCRIPTION='Create image pull secrets for registry and proxy-registry for all GOP namespaces and helm charts. Uses proxy-username, read-only-username or registry-username (in this order). Use this if your cluster is not auto-provisioned with credentials for your private registries or if you configure individual helm images to be pulled from the proxy-registry that requires authentication.'
@@ -31,15 +31,17 @@ interface ConfigConstants {
31
31
StringCONTENT_EXAMPLES_DESCRIPTION='Deploy example content: source repos, GitOps repos, Jenkins Job, Argo CD apps/project'
32
32
StringCONTENT_NAMESPACES_DESCRIPTION='Additional kubernetes namespaces. These are authorized to Argo CD, supplied with image pull secrets, monitored by prometheus, etc. Namespaces can be templates, e.g. ${config.application.namePrefix}staging'
33
33
StringCONTENT_REPO_DESCRIPTION="Content repos to push into target environment"
34
-
StringCONTENT_REPO_URL_DESCRIPTION="URL of the content repo"
34
+
StringCONTENT_REPO_URL_DESCRIPTION="URL of the content repo. Mandatory for each type."
35
35
StringCONTENT_REPO_PATH_DESCRIPTION="Path within the content repo to process"
36
-
StringCONTENT_REPO_REF_DESCRIPTION="Reference for a specific branch, tag, or commit. Emtpy defaults to default branch of the repo"
36
+
StringCONTENT_REPO_REF_DESCRIPTION="Reference for a specific branch, tag, or commit. Emtpy defaults to default branch of the repo. With type MIRROR: ref must not be a commit hash; Choosing a ref only mirrors the ref but does not delete other branches/tags!"
37
+
StringCONTENT_REPO_TARGET_REF_DESCRIPTION="Reference for a specific branch or tag in the target repo of a MIRROR or COPY repo. If ref is a tag, targetRef is treated as tag as well. Except: targetRef is full ref like refs/heads/my-branch or refs/tags/my-tag. Empty defaults to the source ref."
37
38
StringCONTENT_REPO_USERNAME_DESCRIPTION="Username to authenticate against content repo"
38
39
StringCONTENT_REPO_PASSWORD_DESCRIPTION="Password to authenticate against content repo"
39
40
StringCONTENT_REPO_TEMPLATING_DESCRIPTION="When true, template all files ending in .ftl within the repo"
40
-
StringCONTENT_REPO_FOLDER_BASED_REPOS_DESCRIPTION="When true, interpret the folder structure of each repo as repos. That is, root folder becomes namespace in SCM, sub folders become repository names in SCM"
41
-
StringCONTENT_REPO_TARGET_DESCRIPTION="Target path for the repository"
42
-
StringCONTENT_REPO_TARGET_OVERRIDE_MODE="This defines, how customer repos will be updated.\nINIT - push only if repo does not exist.\nRESET - delete all files after cloning source - files not in content are deleted\nUPGRADE - clone and copy - existing files will be overwritten, files not in content are kept"
41
+
StringCONTENT_REPO_TYPE_DESCRIPTION="Content Repos can either be:\ncopied (only the files, starting on ref, starting at path within the repo. Requires target)\n, mirrored (FORCE pushes ref or the whole git repo if no ref set). Requires target, does not allow path and template.)\nfolderBased (folder structure is interpreted as repos. That is, root folder becomes namespace in SCM, sub folders become repository names in SCM, files are copied. Requires target.)"
42
+
StringCONTENT_REPO_TARGET_DESCRIPTION="Target repo for the repository in the for of namespace/name. Must contain one slash to separate namespace from name."
43
+
StringCONTENT_REPO_TARGET_OVERWRITE_MODE_DESCRIPTION="This defines, how customer repos will be updated.\nINIT - push only if repo does not exist.\nRESET - delete all files after cloning source - files not in content are deleted\nUPGRADE - clone and copy - existing files will be overwritten, files not in content are kept. For type: MIRROR reset and upgrade have same result: in both cases source repo will be force pushed to target repo."
44
+
StringCONTENT_REPO_CREATE_JENKINS_JOB_DESCRIPTION="If true, creates a Jenkins job, if jenkinsfile exists in one of the content repo's branches."
43
45
StringCONTENT_VARIABLES_DESCRIPTION="Additional variables to use in custom templates."
0 commit comments