|
|
|
@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
|
|
import _ from 'lodash-es';
|
|
|
|
|
import filesizeParser from 'filesize-parser';
|
|
|
|
|
import * as JsonPatch from 'fast-json-patch';
|
|
|
|
|
import { RegistryTypes } from '@/portainer/models/registryTypes';
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
KubernetesApplicationDataAccessPolicies,
|
|
|
|
@ -193,6 +194,10 @@ class KubernetesCreateApplicationController {
|
|
|
|
|
this.state.pullImageValidity = validity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
imageValidityIsValid() {
|
|
|
|
|
return this.state.pullImageValidity || this.formValues.ImageModel.Registry.Type !== RegistryTypes.DOCKERHUB;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onChangeName() {
|
|
|
|
|
const existingApplication = _.find(this.applications, { Name: this.formValues.Name });
|
|
|
|
|
this.state.alreadyExists = (this.state.isEdit && existingApplication && this.application.Id !== existingApplication.Id) || (!this.state.isEdit && existingApplication);
|
|
|
|
|