INFRA-675 | Abhishek | Fix service monitor tab

This commit is contained in:
Abhishek Katiyar
2021-03-09 09:44:39 +05:30
parent 4bf41a7772
commit d14f564c43
2 changed files with 4 additions and 4 deletions

View File

@@ -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>
)

View File

@@ -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) => {