import { FormikErrors } from 'formik'; import { FormControl } from '@@/form-components/FormControl'; import { Input } from '@@/form-components/Input'; import { ConsoleSettings } from './ConsoleSettings'; import { LoggerConfig } from './LoggerConfig'; import { OverridableInput } from './OverridableInput'; import { Values } from './types'; export function CommandsTab({ apiVersion, values, setFieldValue, errors, }: { apiVersion: number; values: Values; setFieldValue: (field: string, value: unknown) => void; errors?: FormikErrors; }) { return (
setFieldValue('cmd', cmd)} id="command-input" placeholder="e.g. '-logtostderr' '--housekeeping_interval=5s' or /usr/bin/nginx -t -c /mynginx.conf" /> setFieldValue('entrypoint', entrypoint)} id="entrypoint-input" placeholder="e.g. /bin/sh -c" />
setFieldValue('workingDir', e.target.value)} placeholder="e.g. /myapp" /> setFieldValue('user', e.target.value)} placeholder="e.g. nginx" />
setFieldValue('console', console)} /> setFieldValue('logConfig', logConfig)} errors={errors?.logConfig} />
); }