fix(kube): update doc links to match new menu structure [EE-6759] (#11266)

pull/11293/head
Matt Hook 2024-03-01 15:37:32 +13:00 committed by GitHub
parent ff178641be
commit 51c672af21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 89 additions and 14 deletions

View File

@ -104,6 +104,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controllerAs: 'ctrl', controllerAs: 'ctrl',
}, },
}, },
data: {
docs: '/user/docker/configs/add',
},
}; };
const customTemplates = { const customTemplates = {
@ -165,7 +168,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
}, },
}, },
data: { data: {
docs: '/user/docker/host', docs: '/user/docker/host/details',
}, },
}; };
@ -227,6 +230,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'BuildImageController', controller: 'BuildImageController',
}, },
}, },
data: {
docs: '/user/docker/images/build',
},
}; };
var imageImport = { var imageImport = {
@ -238,6 +244,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'ImportImageController', controller: 'ImportImageController',
}, },
}, },
data: {
docs: '/user/docker/images/import',
},
}; };
var networks = { var networks = {
@ -273,6 +282,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateNetworkController', controller: 'CreateNetworkController',
}, },
}, },
data: {
docs: '/user/docker/networks/add',
},
}; };
var nodes = { var nodes = {
@ -280,7 +292,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
url: '/nodes', url: '/nodes',
abstract: true, abstract: true,
data: { data: {
docs: '/user/docker/swarm', docs: '/user/docker/swarm/details',
}, },
}; };
@ -338,6 +350,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateSecretController', controller: 'CreateSecretController',
}, },
}, },
data: {
docs: '/user/docker/secrets/add',
},
}; };
var services = { var services = {
@ -374,6 +389,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateServiceController', controller: 'CreateServiceController',
}, },
}, },
data: {
docs: '/user/docker/stacks/add',
},
}; };
var serviceLogs = { var serviceLogs = {
@ -444,7 +462,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
}, },
}, },
data: { data: {
docs: '/user/docker/swarm', docs: '/user/docker/swarm/details',
}, },
}; };
@ -500,7 +518,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
}, },
}, },
data: { data: {
docs: '/user/docker/templates', docs: '/user/docker/templates/application',
}, },
}; };
@ -549,6 +567,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateVolumeController', controller: 'CreateVolumeController',
}, },
}, },
data: {
docs: '/user/docker/volumes/add',
},
}; };
const dockerFeaturesConfiguration = { const dockerFeaturesConfiguration = {

View File

@ -85,6 +85,9 @@ function config($stateRegistryProvider: StateRegistry) {
component: 'createContainerView', component: 'createContainerView',
}, },
}, },
data: {
docs: '/user/docker/containers/add',
},
}); });
$stateRegistryProvider.register({ $stateRegistryProvider.register({

View File

@ -72,6 +72,9 @@ angular
component: 'createEdgeStackView', component: 'createEdgeStackView',
}, },
}, },
data: {
docs: '/user/edge/stacks/add',
},
}; };
const stacksEdit = { const stacksEdit = {
@ -141,7 +144,7 @@ angular
}, },
}, },
data: { data: {
docs: '/user/edge/devices', docs: '/user/edge/waiting-room',
}, },
}); });
} }
@ -155,7 +158,7 @@ angular
}, },
}, },
data: { data: {
docs: '/user/edge/templates', docs: '/user/edge/templates/application',
}, },
}); });

View File

@ -140,7 +140,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
}, },
}, },
data: { data: {
docs: '/user/kubernetes/helm', docs: '/user/kubernetes/inspect-helm',
}, },
}; };
@ -153,7 +153,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
}, },
}, },
data: { data: {
docs: '/user/kubernetes/services', docs: '/user/kubernetes/networking/services',
}, },
}; };
@ -166,7 +166,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
}, },
}, },
data: { data: {
docs: '/user/kubernetes/ingresses', docs: '/user/kubernetes/networking/ingresses',
}, },
}; };
@ -178,6 +178,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesIngressesCreateView', component: 'kubernetesIngressesCreateView',
}, },
}, },
data: {
docs: '/user/kubernetes/networking/ingresses/add',
},
}; };
const ingressesEdit = { const ingressesEdit = {
@ -211,6 +214,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateApplicationView', component: 'kubernetesCreateApplicationView',
}, },
}, },
data: {
docs: '/user/kubernetes/applications/add',
},
}; };
const application = { const application = {
@ -221,6 +227,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'applicationDetailsView', component: 'applicationDetailsView',
}, },
}, },
data: {
docs: '/user/kubernetes/applications/inspect',
},
}; };
const applicationEdit = { const applicationEdit = {
@ -231,6 +240,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateApplicationView', component: 'kubernetesCreateApplicationView',
}, },
}, },
data: {
docs: '/user/kubernetes/applications/edit',
},
}; };
const applicationConsole = { const applicationConsole = {
@ -317,6 +329,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateConfigMapView', component: 'kubernetesCreateConfigMapView',
}, },
}, },
data: {
docs: '/user/kubernetes/configurations/add-configmap',
},
}; };
const configMap = { const configMap = {
@ -346,6 +361,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateSecretView', component: 'kubernetesCreateSecretView',
}, },
}, },
data: {
docs: '/user/kubernetes/configurations/add-secret',
},
}; };
const secret = { const secret = {
@ -367,7 +385,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
}, },
}, },
data: { data: {
docs: '/user/kubernetes/cluster', docs: '/user/kubernetes/cluster/details',
}, },
}; };
@ -379,6 +397,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesNodeView', component: 'kubernetesNodeView',
}, },
}, },
data: {
docs: '/user/kubernetes/cluster/node',
},
}; };
const nodeStats = { const nodeStats = {
@ -412,6 +433,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesDeployView', component: 'kubernetesDeployView',
}, },
}, },
data: {
docs: '/user/kubernetes/applications/manifest',
},
}; };
const resourcePools = { const resourcePools = {
@ -435,6 +459,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateNamespaceView', component: 'kubernetesCreateNamespaceView',
}, },
}, },
data: {
docs: '/user/kubernetes/namespaces/add',
},
}; };
const resourcePool = { const resourcePool = {
@ -445,6 +472,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesResourcePoolView', component: 'kubernetesResourcePoolView',
}, },
}, },
data: {
docs: '/user/kubernetes/namespaces/manage',
},
}; };
const resourcePoolAccess = { const resourcePoolAccess = {
@ -455,6 +485,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesResourcePoolAccessView', component: 'kubernetesResourcePoolAccessView',
}, },
}, },
data: {
docs: '/user/kubernetes/namespaces/access',
},
}; };
const volumes = { const volumes = {

View File

@ -37,6 +37,9 @@ function config($stateRegistryProvider) {
params: { params: {
fileContent: '', fileContent: '',
}, },
data: {
docs: '/user/kubernetes/templates/add',
},
}; };
const customTemplatesEdit = { const customTemplatesEdit = {

View File

@ -183,7 +183,7 @@ angular
}, },
}, },
data: { data: {
docs: '/admin/environments', docs: '/admin/environments/environments',
}, },
}; };
@ -220,6 +220,9 @@ angular
component: 'edgeAutoCreateScriptView', component: 'edgeAutoCreateScriptView',
}, },
}, },
data: {
docs: '/admin/environments/aeec',
},
}; };
var addFDOProfile = { var addFDOProfile = {
@ -372,6 +375,9 @@ angular
component: 'editRegistry', component: 'editRegistry',
}, },
}, },
data: {
docs: '/admin/registries/edit',
},
}; };
const registryCreation = { const registryCreation = {
@ -382,6 +388,9 @@ angular
component: 'createRegistry', component: 'createRegistry',
}, },
}, },
data: {
docs: '/admin/registries/add',
},
}; };
var settings = { var settings = {
@ -450,7 +459,7 @@ angular
}, },
}, },
data: { data: {
docs: '/admin/users', docs: '/admin/user/users',
access: AccessHeaders.Restricted, // allow for team leaders access: AccessHeaders.Restricted, // allow for team leaders
}, },
}; };

View File

@ -29,7 +29,7 @@ function config($stateRegistryProvider) {
}, },
}, },
data: { data: {
docs: '/admin/users/roles', docs: '/admin/user/roles',
access: AccessHeaders.Admin, access: AccessHeaders.Admin,
}, },
}; };

View File

@ -31,7 +31,7 @@ function config($stateRegistryProvider: StateRegistry) {
}, },
}, },
data: { data: {
docs: '/admin/users/teams', docs: '/admin/user/teams',
access: AccessHeaders.Restricted, // allow for team leaders access: AccessHeaders.Restricted, // allow for team leaders
}, },
}); });

View File

@ -36,6 +36,9 @@ function config($stateRegistryProvider: StateRegistry) {
component: 'updateSchedulesListView', component: 'updateSchedulesListView',
}, },
}, },
data: {
docs: '/admin/environments/update',
},
}); });
$stateRegistryProvider.register({ $stateRegistryProvider.register({