Skip to content

Commit 6555216

Browse files
committed
initial configmap updates
1 parent eb2a129 commit 6555216

File tree

3 files changed

+90
-2
lines changed

3 files changed

+90
-2
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{{- if .Values.development }}
2+
apiVersion: v1
3+
data:
4+
config.yml: |
5+
---
6+
basic_information:
7+
project_name:
8+
validators:
9+
- kind: regex
10+
value: ^\w+[\w- ()]*$
11+
message: Only alphanumeric characters and spaces are allowed
12+
customer_name:
13+
validators:
14+
- kind: regex
15+
value: ^\w+[\w- ()]*$
16+
message: Only alphanumeric characters and spaces are allowed
17+
cloud_options:
18+
providers:
19+
options:
20+
- label: AWS
21+
value: ec2
22+
options:
23+
- label: US East 1 (N. Virginia)
24+
value: us-east-1
25+
- label: US East 2 (Ohio)
26+
value: us-east-2
27+
- label: US West 1 (N. California)
28+
value: us-west-1
29+
- label: US West 2 (Oregon)
30+
value: us-west-2
31+
- label: Other
32+
value: other
33+
options:
34+
- label: Other
35+
value: other
36+
openshift_options:
37+
versions:
38+
options:
39+
- label: v4.4
40+
value: 4.4.10
41+
- label: v4.5
42+
value: 4.5.0
43+
persistent_storage:
44+
validators:
45+
- kind: notnull
46+
options:
47+
- label: None
48+
value: none
49+
- label: 50GB
50+
value: 50G
51+
cluster_size:
52+
options:
53+
- label: Small
54+
value: small
55+
user_options:
56+
user_roles:
57+
options:
58+
- label: Developer
59+
value: developer
60+
- label: Observer
61+
value: observer
62+
- label: Admin
63+
value: admin
64+
logistics_options:
65+
start_date:
66+
end_date:
67+
validators:
68+
- kind: date
69+
value:
70+
min: "@today"
71+
message: "End date must be after today"
72+
technical_contact_email:
73+
env_default_grace_period: 30
74+
env_grace_period_max: 180
75+
kind: ConfigMap
76+
metadata:
77+
name: config-cm
78+
{{- end }}

deployment/templates/deploymentconfig.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ spec:
4444
terminationMessagePolicy: File
4545
volumeMounts:
4646
- name: hook-cm-volume
47-
mountPath: {{ .Values.config.hookFile.path }}
47+
mountPath: {{ .Values.config.hookFile.path }}/{{ .Values.config.hookFile.name }}
48+
subPath: {{ .Values.config.hookFile.name }}
49+
- name: config-cm-volume
50+
mountPath: {{ .Values.config.configFile.path }}/{{ .Values.config.configFile.name }}
51+
subPath: {{ .Values.config.configFile.name }}
4852
dnsPolicy: ClusterFirst
4953
restartPolicy: Always
5054
schedulerName: default-scheduler
@@ -54,6 +58,9 @@ spec:
5458
- name: hook-cm-volume
5559
configMap:
5660
name: hook-cm
61+
- name: config-cm-volume
62+
configMap:
63+
name: config-cm
5764
test: false
5865
triggers:
5966
- type: ConfigChange

deployment/values-dev.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ config:
3131
- name: hook2
3232
baseUrl: http://localhost/hook2
3333
token: anunoby
34-
34+
configFile:
35+
path: /schema
36+
name: config.yml
37+

0 commit comments

Comments
 (0)