mirror of https://github.com/portainer/portainer
feat(k8s/applications): default to isolated application
parent
8a4902f15a
commit
3e60167aeb
|
@ -18,7 +18,7 @@ const _KubernetesApplicationFormValues = Object.freeze({
|
||||||
AutoScaler: {},
|
AutoScaler: {},
|
||||||
Containers: [],
|
Containers: [],
|
||||||
EnvironmentVariables: [], // KubernetesApplicationEnvironmentVariableFormValue list
|
EnvironmentVariables: [], // KubernetesApplicationEnvironmentVariableFormValue list
|
||||||
DataAccessPolicy: KubernetesApplicationDataAccessPolicies.SHARED,
|
DataAccessPolicy: KubernetesApplicationDataAccessPolicies.ISOLATED,
|
||||||
PersistedFolders: [], // KubernetesApplicationPersistedFolderFormValue list
|
PersistedFolders: [], // KubernetesApplicationPersistedFolderFormValue list
|
||||||
Configurations: [], // KubernetesApplicationConfigurationFormValue list
|
Configurations: [], // KubernetesApplicationConfigurationFormValue list
|
||||||
PublishingType: KubernetesApplicationPublishingTypes.INTERNAL,
|
PublishingType: KubernetesApplicationPublishingTypes.INTERNAL,
|
||||||
|
|
|
@ -554,39 +554,6 @@
|
||||||
<!-- access policy options -->
|
<!-- access policy options -->
|
||||||
<div class="form-group" style="margin-bottom: 0;">
|
<div class="form-group" style="margin-bottom: 0;">
|
||||||
<div class="boxselector_wrapper">
|
<div class="boxselector_wrapper">
|
||||||
<div ng-if="!ctrl.state.isEdit || (ctrl.state.isEdit && ctrl.formValues.DataAccessPolicy === ctrl.ApplicationDataAccessPolicies.SHARED)">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
id="data_access_shared"
|
|
||||||
ng-value="ctrl.ApplicationDataAccessPolicies.SHARED"
|
|
||||||
ng-model="ctrl.formValues.DataAccessPolicy"
|
|
||||||
ng-change="ctrl.resetDeploymentType()"
|
|
||||||
/>
|
|
||||||
<label for="data_access_shared">
|
|
||||||
<div class="boxselector_header">
|
|
||||||
<i class="fa fa-cube" aria-hidden="true" style="margin-right: 2px;"></i>
|
|
||||||
Shared
|
|
||||||
</div>
|
|
||||||
<p>Application will be deployed as a Deployment with a shared storage access</p>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div style="color: #767676;" ng-if="ctrl.state.isEdit && ctrl.formValues.DataAccessPolicy === ctrl.ApplicationDataAccessPolicies.ISOLATED">
|
|
||||||
<input type="radio" id="data_access_shared" disabled />
|
|
||||||
<label
|
|
||||||
for="data_access_shared"
|
|
||||||
tooltip-append-to-body="true"
|
|
||||||
tooltip-placement="bottom"
|
|
||||||
tooltip-class="portainer-tooltip"
|
|
||||||
uib-tooltip="Changing the data access policy is not allowed"
|
|
||||||
style="cursor: pointer; border-color: #767676;"
|
|
||||||
>
|
|
||||||
<div class="boxselector_header">
|
|
||||||
<i class="fa fa-cube" aria-hidden="true" style="margin-right: 2px;"></i>
|
|
||||||
Shared
|
|
||||||
</div>
|
|
||||||
<p>Application will be deployed as a Deployment with a shared storage access</p>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
ng-if="
|
ng-if="
|
||||||
(!ctrl.state.isEdit && !ctrl.state.persistedFoldersUseExistingVolumes) ||
|
(!ctrl.state.isEdit && !ctrl.state.persistedFoldersUseExistingVolumes) ||
|
||||||
|
@ -628,6 +595,39 @@
|
||||||
<p>Application will be deployed as a StatefulSet with each instantiating their own data</p>
|
<p>Application will be deployed as a StatefulSet with each instantiating their own data</p>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-if="!ctrl.state.isEdit || (ctrl.state.isEdit && ctrl.formValues.DataAccessPolicy === ctrl.ApplicationDataAccessPolicies.SHARED)">
|
||||||
|
<input
|
||||||
|
type="radio"
|
||||||
|
id="data_access_shared"
|
||||||
|
ng-value="ctrl.ApplicationDataAccessPolicies.SHARED"
|
||||||
|
ng-model="ctrl.formValues.DataAccessPolicy"
|
||||||
|
ng-change="ctrl.resetDeploymentType()"
|
||||||
|
/>
|
||||||
|
<label for="data_access_shared">
|
||||||
|
<div class="boxselector_header">
|
||||||
|
<i class="fa fa-cube" aria-hidden="true" style="margin-right: 2px;"></i>
|
||||||
|
Shared
|
||||||
|
</div>
|
||||||
|
<p>Application will be deployed as a Deployment with a shared storage access</p>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div style="color: #767676;" ng-if="ctrl.state.isEdit && ctrl.formValues.DataAccessPolicy === ctrl.ApplicationDataAccessPolicies.ISOLATED">
|
||||||
|
<input type="radio" id="data_access_shared" disabled />
|
||||||
|
<label
|
||||||
|
for="data_access_shared"
|
||||||
|
tooltip-append-to-body="true"
|
||||||
|
tooltip-placement="bottom"
|
||||||
|
tooltip-class="portainer-tooltip"
|
||||||
|
uib-tooltip="Changing the data access policy is not allowed"
|
||||||
|
style="cursor: pointer; border-color: #767676;"
|
||||||
|
>
|
||||||
|
<div class="boxselector_header">
|
||||||
|
<i class="fa fa-cube" aria-hidden="true" style="margin-right: 2px;"></i>
|
||||||
|
Shared
|
||||||
|
</div>
|
||||||
|
<p>Application will be deployed as a Deployment with a shared storage access</p>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- !access policy options -->
|
<!-- !access policy options -->
|
||||||
|
|
Loading…
Reference in New Issue