Compare commits
6 Commits
yd-develop
...
release/2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f90d6b55d6 | ||
|
|
1b82b450d7 | ||
|
|
b78d804881 | ||
|
|
51b72c12f9 | ||
|
|
58c04bdbe3 | ||
|
|
a6320d5222 |
@@ -1119,7 +1119,7 @@ type (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// APIVersion is the version number of the Portainer API
|
// APIVersion is the version number of the Portainer API
|
||||||
APIVersion = "2.0.0"
|
APIVersion = "2.0.1"
|
||||||
// DBVersion is the version number of the Portainer database
|
// DBVersion is the version number of the Portainer database
|
||||||
DBVersion = 25
|
DBVersion = 25
|
||||||
// AssetsServerURL represents the URL of the Portainer asset server
|
// AssetsServerURL represents the URL of the Portainer asset server
|
||||||
|
|||||||
@@ -309,8 +309,8 @@
|
|||||||
<!-- volume-type -->
|
<!-- volume-type -->
|
||||||
<div class="input-group col-sm-5" style="margin-left: 5px; vertical-align: top;">
|
<div class="input-group col-sm-5" style="margin-left: 5px; vertical-align: top;">
|
||||||
<div class="btn-group btn-group-sm" ng-if="allowBindMounts">
|
<div class="btn-group btn-group-sm" ng-if="allowBindMounts">
|
||||||
<label class="btn btn-primary" ng-model="volume.Type" uib-btn-radio="'volume'" ng-click="volume.name = ''">Volume</label>
|
<label class="btn btn-primary" ng-model="volume.Type" uib-btn-radio="'volume'" ng-click="volume.Source = null">Volume</label>
|
||||||
<label class="btn btn-primary" ng-model="volume.Type" uib-btn-radio="'bind'" ng-click="volume.Id = ''">Bind</label>
|
<label class="btn btn-primary" ng-model="volume.Type" uib-btn-radio="'bind'" ng-click="volume.Source = null">Bind</label>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-sm btn-danger" type="button" ng-click="removeVolume($index)">
|
<button class="btn btn-sm btn-danger" type="button" ng-click="removeVolume($index)">
|
||||||
<i class="fa fa-trash" aria-hidden="true"></i>
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
ng-model="volume.Source"
|
ng-model="volume.Source"
|
||||||
ng-options="vol as ((vol.Id|truncate:30) + ' - ' + (vol.Driver|truncate:30)) for vol in availableVolumes"
|
ng-options="vol as ((vol.Id|truncate:30) + ' - ' + (vol.Driver|truncate:30)) for vol in availableVolumes"
|
||||||
>
|
>
|
||||||
<option selected disabled hidden value="">Select a volume</option>
|
<option selected disabled value="">Select a volume</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="small text-warning" ng-show="!volume.Source"> <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Source is required. </div>
|
<div class="small text-warning" ng-show="!volume.Source"> <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Source is required. </div>
|
||||||
|
|||||||
@@ -28,8 +28,19 @@ class KubernetesConfigMapService {
|
|||||||
this.KubernetesConfigMaps(namespace).get(params).$promise,
|
this.KubernetesConfigMaps(namespace).get(params).$promise,
|
||||||
this.KubernetesConfigMaps(namespace).getYaml(params).$promise,
|
this.KubernetesConfigMaps(namespace).getYaml(params).$promise,
|
||||||
]);
|
]);
|
||||||
const configMap = KubernetesConfigMapConverter.apiToConfigMap(rawPromise.value, yamlPromise.value);
|
|
||||||
return configMap;
|
if (_.get(rawPromise, 'reason.status') == 404 && _.get(yamlPromise, 'reason.status') == 404) {
|
||||||
|
return KubernetesConfigMapConverter.defaultConfigMap(namespace, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Saving binary data to 'data' field in configMap Object is not allowed by kubernetes and getYaml() may get
|
||||||
|
// an error. We should keep binary data to 'binaryData' field instead of 'data'. Before that, we
|
||||||
|
// use response from get() and ignore 500 error as a workaround.
|
||||||
|
if (rawPromise.value) {
|
||||||
|
return KubernetesConfigMapConverter.apiToConfigMap(rawPromise.value, yamlPromise.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new PortainerError('Unable to retrieve config map ', name);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.status === 404) {
|
if (err.status === 404) {
|
||||||
return KubernetesConfigMapConverter.defaultConfigMap(namespace, name);
|
return KubernetesConfigMapConverter.defaultConfigMap(namespace, name);
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
</uib-tab>
|
</uib-tab>
|
||||||
<!-- !tab-info -->
|
<!-- !tab-info -->
|
||||||
<!-- tab-file -->
|
<!-- tab-file -->
|
||||||
<uib-tab index="1" select="showEditor()">
|
<uib-tab index="1" select="showEditor()" ng-if="!state.externalStack">
|
||||||
<uib-tab-heading> <i class="fa fa-pencil-alt space-right" aria-hidden="true"></i> Editor </uib-tab-heading>
|
<uib-tab-heading> <i class="fa fa-pencil-alt space-right" aria-hidden="true"></i> Editor </uib-tab-heading>
|
||||||
<form class="form-horizontal" ng-if="state.showEditorTab" style="margin-top: 10px;">
|
<form class="form-horizontal" ng-if="state.showEditorTab" style="margin-top: 10px;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ param (
|
|||||||
)
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop";
|
$ErrorActionPreference = "Stop";
|
||||||
|
$ProgressPreference = "SilentlyContinue";
|
||||||
|
|
||||||
New-Item -Path "docker-binary" -ItemType Directory | Out-Null
|
New-Item -Path "docker-binary" -ItemType Directory | Out-Null
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ param (
|
|||||||
)
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop";
|
$ErrorActionPreference = "Stop";
|
||||||
|
$ProgressPreference = "SilentlyContinue";
|
||||||
|
|
||||||
Invoke-WebRequest -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/$($kompose_version)/kompose-windows-amd64.exe"
|
Invoke-WebRequest -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/$($kompose_version)/kompose-windows-amd64.exe"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ param (
|
|||||||
)
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop";
|
$ErrorActionPreference = "Stop";
|
||||||
|
$ProgressPreference = "SilentlyContinue";
|
||||||
|
|
||||||
Invoke-WebRequest -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/$($kubectl_version)/bin/windows/amd64/kubectl.exe"
|
Invoke-WebRequest -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/$($kubectl_version)/bin/windows/amd64/kubectl.exe"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ module.exports = function (grunt) {
|
|||||||
binaries: {
|
binaries: {
|
||||||
dockerLinuxVersion: '18.09.3',
|
dockerLinuxVersion: '18.09.3',
|
||||||
dockerWindowsVersion: '17.09.0-ce',
|
dockerWindowsVersion: '17.09.0-ce',
|
||||||
komposeVersion: 'v1.22.0',
|
komposeVersion: 'v1.21.0',
|
||||||
kubectlVersion: 'v1.18.0',
|
kubectlVersion: 'v1.18.0',
|
||||||
},
|
},
|
||||||
config: gruntfile_cfg.config,
|
config: gruntfile_cfg.config,
|
||||||
|
|||||||
Reference in New Issue
Block a user