mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 14:55:27 +02:00
feat(nomad): remove nomad from UI EE-6060 (#10509)
This commit is contained in:
parent
1140804fe9
commit
8bb5129be0
110 changed files with 39 additions and 1813 deletions
|
@ -6,7 +6,6 @@ import { Cloud } from 'lucide-react';
|
|||
import Kube from '@/assets/ico/kube.svg?c';
|
||||
import DockerIcon from '@/assets/ico/vendor/docker-icon.svg?c';
|
||||
import MicrosoftIcon from '@/assets/ico/vendor/microsoft-icon.svg?c';
|
||||
import NomadIcon from '@/assets/ico/vendor/nomad-icon.svg?c';
|
||||
import { EnvironmentType } from '@/react/portainer/environments/types';
|
||||
|
||||
export function truncateLeftRight(text, max, left, right) {
|
||||
|
@ -119,8 +118,6 @@ export function environmentTypeIcon(type) {
|
|||
case EnvironmentType.AgentOnDocker:
|
||||
case EnvironmentType.Docker:
|
||||
return DockerIcon;
|
||||
case EnvironmentType.EdgeAgentOnNomad:
|
||||
return NomadIcon;
|
||||
default:
|
||||
throw new Error(`type ${type}-${EnvironmentType[type]} is not supported`);
|
||||
}
|
||||
|
|
|
@ -46,12 +46,7 @@
|
|||
</span>
|
||||
|
||||
<div class="col-sm-12 form-section-title"> Edge agent deployment script </div>
|
||||
<edge-script-form
|
||||
edge-info="{ key: endpoint.EdgeKey, id: endpoint.EdgeID }"
|
||||
commands="state.edgeScriptCommands"
|
||||
is-nomad-token-visible="state.showNomad"
|
||||
async-mode="endpoint.Edge.AsyncMode"
|
||||
></edge-script-form>
|
||||
<edge-script-form edge-info="{ key: endpoint.EdgeKey, id: endpoint.EdgeID }" commands="state.edgeScriptCommands" async-mode="endpoint.Edge.AsyncMode"></edge-script-form>
|
||||
|
||||
<edge-key-display edge-key="endpoint.EdgeKey"> </edge-key-display>
|
||||
</rd-widget-body>
|
||||
|
|
|
@ -34,8 +34,6 @@ function EndpointController(
|
|||
$scope.onChangeTags = onChangeTags;
|
||||
$scope.onChangeTLSConfigFormValues = onChangeTLSConfigFormValues;
|
||||
|
||||
const isBE = process.env.PORTAINER_EDITION === 'BE';
|
||||
|
||||
$scope.state = {
|
||||
selectAll: false,
|
||||
// displayTextFilter: false,
|
||||
|
@ -53,10 +51,9 @@ function EndpointController(
|
|||
allowCreate: Authentication.isAdmin(),
|
||||
allowSelfSignedCerts: true,
|
||||
showAMTInfo: false,
|
||||
showNomad: isBE,
|
||||
showTLSConfig: false,
|
||||
edgeScriptCommands: {
|
||||
linux: _.compact([commandsTabs.k8sLinux, commandsTabs.swarmLinux, commandsTabs.standaloneLinux, isBE && commandsTabs.nomadLinux]),
|
||||
linux: _.compact([commandsTabs.k8sLinux, commandsTabs.swarmLinux, commandsTabs.standaloneLinux]),
|
||||
win: [commandsTabs.swarmWindows, commandsTabs.standaloneWindow],
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue