mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(app): rearrange app form services [EE-5566] (#9056)
This commit is contained in:
parent
d7fc2046d7
commit
2d69e93efa
18 changed files with 1104 additions and 739 deletions
|
@ -28,7 +28,6 @@ export const KubernetesApplicationPublishingTypes = Object.freeze({
|
|||
CLUSTER_IP: 1,
|
||||
NODE_PORT: 2,
|
||||
LOAD_BALANCER: 3,
|
||||
INGRESS: 4,
|
||||
});
|
||||
|
||||
export const KubernetesApplicationPlacementTypes = Object.freeze({
|
||||
|
|
|
@ -117,13 +117,6 @@ withFormValidation(
|
|||
ngModule,
|
||||
withUIRouter(withCurrentUser(withReactQuery(KubeServicesForm))),
|
||||
'kubeServicesForm',
|
||||
[
|
||||
'values',
|
||||
'onChange',
|
||||
'loadBalancerEnabled',
|
||||
'appName',
|
||||
'selector',
|
||||
'isEditMode',
|
||||
],
|
||||
['values', 'onChange', 'appName', 'selector', 'isEditMode'],
|
||||
kubeServicesValidation
|
||||
);
|
||||
|
|
|
@ -1339,7 +1339,6 @@
|
|||
<kube-services-form
|
||||
on-change="(ctrl.onServicesChange)"
|
||||
values="ctrl.formValues.Services"
|
||||
load-balancer-enabled="ctrl.publishViaLoadBalancerEnabled()"
|
||||
app-name="ctrl.formValues.Name"
|
||||
selector="ctrl.formValues.Selector"
|
||||
validation-data="{nodePortServices: ctrl.state.nodePortServices, formServices: ctrl.formValues.Services}"
|
||||
|
|
|
@ -823,10 +823,6 @@ class KubernetesCreateApplicationController {
|
|||
return this.nodesLimits.overflowForReplica(cpu, memory, instances);
|
||||
}
|
||||
|
||||
publishViaLoadBalancerEnabled() {
|
||||
return this.state.useLoadBalancer && this.state.maxLoadBalancersQuota !== 0;
|
||||
}
|
||||
|
||||
publishViaIngressEnabled() {
|
||||
return this.ingresses.length;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue