Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit e4605d9
Author: yi-portainer <[email protected]>
Date:   Tue Feb 2 17:42:57 2021 +1300

    * update portainer version

commit 7686971
Author: LP B <[email protected]>
Date:   Tue Feb 2 05:00:19 2021 +0100

    sec(app): remove unused and vulnerable dependencies (portainer#4801)

commit d3086da
Author: cong meng <[email protected]>
Date:   Tue Feb 2 15:10:06 2021 +1300

    fix(k8s) trigger port validation while changing protocol (ce#394) (portainer#4804)

    Co-authored-by: Simon Meng <[email protected]>

commit 95894e8
Author: cong meng <[email protected]>
Date:   Tue Feb 2 15:03:11 2021 +1300

    fix(k8s) parse empty configuration as empty string yaml instead of {} (ce#395) (portainer#4805)

    Co-authored-by: Simon Meng <[email protected]>

commit 81de55f
Author: Yi Chen <[email protected]>
Date:   Tue Feb 2 11:12:40 2021 +1300

    * fix missing kubectl download (portainer#4802)

commit 84827b8
Author: Steven Kang <[email protected]>
Date:   Sun Jan 31 17:32:30 2021 +1300

    feat(build): introducing buildx for Windows (portainer#4792)

    * feat(build): introducing buildx for Windows

    * feat(build): re-ordered USER

    * feat(build): Fixed Typo

    * feat(build): fixed typo
  • Loading branch information
yi-portainer committed Feb 2, 2021
1 parent b747f5f commit d2d7f6f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/portainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions app/kubernetes/helpers/configurationHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class KubernetesConfigurationHelper {
}

static parseData(formValues) {
if (!formValues.Data.length) return '';

const data = _.reduce(
formValues.Data,
(acc, entry) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
4 changes: 2 additions & 2 deletions build/download_kubectl_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ 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"
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]:portainer/portainer.git"
Expand Down

0 comments on commit d2d7f6f

Please sign in to comment.