import { FormikErrors } from 'formik';
import { AutoUpdateModel } from '@/react/portainer/gitops/types';
import { SwitchField } from '@@/form-components/SwitchField';
import { InsightsBox } from '@@/InsightsBox';
import { AutoUpdateSettings } from './AutoUpdateSettings';
export function AutoUpdateFieldset({
value,
onChange,
environmentType,
isForcePullVisible = true,
errors,
baseWebhookUrl,
webhookId,
webhooksDocs,
}: {
value: AutoUpdateModel;
onChange: (value: AutoUpdateModel) => void;
environmentType?: 'DOCKER' | 'KUBERNETES';
isForcePullVisible?: boolean;
errors?: FormikErrors;
baseWebhookUrl: string;
webhookId: string;
webhooksDocs?: string;
}) {
return (
<>
handleChange({ RepositoryAutomaticUpdates: value })
}
/>
We've renamed "Automatic updates" to better align with
industry terminology and clarify its purpose for all users.
Originally chosen during the early emergence of GitOps, the name has
changed, but the functionality remains unchanged. GitOps has rapidly
emerged as a revolutionary approach to managing infrastructure and
application changes, and we want to ensure our platform reflects the
latest advancements in the industry.
}
header="Meet ‘GitOps updates’ : Formerly known as Automatic updates"
insightCloseId="rename-gitops-updates"
className="mb-3"
/>
{value.RepositoryAutomaticUpdates && (
)}
>
);
function handleChange(newValues: Partial) {
onChange({ ...value, ...newValues });
}
}