@rancher/shell 0.3.14 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/providers/nutanix.svg +1 -0
- package/assets/translations/en-us.yaml +83 -2
- package/chart/gatekeeper.vue +2 -2
- package/chart/monitoring/alerting/index.vue +3 -3
- package/chart/monitoring/index.vue +2 -2
- package/chart/monitoring/prometheus/index.vue +1 -1
- package/chart/rancher-backup/index.vue +2 -2
- package/cloud-credential/harvester.vue +2 -2
- package/components/AssignTo.vue +1 -1
- package/components/AwsComplianceBanner.vue +1 -1
- package/components/BackLink.vue +7 -0
- package/components/BrandImage.vue +3 -3
- package/components/ClusterProviderIcon.vue +1 -1
- package/components/CommunityLinks.vue +2 -2
- package/components/ConsumptionGauge.vue +17 -2
- package/components/CruResource.vue +2 -1
- package/components/DashboardMetrics.vue +8 -0
- package/components/DetailTop.vue +1 -1
- package/components/ExplorerMembers.vue +8 -8
- package/components/ExplorerProjectsNamespaces.vue +9 -9
- package/components/FixedBanner.vue +1 -1
- package/components/GlobalRoleBindings.vue +11 -11
- package/components/GrafanaDashboard.vue +7 -1
- package/components/GrowlManager.vue +1 -1
- package/components/HarvesterServiceAddOnConfig.vue +4 -3
- package/components/IconOrSvg.vue +10 -3
- package/components/LandingPagePreference.vue +2 -2
- package/components/MoveModal.vue +1 -1
- package/components/PodSecurityAdmission.vue +3 -3
- package/components/ProgressBarMulti.vue +2 -2
- package/components/PromptRemove.vue +52 -28
- package/components/PromptRestore.vue +3 -3
- package/components/Questions/index.vue +5 -5
- package/components/RelatedWorkloadsTable.vue +1 -1
- package/components/ResourceList/Masthead.vue +1 -1
- package/components/ResourceTable.vue +3 -3
- package/components/ResourceYaml.vue +1 -1
- package/components/RoleBindings.vue +2 -2
- package/components/SingleClusterInfo.vue +1 -1
- package/components/SortableTable/actions.js +3 -3
- package/components/SortableTable/advanced-filtering.js +7 -7
- package/components/SortableTable/filtering.js +1 -1
- package/components/SortableTable/index.vue +9 -9
- package/components/SortableTable/selection.js +5 -5
- package/components/SortableTable/sorting.js +5 -5
- package/components/Tabbed/index.vue +7 -7
- package/components/TableSparkLine.vue +1 -1
- package/components/Wizard.vue +11 -23
- package/components/__tests__/Collapse.spec.ts +1 -1
- package/components/__tests__/CruResource.test.ts +74 -0
- package/components/__tests__/SimpleBox.spec.ts +1 -1
- package/components/auth/RoleDetailEdit.vue +7 -3
- package/components/auth/SelectPrincipal.vue +3 -3
- package/components/fleet/FleetResources.vue +1 -1
- package/components/fleet/FleetStatus.vue +4 -4
- package/components/fleet/FleetSummary.vue +1 -1
- package/components/fleet/ForceDirectedTreeChart/chartIcons.js +1 -1
- package/components/fleet/ForceDirectedTreeChart/index.vue +1 -1
- package/components/form/ArrayList.vue +11 -3
- package/components/form/ArrayListSelect.vue +2 -2
- package/components/form/FileSelector.vue +6 -0
- package/components/form/GitPicker.vue +528 -0
- package/components/form/KeyValue.vue +82 -41
- package/components/form/LabeledSelect.vue +2 -2
- package/components/form/MatchExpressions.vue +2 -2
- package/components/form/Members/ClusterMembershipEditor.vue +1 -2
- package/components/form/Members/ClusterPermissionsEditor.vue +6 -5
- package/components/form/Members/MembershipEditor.vue +4 -4
- package/components/form/Members/ProjectMembershipEditor.vue +1 -2
- package/components/form/NameNsDescription.vue +13 -6
- package/components/form/Networking.vue +2 -2
- package/components/form/NodeScheduling.vue +1 -1
- package/components/form/PodAffinity.vue +1 -1
- package/components/form/ProjectMemberEditor.vue +4 -4
- package/components/form/ResourceQuota/Namespace.vue +2 -2
- package/components/form/ResourceQuota/NamespaceRow.vue +2 -2
- package/components/form/ResourceQuota/Project.vue +1 -1
- package/components/form/ResourceQuota/shared.js +2 -2
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/ResourceTabs/index.vue +1 -1
- package/components/form/RuleSelector.vue +1 -1
- package/components/form/SecretSelector.vue +4 -4
- package/components/form/Select.vue +2 -2
- package/components/form/SelectOrCreateAuthSecret.vue +3 -3
- package/components/form/ServiceNameSelect.vue +1 -1
- package/components/form/ServicePorts.vue +1 -1
- package/components/form/ShellInput.vue +1 -1
- package/components/form/SimpleSecretSelector.vue +4 -4
- package/components/form/Taints.vue +1 -1
- package/components/form/ValueFromResource.vue +3 -3
- package/components/form/WorkloadPorts.vue +8 -7
- package/components/form/__tests__/Error.test.ts +1 -1
- package/components/form/__tests__/KeyValue.test.ts +21 -0
- package/components/formatter/ClusterLink.vue +1 -1
- package/components/formatter/ClusterProvider.vue +13 -2
- package/components/formatter/Endpoints.vue +1 -1
- package/components/formatter/FleetSummaryGraph.vue +2 -2
- package/components/formatter/IngressTarget.vue +2 -2
- package/components/formatter/PodImages.vue +1 -1
- package/components/formatter/PrincipalGroupBindings.vue +1 -1
- package/components/formatter/ReceiverIcons.vue +3 -3
- package/components/formatter/ServiceType.vue +1 -1
- package/components/formatter/WorkloadDetailEndpoints.vue +1 -1
- package/components/formatter/WorkloadHealthScale.vue +1 -1
- package/components/formatter/__tests__/LiveDate.test.ts +1 -1
- package/components/graph/Bar.vue +1 -1
- package/components/graph/LinePlot.vue +3 -3
- package/components/nav/Group.vue +2 -2
- package/components/nav/Header.vue +5 -5
- package/components/nav/NamespaceFilter.vue +14 -14
- package/components/nav/TopLevelMenu.vue +76 -11
- package/components/nav/WindowManager/ContainerLogs.vue +2 -2
- package/components/nav/WindowManager/ContainerShell.vue +1 -1
- package/components/nav/WorkspaceSwitcher.vue +1 -1
- package/config/home-links.js +4 -4
- package/config/labels-annotations.js +8 -9
- package/config/pod-security-admission.ts +1 -1
- package/config/product/auth.js +4 -4
- package/config/product/explorer.js +14 -0
- package/config/router.js +5 -0
- package/config/store.js +2 -0
- package/config/table-headers.js +13 -13
- package/config/uiplugins.js +8 -1
- package/core/plugin-routes.ts +3 -2
- package/core/plugin.ts +3 -3
- package/core/plugins.js +7 -7
- package/creators/pkg/files/index.ts +1 -1
- package/detail/cis.cattle.io.clusterscan.vue +3 -3
- package/detail/fleet.cattle.io.bundle.vue +1 -1
- package/detail/helm.cattle.io.projecthelmchart.vue +16 -29
- package/detail/management.cattle.io.user.vue +12 -12
- package/detail/namespace.vue +4 -4
- package/detail/networking.k8s.io.ingress.vue +3 -3
- package/detail/node.vue +2 -2
- package/detail/provisioning.cattle.io.cluster.vue +9 -10
- package/detail/service.vue +1 -1
- package/detail/workload/index.vue +3 -3
- package/dialog/AddProjectMemberDialog.vue +2 -2
- package/dialog/DrainNode.vue +1 -1
- package/dialog/GenericPrompt.vue +9 -5
- package/dialog/RotateEncryptionKeyDialog.vue +2 -2
- package/dialog/ScaleMachineDownDialog.vue +2 -2
- package/edit/auth/azuread.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +5 -5
- package/edit/cis.cattle.io.clusterscan.vue +5 -5
- package/edit/cloudcredential.vue +4 -4
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +1 -1
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +4 -4
- package/edit/fleet.cattle.io.gitrepo.vue +6 -6
- package/edit/helm.cattle.io.projecthelmchart.vue +3 -3
- package/edit/logging-flow/index.vue +4 -4
- package/edit/logging.banzaicloud.io.output/index.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +1 -1
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +1 -1
- package/edit/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +1 -1
- package/edit/management.cattle.io.project.vue +3 -3
- package/edit/management.cattle.io.projectroletemplatebinding.vue +2 -2
- package/edit/management.cattle.io.setting.vue +1 -1
- package/edit/management.cattle.io.user.vue +2 -2
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +2 -2
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +3 -3
- package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +5 -5
- package/edit/monitoring.coreos.com.prometheusrule/duration.js +1 -1
- package/edit/monitoring.coreos.com.receiver/auth.vue +2 -2
- package/edit/monitoring.coreos.com.receiver/tls.vue +3 -4
- package/edit/monitoring.coreos.com.receiver/types/__tests__/email.test.ts +53 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +2 -0
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +3 -3
- package/edit/monitoring.coreos.com.receiver/types/webhook.add.vue +1 -1
- package/edit/monitoring.coreos.com.route.vue +2 -2
- package/edit/namespace.vue +21 -13
- package/edit/networking.k8s.io.ingress/Certificate.vue +2 -2
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
- package/edit/networking.k8s.io.ingress/RulePath.vue +2 -2
- package/edit/networking.k8s.io.ingress/Rules.vue +2 -2
- package/edit/networking.k8s.io.ingress/index.vue +4 -4
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/persistentvolume/index.vue +4 -4
- package/edit/persistentvolumeclaim.vue +3 -3
- package/edit/provisioning.cattle.io.cluster/RegistryMirrors.vue +1 -1
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +2 -2
- package/edit/provisioning.cattle.io.cluster/import.vue +2 -2
- package/edit/provisioning.cattle.io.cluster/index.vue +7 -7
- package/edit/provisioning.cattle.io.cluster/rke2.vue +28 -29
- package/edit/resources.cattle.io.backup.vue +2 -2
- package/edit/resources.cattle.io.restore.vue +3 -3
- package/edit/secret/generic.vue +1 -1
- package/edit/secret/index.vue +3 -3
- package/edit/service.vue +3 -21
- package/edit/serviceaccount.vue +2 -2
- package/edit/storage.k8s.io.storageclass/index.vue +4 -4
- package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +1 -1
- package/edit/token.vue +5 -5
- package/edit/workload/index.vue +1 -1
- package/edit/workload/mixins/workload.js +8 -8
- package/edit/workload/storage/ContainerMountPaths.vue +9 -9
- package/edit/workload/storage/Mount.vue +2 -2
- package/edit/workload/storage/csi/index.vue +1 -1
- package/edit/workload/storage/ephemeralVolume/index.vue +1 -1
- package/edit/workload/storage/index.vue +6 -6
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +2 -2
- package/initialize/client.js +8 -8
- package/initialize/index.js +1 -4
- package/layouts/default.vue +38 -11
- package/list/catalog.cattle.io.clusterrepo.vue +9 -1
- package/list/cis.cattle.io.clusterscan.vue +1 -1
- package/list/fleet.cattle.io.cluster.vue +2 -2
- package/list/group.principal.vue +1 -1
- package/list/helm.cattle.io.projecthelmchart.vue +2 -2
- package/list/management.cattle.io.cluster.vue +1 -1
- package/list/management.cattle.io.feature.vue +1 -1
- package/list/management.cattle.io.user.vue +2 -2
- package/list/node.vue +5 -5
- package/list/provisioning.cattle.io.cluster.vue +4 -5
- package/machine-config/amazonec2.vue +2 -2
- package/machine-config/digitalocean.vue +4 -4
- package/machine-config/linode.vue +4 -4
- package/machine-config/vmwarevsphere.vue +12 -12
- package/middleware/authenticated.js +7 -6
- package/mixins/brand.js +1 -1
- package/mixins/chart.js +6 -6
- package/mixins/fetch.client.js +2 -2
- package/mixins/form-validation.js +7 -7
- package/mixins/resource-fetch-namespaced.js +1 -1
- package/mixins/resource-fetch.js +2 -2
- package/models/apps.statefulset.js +2 -2
- package/models/batch.cronjob.js +1 -1
- package/models/catalog.cattle.io.app.js +4 -4
- package/models/cis.cattle.io.clusterscan.js +1 -1
- package/models/cis.cattle.io.clusterscanbenchmark.js +1 -1
- package/models/cis.cattle.io.clusterscanreport.js +1 -1
- package/models/cloudcredential.js +1 -1
- package/models/cluster/node.js +5 -5
- package/models/cluster.x-k8s.io.machinedeployment.js +2 -2
- package/models/fleet.cattle.io.gitrepo.js +3 -3
- package/models/group.principal.js +4 -4
- package/models/helm.cattle.io.projecthelmchart.js +2 -2
- package/models/logging.banzaicloud.io.clusterflow.js +2 -2
- package/models/logging.banzaicloud.io.flow.js +5 -5
- package/models/logging.banzaicloud.io.output.js +2 -2
- package/models/management.cattle.io.cluster.js +10 -14
- package/models/management.cattle.io.globalrole.js +4 -4
- package/models/management.cattle.io.node.js +2 -2
- package/models/management.cattle.io.nodepool.js +3 -3
- package/models/management.cattle.io.nodetemplate.js +4 -4
- package/models/management.cattle.io.project.js +2 -2
- package/models/management.cattle.io.roletemplate.js +1 -1
- package/models/management.cattle.io.setting.js +1 -1
- package/models/management.cattle.io.user.js +5 -5
- package/models/monitoring.coreos.com.receiver.js +9 -9
- package/models/namespace.js +1 -1
- package/models/networking.k8s.io.ingress.js +5 -5
- package/models/persistentvolume.js +3 -3
- package/models/pod.js +3 -3
- package/models/provisioning.cattle.io.cluster.js +39 -27
- package/models/rbac.authorization.k8s.io.clusterrole.js +2 -2
- package/models/rbac.authorization.k8s.io.role.js +3 -3
- package/models/secret.js +1 -1
- package/models/service.js +2 -2
- package/models/storage.k8s.io.storageclass.js +2 -2
- package/models/token.js +1 -1
- package/models/workload.js +6 -6
- package/models/workload.service.js +5 -21
- package/package.json +2 -1
- package/pages/about.vue +9 -9
- package/pages/account/index.vue +2 -2
- package/pages/auth/login.vue +15 -12
- package/pages/auth/verify.vue +6 -0
- package/pages/c/_cluster/apps/charts/index.vue +4 -4
- package/pages/c/_cluster/apps/charts/install.vue +28 -20
- package/pages/c/_cluster/auth/roles/index.vue +9 -9
- package/pages/c/_cluster/explorer/index.vue +41 -16
- package/pages/c/_cluster/explorer/tools/index.vue +8 -8
- package/pages/c/_cluster/fleet/GitRepoGraphConfig.js +1 -1
- package/pages/c/_cluster/fleet/index.vue +11 -11
- package/pages/c/_cluster/monitoring/index.vue +1 -1
- package/pages/c/_cluster/settings/links.vue +3 -3
- package/pages/c/_cluster/settings/performance.vue +1 -1
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogLoadDialog.vue +6 -6
- package/pages/c/_cluster/uiplugins/CatalogList/index.vue +3 -3
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +3 -3
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +1 -1
- package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +3 -3
- package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +6 -6
- package/pages/c/_cluster/uiplugins/UninstallDialog.vue +4 -4
- package/pages/c/_cluster/uiplugins/index.vue +22 -19
- package/pages/diagnostic.vue +6 -6
- package/pages/home.vue +3 -3
- package/pages/prefs.vue +2 -2
- package/pages/rio/mesh.vue +3 -3
- package/pages/support/index.vue +10 -1
- package/pkg/auto-import.js +1 -1
- package/pkg/tsconfig.json +1 -0
- package/pkg/vue.config.js +1 -1
- package/plugins/axios.js +1 -1
- package/plugins/clean-html-directive.js +1 -1
- package/plugins/dashboard-store/__tests__/mutations.spec.js +4 -4
- package/plugins/dashboard-store/actions.js +4 -4
- package/plugins/dashboard-store/getters.js +1 -1
- package/plugins/dashboard-store/index.js +1 -1
- package/plugins/dashboard-store/mutations.js +2 -2
- package/plugins/dashboard-store/resource-class.js +8 -8
- package/plugins/i18n.js +1 -1
- package/plugins/plugin.js +5 -1
- package/plugins/steve/actions.js +3 -3
- package/plugins/steve/getters.js +3 -3
- package/plugins/steve/hybrid-class.js +1 -1
- package/plugins/steve/mutations.js +1 -1
- package/plugins/steve/performanceTesting.js +1 -1
- package/plugins/steve/resourceWatcher.js +1 -1
- package/plugins/steve/subscribe.js +6 -6
- package/plugins/steve/worker/web-worker.basic.js +1 -1
- package/promptRemove/management.cattle.io.project.vue +3 -3
- package/promptRemove/mixin/roleDeletionCheck.js +4 -4
- package/promptRemove/pod.vue +1 -1
- package/rancher-components/StringList/StringList.vue +34 -50
- package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +2 -2
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +1 -1
- package/rancher-components/components/Form/Radio/RadioButton.test.ts +1 -1
- package/rancher-components/components/Form/Radio/RadioButton.vue +2 -2
- package/rancher-components/components/Form/Radio/RadioGroup.vue +2 -2
- package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +1 -0
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +1 -1
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +7 -7
- package/rancher-components/components/StringList/StringList.test.ts +10 -9
- package/rancher-components/components/StringList/StringList.vue +5 -5
- package/scripts/extension/helm/charts/ui-plugin-server/Chart.yaml +1 -1
- package/store/action-menu.js +4 -4
- package/store/auth.js +40 -7
- package/store/aws.js +1 -1
- package/store/catalog.js +12 -11
- package/store/digitalocean.js +4 -4
- package/store/features.js +1 -0
- package/store/github.js +70 -213
- package/store/gitlab.js +159 -0
- package/store/growl.js +1 -1
- package/store/i18n.js +7 -7
- package/store/index.js +63 -22
- package/store/linode.js +1 -1
- package/store/plugins.js +5 -5
- package/store/pnap.js +1 -1
- package/store/prefs.js +6 -6
- package/store/resource-fetch.js +3 -3
- package/store/type-map.js +61 -42
- package/store/uiplugins.ts +2 -1
- package/store/wm.js +5 -4
- package/tsconfig.default.json +10 -0
- package/tsconfig.json +2 -9
- package/types/shell/index.d.ts +21 -13
- package/utils/__tests__/version.test.ts +28 -0
- package/utils/alertmanagerconfig.js +4 -4
- package/utils/array.ts +4 -4
- package/utils/async.ts +1 -1
- package/utils/auth.js +3 -3
- package/utils/axios.js +5 -5
- package/utils/cluster.js +4 -3
- package/utils/color.js +10 -0
- package/utils/create-yaml.js +4 -4
- package/utils/crypto/browserHashUtils.js +1 -1
- package/utils/crypto/browserMd5.js +1 -1
- package/utils/crypto/browserSha1.js +1 -1
- package/utils/crypto/browserSha256.js +1 -1
- package/utils/crypto/index.js +3 -3
- package/utils/favicon.js +2 -3
- package/utils/gatekeeper/util.js +3 -3
- package/utils/gc/gc.ts +2 -2
- package/utils/git.ts +92 -0
- package/utils/grafana.js +4 -4
- package/utils/monitoring.js +2 -2
- package/utils/nuxt.js +2 -2
- package/utils/object.js +5 -5
- package/utils/pod-security-admission.ts +1 -1
- package/utils/projectAndNamespaceFiltering.utils.ts +1 -1
- package/utils/select.js +2 -2
- package/utils/selector.js +2 -2
- package/utils/settings.ts +17 -2
- package/utils/socket.js +30 -6
- package/utils/sort.js +1 -1
- package/utils/string.js +1 -1
- package/utils/url.ts +1 -1
- package/utils/validators/formRules/index.ts +3 -3
- package/utils/validators/role-template.js +4 -4
- package/utils/version.js +14 -1
- package/vue.config.js +19 -13
- package/components/.DS_Store +0 -0
- package/components/__tests__/.DS_Store +0 -0
- package/components/form/GithubPicker.vue +0 -390
- package/creators/pkg/package-lock.json +0 -37
- package/yarn-error.log +0 -196
|
@@ -15,12 +15,12 @@ export default class LogClusterFlow extends Flow {
|
|
|
15
15
|
}
|
|
16
16
|
const outputRefs = this?.spec?.globalOutputRefs || this?.spec?.outputRefs || [];
|
|
17
17
|
|
|
18
|
-
return this.allOutputs.filter(output => outputRefs.includes(output.name));
|
|
18
|
+
return this.allOutputs.filter((output) => outputRefs.includes(output.name));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
get outputProviders() {
|
|
22
22
|
const duplicatedProviders = this.outputs
|
|
23
|
-
.flatMap(output => output.providers);
|
|
23
|
+
.flatMap((output) => output.providers);
|
|
24
24
|
|
|
25
25
|
return uniq(duplicatedProviders) || [];
|
|
26
26
|
}
|
|
@@ -64,11 +64,11 @@ export default class LogFlow extends SteveModel {
|
|
|
64
64
|
get outputs() {
|
|
65
65
|
const localOutputRefs = this.spec?.localOutputRefs || [];
|
|
66
66
|
|
|
67
|
-
return this.allOutputs.filter(output => localOutputRefs.includes(output.name));
|
|
67
|
+
return this.allOutputs.filter((output) => localOutputRefs.includes(output.name));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
get outputsSortable() {
|
|
71
|
-
const displays = this.outputs.map(o => o.nameDisplay);
|
|
71
|
+
const displays = this.outputs.map((o) => o.nameDisplay);
|
|
72
72
|
|
|
73
73
|
displays.sort();
|
|
74
74
|
|
|
@@ -79,7 +79,7 @@ export default class LogFlow extends SteveModel {
|
|
|
79
79
|
const globalOutputRefs = this.spec?.globalOutputRefs || [];
|
|
80
80
|
|
|
81
81
|
if (this.allClusterOutputs) {
|
|
82
|
-
return this.allClusterOutputs.filter(output => globalOutputRefs.includes(output.name));
|
|
82
|
+
return this.allClusterOutputs.filter((output) => globalOutputRefs.includes(output.name));
|
|
83
83
|
} else {
|
|
84
84
|
// Handle the case where the user doesn't have permission
|
|
85
85
|
// to see ClusterOutputs
|
|
@@ -88,7 +88,7 @@ export default class LogFlow extends SteveModel {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
get clusterOutputsSortable() {
|
|
91
|
-
const displays = this.clusterOutputs.map(o => o.nameDisplay);
|
|
91
|
+
const displays = this.clusterOutputs.map((o) => o.nameDisplay);
|
|
92
92
|
|
|
93
93
|
displays.sort();
|
|
94
94
|
|
|
@@ -98,7 +98,7 @@ export default class LogFlow extends SteveModel {
|
|
|
98
98
|
get providersDisplay() {
|
|
99
99
|
const combinedOutputs = [...this.outputs, ...this.clusterOutputs];
|
|
100
100
|
const duplicatedProviders = combinedOutputs
|
|
101
|
-
.flatMap(output => output.providersDisplay);
|
|
101
|
+
.flatMap((output) => output.providersDisplay);
|
|
102
102
|
|
|
103
103
|
return uniq(duplicatedProviders) || [];
|
|
104
104
|
}
|
|
@@ -120,7 +120,7 @@ export default class LogOutput extends SteveModel {
|
|
|
120
120
|
const spec = this.spec || {};
|
|
121
121
|
|
|
122
122
|
return Object.keys(spec)
|
|
123
|
-
.filter(provider => provider !== 'loggingRef');
|
|
123
|
+
.filter((provider) => provider !== 'loggingRef');
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
get providersDisplay() {
|
|
@@ -132,7 +132,7 @@ export default class LogOutput extends SteveModel {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
isSupportedProvider(provider) {
|
|
135
|
-
return !!PROVIDERS.find(p => p.name === provider);
|
|
135
|
+
return !!PROVIDERS.find((p) => p.name === provider);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
get allProvidersSupported() {
|
|
@@ -76,7 +76,7 @@ export default class MgmtCluster extends HybridModel {
|
|
|
76
76
|
get machinePools() {
|
|
77
77
|
const pools = this.$getters['all'](MANAGEMENT.NODE_POOL);
|
|
78
78
|
|
|
79
|
-
return pools.filter(x => x.spec?.clusterName === this.id);
|
|
79
|
+
return pools.filter((x) => x.spec?.clusterName === this.id);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
get provisioner() {
|
|
@@ -254,7 +254,11 @@ export default class MgmtCluster extends HybridModel {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
get providerLogo() {
|
|
257
|
-
|
|
257
|
+
let provider = this.status?.provider || 'kubernetes';
|
|
258
|
+
|
|
259
|
+
if (this.isHarvester) {
|
|
260
|
+
provider = HARVESTER;
|
|
261
|
+
}
|
|
258
262
|
// Only interested in the part before the period
|
|
259
263
|
const prv = provider.split('.')[0];
|
|
260
264
|
// Allow overrides if needed
|
|
@@ -274,18 +278,10 @@ export default class MgmtCluster extends HybridModel {
|
|
|
274
278
|
}
|
|
275
279
|
|
|
276
280
|
get providerMenuLogo() {
|
|
277
|
-
if (this?.status?.provider === HARVESTER) {
|
|
278
|
-
return require(`~shell/assets/images/providers/kubernetes.svg`);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
281
|
return this.providerLogo;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
get providerNavLogo() {
|
|
285
|
-
if (this?.status?.provider === HARVESTER && this.$rootGetters['currentProduct'].inStore !== HARVESTER) {
|
|
286
|
-
return require(`~shell/assets/images/providers/kubernetes.svg`);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
285
|
return this.providerLogo;
|
|
290
286
|
}
|
|
291
287
|
|
|
@@ -409,10 +405,10 @@ export default class MgmtCluster extends HybridModel {
|
|
|
409
405
|
const nodes = await this.$dispatch('cluster/findAll', { type: NODE }, { root: true });
|
|
410
406
|
const nodeMetrics = await this.$dispatch('cluster/findAll', { type: NODE }, { root: true });
|
|
411
407
|
|
|
412
|
-
const someNonWorkerRoles = nodes.some(node => node.hasARole && !node.isWorker);
|
|
408
|
+
const someNonWorkerRoles = nodes.some((node) => node.hasARole && !node.isWorker);
|
|
413
409
|
|
|
414
410
|
const metrics = nodeMetrics.filter((metric) => {
|
|
415
|
-
const node = nodes.find(nd => nd.id === metric.id);
|
|
411
|
+
const node = nodes.find((nd) => nd.id === metric.id);
|
|
416
412
|
|
|
417
413
|
return node && (!someNonWorkerRoles || node.isWorker);
|
|
418
414
|
});
|
|
@@ -434,7 +430,7 @@ export default class MgmtCluster extends HybridModel {
|
|
|
434
430
|
}
|
|
435
431
|
|
|
436
432
|
get nodes() {
|
|
437
|
-
return this.$getters['all'](MANAGEMENT.NODE).filter(node => node.id.startsWith(this.id));
|
|
433
|
+
return this.$getters['all'](MANAGEMENT.NODE).filter((node) => node.id.startsWith(this.id));
|
|
438
434
|
}
|
|
439
435
|
|
|
440
436
|
get provClusterId() {
|
|
@@ -447,6 +443,6 @@ export default class MgmtCluster extends HybridModel {
|
|
|
447
443
|
const from = `${ verb }Type`;
|
|
448
444
|
const id = `${ verb }Id`;
|
|
449
445
|
|
|
450
|
-
return this.metadata.relationships.find(r => r[from] === CAPI.RANCHER_CLUSTER)?.[id];
|
|
446
|
+
return this.metadata.relationships.find((r) => r[from] === CAPI.RANCHER_CLUSTER)?.[id];
|
|
451
447
|
}
|
|
452
448
|
}
|
|
@@ -56,15 +56,15 @@ export default class GlobalRole extends SteveDescriptionModel {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
get allResources() {
|
|
59
|
-
return this.$getters['all'](SCHEMA).filter(r => r.attributes?.kind);
|
|
59
|
+
return this.$getters['all'](SCHEMA).filter((r) => r.attributes?.kind);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
get globalResources() {
|
|
63
|
-
return this.allResources.filter(r => r.attributes.group.includes(CATTLE_API_GROUP));
|
|
63
|
+
return this.allResources.filter((r) => r.attributes.group.includes(CATTLE_API_GROUP));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
get resources() {
|
|
67
|
-
return uniq(this.globalResources.map(r => r.attributes?.resource)).sort();
|
|
67
|
+
return uniq(this.globalResources.map((r) => r.attributes?.resource)).sort();
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
get listLocation() {
|
|
@@ -117,7 +117,7 @@ export default class GlobalRole extends SteveDescriptionModel {
|
|
|
117
117
|
get canCreate() {
|
|
118
118
|
const schema = this.$getters['schemaFor'](this.type);
|
|
119
119
|
|
|
120
|
-
return schema?.resourceMethods.find(verb => CREATE_VERBS.has(verb));
|
|
120
|
+
return schema?.resourceMethods.find((verb) => CREATE_VERBS.has(verb));
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
goToClone(moreQuery = {}) {
|
|
@@ -114,7 +114,7 @@ export default class MgmtNode extends HybridModel {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
get provisioningCluster() {
|
|
117
|
-
return this.$getters['all'](CAPI.RANCHER_CLUSTER).find(c => c.mgmtClusterId === this.mgmtClusterId);
|
|
117
|
+
return this.$getters['all'](CAPI.RANCHER_CLUSTER).find((c) => c.mgmtClusterId === this.mgmtClusterId);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
get doneOverride() {
|
|
@@ -148,7 +148,7 @@ export default class MgmtNode extends HybridModel {
|
|
|
148
148
|
|
|
149
149
|
get externalIp() {
|
|
150
150
|
const addresses = this.status?.addresses || [];
|
|
151
|
-
const statusAddress = findLast(addresses, address => address.type === 'ExternalIP')?.address;
|
|
151
|
+
const statusAddress = findLast(addresses, (address) => address.type === 'ExternalIP')?.address;
|
|
152
152
|
|
|
153
153
|
if (statusAddress) {
|
|
154
154
|
return statusAddress;
|
|
@@ -31,7 +31,7 @@ export default class MgmtNodePool extends HybridModel {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
get provisioningCluster() {
|
|
34
|
-
return this.$getters['all'](CAPI.RANCHER_CLUSTER).find(c => c.name === this.spec.clusterName);
|
|
34
|
+
return this.$getters['all'](CAPI.RANCHER_CLUSTER).find((c) => c.name === this.spec.clusterName);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
get doneOverride() {
|
|
@@ -71,7 +71,7 @@ export default class MgmtNodePool extends HybridModel {
|
|
|
71
71
|
get nodes() {
|
|
72
72
|
const nodePoolName = this.id.replace('/', ':');
|
|
73
73
|
|
|
74
|
-
return this.$getters['all'](MANAGEMENT.NODE).filter(node => node.spec.nodePoolName === nodePoolName);
|
|
74
|
+
return this.$getters['all'](MANAGEMENT.NODE).filter((node) => node.spec.nodePoolName === nodePoolName);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
get nodeSummary() {
|
|
@@ -142,7 +142,7 @@ export default class MgmtNodePool extends HybridModel {
|
|
|
142
142
|
value: this.ready,
|
|
143
143
|
sort: 4,
|
|
144
144
|
},
|
|
145
|
-
].filter(x => x.value > 0);
|
|
145
|
+
].filter((x) => x.value > 0);
|
|
146
146
|
|
|
147
147
|
return sortBy(out, 'sort:desc');
|
|
148
148
|
}
|
|
@@ -79,8 +79,8 @@ export default class NodeTemplate extends HybridModel {
|
|
|
79
79
|
const allKeys = Object.keys(this);
|
|
80
80
|
|
|
81
81
|
const configKey = allKeys
|
|
82
|
-
.filter(k => this[k] !== null)
|
|
83
|
-
.find(k => k.endsWith('Config'));
|
|
82
|
+
.filter((k) => this[k] !== null)
|
|
83
|
+
.find((k) => k.endsWith('Config'));
|
|
84
84
|
|
|
85
85
|
if ( configKey ) {
|
|
86
86
|
return configKey.replace(/config$/i, '');
|
|
@@ -101,7 +101,7 @@ export default class NodeTemplate extends HybridModel {
|
|
|
101
101
|
|
|
102
102
|
get providerLocation() {
|
|
103
103
|
if (this.provider) {
|
|
104
|
-
const config = CONFIG_KEYS.find(k => k.driver === this.provider);
|
|
104
|
+
const config = CONFIG_KEYS.find((k) => k.driver === this.provider);
|
|
105
105
|
|
|
106
106
|
if (config?.location) {
|
|
107
107
|
if (config.location.getDisplayProperty) {
|
|
@@ -120,7 +120,7 @@ export default class NodeTemplate extends HybridModel {
|
|
|
120
120
|
|
|
121
121
|
get providerSize() {
|
|
122
122
|
if (this.provider) {
|
|
123
|
-
const config = CONFIG_KEYS.find(k => k.driver === this.provider);
|
|
123
|
+
const config = CONFIG_KEYS.find((k) => k.driver === this.provider);
|
|
124
124
|
|
|
125
125
|
if (config?.size) {
|
|
126
126
|
if (config.size.getDisplayProperty) {
|
|
@@ -30,7 +30,7 @@ function clearUnusedResourceQuotas(spec, types) {
|
|
|
30
30
|
spec[type].usedLimit = null;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
if ( spec[type] && !isEmpty(spec[type]) && Object.keys(spec[type]).every( k => spec[type][k] === null ) ) {
|
|
33
|
+
if ( spec[type] && !isEmpty(spec[type]) && Object.keys(spec[type]).every( (k) => spec[type][k] === null ) ) {
|
|
34
34
|
spec[type] = null;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -205,7 +205,7 @@ export default class Project extends HybridModel {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
get canEditYaml() {
|
|
208
|
-
return this.schema?.resourceMethods?.find(x => x === 'blocked-PUT') ? false : super.canUpdate;
|
|
208
|
+
return this.schema?.resourceMethods?.find((x) => x === 'blocked-PUT') ? false : super.canUpdate;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
get confirmRemove() {
|
|
@@ -165,7 +165,7 @@ export default class RoleTemplate extends SteveDescriptionModel {
|
|
|
165
165
|
get canCreate() {
|
|
166
166
|
const schema = this.$getters['schemaFor'](this.type);
|
|
167
167
|
|
|
168
|
-
return schema?.resourceMethods.find(verb => CREATE_VERBS.has(verb));
|
|
168
|
+
return schema?.resourceMethods.find((verb) => CREATE_VERBS.has(verb));
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
goToClone(moreQuery = {}) {
|
|
@@ -21,7 +21,7 @@ export default class Setting extends HybridModel {
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Change the label on the first action (edit)
|
|
24
|
-
const editAction = out.find(action => action.action === 'goToEdit');
|
|
24
|
+
const editAction = out.find((action) => action.action === 'goToEdit');
|
|
25
25
|
|
|
26
26
|
if (editAction) {
|
|
27
27
|
editAction.label = this.t('advancedSettings.edit.label');
|
|
@@ -33,13 +33,13 @@ export default class User extends HybridModel {
|
|
|
33
33
|
get isCurrentUser() {
|
|
34
34
|
const currentPrincipal = this.$rootGetters['auth/principalId'];
|
|
35
35
|
|
|
36
|
-
return !!(this.principalIds || []).find(p => p === currentPrincipal);
|
|
36
|
+
return !!(this.principalIds || []).find((p) => p === currentPrincipal);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
get principals() {
|
|
40
40
|
return this.principalIds
|
|
41
|
-
.map(id => this.$rootGetters['rancher/byId'](NORMAN.PRINCIPAL, id))
|
|
42
|
-
.filter(p => p);
|
|
41
|
+
.map((id) => this.$rootGetters['rancher/byId'](NORMAN.PRINCIPAL, id))
|
|
42
|
+
.filter((p) => p);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
get nameDisplay() {
|
|
@@ -146,7 +146,7 @@ export default class User extends HybridModel {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
async activateBulk(items) {
|
|
149
|
-
await Promise.all(items.map(item => item.setEnabled(true)));
|
|
149
|
+
await Promise.all(items.map((item) => item.setEnabled(true)));
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
async deactivate() {
|
|
@@ -154,7 +154,7 @@ export default class User extends HybridModel {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
async deactivateBulk(items) {
|
|
157
|
-
await Promise.all(items.map(item => item.setEnabled(false)));
|
|
157
|
+
await Promise.all(items.map((item) => item.setEnabled(false)));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
async refreshGroupMembership() {
|
|
@@ -61,7 +61,7 @@ export default class Receiver extends SteveModel {
|
|
|
61
61
|
|
|
62
62
|
remove() {
|
|
63
63
|
return this.updateReceivers((currentReceivers) => {
|
|
64
|
-
return currentReceivers.filter(r => r.name !== this.spec?.name);
|
|
64
|
+
return currentReceivers.filter((r) => r.name !== this.spec?.name);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -73,7 +73,7 @@ export default class Receiver extends SteveModel {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
await this.updateReceivers((currentReceivers) => {
|
|
76
|
-
const existingReceiver = currentReceivers.find(r => r.name === this.spec?.name);
|
|
76
|
+
const existingReceiver = currentReceivers.find((r) => r.name === this.spec?.name);
|
|
77
77
|
|
|
78
78
|
if (existingReceiver) {
|
|
79
79
|
Object.assign(existingReceiver, this.spec);
|
|
@@ -129,18 +129,18 @@ export default class Receiver extends SteveModel {
|
|
|
129
129
|
|
|
130
130
|
get receiverTypes() {
|
|
131
131
|
const types = RECEIVERS_TYPES
|
|
132
|
-
.filter(type => type.name !== 'custom' && this.spec[type.key]?.length > 0)
|
|
133
|
-
.map(type => this.t(type.label));
|
|
132
|
+
.filter((type) => type.name !== 'custom' && this.spec[type.key]?.length > 0)
|
|
133
|
+
.map((type) => this.t(type.label));
|
|
134
134
|
|
|
135
|
-
const expectedKeys = RECEIVERS_TYPES.map(type => type.key).filter(key => key !== 'custom');
|
|
135
|
+
const expectedKeys = RECEIVERS_TYPES.map((type) => type.key).filter((key) => key !== 'custom');
|
|
136
136
|
|
|
137
137
|
expectedKeys.push('name');
|
|
138
138
|
|
|
139
139
|
const customKeys = Object.keys(this.spec)
|
|
140
|
-
.filter(key => !expectedKeys.includes(key));
|
|
140
|
+
.filter((key) => !expectedKeys.includes(key));
|
|
141
141
|
|
|
142
142
|
if (customKeys.length > 0) {
|
|
143
|
-
const customLabel = this.t(RECEIVERS_TYPES.find(type => type.name === 'custom').label);
|
|
143
|
+
const customLabel = this.t(RECEIVERS_TYPES.find((type) => type.name === 'custom').label);
|
|
144
144
|
|
|
145
145
|
types.push(customLabel);
|
|
146
146
|
}
|
|
@@ -149,7 +149,7 @@ export default class Receiver extends SteveModel {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
get updateReceivers() {
|
|
152
|
-
return fn => updateConfig(this.$dispatch, 'receivers', this.type, fn);
|
|
152
|
+
return (fn) => updateConfig(this.$dispatch, 'receivers', this.type, fn);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
saveYaml(yaml) {
|
|
@@ -182,7 +182,7 @@ export default class Receiver extends SteveModel {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
get hasDependentRoutes() {
|
|
185
|
-
return !!this.routes.find(route => route.spec.receiver === this.id);
|
|
185
|
+
return !!this.routes.find((route) => route.spec.receiver === this.id);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
get preventDeletionMessage() {
|
package/models/namespace.js
CHANGED
|
@@ -105,7 +105,7 @@ export default class Namespace extends SteveModel {
|
|
|
105
105
|
// These are namespaces that are created by rancher to serve purposes in the background but the user shouldn't have
|
|
106
106
|
// to worry themselves about them.
|
|
107
107
|
get isObscure() {
|
|
108
|
-
return OBSCURE_NAMESPACE_PREFIX.some(prefix => this.metadata.name.startsWith(prefix)) && this.isSystem;
|
|
108
|
+
return OBSCURE_NAMESPACE_PREFIX.some((prefix) => this.metadata.name.startsWith(prefix)) && this.isSystem;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
get projectId() {
|
|
@@ -7,7 +7,7 @@ import SteveModel from '@shell/plugins/steve/steve-class';
|
|
|
7
7
|
function tlsHosts(spec) {
|
|
8
8
|
const tls = spec.tls || [];
|
|
9
9
|
|
|
10
|
-
return tls.flatMap(tls => tls.hosts || []);
|
|
10
|
+
return tls.flatMap((tls) => tls.hosts || []);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function isTlsHost(spec, host) {
|
|
@@ -33,7 +33,7 @@ export default class Ingress extends SteveModel {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
get isTlsHost() {
|
|
36
|
-
return host => isTlsHost(this.spec, host);
|
|
36
|
+
return (host) => isTlsHost(this.spec, host);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
targetTo(workloads, serviceName) {
|
|
@@ -45,7 +45,7 @@ export default class Ingress extends SteveModel {
|
|
|
45
45
|
const id = `${ this.namespace }/${ serviceName }`;
|
|
46
46
|
|
|
47
47
|
if ( isTargetsWorkload ) {
|
|
48
|
-
const workload = workloads.find(w => w.id === (id));
|
|
48
|
+
const workload = workloads.find((w) => w.id === (id));
|
|
49
49
|
|
|
50
50
|
return workload?.detailLocation || '';
|
|
51
51
|
} else {
|
|
@@ -66,7 +66,7 @@ export default class Ingress extends SteveModel {
|
|
|
66
66
|
return rules.flatMap((rule) => {
|
|
67
67
|
const paths = rule?.http?.paths || [];
|
|
68
68
|
|
|
69
|
-
return paths.map(path => this.createPathForListPage(workloads, rule, path, certificates));
|
|
69
|
+
return paths.map((path) => this.createPathForListPage(workloads, rule, path, certificates));
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -120,7 +120,7 @@ export default class Ingress extends SteveModel {
|
|
|
120
120
|
return hosts.includes(rule.host);
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
return matchingCerts.map(cert => this.certLink(cert, certificates));
|
|
123
|
+
return matchingCerts.map((cert) => this.certLink(cert, certificates));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
targetLink(workloads, serviceName) {
|
|
@@ -109,7 +109,7 @@ export const VOLUME_PLUGINS = [
|
|
|
109
109
|
|
|
110
110
|
export const LONGHORN_DRIVER = 'driver.longhorn.io';
|
|
111
111
|
|
|
112
|
-
export const LONGHORN_PLUGIN = VOLUME_PLUGINS.find(plugin => plugin.value === 'longhorn');
|
|
112
|
+
export const LONGHORN_PLUGIN = VOLUME_PLUGINS.find((plugin) => plugin.value === 'longhorn');
|
|
113
113
|
|
|
114
114
|
export default class PV extends SteveModel {
|
|
115
115
|
// plugin display value table
|
|
@@ -120,7 +120,7 @@ export default class PV extends SteveModel {
|
|
|
120
120
|
if (csiDriver) {
|
|
121
121
|
return this.$rootGetters['i18n/withFallback'](`persistentVolume.csi.drivers.${ csiDriver.replaceAll('.', '-') }`, null, fallback);
|
|
122
122
|
}
|
|
123
|
-
const pluginDef = VOLUME_PLUGINS.find(plugin => this.spec[plugin.value]);
|
|
123
|
+
const pluginDef = VOLUME_PLUGINS.find((plugin) => this.spec[plugin.value]);
|
|
124
124
|
|
|
125
125
|
if (pluginDef) {
|
|
126
126
|
return this.t(pluginDef.labelKey);
|
|
@@ -141,7 +141,7 @@ export default class PV extends SteveModel {
|
|
|
141
141
|
|
|
142
142
|
const allClaims = this.$rootGetters['cluster/all'](PVC);
|
|
143
143
|
|
|
144
|
-
return allClaims.find(claim => claim.spec.volumeName === this.name);
|
|
144
|
+
return allClaims.find((claim) => claim.spec.volumeName === this.name);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
get claimName() {
|
package/models/pod.js
CHANGED
|
@@ -57,7 +57,7 @@ export default class Pod extends WorkloadService {
|
|
|
57
57
|
|
|
58
58
|
get defaultContainerName() {
|
|
59
59
|
const containers = this.spec.containers;
|
|
60
|
-
const desirable = containers.filter(c => c.name !== 'istio-proxy');
|
|
60
|
+
const desirable = containers.filter((c) => c.name !== 'istio-proxy');
|
|
61
61
|
|
|
62
62
|
if ( desirable.length ) {
|
|
63
63
|
return desirable[0].name;
|
|
@@ -111,7 +111,7 @@ export default class Pod extends WorkloadService {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
get imageNames() {
|
|
114
|
-
return this.spec.containers.map(container => shortenedImage(container.image));
|
|
114
|
+
return this.spec.containers.map((container) => shortenedImage(container.image));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
get workloadRef() {
|
|
@@ -188,7 +188,7 @@ export default class Pod extends WorkloadService {
|
|
|
188
188
|
processSaveResponse(res) {
|
|
189
189
|
if (res._headers && res._headers.warning) {
|
|
190
190
|
const warnings = res._headers.warning.split('299') || [];
|
|
191
|
-
const hasPsaWarnings = warnings.filter(warning => warning.includes('violate PodSecurity')).length;
|
|
191
|
+
const hasPsaWarnings = warnings.filter((warning) => warning.includes('violate PodSecurity')).length;
|
|
192
192
|
|
|
193
193
|
if (hasPsaWarnings) {
|
|
194
194
|
this.$dispatch('growl/warning', {
|