Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Commit 9b7e98a

Browse files
committed
Add proxy fields
1 parent 7023303 commit 9b7e98a

File tree

1 file changed

+43
-3
lines changed

1 file changed

+43
-3
lines changed

src/components/Configuration.jsx

+43-3
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ export default class Configuration extends React.Component {
2020
'disk-size': 0,
2121
'consent-telemetry': "no",
2222
'disk-size': 0,
23+
'http-proxy': "",
24+
'https-proxy': "",
25+
'no-proxy': "",
26+
"proxy-ca-file": ""
2327
};
2428

2529
this.configurationSaveClicked = this.configurationSaveClicked.bind(this);
2630
this.configurationResetClicked = this.configurationResetClicked.bind(this);
2731
this.updateValue = this.updateValue.bind(this);
28-
29-
this.pullsecretInput = React.createRef();
3032
}
3133

3234
updateValues(values) {
@@ -55,6 +57,7 @@ export default class Configuration extends React.Component {
5557
return (
5658
<div>
5759
<Form isHorizontal>
60+
5861
<FormGroup fieldId='settings-cpu' label="CPU">
5962
<NumberInput id='settings-cpu'
6063
className="cpus"
@@ -100,13 +103,19 @@ export default class Configuration extends React.Component {
100103
onChange={value => this.state['disk-size'] }
101104
/>
102105
</FormGroup>
106+
107+
108+
103109
<FormGroup fieldId='settings-preset' label="Preset">
104-
<PresetSelection id="settings.preset" isCompact
110+
<PresetSelection id="settings-preset" isCompact
105111
className="preset"
106112
inputName="preset"
107113
value={this.state["preset"]}
108114
onChange={value => this.updateValue('preset', value)} />
109115
</FormGroup>
116+
117+
118+
110119
<FormGroup fieldId='config-telemetry' label="Telemetry">
111120
<Checkbox id='config-consentTelemetry'
112121
className="consentTelemetry"
@@ -115,10 +124,41 @@ export default class Configuration extends React.Component {
115124
label="Report telemetry to Red Hat"
116125
description="Consent to allow basic information about the system and cluster to be collected for development and debugging purposes" />
117126
</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+
118156
<ActionGroup>
119157
<Button variant="primary" onClick={this.configurationSaveClicked}>Save</Button>
120158
<Button variant="link" onClick={this.configurationResetClicked}>Reset</Button>
121159
</ActionGroup>
160+
161+
122162
<FormGroup fieldId='config-pullsecret' label="Pullsecret">
123163
<Button onClick={this.props.onPullsecretChangeClicked} variant="primary">Change</Button>
124164
</FormGroup>

0 commit comments

Comments
 (0)