diff --git a/api/portainer.go b/api/portainer.go index 1de9e2816..00e1c32de 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -1125,7 +1125,7 @@ type ( const ( // APIVersion is the version number of the Portainer API - APIVersion = "2.0.1" + APIVersion = "2.1.0" // DBVersion is the version number of the Portainer database DBVersion = 25 // ComposeSyntaxMaxVersion is a maximum supported version of the docker compose syntax diff --git a/app/kubernetes/helpers/configurationHelper.js b/app/kubernetes/helpers/configurationHelper.js index e15929195..3946484ce 100644 --- a/app/kubernetes/helpers/configurationHelper.js +++ b/app/kubernetes/helpers/configurationHelper.js @@ -52,6 +52,8 @@ class KubernetesConfigurationHelper { } static parseData(formValues) { + if (!formValues.Data.length) return ''; + const data = _.reduce( formValues.Data, (acc, entry) => { diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index 61b16176c..627aaf510 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -1299,7 +1299,7 @@ ng-min="1" ng-max="65535" ng-required="!publishedPort.NeedsDeletion" - ng-change="ctrl.onChangePortMappingLoadBalancerPort()" + ng-change="ctrl.onChangePortMappingLoadBalancer()" ng-disabled="ctrl.disableLoadBalancerEdit() || ctrl.isEditAndNotNewPublishedPort($index)" /> diff --git a/app/kubernetes/views/applications/create/createApplicationController.js b/app/kubernetes/views/applications/create/createApplicationController.js index e6347e597..a0b3a32c1 100644 --- a/app/kubernetes/views/applications/create/createApplicationController.js +++ b/app/kubernetes/views/applications/create/createApplicationController.js @@ -409,13 +409,14 @@ class KubernetesCreateApplicationController { } onChangePortProtocol(index) { - this.onChangePortMappingContainerPort(); if (this.formValues.PublishingType === KubernetesApplicationPublishingTypes.LOAD_BALANCER) { const newPorts = _.filter(this.formValues.PublishedPorts, { IsNew: true }); _.forEach(newPorts, (port) => { port.Protocol = index ? this.formValues.PublishedPorts[index].Protocol : newPorts[0].Protocol; }); + this.onChangePortMappingLoadBalancer(); } + this.onChangePortMappingContainerPort(); } /* #endregion */ diff --git a/build/download_kubectl_binary.sh b/build/download_kubectl_binary.sh index 32215bace..4b9714244 100755 --- a/build/download_kubectl_binary.sh +++ b/build/download_kubectl_binary.sh @@ -4,8 +4,6 @@ PLATFORM=$1 ARCH=$2 KUBECTL_VERSION=$3 -exit 0 - if [ "${PLATFORM}" == 'linux' ]; then wget -O "dist/kubectl" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/${PLATFORM}/${ARCH}/kubectl" chmod +x "dist/kubectl" @@ -13,3 +11,5 @@ elif [ "${PLATFORM}" == 'windows' ]; then wget -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/windows/amd64/kubectl.exe" chmod +x "dist/kubectl.exe" fi + +exit 0 diff --git a/package.json b/package.json index a04f5385f..e7cac55e7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Portainer.io", "name": "portainer", "homepage": "http://portainer.io", - "version": "2.0.0", + "version": "2.1.0", "repository": { "type": "git", "url": "git@github.com:portainer/portainer.git"