INFRA-675 | Abhishek | Fix service monitor tab
This commit is contained in:
@@ -26,9 +26,9 @@ const ServiceMonitorForm = () => {
|
||||
removeAction={()=>setValues(_m.removeServiceMonitor(values))}
|
||||
name="Service Monitor">
|
||||
<CardLayout heading="Service Monitor">
|
||||
<FormikTextField label="Port" fullWidth className={classes.spacer} type="number" name="deployment.hpa.serviceMonitor.port" />
|
||||
<FormikTextField label="Path" fullWidth className={classes.spacer} name="deployment.hpa.serviceMonitor.path" />
|
||||
<FormikTextField label="Interval(in seconds)" fullWidth className={classes.spacer} name="deployment.hpa.serviceMonitor.interval" />
|
||||
<FormikTextField label="Port" fullWidth className={classes.spacer} type="number" name="deployment.serviceMonitor.port" />
|
||||
<FormikTextField label="Path" fullWidth className={classes.spacer} name="deployment.serviceMonitor.path" />
|
||||
<FormikTextField label="Interval(in seconds)" fullWidth className={classes.spacer} name="deployment.serviceMonitor.interval" />
|
||||
</CardLayout>
|
||||
</NotConfigured>
|
||||
)
|
||||
|
||||
@@ -137,7 +137,7 @@ export const addAwsAccess = (manifest: any) => {
|
||||
}
|
||||
|
||||
export const addServiceMonitor = (manifest: any) => {
|
||||
return setIn(manifest, path.serviceMonitor, {})
|
||||
return setIn(manifest, path.serviceMonitor, {enabled: true})
|
||||
}
|
||||
|
||||
export const removeAwsAccess = (manifest: any) => {
|
||||
|
||||
Reference in New Issue
Block a user