Skip to content

Commit 139e9e0

Browse files
committed
remove unneeded defaults in questions.yml
1 parent 8dd6229 commit 139e9e0

3 files changed

Lines changed: 15 additions & 19 deletions

File tree

linux/sample-helm-chart-statefulset-deployment/questions.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
questions:
22
- variable: ACCEPT_EULA
33
label: ACCEPT_EULA
4-
description: Accepts the SQL Server EULA (any value confirms acceptance)
5-
default: "Yes"
4+
description: Accepts the SQL Server EULA (any value confirms acceptance). You can review the EULA <a href="http://go.microsoft.com/fwlink/?LinkId=746388">here</a>
65
required: true
76
group: SQL Server options
87

8+
- variable: USE_PRODUCT_KEY
9+
label: Use a SQL Server Product Key
10+
description: Enter a Product Key instead of choosing an SQL Server Edition
11+
type: boolean
12+
default: false
13+
group: SQL Server options
14+
915
- variable: MSSQL_PID
1016
label: SQL Server Edition aka. MSSQL_PID
11-
description: Selects SQL Server Edition or choose the last option "Product Key" to enter a product key.
17+
description: Select a SQL Server Edition
1218
type: enum
1319
options:
1420
- Evaluation
@@ -17,18 +23,13 @@ questions:
1723
- Web
1824
- Standard
1925
- Enterprise
20-
- Product Key
21-
default: Developer
22-
required: true
26+
show_if: USE_PRODUCT_KEY=false
2327
group: SQL Server options
2428

25-
- variable: PRODUCT_KEY
26-
label: SQL Server Product Key
27-
description: SQL Server Product Key of the format "#####-#####-#####-#####-#####"
28-
min: 29
29-
max: 29
30-
valid_chars: a-zA-Z0-9-
31-
show_if: MSSQL_PID=Product Key
29+
- variable: MSSQL_PID
30+
label: SQL Server Edition aka. MSSQL_PID
31+
description: Enter a Product Key of the format "#####-#####-#####-#####-#####"
32+
show_if: USE_PRODUCT_KEY=true
3233
group: SQL Server options
3334

3435
- variable: MSSQL_SA_PASSWORD
@@ -46,7 +47,6 @@ questions:
4647
label: Enable SQL Server Agent
4748
description: Enables the SQL Server Agent
4849
type: boolean
49-
default: false
5050
group: SQL Server options
5151

5252
- variable: defaultContainerImage
@@ -74,7 +74,6 @@ questions:
7474

7575
- variable: replicas
7676
description: Replicas of the SQL Server StatefulSet
77-
default: 3
7877
label: Replicas
7978
type: int
8079
group: Kubernetes StatefulSet options
@@ -91,12 +90,10 @@ questions:
9190
description: >
9291
Specifies containerPort for SQL Server
9392
label: SQL Server Container Port
94-
default: 1433
9593
group: Kubernetes Pod Options
9694

9795
- variable: service.port
9896
description: Kubernetes service port for SQL Server
9997
group: Kubernetes Service Options
10098
label: Kubernetes Service Port
10199
type: int
102-
default: 1433

linux/sample-helm-chart-statefulset-deployment/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- containerPort: {{ .Values.containers.ports.containerPort }}
3434
env:
3535
- name: MSSQL_PID
36-
value: "{{ .Values.PRODUCT_KEY | default .Values.MSSQL_PID }}"
36+
value: "{{ .Values.MSSQL_PID }}"
3737
- name: ACCEPT_EULA
3838
value: "{{ .Values.ACCEPT_EULA | upper }}"
3939
- name: MSSQL_AGENT_ENABLED

linux/sample-helm-chart-statefulset-deployment/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ image:
1212

1313
ACCEPT_EULA: "Yes"
1414
MSSQL_PID: Developer
15-
PRODUCT_KEY: null
1615
MSSQL_AGENT_ENABLED: false
1716

1817
containers:

0 commit comments

Comments
 (0)