diff --git a/app/kubernetes/views/deploy/deploy.html b/app/kubernetes/views/deploy/deploy.html index dd44f2832..a79e3a991 100644 --- a/app/kubernetes/views/deploy/deploy.html +++ b/app/kubernetes/views/deploy/deploy.html @@ -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' }}" diff --git a/app/portainer/components/forms/git-form/git-form.ts b/app/portainer/components/forms/git-form/git-form.ts index fb56e78e2..ce7115304 100644 --- a/app/portainer/components/forms/git-form/git-form.ts +++ b/app/portainer/components/forms/git-form/git-form.ts @@ -8,6 +8,7 @@ export const gitForm: IComponentOptions = { ) => 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 && (