Skip to content

Commit e03c0a9

Browse files
chore: Enable availableClusters parameter in edp-config configmap (#365)
1 parent d0cedb3 commit e03c0a9

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

deploy-templates/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ A Helm chart for KubeRocketCI Platform
8080
| extraQuickLinks | object | `{}` | Define extra Quick Links, more details: https://github.com/epam/edp-codebase-operator/ |
8181
| gerrit-operator.enabled | bool | `false` | |
8282
| global.apiGatewayUrl | string | `""` | API Gateway URL configuration for Widget Functionality |
83+
| global.availableClusters | string | `""` | Define the list of available remote clusters to deploy applications. Example: "cluster1, cluster2, cluster3" |
8384
| global.dnsWildCard | string | `nil` | a cluster DNS wildcard name |
8485
| global.dockerRegistry.awsRegion | string | `""` | Defines the geographic area where the (AWS) Elastic Container Registry repository is hosted (optional). E.g. "eu-central-1". Mandatory if 'global.dockerRegistry.type=ecr' for kaniko build-task. Ref: https://github.com/epam/edp-tekton/blob/release/0.10/charts/pipelines-library/templates/tasks/kaniko.yaml#L73 |
8586
| global.dockerRegistry.space | string | `""` | Defines project name. |

deploy-templates/templates/edp_config_map.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
labels:
5+
{{- include "edp-install.labels" . | nindent 4 }}
6+
name: edp-config
27
data:
3-
container_registry_space: {{ default "" (.Values.global.dockerRegistry).space }}
8+
api_gateway_url: {{ default "" .Values.global.apiGatewayUrl | quote }}
9+
{{- if .Values.global.availableClusters }}
10+
available_clusters: {{ .Values.global.availableClusters }}
11+
{{- end }}
412
container_registry_host: {{ default "" (.Values.global.dockerRegistry).url }}
13+
container_registry_space: {{ default "" (.Values.global.dockerRegistry).space }}
514
container_registry_type: {{ default "" (.Values.global.dockerRegistry).type }}
15+
dns_wildcard: {{ .Values.global.dnsWildCard }}
16+
edp_name: {{ .Release.Namespace }}
17+
edp_version: {{.Chart.Version}}
618
platform: {{ .Values.global.platform }}
719
{{- if .Values.global.dockerRegistry.awsRegion }}
820
aws_region: {{ .Values.global.dockerRegistry.awsRegion }}
921
{{- end }}
10-
edp_name: {{ .Release.Namespace }}
11-
edp_version: {{.Chart.Version}}
12-
dns_wildcard: {{ .Values.global.dnsWildCard }}
13-
api_gateway_url: {{ default "" .Values.global.apiGatewayUrl | quote }}
14-
kind: ConfigMap
15-
metadata:
16-
labels:
17-
{{- include "edp-install.labels" . | nindent 4 }}
18-
name: edp-config

deploy-templates/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ global:
1414
# By default, this value is left empty, and widgets are disabled.
1515
# -- API Gateway URL configuration for Widget Functionality
1616
apiGatewayUrl: ""
17+
# -- Define the list of available remote clusters to deploy applications. Example: "cluster1, cluster2, cluster3"
18+
availableClusters: ""
1719
# -- Can be gerrit, github, gitlab or bitbucket. Default: github
1820
gitProviders:
1921
- github

0 commit comments

Comments
 (0)