mirror of https://github.com/portainer/portainer
fix git options for kube (#8889)
parent
5d2723f4b9
commit
9970fb3940
|
@ -80,6 +80,8 @@
|
|||
ng-if="ctrl.state.BuildMethod === ctrl.BuildMethods.GIT"
|
||||
value="ctrl.formValues"
|
||||
on-change="(ctrl.onChangeFormValues)"
|
||||
environment-type="KUBERNETES"
|
||||
is-force-pull-visible="false"
|
||||
is-additional-files-field-visible="true"
|
||||
is-auth-explanation-visible="true"
|
||||
deploy-method="{{ ctrl.state.DeployType === ctrl.ManifestDeployTypes.COMPOSE ? 'compose' : 'manifest' }}"
|
||||
|
|
|
@ -8,6 +8,7 @@ export const gitForm: IComponentOptions = {
|
|||
<react-git-form
|
||||
value="$ctrl.value"
|
||||
on-change="$ctrl.handleChange"
|
||||
environment-type="$ctrl.environmentType"
|
||||
is-docker-standalone="$ctrl.isDockerStandalone"
|
||||
deploy-method="$ctrl.deployMethod"
|
||||
is-additional-files-field-visible="$ctrl.isAdditionalFilesFieldVisible"
|
||||
|
@ -22,6 +23,7 @@ export const gitForm: IComponentOptions = {
|
|||
bindings: {
|
||||
value: '<',
|
||||
onChange: '<',
|
||||
environmentType: '@',
|
||||
isDockerStandalone: '<',
|
||||
deployMethod: '@',
|
||||
baseWebhookUrl: '@',
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
value="$ctrl.formValues.AutoUpdate"
|
||||
on-change="($ctrl.onChangeAutoUpdate)"
|
||||
environment-type="KUBERNETES"
|
||||
is-force-pull-visible="false"
|
||||
base-webhook-url="{{ $ctrl.state.baseWebhookUrl }}"
|
||||
webhook-id="{{ $ctrl.state.webhookId }}"
|
||||
webhooks-docs="https://docs.portainer.io/user/kubernetes/applications/webhooks"
|
||||
|
|
|
@ -18,6 +18,7 @@ export const gitFormModule = angular
|
|||
r2a(withUIRouter(withReactQuery(withCurrentUser(GitForm))), [
|
||||
'value',
|
||||
'onChange',
|
||||
'environmentType',
|
||||
'isDockerStandalone',
|
||||
'deployMethod',
|
||||
'isAdditionalFilesFieldVisible',
|
||||
|
|
|
@ -22,6 +22,7 @@ import { refFieldValidation } from './RefField/RefField';
|
|||
interface Props {
|
||||
value: GitFormModel;
|
||||
onChange: (value: Partial<GitFormModel>) => void;
|
||||
environmentType?: 'DOCKER' | 'KUBERNETES' | undefined;
|
||||
deployMethod?: 'compose' | 'nomad' | 'manifest';
|
||||
isDockerStandalone?: boolean;
|
||||
isAdditionalFilesFieldVisible?: boolean;
|
||||
|
@ -36,6 +37,7 @@ interface Props {
|
|||
export function GitForm({
|
||||
value,
|
||||
onChange,
|
||||
environmentType = 'DOCKER',
|
||||
deployMethod = 'compose',
|
||||
isDockerStandalone = false,
|
||||
isAdditionalFilesFieldVisible,
|
||||
|
@ -94,6 +96,7 @@ export function GitForm({
|
|||
|
||||
{value.AutoUpdate && (
|
||||
<AutoUpdateFieldset
|
||||
environmentType={environmentType}
|
||||
webhookId={webhookId}
|
||||
baseWebhookUrl={baseWebhookUrl}
|
||||
value={value.AutoUpdate}
|
||||
|
|
Loading…
Reference in New Issue