@rancher/shell 0.2.3 → 0.2.5

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.
Files changed (610) hide show
  1. package/assets/brand/csp/dark/rancher-logo.svg +148 -0
  2. package/assets/brand/csp/favicon.png +0 -0
  3. package/assets/brand/csp/metadata.json +3 -0
  4. package/assets/brand/csp/rancher-logo.svg +130 -0
  5. package/assets/styles/app.scss +2 -1
  6. package/assets/styles/global/_layout.scss +53 -0
  7. package/assets/styles/themes/_csp.scss +25 -0
  8. package/assets/styles/themes/_dark.scss +2 -1
  9. package/assets/styles/themes/_light.scss +2 -1
  10. package/assets/styles/vendor/vue-select.scss +0 -5
  11. package/assets/translations/en-us.yaml +45 -28
  12. package/chart/istio.vue +81 -22
  13. package/chart/logging/index.vue +20 -6
  14. package/chart/monitoring/alerting/index.vue +4 -1
  15. package/chart/monitoring/index.vue +41 -9
  16. package/chart/monitoring/prometheus/index.vue +33 -29
  17. package/chart/monitoring/steps/uninstall-v1.vue +8 -4
  18. package/chart/rancher-backup/S3.vue +43 -8
  19. package/chart/rancher-backup/index.vue +23 -5
  20. package/chart/rancher-gatekeeper.vue +10 -2
  21. package/cloud-credential/aws.vue +8 -2
  22. package/cloud-credential/digitalocean.vue +4 -1
  23. package/cloud-credential/gcp.vue +9 -2
  24. package/cloud-credential/generic.vue +6 -1
  25. package/cloud-credential/harvester.vue +4 -1
  26. package/cloud-credential/linode.vue +4 -1
  27. package/cloud-credential/s3.vue +4 -1
  28. package/components/.DS_Store +0 -0
  29. package/components/ActionDropdown.vue +4 -1
  30. package/components/ActionMenu.vue +17 -4
  31. package/components/AdvancedSection.vue +6 -1
  32. package/components/Alert.vue +5 -1
  33. package/components/AssignTo.vue +24 -6
  34. package/components/AsyncButton.vue +10 -0
  35. package/components/AwsComplianceBanner.vue +4 -1
  36. package/components/BackLink.vue +5 -1
  37. package/components/BannerGraphic.vue +16 -4
  38. package/components/BrandImage.vue +4 -1
  39. package/components/ButtonDropdown.vue +10 -3
  40. package/components/ButtonGroup.vue +17 -4
  41. package/components/Carousel.vue +26 -8
  42. package/components/ChartHeading.vue +5 -1
  43. package/components/ChartReadme.vue +17 -5
  44. package/components/ClusterBadge.vue +5 -1
  45. package/components/ClusterProviderIcon.vue +15 -3
  46. package/components/Collapse.vue +17 -5
  47. package/components/CollapsibleCard.vue +10 -4
  48. package/components/CommunityLinks.vue +32 -9
  49. package/components/CompoundStatusBadge.vue +4 -1
  50. package/components/ContainerResourceLimit.vue +12 -3
  51. package/components/CopyToClipboardText.vue +10 -2
  52. package/components/CountBox.vue +13 -3
  53. package/components/CountGauge.vue +28 -5
  54. package/components/CruResource.vue +88 -23
  55. package/components/CruResourceFooter.vue +1 -1
  56. package/components/DashboardMetrics.vue +12 -3
  57. package/components/DashboardOptions.vue +14 -3
  58. package/components/DetailText.vue +28 -6
  59. package/components/DetailTop.vue +57 -12
  60. package/components/Dialog.vue +17 -5
  61. package/components/EmberPage.vue +23 -5
  62. package/components/EmberPageView.vue +4 -1
  63. package/components/EtcdInfoBanner.vue +5 -1
  64. package/components/ExplorerMembers.vue +7 -9
  65. package/components/ExplorerProjectsNamespaces.vue +42 -10
  66. package/components/FileDiff.vue +5 -1
  67. package/components/FixedBanner.vue +27 -7
  68. package/components/Flag.vue +8 -2
  69. package/components/Glance.vue +11 -2
  70. package/components/GlobalRoleBindings.vue +24 -5
  71. package/components/GradientBox.vue +5 -1
  72. package/components/GrafanaDashboard.vue +19 -5
  73. package/components/GrowlManager.vue +27 -6
  74. package/components/HardwareResourceGauge.vue +8 -2
  75. package/components/HarvesterServiceAddOnConfig.vue +4 -1
  76. package/components/IconMessage.vue +8 -2
  77. package/components/Import.vue +37 -8
  78. package/components/IndentedPanel.vue +4 -1
  79. package/components/InfoBox.vue +8 -2
  80. package/components/KeyValueView.vue +29 -7
  81. package/components/LandingPagePreference.vue +13 -2
  82. package/components/LazyImage.vue +5 -1
  83. package/components/Loading.vue +13 -3
  84. package/components/LocaleSelector.vue +10 -2
  85. package/components/Markdown.vue +5 -1
  86. package/components/MessageLink.vue +19 -4
  87. package/components/ModalWithCard.vue +24 -8
  88. package/components/MoveModal.vue +35 -7
  89. package/components/PercentageBar.vue +9 -2
  90. package/components/ProgressBarMulti.vue +4 -1
  91. package/components/PromptChangePassword.vue +17 -4
  92. package/components/PromptModal.vue +7 -1
  93. package/components/PromptRemove.vue +31 -10
  94. package/components/PromptRestore.vue +35 -10
  95. package/components/Questions/Array.vue +4 -1
  96. package/components/Questions/Boolean.vue +4 -1
  97. package/components/Questions/Enum.vue +4 -1
  98. package/components/Questions/Float.vue +4 -1
  99. package/components/Questions/Int.vue +4 -1
  100. package/components/Questions/QuestionMap.vue +4 -1
  101. package/components/Questions/Reference.vue +8 -2
  102. package/components/Questions/String.vue +4 -1
  103. package/components/Questions/index.vue +10 -2
  104. package/components/Random.vue +11 -3
  105. package/components/RelatedResources.vue +8 -2
  106. package/components/RelatedWorkloadsTable.vue +5 -1
  107. package/components/ResourceCancelModal.vue +15 -3
  108. package/components/ResourceDetail/Masthead.vue +31 -7
  109. package/components/ResourceList/Masthead.vue +6 -4
  110. package/components/ResourceList/ResourceLoadingIndicator.vue +8 -2
  111. package/components/ResourceList/index.vue +11 -8
  112. package/components/ResourceSummary.vue +13 -3
  113. package/components/ResourceTable.vue +59 -11
  114. package/components/ResourceYaml.vue +8 -2
  115. package/components/RoleBindings.vue +20 -3
  116. package/components/SelectIconGrid.vue +29 -7
  117. package/components/SimpleBox.vue +14 -3
  118. package/components/SingleClusterInfo.vue +40 -9
  119. package/components/SortableTable/THead.vue +29 -8
  120. package/components/SortableTable/filtering.js +7 -0
  121. package/components/SortableTable/index.vue +204 -45
  122. package/components/Tabbed/Tab.vue +9 -2
  123. package/components/Tabbed/index.vue +32 -7
  124. package/components/TableSparkLine.vue +4 -1
  125. package/components/Tip.vue +4 -1
  126. package/components/Wizard.vue +105 -23
  127. package/components/YamlEditor.vue +5 -1
  128. package/components/__tests__/.DS_Store +0 -0
  129. package/components/auth/AllowedPrincipals.vue +21 -5
  130. package/components/auth/AuthBanner.vue +21 -5
  131. package/components/auth/AzureWarning.vue +5 -1
  132. package/components/auth/Principal.vue +37 -9
  133. package/components/auth/RoleDetailEdit.vue +34 -10
  134. package/components/auth/SelectPrincipal.vue +20 -3
  135. package/components/auth/login/github.vue +5 -1
  136. package/components/auth/login/ldap.vue +10 -2
  137. package/components/auth/login/oauth.vue +6 -1
  138. package/components/auth/login/oidc.vue +6 -1
  139. package/components/auth/login/saml.vue +6 -1
  140. package/components/fleet/FleetBundles.vue +9 -2
  141. package/components/fleet/FleetClusters.vue +29 -6
  142. package/components/fleet/FleetIntro.vue +5 -2
  143. package/components/fleet/FleetRepos.vue +23 -4
  144. package/components/fleet/FleetStatus.vue +16 -4
  145. package/components/fleet/FleetSummary.vue +10 -2
  146. package/components/fleet/ForceDirectedTreeChart/index.vue +5 -3
  147. package/components/fleet/ResourcesSummary.vue +5 -1
  148. package/components/form/ArrayList.vue +31 -8
  149. package/components/form/ArrayListGrouped.vue +9 -3
  150. package/components/form/ArrayListSelect.vue +6 -1
  151. package/components/form/BannerSettings.vue +8 -2
  152. package/components/form/ChangePassword.vue +50 -10
  153. package/components/form/ColorInput.vue +28 -5
  154. package/components/form/Command.vue +5 -2
  155. package/components/form/EnvVars.vue +4 -1
  156. package/components/form/Error.vue +10 -2
  157. package/components/form/FileImageSelector.vue +1 -1
  158. package/components/form/FileSelector.vue +8 -2
  159. package/components/form/Footer.vue +14 -4
  160. package/components/form/GithubPicker.vue +16 -9
  161. package/components/form/HookOption.vue +5 -1
  162. package/components/form/InputWithSelect.vue +1 -1
  163. package/components/form/KeyValue.vue +81 -19
  164. package/components/form/LabeledSelect.vue +55 -8
  165. package/components/form/Labels.vue +1 -1
  166. package/components/form/LifecycleHooks.vue +10 -2
  167. package/components/form/MatchExpressions.vue +11 -3
  168. package/components/form/Members/ClusterPermissionsEditor.vue +21 -4
  169. package/components/form/Members/MembershipEditor.vue +11 -2
  170. package/components/form/NameNsDescription.vue +16 -10
  171. package/components/form/Networking.vue +3 -3
  172. package/components/form/NodeAffinity.vue +4 -1
  173. package/components/form/NodeScheduling.vue +5 -1
  174. package/components/form/Password.vue +32 -7
  175. package/components/form/PlusMinus.vue +18 -3
  176. package/components/form/PodAffinity.vue +12 -5
  177. package/components/form/PodSecurity.vue +20 -4
  178. package/components/form/Ports.vue +37 -11
  179. package/components/form/Probe.vue +18 -4
  180. package/components/form/ProjectMemberEditor.vue +24 -4
  181. package/components/form/ResourceQuota/NamespaceRow.vue +4 -1
  182. package/components/form/ResourceQuota/Project.vue +7 -1
  183. package/components/form/ResourceQuota/ProjectRow.vue +11 -2
  184. package/components/form/ResourceSelector.vue +145 -0
  185. package/components/form/ResourceTabs/index.vue +38 -7
  186. package/components/form/RuleSelector.vue +15 -4
  187. package/components/form/SecretSelector.vue +4 -1
  188. package/components/form/Security.vue +2 -2
  189. package/components/form/Select.vue +8 -3
  190. package/components/form/SelectOrCreateAuthSecret.vue +43 -9
  191. package/components/form/ServiceNameSelect.vue +2 -2
  192. package/components/form/ServicePorts.vue +58 -17
  193. package/components/form/Tolerations.vue +34 -7
  194. package/components/form/ValueFromResource.vue +10 -2
  195. package/components/form/WorkloadPorts.vue +36 -8
  196. package/components/form/__tests__/MatchExpressions.test.ts +1 -2
  197. package/components/formatter/AppSummaryGraph.vue +24 -6
  198. package/components/formatter/BadgeStateFormatter.vue +4 -1
  199. package/components/formatter/Checked.vue +4 -1
  200. package/components/formatter/ClusterLink.vue +4 -1
  201. package/components/formatter/Date.vue +1 -1
  202. package/components/formatter/DelayedValue.vue +4 -1
  203. package/components/formatter/Endpoints.vue +5 -1
  204. package/components/formatter/ExternalLink.vue +5 -1
  205. package/components/formatter/FleetSummaryGraph.vue +20 -5
  206. package/components/formatter/IconText.vue +4 -1
  207. package/components/formatter/ImagePercentageBar.vue +5 -1
  208. package/components/formatter/IngressFullPath.vue +6 -1
  209. package/components/formatter/IngressTarget.vue +22 -5
  210. package/components/formatter/InternalExternalIP.vue +12 -2
  211. package/components/formatter/KeyValue.vue +5 -1
  212. package/components/formatter/Link.vue +30 -6
  213. package/components/formatter/LinkDetail.vue +4 -1
  214. package/components/formatter/LinkDetailImage.vue +1 -1
  215. package/components/formatter/ListLink.vue +10 -2
  216. package/components/formatter/ListLinkDetail.vue +6 -1
  217. package/components/formatter/LiveDate.vue +13 -3
  218. package/components/formatter/LiveExpiryDate.vue +18 -4
  219. package/components/formatter/LivePodRestarts.vue +4 -1
  220. package/components/formatter/MachineSummaryGraph.vue +25 -6
  221. package/components/formatter/Number.vue +4 -1
  222. package/components/formatter/PodsUsage.vue +4 -1
  223. package/components/formatter/Principal.vue +5 -1
  224. package/components/formatter/PrincipalGroupBindings.vue +4 -1
  225. package/components/formatter/ReceiverIcons.vue +9 -3
  226. package/components/formatter/RunBookLink.vue +6 -1
  227. package/components/formatter/Scale.vue +45 -10
  228. package/components/formatter/ScanResult.vue +4 -1
  229. package/components/formatter/SecretData.vue +5 -2
  230. package/components/formatter/SecretType.vue +4 -1
  231. package/components/formatter/ServiceTargets.vue +16 -4
  232. package/components/formatter/Shortened.vue +8 -2
  233. package/components/formatter/VirtualServiceGateways.vue +8 -2
  234. package/components/formatter/Weight.vue +19 -4
  235. package/components/formatter/WorkloadDetailEndpoints.vue +5 -1
  236. package/components/formatter/WorkloadHealthScale.vue +42 -8
  237. package/components/graph/AspectPreserver.vue +14 -3
  238. package/components/graph/Bar.vue +14 -3
  239. package/components/graph/Circle.vue +36 -7
  240. package/components/graph/HalfCircle.vue +6 -1
  241. package/components/graph/LinePlot.vue +3 -6
  242. package/components/graph/ProgressArc.vue +8 -2
  243. package/components/nav/GlobalLoading.vue +4 -1
  244. package/components/nav/Group.vue +39 -9
  245. package/components/nav/Header.vue +154 -37
  246. package/components/nav/Jump.vue +6 -2
  247. package/components/nav/NamespaceFilter.vue +112 -24
  248. package/components/nav/TopLevelMenu.vue +108 -24
  249. package/components/nav/Type.vue +18 -4
  250. package/components/nav/WindowManager/ChartReadme.vue +4 -1
  251. package/components/nav/WindowManager/ContainerLogs.vue +92 -19
  252. package/components/nav/WindowManager/ContainerShell.vue +26 -6
  253. package/components/nav/WindowManager/Window.vue +8 -2
  254. package/components/nav/WindowManager/index.vue +17 -4
  255. package/config/labels-annotations.js +5 -42
  256. package/config/private-label.js +5 -2
  257. package/config/product/explorer.js +8 -2
  258. package/config/roles.ts +2 -1
  259. package/config/{settings.js → settings.ts} +33 -50
  260. package/config/types.js +2 -0
  261. package/content/docs/en-us/getting-started.md +3 -3
  262. package/content/docs/en-us/whats-new.md +9 -123
  263. package/core/plugins.js +11 -8
  264. package/creators/app/{files/.eslintignore → .eslintignore} +0 -0
  265. package/creators/app/{files/.eslintrc.js → .eslintrc.js} +0 -0
  266. package/creators/app/{files/.vscode → .vscode}/settings.json +0 -0
  267. package/creators/app/{files/babel.config.js → babel.config.js} +0 -0
  268. package/creators/app/init +17 -16
  269. package/creators/app/{files/nuxt.config.js → nuxt.config.js} +0 -0
  270. package/creators/app/package.json +1 -7
  271. package/creators/app/{files/tsconfig.json → tsconfig.json} +1 -2
  272. package/creators/pkg/{files/babel.config.js → babel.config.js} +0 -0
  273. package/creators/pkg/{files/index.ts → index.ts} +0 -0
  274. package/creators/pkg/init +1 -1
  275. package/creators/pkg/nuxt.config.js +6 -0
  276. package/creators/pkg/package-lock.json +37 -0
  277. package/creators/pkg/package.json +1 -1
  278. package/creators/pkg/{files/tsconfig.json → tsconfig.json} +12 -13
  279. package/creators/pkg/{files/vue.config.js → vue.config.js} +0 -0
  280. package/detail/autoscaling.horizontalpodautoscaler/index.vue +12 -3
  281. package/detail/catalog.cattle.io.app.vue +41 -8
  282. package/detail/catalog.cattle.io.clusterrepo.vue +4 -1
  283. package/detail/cis.cattle.io.clusterscan.vue +23 -5
  284. package/detail/configmap.vue +18 -4
  285. package/detail/constraints.gatekeeper.sh.constraint.vue +4 -1
  286. package/detail/fleet.cattle.io.cluster.vue +14 -3
  287. package/detail/fleet.cattle.io.clustergroup.vue +9 -2
  288. package/detail/fleet.cattle.io.gitrepo.vue +16 -3
  289. package/detail/harvesterhci.io.management.cluster.vue +5 -1
  290. package/detail/helm.cattle.io.projecthelmchart.vue +49 -13
  291. package/detail/management.cattle.io.fleetworkspace.vue +19 -4
  292. package/detail/management.cattle.io.roletemplate.vue +4 -1
  293. package/detail/management.cattle.io.user.vue +26 -5
  294. package/detail/namespace.vue +6 -4
  295. package/detail/networking.k8s.io.ingress.vue +16 -3
  296. package/detail/node.vue +83 -18
  297. package/detail/pod.vue +27 -5
  298. package/detail/provisioning.cattle.io.cluster.vue +195 -43
  299. package/detail/secret.vue +78 -19
  300. package/detail/service.vue +9 -2
  301. package/detail/workload/index.vue +81 -17
  302. package/dialog/AddClusterMemberDialog.vue +25 -6
  303. package/dialog/AddCustomBadgeDialog.vue +43 -10
  304. package/dialog/AddProjectMemberDialog.vue +27 -7
  305. package/dialog/AddonConfigConfirmationDialog.vue +17 -4
  306. package/dialog/DiagnosticTimingsDialog.vue +27 -6
  307. package/dialog/DrainNode.vue +46 -11
  308. package/dialog/ForceMachineRemoveDialog.vue +35 -8
  309. package/dialog/GenericPrompt.vue +28 -7
  310. package/dialog/RollbackWorkloadDialog.vue +45 -11
  311. package/dialog/RotateCertificatesDialog.vue +31 -6
  312. package/dialog/RotateEncryptionKeyDialog.vue +41 -10
  313. package/dialog/SaveAsRKETemplateDialog.vue +31 -7
  314. package/dialog/ScaleMachineDownDialog.vue +13 -3
  315. package/edit/__tests__/management.cattle.io.setting.test.ts +87 -0
  316. package/edit/auth/azuread.vue +20 -6
  317. package/edit/auth/github.vue +52 -11
  318. package/edit/auth/googleoauth.vue +81 -17
  319. package/edit/auth/ldap/config.vue +164 -31
  320. package/edit/auth/ldap/index.vue +29 -7
  321. package/edit/auth/oidc.vue +36 -8
  322. package/edit/auth/saml.vue +57 -12
  323. package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +9 -2
  324. package/edit/autoscaling.horizontalpodautoscaler/index.vue +23 -6
  325. package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +8 -2
  326. package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +16 -4
  327. package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +13 -3
  328. package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +9 -2
  329. package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +6 -1
  330. package/edit/catalog.cattle.io.clusterrepo.vue +15 -3
  331. package/edit/cis.cattle.io.clusterscan.vue +53 -11
  332. package/edit/cis.cattle.io.clusterscanbenchmark.vue +15 -3
  333. package/edit/cis.cattle.io.clusterscanprofile.vue +13 -3
  334. package/edit/configmap.vue +5 -1
  335. package/edit/constraints.gatekeeper.sh.constraint/index.vue +40 -9
  336. package/edit/fleet.cattle.io.cluster.vue +6 -2
  337. package/edit/fleet.cattle.io.clustergroup.vue +12 -3
  338. package/edit/fleet.cattle.io.gitrepo.vue +25 -5
  339. package/edit/group.principal.vue +6 -1
  340. package/edit/harvesterhci.io.management.cluster.vue +22 -5
  341. package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +11 -2
  342. package/edit/logging-flow/Match.vue +2 -2
  343. package/edit/logging-flow/index.vue +67 -14
  344. package/edit/logging.banzaicloud.io.output/index.vue +37 -8
  345. package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +7 -2
  346. package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -4
  347. package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +24 -4
  348. package/edit/logging.banzaicloud.io.output/providers/datadog.vue +20 -5
  349. package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +21 -5
  350. package/edit/logging.banzaicloud.io.output/providers/file.vue +6 -1
  351. package/edit/logging.banzaicloud.io.output/providers/forward.vue +8 -3
  352. package/edit/logging.banzaicloud.io.output/providers/gcs.vue +25 -5
  353. package/edit/logging.banzaicloud.io.output/providers/gelf.vue +46 -8
  354. package/edit/logging.banzaicloud.io.output/providers/kafka.vue +26 -6
  355. package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +7 -2
  356. package/edit/logging.banzaicloud.io.output/providers/logdna.vue +20 -4
  357. package/edit/logging.banzaicloud.io.output/providers/logz.vue +8 -3
  358. package/edit/logging.banzaicloud.io.output/providers/loki.vue +34 -8
  359. package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +1 -1
  360. package/edit/logging.banzaicloud.io.output/providers/s3.vue +25 -5
  361. package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +33 -7
  362. package/edit/logging.banzaicloud.io.output/providers/syslog.vue +57 -12
  363. package/edit/management.cattle.io.clusterroletemplatebinding.vue +10 -2
  364. package/edit/management.cattle.io.fleetworkspace.vue +17 -4
  365. package/edit/management.cattle.io.project.vue +7 -1
  366. package/edit/management.cattle.io.roletemplate.vue +4 -1
  367. package/edit/management.cattle.io.setting.vue +71 -30
  368. package/edit/management.cattle.io.user.vue +4 -1
  369. package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +24 -6
  370. package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +24 -5
  371. package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +29 -6
  372. package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +12 -3
  373. package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +50 -9
  374. package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +31 -6
  375. package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +29 -6
  376. package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +8 -2
  377. package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +36 -7
  378. package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +24 -6
  379. package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +16 -6
  380. package/edit/monitoring.coreos.com.prometheusrule/index.vue +10 -2
  381. package/edit/monitoring.coreos.com.receiver/auth.vue +36 -7
  382. package/edit/monitoring.coreos.com.receiver/index.vue +53 -11
  383. package/edit/monitoring.coreos.com.receiver/tls.vue +22 -4
  384. package/edit/monitoring.coreos.com.receiver/types/email.vue +48 -8
  385. package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +32 -6
  386. package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +22 -4
  387. package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -1
  388. package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +5 -1
  389. package/edit/monitoring.coreos.com.receiver/types/webhook.vue +31 -6
  390. package/edit/monitoring.coreos.com.route.vue +71 -15
  391. package/edit/namespace.vue +35 -7
  392. package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +12 -3
  393. package/edit/networking.istio.io.destinationrule/index.vue +5 -3
  394. package/edit/networking.k8s.io.ingress/Certificate.vue +10 -2
  395. package/edit/networking.k8s.io.ingress/Certificates.vue +6 -1
  396. package/edit/networking.k8s.io.ingress/DefaultBackend.vue +16 -4
  397. package/edit/networking.k8s.io.ingress/Rule.vue +21 -5
  398. package/edit/networking.k8s.io.ingress/RulePath.vue +27 -6
  399. package/edit/networking.k8s.io.ingress/Rules.vue +7 -1
  400. package/edit/networking.k8s.io.ingress/index.vue +52 -9
  401. package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +20 -4
  402. package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +8 -2
  403. package/edit/networking.k8s.io.networkpolicy/index.vue +36 -8
  404. package/edit/node.vue +13 -3
  405. package/edit/persistentvolume/index.vue +48 -8
  406. package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +19 -3
  407. package/edit/persistentvolume/plugins/azureDisk.vue +20 -3
  408. package/edit/persistentvolume/plugins/azureFile.vue +18 -3
  409. package/edit/persistentvolume/plugins/cephfs.vue +35 -6
  410. package/edit/persistentvolume/plugins/cinder.vue +24 -4
  411. package/edit/persistentvolume/plugins/csi.vue +72 -12
  412. package/edit/persistentvolume/plugins/fc.vue +23 -4
  413. package/edit/persistentvolume/plugins/flexVolume.vue +30 -5
  414. package/edit/persistentvolume/plugins/flocker.vue +12 -2
  415. package/edit/persistentvolume/plugins/gcePersistentDisk.vue +19 -3
  416. package/edit/persistentvolume/plugins/glusterfs.vue +12 -2
  417. package/edit/persistentvolume/plugins/hostPath.vue +12 -2
  418. package/edit/persistentvolume/plugins/iscsi.vue +54 -9
  419. package/edit/persistentvolume/plugins/local.vue +6 -1
  420. package/edit/persistentvolume/plugins/longhorn.vue +13 -2
  421. package/edit/persistentvolume/plugins/nfs.vue +12 -2
  422. package/edit/persistentvolume/plugins/photonPersistentDisk.vue +12 -2
  423. package/edit/persistentvolume/plugins/portworxVolume.vue +12 -2
  424. package/edit/persistentvolume/plugins/quobyte.vue +24 -4
  425. package/edit/persistentvolume/plugins/rbd.vue +47 -8
  426. package/edit/persistentvolume/plugins/scaleIO.vue +54 -9
  427. package/edit/persistentvolume/plugins/storageos.vue +30 -5
  428. package/edit/persistentvolume/plugins/vsphereVolume.vue +24 -4
  429. package/edit/persistentvolumeclaim.vue +69 -15
  430. package/edit/policy.poddisruptionbudget.vue +149 -0
  431. package/edit/provisioning.cattle.io.cluster/ACE.vue +6 -1
  432. package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +4 -1
  433. package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +61 -15
  434. package/edit/provisioning.cattle.io.cluster/DrainOptions.vue +24 -4
  435. package/edit/provisioning.cattle.io.cluster/Labels.vue +4 -1
  436. package/edit/provisioning.cattle.io.cluster/MachinePool.vue +31 -8
  437. package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +16 -3
  438. package/edit/provisioning.cattle.io.cluster/RegistryMirrors.vue +4 -1
  439. package/edit/provisioning.cattle.io.cluster/S3Config.vue +35 -6
  440. package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +21 -5
  441. package/edit/provisioning.cattle.io.cluster/import.vue +23 -5
  442. package/edit/provisioning.cattle.io.cluster/index.vue +9 -0
  443. package/edit/provisioning.cattle.io.cluster/rke2.vue +203 -64
  444. package/edit/resources.cattle.io.backup.vue +42 -8
  445. package/edit/resources.cattle.io.restore.vue +53 -11
  446. package/edit/secret/basic.vue +12 -2
  447. package/edit/secret/index.vue +29 -7
  448. package/edit/secret/registry.vue +22 -4
  449. package/edit/secret/ssh.vue +10 -2
  450. package/edit/secret/tls.vue +10 -2
  451. package/edit/service.vue +12 -3
  452. package/edit/serviceaccount.vue +6 -3
  453. package/edit/storage.k8s.io.storageclass/index.vue +15 -3
  454. package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +6 -1
  455. package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +6 -1
  456. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +20 -3
  457. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +12 -2
  458. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +18 -3
  459. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +13 -2
  460. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +14 -2
  461. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +54 -9
  462. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +42 -7
  463. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +48 -8
  464. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +66 -11
  465. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +48 -8
  466. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +30 -5
  467. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +36 -6
  468. package/edit/token.vue +48 -10
  469. package/edit/workload/Job.vue +20 -5
  470. package/edit/workload/Upgrading.vue +28 -7
  471. package/edit/workload/index.vue +244 -48
  472. package/edit/workload/storage/azureDisk.vue +5 -1
  473. package/edit/workload/storage/azureFile.vue +5 -1
  474. package/edit/workload/storage/csi/driver.longhorn.io.vue +6 -1
  475. package/edit/workload/storage/csi/index.vue +9 -2
  476. package/edit/workload/storage/ephemeralVolume/index.vue +38 -8
  477. package/edit/workload/storage/gcePersistentDisk.vue +10 -2
  478. package/edit/workload/storage/hostPath.vue +18 -3
  479. package/edit/workload/storage/persistentVolumeClaim/index.vue +4 -1
  480. package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +26 -5
  481. package/edit/workload/storage/vsphereVolume.vue +10 -2
  482. package/layouts/blank.vue +1 -1
  483. package/layouts/default.vue +60 -65
  484. package/layouts/error.vue +25 -5
  485. package/layouts/home.vue +17 -4
  486. package/layouts/plain.vue +13 -3
  487. package/layouts/unauthenticated.vue +1 -1
  488. package/list/catalog.cattle.io.app.vue +15 -2
  489. package/list/catalog.cattle.io.clusterrepo.vue +5 -0
  490. package/list/cis.cattle.io.clusterscan.vue +6 -0
  491. package/list/fleet.cattle.io.bundle.vue +14 -2
  492. package/list/fleet.cattle.io.cluster.vue +10 -1
  493. package/list/fleet.cattle.io.clustergroup.vue +14 -2
  494. package/list/fleet.cattle.io.clusterregistrationtoken.vue +11 -3
  495. package/list/fleet.cattle.io.gitrepo.vue +6 -0
  496. package/list/group.principal.vue +11 -1
  497. package/list/harvesterhci.io.management.cluster.vue +25 -6
  498. package/list/helm.cattle.io.projecthelmchart.vue +23 -5
  499. package/list/logging.banzaicloud.io.clusterflow.vue +11 -1
  500. package/list/logging.banzaicloud.io.flow.vue +11 -1
  501. package/list/management.cattle.io.cluster.vue +12 -1
  502. package/list/management.cattle.io.feature.vue +71 -15
  503. package/list/management.cattle.io.setting.vue +44 -10
  504. package/list/management.cattle.io.user.vue +12 -1
  505. package/list/monitoring.coreos.com.alertmanagerconfig.vue +6 -0
  506. package/list/namespace.vue +8 -0
  507. package/list/node.vue +14 -2
  508. package/list/persistentvolume.vue +13 -1
  509. package/list/persistentvolumeclaim.vue +6 -0
  510. package/list/provisioning.cattle.io.cluster.vue +23 -4
  511. package/list/service.vue +6 -0
  512. package/list/ui.cattle.io.navlink.vue +20 -3
  513. package/list/workload.vue +15 -2
  514. package/machine-config/amazonec2.vue +12 -3
  515. package/machine-config/azure.vue +16 -7
  516. package/machine-config/digitalocean.vue +4 -1
  517. package/machine-config/generic.vue +4 -1
  518. package/machine-config/harvester.vue +23 -6
  519. package/machine-config/linode.vue +4 -1
  520. package/machine-config/vmwarevsphere.vue +91 -21
  521. package/mixins/__tests__/create-edit-view.test.ts +19 -0
  522. package/mixins/brand.js +12 -3
  523. package/mixins/form-validation.js +108 -33
  524. package/models/clusterroletemplatebinding.js +2 -5
  525. package/models/management.cattle.io.cluster.js +7 -1
  526. package/models/secret.js +9 -1
  527. package/models/workload.js +3 -3
  528. package/nuxt.config.js +28 -10
  529. package/package.json +2 -2
  530. package/pages/about.vue +41 -9
  531. package/pages/account/index.vue +20 -5
  532. package/pages/auth/login.vue +83 -22
  533. package/pages/auth/logout.vue +1 -1
  534. package/pages/auth/setup.vue +48 -12
  535. package/pages/auth/verify.vue +1 -1
  536. package/pages/c/_cluster/_product/members/index.vue +3 -1
  537. package/pages/c/_cluster/_product/namespaces.vue +4 -1
  538. package/pages/c/_cluster/apps/charts/chart.vue +124 -27
  539. package/pages/c/_cluster/apps/charts/index.vue +35 -8
  540. package/pages/c/_cluster/apps/charts/install.vue +200 -48
  541. package/pages/c/_cluster/auth/config/_id.vue +4 -1
  542. package/pages/c/_cluster/auth/config/index.vue +6 -2
  543. package/pages/c/_cluster/auth/group.principal/assign-edit.vue +10 -5
  544. package/pages/c/_cluster/auth/roles/index.vue +33 -7
  545. package/pages/c/_cluster/explorer/ConfigBadge.vue +4 -1
  546. package/pages/c/_cluster/explorer/index.vue +109 -24
  547. package/pages/c/_cluster/explorer/tools/index.vue +76 -17
  548. package/pages/c/_cluster/explorer/tools/pages/_page.vue +4 -1
  549. package/pages/c/_cluster/fleet/index.vue +9 -2
  550. package/pages/c/_cluster/gatekeeper/index.vue +4 -1
  551. package/pages/c/_cluster/istio/index.vue +20 -8
  552. package/pages/c/_cluster/legacy/pages/_page.vue +4 -1
  553. package/pages/c/_cluster/legacy/project/_page.vue +4 -1
  554. package/pages/c/_cluster/legacy/project/index.vue +4 -1
  555. package/pages/c/_cluster/legacy/project/pipelines.vue +27 -5
  556. package/pages/c/_cluster/logging/index.vue +4 -1
  557. package/pages/c/_cluster/longhorn/index.vue +16 -5
  558. package/pages/c/_cluster/manager/cloudCredential/index.vue +15 -3
  559. package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +1 -1
  560. package/pages/c/_cluster/monitoring/index.vue +14 -5
  561. package/pages/c/_cluster/monitoring/monitor/index.vue +24 -6
  562. package/pages/c/_cluster/monitoring/route-receiver/index.vue +25 -6
  563. package/pages/c/_cluster/neuvector/index.vue +16 -5
  564. package/pages/c/_cluster/settings/DefaultLinksEditor.vue +25 -7
  565. package/pages/c/_cluster/settings/banners.vue +10 -2
  566. package/pages/c/_cluster/settings/brand.vue +75 -17
  567. package/pages/c/_cluster/settings/links.vue +16 -4
  568. package/pages/c/_cluster/settings/performance.vue +22 -5
  569. package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +19 -4
  570. package/pages/c/_cluster/uiplugins/InstallDialog.vue +14 -3
  571. package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +54 -12
  572. package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +18 -4
  573. package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +14 -3
  574. package/pages/c/_cluster/uiplugins/UninstallDialog.vue +9 -2
  575. package/pages/c/_cluster/uiplugins/index.vue +149 -34
  576. package/pages/diagnostic.vue +14 -5
  577. package/pages/docs/_doc.vue +22 -5
  578. package/pages/fail-whale.vue +26 -6
  579. package/pages/home.vue +54 -14
  580. package/pages/prefs.vue +65 -22
  581. package/pages/rio/mesh.vue +6 -2
  582. package/pages/support/index.vue +35 -7
  583. package/plugins/steve/subscribe.js +1 -1
  584. package/promptRemove/management.cattle.io.globalrole.vue +9 -3
  585. package/promptRemove/management.cattle.io.project.vue +14 -5
  586. package/promptRemove/management.cattle.io.roletemplate.vue +9 -3
  587. package/promptRemove/pod.vue +15 -3
  588. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +1 -0
  589. package/rancher-components/StringList/StringList.test.ts +80 -0
  590. package/rancher-components/StringList/StringList.vue +593 -0
  591. package/rancher-components/StringList/index.ts +1 -0
  592. package/scripts/publish-shell.sh +5 -38
  593. package/scripts/test-plugins-build.sh +5 -9
  594. package/store/prefs.js +1 -1
  595. package/types/form.ts +1 -0
  596. package/types/generic.ts +2 -0
  597. package/types/t.ts +1 -0
  598. package/types/userPreferences.d.ts +14 -0
  599. package/utils/array.ts +21 -0
  600. package/utils/favicon.js +2 -0
  601. package/utils/settings.ts +50 -0
  602. package/utils/validators/formRules/__tests__/index.test.ts +22 -1
  603. package/utils/validators/formRules/index.ts +68 -43
  604. package/creators/update/init +0 -54
  605. package/creators/update/package.json +0 -20
  606. package/creators/update/upgrade +0 -56
  607. package/scripts/record-deps.js +0 -37
  608. package/scripts/typegen.sh +0 -84
  609. package/types/shell/index.d.ts +0 -3046
  610. package/types/vue-shim.d +0 -20
package/detail/node.vue CHANGED
@@ -197,22 +197,61 @@ export default {
197
197
 
198
198
  <template>
199
199
  <Loading v-if="$fetchState.pending" />
200
- <div v-else class="node">
201
- <div class="spacer"></div>
200
+ <div
201
+ v-else
202
+ class="node"
203
+ >
204
+ <div class="spacer" />
202
205
  <div class="alerts">
203
- <Alert class="mr-10" :status="pidPressureStatus" :message="t('node.detail.glance.pidPressure')" />
204
- <Alert class="mr-10" :status="diskPressureStatus" :message="t('node.detail.glance.diskPressure')" />
205
- <Alert class="mr-10" :status="memoryPressureStatus" :message="t('node.detail.glance.memoryPressure')" />
206
- <Alert :status="kubeletStatus" :message="t('node.detail.glance.kubelet')" />
206
+ <Alert
207
+ class="mr-10"
208
+ :status="pidPressureStatus"
209
+ :message="t('node.detail.glance.pidPressure')"
210
+ />
211
+ <Alert
212
+ class="mr-10"
213
+ :status="diskPressureStatus"
214
+ :message="t('node.detail.glance.diskPressure')"
215
+ />
216
+ <Alert
217
+ class="mr-10"
218
+ :status="memoryPressureStatus"
219
+ :message="t('node.detail.glance.memoryPressure')"
220
+ />
221
+ <Alert
222
+ :status="kubeletStatus"
223
+ :message="t('node.detail.glance.kubelet')"
224
+ />
207
225
  </div>
208
226
  <div class="mt-20 resources">
209
- <ConsumptionGauge :resource-name="t('node.detail.glance.consumptionGauge.cpu')" :capacity="value.cpuCapacity" :used="value.cpuUsage" />
210
- <ConsumptionGauge :resource-name="t('node.detail.glance.consumptionGauge.memory')" :capacity="value.ramCapacity" :used="value.ramUsage" :units="memoryUnits" :number-formatter="memoryFormatter" />
211
- <ConsumptionGauge :resource-name="t('node.detail.glance.consumptionGauge.pods')" :capacity="value.podCapacity" :used="value.podConsumed" />
227
+ <ConsumptionGauge
228
+ :resource-name="t('node.detail.glance.consumptionGauge.cpu')"
229
+ :capacity="value.cpuCapacity"
230
+ :used="value.cpuUsage"
231
+ />
232
+ <ConsumptionGauge
233
+ :resource-name="t('node.detail.glance.consumptionGauge.memory')"
234
+ :capacity="value.ramCapacity"
235
+ :used="value.ramUsage"
236
+ :units="memoryUnits"
237
+ :number-formatter="memoryFormatter"
238
+ />
239
+ <ConsumptionGauge
240
+ :resource-name="t('node.detail.glance.consumptionGauge.pods')"
241
+ :capacity="value.podCapacity"
242
+ :used="value.podConsumed"
243
+ />
212
244
  </div>
213
- <div class="spacer"></div>
214
- <ResourceTabs v-model="value" :mode="mode">
215
- <Tab name="pods" :label="t('node.detail.tab.pods')" :weight="4">
245
+ <div class="spacer" />
246
+ <ResourceTabs
247
+ v-model="value"
248
+ :mode="mode"
249
+ >
250
+ <Tab
251
+ name="pods"
252
+ :label="t('node.detail.tab.pods')"
253
+ :weight="4"
254
+ >
216
255
  <SortableTable
217
256
  key-field="_key"
218
257
  :headers="podTableHeaders"
@@ -222,7 +261,12 @@ export default {
222
261
  :search="false"
223
262
  />
224
263
  </Tab>
225
- <Tab v-if="showMetrics" :label="t('node.detail.tab.metrics')" name="node-metrics" :weight="3">
264
+ <Tab
265
+ v-if="showMetrics"
266
+ :label="t('node.detail.tab.metrics')"
267
+ name="node-metrics"
268
+ :weight="3"
269
+ >
226
270
  <template #default="props">
227
271
  <DashboardMetrics
228
272
  v-if="props.active"
@@ -233,7 +277,12 @@ export default {
233
277
  />
234
278
  </template>
235
279
  </Tab>
236
- <Tab name="info" :label="t('node.detail.tab.info.label')" class="bordered-table" :weight="2">
280
+ <Tab
281
+ name="info"
282
+ :label="t('node.detail.tab.info.label')"
283
+ class="bordered-table"
284
+ :weight="2"
285
+ >
237
286
  <SortableTable
238
287
  key-field="_key"
239
288
  :headers="infoTableHeaders"
@@ -244,7 +293,11 @@ export default {
244
293
  :search="false"
245
294
  />
246
295
  </Tab>
247
- <Tab name="images" :label="t('node.detail.tab.images')" :weight="1">
296
+ <Tab
297
+ name="images"
298
+ :label="t('node.detail.tab.images')"
299
+ :weight="1"
300
+ >
248
301
  <SortableTable
249
302
  key-field="_key"
250
303
  :headers="imageTableHeaders"
@@ -253,7 +306,11 @@ export default {
253
306
  :table-actions="false"
254
307
  />
255
308
  </Tab>
256
- <Tab name="taints" :label="t('node.detail.tab.taints')" :weight="0">
309
+ <Tab
310
+ name="taints"
311
+ :label="t('node.detail.tab.taints')"
312
+ :weight="0"
313
+ >
257
314
  <SortableTable
258
315
  key-field="_key"
259
316
  :headers="taintTableHeaders"
@@ -263,9 +320,17 @@ export default {
263
320
  :search="false"
264
321
  />
265
322
  </Tab>
266
- <Tab v-if="v1MonitoringUrl" name="v1Metrics" :label="t('node.detail.tab.metrics')" :weight="0">
323
+ <Tab
324
+ v-if="v1MonitoringUrl"
325
+ name="v1Metrics"
326
+ :label="t('node.detail.tab.metrics')"
327
+ :weight="0"
328
+ >
267
329
  <div id="ember-anchor">
268
- <EmberPage inline="ember-anchor" :src="v1MonitoringUrl" />
330
+ <EmberPage
331
+ inline="ember-anchor"
332
+ :src="v1MonitoringUrl"
333
+ />
269
334
  </div>
270
335
  </Tab>
271
336
  </ResourceTabs>
package/detail/pod.vue CHANGED
@@ -225,8 +225,17 @@ export default {
225
225
 
226
226
  <template>
227
227
  <Loading v-if="$fetchState.pending" />
228
- <ResourceTabs v-else mode="view" class="mt-20" :value="value">
229
- <Tab :label="t('workload.container.titles.containers')" name="containers" :weight="3">
228
+ <ResourceTabs
229
+ v-else
230
+ mode="view"
231
+ class="mt-20"
232
+ :value="value"
233
+ >
234
+ <Tab
235
+ :label="t('workload.container.titles.containers')"
236
+ name="containers"
237
+ :weight="3"
238
+ >
230
239
  <SortableTable
231
240
  :rows="containers"
232
241
  :headers="containerHeaders"
@@ -237,7 +246,12 @@ export default {
237
246
  :table-actions="false"
238
247
  />
239
248
  </Tab>
240
- <Tab v-if="v1MonitoringUrl" name="v1Metrics" :label="t('node.detail.tab.metrics')" :weight="0">
249
+ <Tab
250
+ v-if="v1MonitoringUrl"
251
+ name="v1Metrics"
252
+ :label="t('node.detail.tab.metrics')"
253
+ :weight="0"
254
+ >
241
255
  <LabeledSelect
242
256
  class="pod-metrics-chooser"
243
257
  :value="selection"
@@ -246,10 +260,18 @@ export default {
246
260
  @input="selectionChanged($event)"
247
261
  />
248
262
  <div id="ember-anchor">
249
- <EmberPage inline="ember-anchor" :src="v1Metrics" />
263
+ <EmberPage
264
+ inline="ember-anchor"
265
+ :src="v1Metrics"
266
+ />
250
267
  </div>
251
268
  </Tab>
252
- <Tab v-if="showMetrics" :label="t('workload.container.titles.metrics')" name="pod-metrics" :weight="2.5">
269
+ <Tab
270
+ v-if="showMetrics"
271
+ :label="t('workload.container.titles.metrics')"
272
+ name="pod-metrics"
273
+ :weight="2.5"
274
+ >
253
275
  <template #default="props">
254
276
  <DashboardMetrics
255
277
  v-if="props.active"
@@ -596,12 +596,32 @@ export default {
596
596
  <template>
597
597
  <Loading v-if="$fetchState.pending" />
598
598
  <div v-else>
599
- <Banner v-if="showWindowsWarning" color="error" :label="t('cluster.banner.os', { newOS: 'Windows', existingOS: 'Linux' })" />
600
- <Banner v-if="showEksNodeGroupWarning" color="error" :label="t('cluster.banner.desiredNodeGroupWarning')" />
601
-
602
- <Banner v-if="$fetchState.error" color="error" :label="$fetchState.error" />
603
- <ResourceTabs v-model="value" :default-tab="defaultTab">
604
- <Tab v-if="showMachines" name="machine-pools" :label-key="value.isCustom ? 'cluster.tabs.machines' : 'cluster.tabs.machinePools'" :weight="4">
599
+ <Banner
600
+ v-if="showWindowsWarning"
601
+ color="error"
602
+ :label="t('cluster.banner.os', { newOS: 'Windows', existingOS: 'Linux' })"
603
+ />
604
+ <Banner
605
+ v-if="showEksNodeGroupWarning"
606
+ color="error"
607
+ :label="t('cluster.banner.desiredNodeGroupWarning')"
608
+ />
609
+
610
+ <Banner
611
+ v-if="$fetchState.error"
612
+ color="error"
613
+ :label="$fetchState.error"
614
+ />
615
+ <ResourceTabs
616
+ v-model="value"
617
+ :default-tab="defaultTab"
618
+ >
619
+ <Tab
620
+ v-if="showMachines"
621
+ name="machine-pools"
622
+ :label-key="value.isCustom ? 'cluster.tabs.machines' : 'cluster.tabs.machinePools'"
623
+ :weight="4"
624
+ >
605
625
  <ResourceTable
606
626
  :rows="machines"
607
627
  :schema="machineSchema"
@@ -614,28 +634,60 @@ export default {
614
634
  >
615
635
  <template #main-row:isFake="{fullColspan}">
616
636
  <tr class="main-row">
617
- <td :colspan="fullColspan" class="no-entries">
637
+ <td
638
+ :colspan="fullColspan"
639
+ class="no-entries"
640
+ >
618
641
  {{ t('node.list.noNodes') }}
619
642
  </td>
620
643
  </tr>
621
644
  </template>
622
645
 
623
646
  <template #group-by="{group}">
624
- <div class="pool-row" :class="{'has-description':group.ref && group.ref.template}">
625
- <div v-trim-whitespace class="group-tab">
626
- <div v-if="group && group.ref" v-html="group.ref.groupByPoolShortLabel" />
627
- <div v-else v-html="t('resourceTable.groupLabel.notInANodePool')">
628
- </div>
629
- <div v-if="group.ref && group.ref.template" class="description text-muted text-small">
647
+ <div
648
+ class="pool-row"
649
+ :class="{'has-description':group.ref && group.ref.template}"
650
+ >
651
+ <div
652
+ v-trim-whitespace
653
+ class="group-tab"
654
+ >
655
+ <div
656
+ v-if="group && group.ref"
657
+ v-html="group.ref.groupByPoolShortLabel"
658
+ />
659
+ <div
660
+ v-else
661
+ v-html="t('resourceTable.groupLabel.notInANodePool')"
662
+ />
663
+ <div
664
+ v-if="group.ref && group.ref.template"
665
+ class="description text-muted text-small"
666
+ >
630
667
  {{ group.ref.providerDisplay }} &ndash; {{ group.ref.providerLocation }} / {{ group.ref.providerSize }} ({{ group.ref.providerName }})
631
668
  </div>
632
669
  </div>
633
- <div v-if="group.ref" class="right mr-45">
670
+ <div
671
+ v-if="group.ref"
672
+ class="right mr-45"
673
+ >
634
674
  <template v-if="value.hasLink('update') && group.ref.showScalePool">
635
- <button v-tooltip="t('node.list.scaleDown')" :disabled="!group.ref.canScaleDownPool()" type="button" class="btn btn-sm role-secondary" @click="group.ref.scalePool(-1)">
675
+ <button
676
+ v-tooltip="t('node.list.scaleDown')"
677
+ :disabled="!group.ref.canScaleDownPool()"
678
+ type="button"
679
+ class="btn btn-sm role-secondary"
680
+ @click="group.ref.scalePool(-1)"
681
+ >
636
682
  <i class="icon icon-sm icon-minus" />
637
683
  </button>
638
- <button v-tooltip="t('node.list.scaleUp')" :disabled="!group.ref.canScaleUpPool()" type="button" class="btn btn-sm role-secondary ml-10" @click="group.ref.scalePool(1)">
684
+ <button
685
+ v-tooltip="t('node.list.scaleUp')"
686
+ :disabled="!group.ref.canScaleUpPool()"
687
+ type="button"
688
+ class="btn btn-sm role-secondary ml-10"
689
+ @click="group.ref.scalePool(1)"
690
+ >
639
691
  <i class="icon icon-sm icon-plus" />
640
692
  </button>
641
693
  </template>
@@ -644,7 +696,12 @@ export default {
644
696
  </template>
645
697
  </ResourceTable>
646
698
  </Tab>
647
- <Tab v-else-if="showNodes" name="node-pools" :label-key="value.isCustom ? 'cluster.tabs.machines' : 'cluster.tabs.machinePools'" :weight="4">
699
+ <Tab
700
+ v-else-if="showNodes"
701
+ name="node-pools"
702
+ :label-key="value.isCustom ? 'cluster.tabs.machines' : 'cluster.tabs.machinePools'"
703
+ :weight="4"
704
+ >
648
705
  <ResourceTable
649
706
  :schema="mgmtNodeSchema"
650
707
  :headers="mgmtNodeSchemaHeaders"
@@ -656,35 +713,74 @@ export default {
656
713
  >
657
714
  <template #main-row:isFake="{fullColspan}">
658
715
  <tr class="main-row">
659
- <td :colspan="fullColspan" class="no-entries">
716
+ <td
717
+ :colspan="fullColspan"
718
+ class="no-entries"
719
+ >
660
720
  {{ t('node.list.noNodes') }}
661
721
  </td>
662
722
  </tr>
663
723
  </template>
664
724
 
665
725
  <template #group-by="{group}">
666
- <div class="pool-row" :class="{'has-description':group.ref && group.ref.nodeTemplate}">
667
- <div v-trim-whitespace class="group-tab">
668
- <div v-if="group.ref" v-html="t('resourceTable.groupLabel.nodePool', { name: group.ref.spec.hostnamePrefix}, true)">
669
- </div>
670
- <div v-else v-html="t('resourceTable.groupLabel.notInANodePool')">
671
- </div>
672
- <div v-if="group.ref && group.ref.nodeTemplate" class="description text-muted text-small">
726
+ <div
727
+ class="pool-row"
728
+ :class="{'has-description':group.ref && group.ref.nodeTemplate}"
729
+ >
730
+ <div
731
+ v-trim-whitespace
732
+ class="group-tab"
733
+ >
734
+ <div
735
+ v-if="group.ref"
736
+ v-html="t('resourceTable.groupLabel.nodePool', { name: group.ref.spec.hostnamePrefix}, true)"
737
+ />
738
+ <div
739
+ v-else
740
+ v-html="t('resourceTable.groupLabel.notInANodePool')"
741
+ />
742
+ <div
743
+ v-if="group.ref && group.ref.nodeTemplate"
744
+ class="description text-muted text-small"
745
+ >
673
746
  {{ group.ref.providerDisplay }} &ndash; {{ group.ref.providerLocation }} / {{ group.ref.providerSize }} ({{ group.ref.providerName }})
674
747
  </div>
675
748
  </div>
676
- <div v-if="group.ref" class="right group-header-buttons">
677
- <MachineSummaryGraph :row="poolSummaryInfo[group.ref]" :horizontal="true" class="mr-20" />
749
+ <div
750
+ v-if="group.ref"
751
+ class="right group-header-buttons"
752
+ >
753
+ <MachineSummaryGraph
754
+ :row="poolSummaryInfo[group.ref]"
755
+ :horizontal="true"
756
+ class="mr-20"
757
+ />
678
758
  <template v-if="group.ref.hasLink('update')">
679
- <button v-tooltip="t('node.list.scaleDown')" :disabled="group.ref.spec.quantity < 2" type="button" class="btn btn-sm role-secondary" @click="group.ref.scalePool(-1)">
759
+ <button
760
+ v-tooltip="t('node.list.scaleDown')"
761
+ :disabled="group.ref.spec.quantity < 2"
762
+ type="button"
763
+ class="btn btn-sm role-secondary"
764
+ @click="group.ref.scalePool(-1)"
765
+ >
680
766
  <i class="icon icon-sm icon-minus" />
681
767
  </button>
682
- <button v-tooltip="t('node.list.scaleUp')" type="button" class="btn btn-sm role-secondary ml-10" @click="group.ref.scalePool(1)">
768
+ <button
769
+ v-tooltip="t('node.list.scaleUp')"
770
+ type="button"
771
+ class="btn btn-sm role-secondary ml-10"
772
+ @click="group.ref.scalePool(1)"
773
+ >
683
774
  <i class="icon icon-sm icon-plus" />
684
775
  </button>
685
776
  </template>
686
777
 
687
- <button type="button" class="project-action btn btn-sm role-multi-action actions mr-5 ml-15" :class="{invisible: !showPoolActionButton(group.ref)}" @click="showPoolAction($event, group.ref)">
778
+ <button
779
+ type="button"
780
+ class="project-action btn btn-sm role-multi-action actions mr-5 ml-15"
781
+ :class="{invisible: !showPoolActionButton(group.ref)}"
782
+ @click="showPoolAction($event, group.ref)"
783
+ >
688
784
  <i class="icon icon-actions" />
689
785
  </button>
690
786
  </div>
@@ -693,43 +789,99 @@ export default {
693
789
  </ResourceTable>
694
790
  </Tab>
695
791
 
696
- <Tab v-if="showLog" name="log" :label="t('cluster.tabs.log')" :weight="3" class="logs-container">
697
- <table class="fixed" cellpadding="0" cellspacing="0">
792
+ <Tab
793
+ v-if="showLog"
794
+ name="log"
795
+ :label="t('cluster.tabs.log')"
796
+ :weight="3"
797
+ class="logs-container"
798
+ >
799
+ <table
800
+ class="fixed"
801
+ cellpadding="0"
802
+ cellspacing="0"
803
+ >
698
804
  <tbody class="logs-body">
699
805
  <template v-if="logs.length">
700
- <tr v-for="line in logs" :key="line.id">
701
- <td :key="line.id + '-time'" class="time" v-html="format(line.time)" />
702
- <td :key="line.id + '-msg'" class="msg" v-html="line.msg" />
806
+ <tr
807
+ v-for="line in logs"
808
+ :key="line.id"
809
+ >
810
+ <td
811
+ :key="line.id + '-time'"
812
+ class="time"
813
+ v-html="format(line.time)"
814
+ />
815
+ <td
816
+ :key="line.id + '-msg'"
817
+ class="msg"
818
+ v-html="line.msg"
819
+ />
703
820
  </tr>
704
821
  </template>
705
- <tr v-else-if="!logOpen" v-t="'cluster.log.connecting'" colspan="2" class="msg text-muted" />
706
- <tr v-else v-t="'cluster.log.noData'" colspan="2" class="msg text-muted" />
822
+ <tr
823
+ v-else-if="!logOpen"
824
+ v-t="'cluster.log.connecting'"
825
+ colspan="2"
826
+ class="msg text-muted"
827
+ />
828
+ <tr
829
+ v-else
830
+ v-t="'cluster.log.noData'"
831
+ colspan="2"
832
+ class="msg text-muted"
833
+ />
707
834
  </tbody>
708
835
  </table>
709
836
  </Tab>
710
837
 
711
- <Tab v-if="showRegistration" name="registration" :label="t('cluster.tabs.registration')" :weight="2">
712
- <Banner v-if="!value.isCustom" color="warning" :label="t('cluster.import.warningBanner')" />
713
- <CustomCommand v-if="value.isCustom" :cluster-token="clusterToken" :cluster="value" @copied-windows="hasWindowsMachine ? null : showWindowsWarning = true" />
838
+ <Tab
839
+ v-if="showRegistration"
840
+ name="registration"
841
+ :label="t('cluster.tabs.registration')"
842
+ :weight="2"
843
+ >
844
+ <Banner
845
+ v-if="!value.isCustom"
846
+ color="warning"
847
+ :label="t('cluster.import.warningBanner')"
848
+ />
849
+ <CustomCommand
850
+ v-if="value.isCustom"
851
+ :cluster-token="clusterToken"
852
+ :cluster="value"
853
+ @copied-windows="hasWindowsMachine ? null : showWindowsWarning = true"
854
+ />
714
855
  <template v-else>
715
856
  <h4 v-html="t('cluster.import.commandInstructions', null, true)" />
716
857
  <CopyCode class="m-10 p-10">
717
858
  {{ clusterToken.command }}
718
859
  </CopyCode>
719
860
 
720
- <h4 class="mt-10" v-html="t('cluster.import.commandInstructionsInsecure', null, true)" />
861
+ <h4
862
+ class="mt-10"
863
+ v-html="t('cluster.import.commandInstructionsInsecure', null, true)"
864
+ />
721
865
  <CopyCode class="m-10 p-10">
722
866
  {{ clusterToken.insecureCommand }}
723
867
  </CopyCode>
724
868
 
725
- <h4 class="mt-10" v-html="t('cluster.import.clusterRoleBindingInstructions', null, true)" />
869
+ <h4
870
+ class="mt-10"
871
+ v-html="t('cluster.import.clusterRoleBindingInstructions', null, true)"
872
+ />
726
873
  <CopyCode class="m-10 p-10">
727
874
  {{ t('cluster.import.clusterRoleBindingCommand', null, true) }}
728
875
  </CopyCode>
729
876
  </template>
730
877
  </Tab>
731
878
 
732
- <Tab v-if="showSnapshots" name="snapshots" label="Snapshots" :weight="1">
879
+ <Tab
880
+ v-if="showSnapshots"
881
+ name="snapshots"
882
+ label="Snapshots"
883
+ :weight="1"
884
+ >
733
885
  <SortableTable
734
886
  class="snapshots"
735
887
  :headers="value.isRke1 ? rke1SnapshotHeaders : rke2SnapshotHeaders"
package/detail/secret.vue CHANGED
@@ -157,58 +157,117 @@ export default {
157
157
  </script>
158
158
 
159
159
  <template>
160
- <ResourceTabs v-model="value" :mode="mode">
161
- <Tab name="data" :label="dataLabel">
160
+ <ResourceTabs
161
+ v-model="value"
162
+ :mode="mode"
163
+ >
164
+ <Tab
165
+ name="data"
166
+ :label="dataLabel"
167
+ >
162
168
  <template v-if="isRegistry || isBasicAuth">
163
- <div v-if="isRegistry" class="row">
169
+ <div
170
+ v-if="isRegistry"
171
+ class="row"
172
+ >
164
173
  <div class="col span-12">
165
- <DetailText :value="registryUrl" label-key="secret.registry.domainName">
166
- </detailtext>
174
+ <DetailText
175
+ :value="registryUrl"
176
+ label-key="secret.registry.domainName"
177
+ />
167
178
  </div>
168
179
  </div>
169
180
  <div class="row mt-20">
170
181
  <div class="col span-6">
171
- <DetailText :value="username" label-key="secret.registry.username" />
182
+ <DetailText
183
+ :value="username"
184
+ label-key="secret.registry.username"
185
+ />
172
186
  </div>
173
187
  <div class="col span-6">
174
- <DetailText :value="password" label-key="secret.registry.password" :conceal="true" />
188
+ <DetailText
189
+ :value="password"
190
+ label-key="secret.registry.password"
191
+ :conceal="true"
192
+ />
175
193
  </div>
176
194
  </div>
177
195
  </template>
178
196
 
179
- <div v-else-if="isCertificate" class="row">
197
+ <div
198
+ v-else-if="isCertificate"
199
+ class="row"
200
+ >
180
201
  <div class="col span-6">
181
- <DetailText :value="key" label-key="secret.certificate.privateKey" :conceal="true" />
202
+ <DetailText
203
+ :value="key"
204
+ label-key="secret.certificate.privateKey"
205
+ :conceal="true"
206
+ />
182
207
  </div>
183
208
  <div class="col span-6">
184
- <DetailText :value="crt" label-key="secret.certificate.certificate" />
209
+ <DetailText
210
+ :value="crt"
211
+ label-key="secret.certificate.certificate"
212
+ />
185
213
  </div>
186
214
  </div>
187
215
 
188
- <div v-else-if="isSvcAcctToken" class="row">
216
+ <div
217
+ v-else-if="isSvcAcctToken"
218
+ class="row"
219
+ >
189
220
  <div class="col span-6">
190
- <DetailText :value="crt" label-key="secret.serviceAcct.ca" />
221
+ <DetailText
222
+ :value="crt"
223
+ label-key="secret.serviceAcct.ca"
224
+ />
191
225
  </div>
192
226
  <div class="col span-6">
193
- <DetailText :value="key" label-key="secret.serviceAcct.token" :conceal="true" />
227
+ <DetailText
228
+ :value="key"
229
+ label-key="secret.serviceAcct.token"
230
+ :conceal="true"
231
+ />
194
232
  </div>
195
233
  </div>
196
234
 
197
- <div v-else-if="isSsh" class="row">
235
+ <div
236
+ v-else-if="isSsh"
237
+ class="row"
238
+ >
198
239
  <div class="col span-6">
199
- <DetailText :value="username" label-key="secret.ssh.public" />
240
+ <DetailText
241
+ :value="username"
242
+ label-key="secret.ssh.public"
243
+ />
200
244
  </div>
201
245
  <div class="col span-6">
202
- <DetailText :value="password" label-key="secret.ssh.private" :conceal="true" />
246
+ <DetailText
247
+ :value="password"
248
+ label-key="secret.ssh.private"
249
+ :conceal="true"
250
+ />
203
251
  </div>
204
252
  </div>
205
253
 
206
254
  <div v-else>
207
- <div v-for="(row,idx) in parsedRows" :key="idx" class="entry">
208
- <DetailText :value="row.value" :label="row.key" :conceal="true" />
255
+ <div
256
+ v-for="(row,idx) in parsedRows"
257
+ :key="idx"
258
+ class="entry"
259
+ >
260
+ <DetailText
261
+ :value="row.value"
262
+ :label="row.key"
263
+ :conceal="true"
264
+ />
209
265
  </div>
210
266
  <div v-if="!parsedRows.length">
211
- <div v-t="'sortableTable.noRows'" class="m-20 text-center" />
267
+ <div
268
+ v-t="'sortableTable.noRows'"
269
+ class="m-20 text-center"
270
+ />
212
271
  </div>
213
272
  </div>
214
273
  </Tab>