Skip to content

Commit 47aa9e6

Browse files
authored
feat(helm): add edition global value (#125)
## 📝 Description Introduces a new global value to distinguish between CE and EE versions. Updates promotions to enable deployment and testing for both versions. For more details, see: renderedtext/project-tasks#2271 ## ✅ Checklist - [x] I have tested this change - [x] This change requires documentation update - *not at the moment—CE is installed by default.*
1 parent 663f5be commit 47aa9e6

File tree

21 files changed

+144
-17
lines changed

21 files changed

+144
-17
lines changed

.semaphore/daily-builds.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,6 +3421,7 @@ promotions:
34213421
options:
34223422
- gke
34233423
- single-vm
3424+
default_value: single-vm
34243425
- name: Cloud Environment - E2E
34253426
pipeline_file: env-e2e.yml
34263427
deployment_target: provision-test-env
@@ -3443,3 +3444,11 @@ promotions:
34433444
options:
34443445
- gke
34453446
- single-vm
3447+
default_value: single-vm
3448+
- name: SEMAPHORE_EDITION
3449+
required: true
3450+
options:
3451+
- ce
3452+
- ee
3453+
default_value: ce
3454+
description: "The edition of Semaphore to install - Community (ce) or Enterprise (ee)."

.semaphore/env-create.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: v1.0
2-
name: Cloud environment - ${{parameters.CLOUD_TEST_ENV_PREFIX}} - ${{parameters.CLOUD_TEST_ENVIRONMENT_TYPE}}
2+
name: Cloud environment - ${{parameters.CLOUD_TEST_ENV_PREFIX}} - ${{parameters.CLOUD_TEST_ENVIRONMENT_TYPE}} - ${{parameters.SEMAPHORE_EDITION}}
33
agent:
44
machine:
55
type: f1-standard-2
@@ -10,6 +10,8 @@ global_job_config:
1010
value: "test.sonprem.com"
1111
- name: ROLE_ARN
1212
value: "arn:aws:iam::451765615567:role/sem-install-dns-update-role"
13+
- name: SEMAPHORE_EDITION
14+
value: ${{parameters.SEMAPHORE_EDITION}}
1315
prologue:
1416
commands:
1517
- export DOMAIN="${CLOUD_TEST_ENV_PREFIX}.${BASE_DOMAIN}"
@@ -105,3 +107,6 @@ promotions:
105107
options:
106108
- gke
107109
- single-vm
110+
- name: SEMAPHORE_EDITION
111+
required: true
112+
default_value: ${{parameters.SEMAPHORE_EDITION}}

.semaphore/env-e2e.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: v1.0
2-
name: E2E Tests - ${{parameters.CLOUD_TEST_ENV_PREFIX}} - ${{parameters.CLOUD_TEST_ENVIRONMENT_TYPE}}
2+
name: E2E Tests - ${{parameters.CLOUD_TEST_ENV_PREFIX}} - ${{parameters.CLOUD_TEST_ENVIRONMENT_TYPE}} - ${{parameters.SEMAPHORE_EDITION}}
33
agent:
44
machine:
55
type: f1-standard-2
@@ -8,6 +8,9 @@ global_job_config:
88
secrets:
99
- name: e2e-test-github-app-${{parameters.CLOUD_TEST_ENV_PREFIX}}
1010
- name: e2e-test-gitlab-app-${{parameters.CLOUD_TEST_ENV_PREFIX}}
11+
env_vars:
12+
- name: SEMAPHORE_EDITION
13+
value: ${{parameters.SEMAPHORE_EDITION}}
1114
prologue:
1215
commands:
1316
- checkout && cd e2e

.semaphore/generate-helm-chart.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,11 @@ promotions:
112112
options:
113113
- gke
114114
- single-vm
115+
- name: SEMAPHORE_EDITION
116+
required: true
117+
options:
118+
- ce
119+
- ee
120+
default_value: ce
121+
description: "The edition of Semaphore to install - Community (ce) or Enterprise (ee)."
122+

.semaphore/semaphore.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,6 +3745,7 @@ promotions:
37453745
options:
37463746
- gke
37473747
- single-vm
3748+
default_value: single-vm
37483749
- name: Cloud Environment - E2E
37493750
pipeline_file: env-e2e.yml
37503751
deployment_target: provision-test-env
@@ -3767,3 +3768,12 @@ promotions:
37673768
options:
37683769
- gke
37693770
- single-vm
3771+
default_value: single-vm
3772+
- name: SEMAPHORE_EDITION
3773+
required: true
3774+
options:
3775+
- ce
3776+
- ee
3777+
default_value: ce
3778+
description: "The edition of Semaphore to install - Community (ce) or Enterprise (ee)."
3779+

ee/gofer/helm/templates/dpl.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.global.edition "ee" }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -160,3 +161,4 @@ spec:
160161
{{ toYaml .Values.statsd.resources | indent 13 }}
161162
{{- end }}
162163
{{- end }}
164+
{{- end }}

ee/pre_flight_checks/helm/templates/deployment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.global.edition "ee" }}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -100,3 +101,4 @@ spec:
100101
{{ toYaml .Values.statsd.resources | indent 13 }}
101102
{{- end }}
102103
{{- end }}
104+
{{- end }}

ee/pre_flight_checks/helm/templates/service.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.global.edition "ee" }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -10,3 +11,4 @@ spec:
1011
- name: grpc
1112
protocol: TCP
1213
port: 50051
14+
{{- end }}

ee/velocity/helm/templates/api.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.global.edition "ee" }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -94,4 +95,5 @@ spec:
9495
resources:
9596
{{ toYaml .Values.statsd.resources | indent 13 }}
9697
{{- end }}
98+
{{- end }}
9799
{{- end }}

ee/velocity/helm/templates/emitter.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.global.edition "ee" }}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -83,4 +84,5 @@ spec:
8384
capabilities:
8485
drop:
8586
- ALL
86-
{{- end }}
87+
{{- end }}
88+
{{- end }}

0 commit comments

Comments
 (0)