product key as a show_if
This commit is contained in:
Родитель
9fe79f28c6
Коммит
26a68e33d0
|
@ -3,18 +3,32 @@ questions:
|
|||
label: ACCEPT_EULA
|
||||
description: Accepts the SQL Server EULA (any value confirms acceptance)
|
||||
default: "Yes"
|
||||
required: true
|
||||
group: SQL Server options
|
||||
|
||||
- variable: SQL Server Edition aka. MSSQL_PID
|
||||
description: |
|
||||
Evaluation |
|
||||
Developer |
|
||||
Express |
|
||||
Web |
|
||||
Standard |
|
||||
Enterprise |
|
||||
Product Key of the format "#####-#####-#####-#####-#####"
|
||||
- variable: MSSQL_PID
|
||||
label: SQL Server Edition aka. MSSQL_PID
|
||||
description: Selects SQL Server Edition or choose Product Key to enter a product key.
|
||||
type: enum
|
||||
options:
|
||||
- Evaluation
|
||||
- Developer
|
||||
- Express
|
||||
- Web
|
||||
- Standard
|
||||
- Enterprise
|
||||
- Product Key
|
||||
default: Developer
|
||||
required: true
|
||||
group: SQL Server options
|
||||
|
||||
- variable: PRODUCT_KEY
|
||||
label: SQL Server Product Key
|
||||
description: SQL Server Product Key of the format "#####-#####-#####-#####-#####"
|
||||
min: 29
|
||||
max: 29
|
||||
valid_chars: a-zA-Z0-9-
|
||||
show_if: MSSQL_PID="Product Key"
|
||||
group: SQL Server options
|
||||
|
||||
- variable: MSSQL_SA_PASSWORD
|
||||
|
@ -25,6 +39,7 @@ questions:
|
|||
max: 128
|
||||
default: ""
|
||||
valid_chars: a-zA-Z0-9(`~!@#$%^&*_-+=|\\{}[]:;\"'<>,.?)/
|
||||
required: true
|
||||
group: SQL Server options
|
||||
|
||||
- variable: MSSQL_AGENT_ENABLED
|
||||
|
|
|
@ -30,14 +30,14 @@ spec:
|
|||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.containers.ports.containerPort}}
|
||||
- containerPort: {{ .Values.containers.ports.containerPort }}
|
||||
env:
|
||||
- name: MSSQL_PID
|
||||
value: "{{ .Values.MSSQL_PID}}"
|
||||
value: "{{ .Values.MSSQL_PID }}"
|
||||
- name: ACCEPT_EULA
|
||||
value: "{{ .Values.ACCEPT_EULA | upper}}"
|
||||
value: "{{ .Values.ACCEPT_EULA | upper }}"
|
||||
- name: MSSQL_AGENT_ENABLED
|
||||
value: "{{ .Values.MSSQL_AGENT_ENABLED}}"
|
||||
value: "{{ .Values.MSSQL_AGENT_ENABLED }}"
|
||||
- name: MSSQL_SA_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
@ -45,7 +45,7 @@ spec:
|
|||
key: mssql_sa_password
|
||||
volumeMounts:
|
||||
- name: mssql
|
||||
mountPath: "/var/opt/mssql"
|
||||
mountPath: /var/opt/mssql
|
||||
- name: mssql-config-volume
|
||||
mountPath: /var/opt/config
|
||||
volumes:
|
||||
|
|
|
@ -6,4 +6,4 @@ metadata:
|
|||
{{- include "sql-statefull-deploy.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
mssql_sa_password : {{ .Values.MSSQL_SA_PASSWORD | b64enc | quote}}
|
||||
mssql_sa_password : {{ .Values.MSSQL_SA_PASSWORD | b64enc | quote }}
|
||||
|
|
|
@ -11,7 +11,7 @@ image:
|
|||
tag: "2019-latest"
|
||||
|
||||
ACCEPT_EULA: "Yes"
|
||||
MSSQL_PID: Developer
|
||||
MSSQL_PID: {{ .Product_KEY | default "Developer" }}
|
||||
MSSQL_AGENT_ENABLED: false
|
||||
|
||||
containers:
|
||||
|
@ -24,4 +24,4 @@ podSecurityContext:
|
|||
fsGroup: 10001
|
||||
|
||||
service:
|
||||
port: 1433
|
||||
port: 1433
|
||||
|
|
Загрузка…
Ссылка в новой задаче