@@ -20,13 +20,15 @@ export default class Configuration extends React.Component {
20
20
'disk-size' : 0 ,
21
21
'consent-telemetry' : "no" ,
22
22
'disk-size' : 0 ,
23
+ 'http-proxy' : "" ,
24
+ 'https-proxy' : "" ,
25
+ 'no-proxy' : "" ,
26
+ "proxy-ca-file" : ""
23
27
} ;
24
28
25
29
this . configurationSaveClicked = this . configurationSaveClicked . bind ( this ) ;
26
30
this . configurationResetClicked = this . configurationResetClicked . bind ( this ) ;
27
31
this . updateValue = this . updateValue . bind ( this ) ;
28
-
29
- this . pullsecretInput = React . createRef ( ) ;
30
32
}
31
33
32
34
updateValues ( values ) {
@@ -55,6 +57,7 @@ export default class Configuration extends React.Component {
55
57
return (
56
58
< div >
57
59
< Form isHorizontal >
60
+
58
61
< FormGroup fieldId = 'settings-cpu' label = "CPU" >
59
62
< NumberInput id = 'settings-cpu'
60
63
className = "cpus"
@@ -100,13 +103,19 @@ export default class Configuration extends React.Component {
100
103
onChange = { value => this . state [ 'disk-size' ] }
101
104
/>
102
105
</ FormGroup >
106
+
107
+
108
+
103
109
< FormGroup fieldId = 'settings-preset' label = "Preset" >
104
- < PresetSelection id = "settings. preset" isCompact
110
+ < PresetSelection id = "settings- preset" isCompact
105
111
className = "preset"
106
112
inputName = "preset"
107
113
value = { this . state [ "preset" ] }
108
114
onChange = { value => this . updateValue ( 'preset' , value ) } />
109
115
</ FormGroup >
116
+
117
+
118
+
110
119
< FormGroup fieldId = 'config-telemetry' label = "Telemetry" >
111
120
< Checkbox id = 'config-consentTelemetry'
112
121
className = "consentTelemetry"
@@ -115,10 +124,41 @@ export default class Configuration extends React.Component {
115
124
label = "Report telemetry to Red Hat"
116
125
description = "Consent to allow basic information about the system and cluster to be collected for development and debugging purposes" />
117
126
</ FormGroup >
127
+
128
+
129
+
130
+ < FormGroup fieldId = 'config-proxy' label = "HTTP proxy" >
131
+ < TextInput id = 'config-http-proxy'
132
+ className = "proxy"
133
+ value = { this . state [ "http-proxy" ] }
134
+ onChange = { value => this . updateValue ( 'http-proxy' , value ) } />
135
+ </ FormGroup >
136
+ < FormGroup fieldId = 'config-proxy' label = "HTTPS proxy" >
137
+ < TextInput id = 'config-https-proxy'
138
+ className = "proxy"
139
+ value = { this . state [ "https-proxy" ] }
140
+ onChange = { value => this . updateValue ( 'https-proxy' , value ) } />
141
+ </ FormGroup >
142
+ < FormGroup fieldId = 'config-proxy' label = "No proxy" >
143
+ < TextInput id = 'config-no-proxy'
144
+ className = "proxy"
145
+ value = { this . state [ "no-proxy" ] }
146
+ onChange = { value => this . updateValue ( 'no-proxy' , value ) } />
147
+ </ FormGroup >
148
+ < FormGroup fieldId = 'config-proxy' label = "Proxy CA file" >
149
+ < TextInput id = 'config-proxy-ca-file'
150
+ className = "proxy"
151
+ value = { this . state [ "proxy-ca-file" ] }
152
+ onChange = { value => this . updateValue ( 'proxy-ca-file' , value ) } />
153
+ </ FormGroup >
154
+
155
+
118
156
< ActionGroup >
119
157
< Button variant = "primary" onClick = { this . configurationSaveClicked } > Save</ Button >
120
158
< Button variant = "link" onClick = { this . configurationResetClicked } > Reset</ Button >
121
159
</ ActionGroup >
160
+
161
+
122
162
< FormGroup fieldId = 'config-pullsecret' label = "Pullsecret" >
123
163
< Button onClick = { this . props . onPullsecretChangeClicked } variant = "primary" > Change</ Button >
124
164
</ FormGroup >
0 commit comments