dashboard-shell-shell 1.0.111
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/brand/csp/dark/rancher-logo.svg +148 -0
- package/assets/brand/csp/favicon.png +0 -0
- package/assets/brand/csp/metadata.json +3 -0
- package/assets/brand/csp/rancher-logo.svg +130 -0
- package/assets/brand/federal/dark/rancher-logo.svg +104 -0
- package/assets/brand/federal/metadata.json +3 -0
- package/assets/brand/federal/rancher-logo.svg +1 -0
- package/assets/brand/harvester/favicon.png +0 -0
- package/assets/brand/harvester/metadata.json +3 -0
- package/assets/brand/rgs/dark/rancher-logo.svg +1 -0
- package/assets/brand/rgs/metadata.json +3 -0
- package/assets/brand/rgs/rancher-logo.svg +1 -0
- package/assets/brand/suse/dark/rancher-logo.svg +1 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/brand/suse/metadata.json +3 -0
- package/assets/brand/suse/rancher-logo.svg +1 -0
- package/assets/data/aws-regions.json +39 -0
- package/assets/data/ec2-instance-groups.json +85 -0
- package/assets/fonts/lato/lato-v17-latin-700.woff +0 -0
- package/assets/fonts/lato/lato-v17-latin-700.woff2 +0 -0
- package/assets/fonts/lato/lato-v17-latin-regular.woff +0 -0
- package/assets/fonts/lato/lato-v17-latin-regular.woff2 +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-300.woff +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-300.woff2 +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-500.woff +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-500.woff2 +0 -0
- package/assets/fonts/roboto-mono/roboto-mono-v13-latin-regular.woff +0 -0
- package/assets/fonts/roboto-mono/roboto-mono-v13-latin-regular.woff2 +0 -0
- package/assets/images/featured/img1.jpg +0 -0
- package/assets/images/featured.jpg +0 -0
- package/assets/images/field-valid.svg +16 -0
- package/assets/images/generic-catalog.svg +15 -0
- package/assets/images/generic-driver.svg +17 -0
- package/assets/images/generic-plugin.svg +1 -0
- package/assets/images/pl/README.md +13 -0
- package/assets/images/pl/banner.svg +241 -0
- package/assets/images/pl/dark/banner.svg +242 -0
- package/assets/images/pl/dark/login-landscape.svg +291 -0
- package/assets/images/pl/dark/rancher-logo.svg +51 -0
- package/assets/images/pl/decoration-cloud-big-white.svg +1 -0
- package/assets/images/pl/decoration-ground.svg +1 -0
- package/assets/images/pl/error-desert-landscape.svg +217 -0
- package/assets/images/pl/half-logo.svg +23 -0
- package/assets/images/pl/harvester.png +0 -0
- package/assets/images/pl/harvester.svg +1 -0
- package/assets/images/pl/login-landscape.svg +496 -0
- package/assets/images/pl/rancher-logo.svg +51 -0
- package/assets/images/pl/setup-step-one.svg +612 -0
- package/assets/images/pl/sunglasses.svg +20 -0
- package/assets/images/providers/aliyun-black.svg +14 -0
- package/assets/images/providers/aliyun.svg +17 -0
- package/assets/images/providers/aliyunecs-black.svg +13 -0
- package/assets/images/providers/aliyunecs.svg +21 -0
- package/assets/images/providers/amazonec2-black.svg +8 -0
- package/assets/images/providers/amazonec2.svg +19 -0
- package/assets/images/providers/amazoneks-black.svg +10 -0
- package/assets/images/providers/amazoneks.svg +14 -0
- package/assets/images/providers/aws.svg +38 -0
- package/assets/images/providers/azure-black.svg +29 -0
- package/assets/images/providers/azure.svg +32 -0
- package/assets/images/providers/azuread-black.svg +22 -0
- package/assets/images/providers/azuread.svg +25 -0
- package/assets/images/providers/azureaks-black.svg +28 -0
- package/assets/images/providers/azureaks.svg +31 -0
- package/assets/images/providers/baidu-black.svg +19 -0
- package/assets/images/providers/baidu.svg +25 -0
- package/assets/images/providers/cloudca-black.svg +45 -0
- package/assets/images/providers/cloudca.svg +49 -0
- package/assets/images/providers/cloudscale-black.svg +24 -0
- package/assets/images/providers/cloudscale.svg +28 -0
- package/assets/images/providers/custom.svg +85 -0
- package/assets/images/providers/digitalocean-black.svg +21 -0
- package/assets/images/providers/digitalocean.svg +24 -0
- package/assets/images/providers/equinix-black.svg +13 -0
- package/assets/images/providers/equinix.svg +13 -0
- package/assets/images/providers/exoscale.svg +1 -0
- package/assets/images/providers/gcp.svg +6 -0
- package/assets/images/providers/gke-black.svg +10 -0
- package/assets/images/providers/gke.svg +28 -0
- package/assets/images/providers/google.svg +29 -0
- package/assets/images/providers/googlegke-black.svg +10 -0
- package/assets/images/providers/googlegke.svg +28 -0
- package/assets/images/providers/harvester.svg +1 -0
- package/assets/images/providers/huaweicce-black.svg +109 -0
- package/assets/images/providers/huaweicce.svg +184 -0
- package/assets/images/providers/import.svg +99 -0
- package/assets/images/providers/k3s-black.svg +10 -0
- package/assets/images/providers/k3s.svg +15 -0
- package/assets/images/providers/kubernetes-black.svg +37 -0
- package/assets/images/providers/kubernetes.svg +99 -0
- package/assets/images/providers/linode.svg +54 -0
- package/assets/images/providers/linodelke-black.svg +40 -0
- package/assets/images/providers/linodelke.svg +54 -0
- package/assets/images/providers/local-cluster.svg +20 -0
- package/assets/images/providers/minikube-black.svg +25 -0
- package/assets/images/providers/minikube.svg +36 -0
- package/assets/images/providers/nutanix.svg +12 -0
- package/assets/images/providers/oci-black.svg +41 -0
- package/assets/images/providers/oci.svg +44 -0
- package/assets/images/providers/openstack-black.svg +16 -0
- package/assets/images/providers/openstack.svg +20 -0
- package/assets/images/providers/oracle.svg +66 -0
- package/assets/images/providers/oracleoke-black.svg +51 -0
- package/assets/images/providers/oracleoke.svg +55 -0
- package/assets/images/providers/otc-black.svg +15 -0
- package/assets/images/providers/otc.svg +33 -0
- package/assets/images/providers/otccce.svg +33 -0
- package/assets/images/providers/outscale.svg +19 -0
- package/assets/images/providers/ovhcloudmks.svg +122 -0
- package/assets/images/providers/ovhcloudpubliccloud.svg +122 -0
- package/assets/images/providers/packet-black.svg +15 -0
- package/assets/images/providers/packet.svg +16 -0
- package/assets/images/providers/pinganyunecs-black.svg +26 -0
- package/assets/images/providers/pinganyunecs.svg +26 -0
- package/assets/images/providers/pnap-black.svg +43 -0
- package/assets/images/providers/pnap.svg +48 -0
- package/assets/images/providers/rackspace-black.svg +14 -0
- package/assets/images/providers/rackspace.svg +18 -0
- package/assets/images/providers/rke.svg +26 -0
- package/assets/images/providers/rke2.svg +26 -0
- package/assets/images/providers/softlayer.svg +27 -0
- package/assets/images/providers/tencenttke-black.svg +22 -0
- package/assets/images/providers/tencenttke.svg +39 -0
- package/assets/images/providers/vmwarevsphere-black.svg +60 -0
- package/assets/images/providers/vmwarevsphere.svg +51 -0
- package/assets/images/vendor/activedirectory.svg +20 -0
- package/assets/images/vendor/adfs.svg +19 -0
- package/assets/images/vendor/azuread.svg +18 -0
- package/assets/images/vendor/custom.svg +42 -0
- package/assets/images/vendor/email.svg +22 -0
- package/assets/images/vendor/freeipa.svg +26 -0
- package/assets/images/vendor/github.svg +13 -0
- package/assets/images/vendor/googleoauth.svg +9 -0
- package/assets/images/vendor/grafana.svg +48 -0
- package/assets/images/vendor/jaeger.svg +1 -0
- package/assets/images/vendor/keycloak.svg +30 -0
- package/assets/images/vendor/kiali.svg +23 -0
- package/assets/images/vendor/linux.svg +23 -0
- package/assets/images/vendor/longhorn.svg +25 -0
- package/assets/images/vendor/neuvector.svg +1 -0
- package/assets/images/vendor/okta.svg +31 -0
- package/assets/images/vendor/openid.svg +18 -0
- package/assets/images/vendor/openldap.svg +34 -0
- package/assets/images/vendor/pagerduty.svg +26 -0
- package/assets/images/vendor/ping.svg +58 -0
- package/assets/images/vendor/prometheus.svg +14 -0
- package/assets/images/vendor/shibboleth.svg +481 -0
- package/assets/images/vendor/slack.svg +38 -0
- package/assets/images/vendor/webhook.svg +23 -0
- package/assets/images/vendor/windows.svg +13 -0
- package/assets/images/wechat-qr-code.jpg +0 -0
- package/assets/styles/app.scss +34 -0
- package/assets/styles/base/_basic.scss +146 -0
- package/assets/styles/base/_color.scss +11 -0
- package/assets/styles/base/_functions.scss +134 -0
- package/assets/styles/base/_helpers.scss +267 -0
- package/assets/styles/base/_mixins.scss +163 -0
- package/assets/styles/base/_typography.scss +69 -0
- package/assets/styles/base/_variables.scss +70 -0
- package/assets/styles/fonts/_dots.scss +18 -0
- package/assets/styles/fonts/_fontstack.scss +49 -0
- package/assets/styles/fonts/_icons.scss +101 -0
- package/assets/styles/fonts/_zerowidthspace.scss +8 -0
- package/assets/styles/global/_button.scss +222 -0
- package/assets/styles/global/_cards.scss +94 -0
- package/assets/styles/global/_columns.scss +126 -0
- package/assets/styles/global/_form.scss +146 -0
- package/assets/styles/global/_gauges.scss +55 -0
- package/assets/styles/global/_labeled-input.scss +140 -0
- package/assets/styles/global/_layout.scss +165 -0
- package/assets/styles/global/_resource.scss +89 -0
- package/assets/styles/global/_select.scss +193 -0
- package/assets/styles/global/_table.scss +106 -0
- package/assets/styles/global/_tooltip.scss +165 -0
- package/assets/styles/themes/_csp.scss +25 -0
- package/assets/styles/themes/_dark.scss +232 -0
- package/assets/styles/themes/_light.scss +556 -0
- package/assets/styles/themes/_suse.scss +26 -0
- package/assets/styles/vendor/_code-mirror.scss +3 -0
- package/assets/styles/vendor/normalize.scss +349 -0
- package/assets/styles/vendor/vue-select.scss +391 -0
- package/assets/translations/en-us.yaml +8103 -0
- package/assets/translations/zh-hans.yaml +7678 -0
- package/babel.config.js +35 -0
- package/chart/__tests__/S3.test.ts +64 -0
- package/chart/example.vue +18 -0
- package/chart/gatekeeper.vue +69 -0
- package/chart/istio.vue +284 -0
- package/chart/logging/index.vue +84 -0
- package/chart/monitoring/ClusterSelector.vue +215 -0
- package/chart/monitoring/StorageClassSelector.vue +49 -0
- package/chart/monitoring/alerting/index.vue +188 -0
- package/chart/monitoring/grafana/index.vue +378 -0
- package/chart/monitoring/index.vue +364 -0
- package/chart/monitoring/prometheus/index.vue +373 -0
- package/chart/rancher-backup/S3.vue +190 -0
- package/chart/rancher-backup/index.vue +260 -0
- package/cloud-credential/__tests__/azure.test.ts +43 -0
- package/cloud-credential/__tests__/harvester.test.ts +18 -0
- package/cloud-credential/aws.vue +109 -0
- package/cloud-credential/azure.vue +132 -0
- package/cloud-credential/digitalocean.vue +55 -0
- package/cloud-credential/gcp.vue +82 -0
- package/cloud-credential/generic.vue +100 -0
- package/cloud-credential/harvester.vue +125 -0
- package/cloud-credential/linode.vue +58 -0
- package/cloud-credential/pnap.vue +92 -0
- package/cloud-credential/s3.vue +143 -0
- package/cloud-credential/vmwarevsphere.vue +109 -0
- package/components/ActionDropdown.vue +248 -0
- package/components/ActionMenu.vue +366 -0
- package/components/ActionMenuShell.vue +105 -0
- package/components/AdvancedSection.vue +40 -0
- package/components/Alert.vue +55 -0
- package/components/AlertTable.vue +123 -0
- package/components/AppModal.vue +231 -0
- package/components/AssignTo.vue +185 -0
- package/components/AsyncButton.vue +315 -0
- package/components/AwsComplianceBanner.vue +47 -0
- package/components/BackLink.vue +44 -0
- package/components/BannerGraphic.vue +94 -0
- package/components/BrandImage.vue +135 -0
- package/components/ButtonDropdown.vue +318 -0
- package/components/ButtonGroup.vue +120 -0
- package/components/ButtonMultiAction.vue +51 -0
- package/components/Carousel.vue +397 -0
- package/components/Certificates.vue +161 -0
- package/components/ChartHeading.vue +25 -0
- package/components/ChartReadme.vue +100 -0
- package/components/ClusterBadge.vue +48 -0
- package/components/ClusterIconMenu.vue +189 -0
- package/components/ClusterProviderIcon.vue +131 -0
- package/components/CodeMirror.vue +488 -0
- package/components/Collapse.vue +87 -0
- package/components/CollapsibleCard.vue +121 -0
- package/components/CommunityLinks.vue +216 -0
- package/components/CompoundStatusBadge.vue +53 -0
- package/components/ConsumptionGauge.vue +148 -0
- package/components/ContainerResourceLimit.vue +254 -0
- package/components/CopyCode.vue +74 -0
- package/components/CopyToClipboard.vue +44 -0
- package/components/CopyToClipboardText.vue +82 -0
- package/components/CountBox.vue +114 -0
- package/components/CountGauge.vue +180 -0
- package/components/CreateDriver.vue +81 -0
- package/components/CruResource.vue +931 -0
- package/components/CruResourceFooter.vue +127 -0
- package/components/DashboardMetrics.vue +125 -0
- package/components/DashboardOptions.vue +147 -0
- package/components/DetailText.vue +215 -0
- package/components/DetailTop.vue +374 -0
- package/components/Dialog.vue +136 -0
- package/components/DisableAuthProviderModal.vue +114 -0
- package/components/DraggableZone.vue +181 -0
- package/components/EmberPage.vue +622 -0
- package/components/EmberPageView.vue +39 -0
- package/components/EtcdInfoBanner.vue +76 -0
- package/components/ExplorerMembers.vue +453 -0
- package/components/ExplorerProjectsNamespaces.vue +612 -0
- package/components/ExtensionPanel.vue +42 -0
- package/components/FileDiff.vue +184 -0
- package/components/FixedBanner.vue +277 -0
- package/components/Flag.vue +83 -0
- package/components/Glance.vue +79 -0
- package/components/GlobalRoleBindings.vue +425 -0
- package/components/GradientBox.vue +82 -0
- package/components/GrafanaDashboard.vue +321 -0
- package/components/GroupPanel.vue +57 -0
- package/components/GrowlManager.vue +212 -0
- package/components/HardwareResourceGauge.vue +170 -0
- package/components/HarvesterServiceAddOnConfig.vue +207 -0
- package/components/IconMessage.vue +101 -0
- package/components/IconOrSvg.vue +184 -0
- package/components/Import.vue +260 -0
- package/components/Inactivity.vue +236 -0
- package/components/IndentedPanel.vue +26 -0
- package/components/InfoBox.vue +84 -0
- package/components/InputOrDisplay.vue +65 -0
- package/components/KeyValueView.vue +283 -0
- package/components/LabelValue.vue +42 -0
- package/components/LandingPagePreference.vue +152 -0
- package/components/LazyImage.vue +70 -0
- package/components/Loading.vue +85 -0
- package/components/LocaleSelector.vue +175 -0
- package/components/LogItem.vue +69 -0
- package/components/Markdown.vue +138 -0
- package/components/MessageLink.vue +79 -0
- package/components/ModalWithCard.vue +137 -0
- package/components/MoveModal.vue +166 -0
- package/components/PaginatedResourceTable.vue +133 -0
- package/components/PercentageBar.vue +127 -0
- package/components/PodSecurityAdmission.vue +306 -0
- package/components/ProgressBarMulti.vue +173 -0
- package/components/PromptChangePassword.vue +123 -0
- package/components/PromptModal.vue +109 -0
- package/components/PromptRemove.vue +471 -0
- package/components/PromptRestore.vue +327 -0
- package/components/Questions/Array.vue +38 -0
- package/components/Questions/Boolean.vue +37 -0
- package/components/Questions/CloudCredential.vue +54 -0
- package/components/Questions/Enum.vue +53 -0
- package/components/Questions/Float.vue +41 -0
- package/components/Questions/Int.vue +41 -0
- package/components/Questions/Question.js +145 -0
- package/components/Questions/QuestionMap.vue +45 -0
- package/components/Questions/Radio.vue +35 -0
- package/components/Questions/Reference.vue +167 -0
- package/components/Questions/String.vue +51 -0
- package/components/Questions/Yaml.vue +48 -0
- package/components/Questions/__tests__/Boolean.test.ts +125 -0
- package/components/Questions/__tests__/Float.test.ts +125 -0
- package/components/Questions/__tests__/Int.test.ts +125 -0
- package/components/Questions/__tests__/String.test.ts +125 -0
- package/components/Questions/__tests__/Yaml.test.ts +125 -0
- package/components/Questions/__tests__/utils/questions-defaults.ts +20 -0
- package/components/Questions/index.vue +522 -0
- package/components/Random.vue +100 -0
- package/components/RelatedResources.vue +187 -0
- package/components/ResourceCancelModal.vue +127 -0
- package/components/ResourceDetail/Masthead.vue +692 -0
- package/components/ResourceDetail/__tests__/Masthead.test.ts +61 -0
- package/components/ResourceDetail/index.vue +534 -0
- package/components/ResourceList/Masthead.vue +246 -0
- package/components/ResourceList/ResourceLoadingIndicator.vue +137 -0
- package/components/ResourceList/index.vue +306 -0
- package/components/ResourceList/resource-list.config.js +7 -0
- package/components/ResourceSummary.vue +173 -0
- package/components/ResourceTable.vue +661 -0
- package/components/ResourceYaml.vue +403 -0
- package/components/RoleBindings.vue +470 -0
- package/components/SelectIconGrid.vue +414 -0
- package/components/Setting.vue +115 -0
- package/components/SideNav.vue +568 -0
- package/components/SimpleBox.vue +121 -0
- package/components/SingleClusterInfo.vue +199 -0
- package/components/SortableTable/THead.vue +526 -0
- package/components/SortableTable/actions.js +153 -0
- package/components/SortableTable/advanced-filtering.js +272 -0
- package/components/SortableTable/debug.js +117 -0
- package/components/SortableTable/filtering.js +290 -0
- package/components/SortableTable/grouping.js +48 -0
- package/components/SortableTable/index.vue +2089 -0
- package/components/SortableTable/paging.js +147 -0
- package/components/SortableTable/selection.js +640 -0
- package/components/SortableTable/sortable-config.ts +4 -0
- package/components/SortableTable/sorting.js +129 -0
- package/components/StatusTable.vue +61 -0
- package/components/TabTitle.vue +78 -0
- package/components/Tabbed/Tab.vue +129 -0
- package/components/Tabbed/index.vue +569 -0
- package/components/TableDataUserIcon.vue +47 -0
- package/components/TableSparkLine.vue +108 -0
- package/components/Tag.vue +19 -0
- package/components/Tip.vue +43 -0
- package/components/TypeDescription.vue +65 -0
- package/components/Wizard.vue +704 -0
- package/components/YamlEditor.vue +296 -0
- package/components/__tests__/AppModal.test.ts +106 -0
- package/components/__tests__/ApplicationCard.test.ts +27 -0
- package/components/__tests__/AsyncButton.test.ts +148 -0
- package/components/__tests__/BackLink.test.ts +33 -0
- package/components/__tests__/ButtonGroup.test.ts +121 -0
- package/components/__tests__/ButtonMultiAction.test.ts +31 -0
- package/components/__tests__/Carousel.test.ts +72 -0
- package/components/__tests__/Certificates.test.ts +31 -0
- package/components/__tests__/ClusterBadge.test.ts +32 -0
- package/components/__tests__/CodeMirror.test.ts +93 -0
- package/components/__tests__/Collapse.test.ts +44 -0
- package/components/__tests__/CollapsibleCard.test.ts +64 -0
- package/components/__tests__/ConsumptionGauge.test.ts +88 -0
- package/components/__tests__/ContainerResourceLimit.test.ts +35 -0
- package/components/__tests__/CopyCode.test.ts +16 -0
- package/components/__tests__/CruResource.test.ts +155 -0
- package/components/__tests__/EtcdInfoBanner.test.ts +39 -0
- package/components/__tests__/FixedBanner.test.ts +114 -0
- package/components/__tests__/GrowlManager.test.ts +146 -0
- package/components/__tests__/NamespaceFilter.test.ts +247 -0
- package/components/__tests__/PercentageBar.test.ts +32 -0
- package/components/__tests__/PodSecurityAdmission.test.ts +440 -0
- package/components/__tests__/ProjectRow.test.ts +59 -0
- package/components/__tests__/PromptRestore.test.ts +139 -0
- package/components/__tests__/SimpleBox.spec.ts +28 -0
- package/components/__tests__/TabTitle.test.ts +136 -0
- package/components/auth/AllowedPrincipals.vue +122 -0
- package/components/auth/AuthBanner.vue +104 -0
- package/components/auth/AzureWarning.vue +77 -0
- package/components/auth/Principal.vue +212 -0
- package/components/auth/RoleDetailEdit.vue +808 -0
- package/components/auth/SelectPrincipal.vue +260 -0
- package/components/auth/__tests__/Principal.test.ts +40 -0
- package/components/auth/__tests__/RoleDetailEdit.test.ts +83 -0
- package/components/auth/login/github.vue +23 -0
- package/components/auth/login/ldap.vue +106 -0
- package/components/auth/login/oauth.vue +26 -0
- package/components/auth/login/oidc.vue +32 -0
- package/components/auth/login/saml.vue +39 -0
- package/components/cards/ApplicationCard.vue +145 -0
- package/components/fleet/FleetBundleResources.vue +86 -0
- package/components/fleet/FleetBundles.vue +136 -0
- package/components/fleet/FleetClusters.vue +208 -0
- package/components/fleet/FleetIntro.vue +65 -0
- package/components/fleet/FleetNoWorkspaces.vue +62 -0
- package/components/fleet/FleetRepos.vue +184 -0
- package/components/fleet/FleetResources.vue +83 -0
- package/components/fleet/FleetStatus.vue +301 -0
- package/components/fleet/FleetSummary.vue +210 -0
- package/components/fleet/ForceDirectedTreeChart/chartIcons.js +17 -0
- package/components/fleet/ForceDirectedTreeChart/index.vue +565 -0
- package/components/fleet/ResourcesSummary.vue +93 -0
- package/components/fleet/__tests__/FleetSummary.test.ts +362 -0
- package/components/form/ArrayList.vue +418 -0
- package/components/form/ArrayListGrouped.vue +141 -0
- package/components/form/ArrayListSelect.vue +103 -0
- package/components/form/BannerSettings.vue +220 -0
- package/components/form/ChangePassword.vue +461 -0
- package/components/form/ClusterAppearance.vue +132 -0
- package/components/form/ColorInput.vue +200 -0
- package/components/form/Command.vue +213 -0
- package/components/form/Conditions.vue +93 -0
- package/components/form/EnvVars.vue +154 -0
- package/components/form/Error.vue +66 -0
- package/components/form/FileImageSelector.vue +140 -0
- package/components/form/FileSelector.vue +169 -0
- package/components/form/Footer.vue +116 -0
- package/components/form/GitPicker.vue +590 -0
- package/components/form/HealthCheck.vue +86 -0
- package/components/form/HookOption.vue +258 -0
- package/components/form/InputWithSelect.vue +329 -0
- package/components/form/KeyValue.vue +962 -0
- package/components/form/LabeledSelect.vue +723 -0
- package/components/form/Labels.vue +151 -0
- package/components/form/LifecycleHooks.vue +87 -0
- package/components/form/MatchExpressions.vue +446 -0
- package/components/form/Members/ClusterMembershipEditor.vue +61 -0
- package/components/form/Members/ClusterPermissionsEditor.vue +314 -0
- package/components/form/Members/MembershipEditor.vue +230 -0
- package/components/form/Members/ProjectMembershipEditor.vue +63 -0
- package/components/form/Members/__tests__/MembershipEditor.test.ts +62 -0
- package/components/form/NameNsDescription.vue +554 -0
- package/components/form/Networking.vue +273 -0
- package/components/form/NodeAffinity.vue +250 -0
- package/components/form/NodeScheduling.vue +202 -0
- package/components/form/NotificationSettings.vue +71 -0
- package/components/form/Password.vue +185 -0
- package/components/form/PlusMinus.vue +109 -0
- package/components/form/PodAffinity.vue +497 -0
- package/components/form/Ports.vue +310 -0
- package/components/form/Probe.vue +374 -0
- package/components/form/ProjectMemberEditor.vue +342 -0
- package/components/form/ResourceLabeledSelect.vue +154 -0
- package/components/form/ResourceQuota/Namespace.vue +117 -0
- package/components/form/ResourceQuota/NamespaceRow.vue +220 -0
- package/components/form/ResourceQuota/Project.vue +103 -0
- package/components/form/ResourceQuota/ProjectRow.vue +115 -0
- package/components/form/ResourceQuota/shared.js +147 -0
- package/components/form/ResourceSelector.vue +146 -0
- package/components/form/ResourceTabs/index.vue +292 -0
- package/components/form/RuleSelector.vue +184 -0
- package/components/form/SSHKnownHosts/KnownHostsEditDialog.vue +193 -0
- package/components/form/SSHKnownHosts/__tests__/KnownHostsEditDialog.test.ts +104 -0
- package/components/form/SSHKnownHosts/index.vue +101 -0
- package/components/form/SchedulingCustomization.vue +85 -0
- package/components/form/SecretSelector.vue +269 -0
- package/components/form/Security.vue +247 -0
- package/components/form/Select.vue +370 -0
- package/components/form/SelectOrCreateAuthSecret.vue +693 -0
- package/components/form/ServiceNameSelect.vue +168 -0
- package/components/form/ServicePorts.vue +340 -0
- package/components/form/ShellInput.vue +91 -0
- package/components/form/SimpleSecretSelector.vue +258 -0
- package/components/form/Taints.vue +98 -0
- package/components/form/Tolerations.vue +315 -0
- package/components/form/UnitInput.vue +257 -0
- package/components/form/ValueFromResource.vue +394 -0
- package/components/form/WorkloadPorts.vue +514 -0
- package/components/form/__tests__/ArrayList.test.ts +124 -0
- package/components/form/__tests__/ArrayListGrouped.test.ts +41 -0
- package/components/form/__tests__/BannerSettings.test.ts +54 -0
- package/components/form/__tests__/ColorInput.test.ts +27 -0
- package/components/form/__tests__/Command.test.ts +64 -0
- package/components/form/__tests__/Error.test.ts +56 -0
- package/components/form/__tests__/FileImageSelector.test.ts +42 -0
- package/components/form/__tests__/FileSelector.test.ts +76 -0
- package/components/form/__tests__/HookOption.test.ts +28 -0
- package/components/form/__tests__/InputWithSelect.test.ts +42 -0
- package/components/form/__tests__/KeyValue.test.ts +179 -0
- package/components/form/__tests__/LabeledSelect.test.ts +217 -0
- package/components/form/__tests__/MatchExpressions.test.ts +78 -0
- package/components/form/__tests__/NameNsDescription.test.ts +72 -0
- package/components/form/__tests__/NodeAffinity.test.ts +39 -0
- package/components/form/__tests__/NodeScheduling.test.ts +44 -0
- package/components/form/__tests__/PodAffinity.test.ts +47 -0
- package/components/form/__tests__/Probe.test.ts +74 -0
- package/components/form/__tests__/SSHKnownHosts.test.ts +59 -0
- package/components/form/__tests__/Security.test.ts +55 -0
- package/components/form/__tests__/Select.test.ts +30 -0
- package/components/form/__tests__/SelectOrCreateAuthSecret.test.ts +34 -0
- package/components/form/__tests__/ServiceNameSelect.test.ts +42 -0
- package/components/form/__tests__/Taints.test.ts +71 -0
- package/components/form/__tests__/UnitInput.test.ts +256 -0
- package/components/form/labeled-select-utils/labeled-select-pagination.ts +151 -0
- package/components/form/labeled-select-utils/labeled-select.utils.ts +122 -0
- package/components/formatter/AppSummaryGraph.vue +154 -0
- package/components/formatter/BadgeStateFormatter.vue +63 -0
- package/components/formatter/Capitalize.vue +28 -0
- package/components/formatter/Checked.vue +31 -0
- package/components/formatter/CloudCredExpired.vue +69 -0
- package/components/formatter/CloudCredPublicData.vue +30 -0
- package/components/formatter/ClusterLink.vue +117 -0
- package/components/formatter/ClusterProvider.vue +38 -0
- package/components/formatter/CopyToClipboard.vue +18 -0
- package/components/formatter/Date.vue +74 -0
- package/components/formatter/DelayedValue.vue +46 -0
- package/components/formatter/Endpoints.vue +106 -0
- package/components/formatter/ExtensionCache.vue +74 -0
- package/components/formatter/ExternalLink.vue +11 -0
- package/components/formatter/FleetClusterSummaryGraph.vue +27 -0
- package/components/formatter/FleetSummaryGraph.vue +122 -0
- package/components/formatter/IconIsDefault.vue +34 -0
- package/components/formatter/IconText.vue +49 -0
- package/components/formatter/ImageName.vue +23 -0
- package/components/formatter/ImagePercentageBar.vue +86 -0
- package/components/formatter/IngressFullPath.vue +22 -0
- package/components/formatter/IngressTarget.vue +96 -0
- package/components/formatter/InternalExternalIP.vue +62 -0
- package/components/formatter/InvolvedObjectLink.vue +54 -0
- package/components/formatter/KeyValue.vue +78 -0
- package/components/formatter/Link.vue +189 -0
- package/components/formatter/LinkDetail.vue +58 -0
- package/components/formatter/LinkDetailImage.vue +31 -0
- package/components/formatter/LinkName.vue +66 -0
- package/components/formatter/List.vue +22 -0
- package/components/formatter/ListLink.vue +37 -0
- package/components/formatter/ListLinkDetail.vue +30 -0
- package/components/formatter/LiveDate.vue +167 -0
- package/components/formatter/LiveDuration.vue +78 -0
- package/components/formatter/LiveExpiryBadgeState.vue +79 -0
- package/components/formatter/LiveExpiryDate.vue +87 -0
- package/components/formatter/LivePodRestarts.vue +50 -0
- package/components/formatter/MachineSummaryGraph.vue +108 -0
- package/components/formatter/Number.vue +34 -0
- package/components/formatter/Percentage.vue +25 -0
- package/components/formatter/PercentageBar.vue +41 -0
- package/components/formatter/PodImages.vue +72 -0
- package/components/formatter/PodsUsage.vue +29 -0
- package/components/formatter/Port.vue +24 -0
- package/components/formatter/Principal.vue +22 -0
- package/components/formatter/PrincipalGroupBindings.vue +59 -0
- package/components/formatter/QualityText.vue +21 -0
- package/components/formatter/RKETemplateName.vue +37 -0
- package/components/formatter/ReceiverIcons.vue +132 -0
- package/components/formatter/RunBookLink.vue +20 -0
- package/components/formatter/Scale.vue +143 -0
- package/components/formatter/ScanResult.vue +33 -0
- package/components/formatter/SecretData.vue +55 -0
- package/components/formatter/SecretType.vue +41 -0
- package/components/formatter/ServiceTargets.vue +121 -0
- package/components/formatter/ServiceType.vue +54 -0
- package/components/formatter/Shortened.vue +55 -0
- package/components/formatter/Si.vue +46 -0
- package/components/formatter/Translate.vue +32 -0
- package/components/formatter/VerticalScroll.vue +17 -0
- package/components/formatter/VirtualServiceGateways.vue +111 -0
- package/components/formatter/WorkloadDetailEndpoints.vue +107 -0
- package/components/formatter/WorkloadHealthScale.vue +339 -0
- package/components/formatter/__tests__/Checked.test.ts +19 -0
- package/components/formatter/__tests__/ClusterLink.test.ts +101 -0
- package/components/formatter/__tests__/Date.test.ts +60 -0
- package/components/formatter/__tests__/LinkDetail.test.ts +72 -0
- package/components/formatter/__tests__/LiveDate.test.ts +90 -0
- package/components/formatter/__tests__/PodsUsage.test.ts +55 -0
- package/components/formatter/__tests__/Si.test.ts +35 -0
- package/components/formatter/__tests__/WorkloadDetailEndpoints.test.ts +81 -0
- package/components/graph/AspectPreserver.vue +79 -0
- package/components/graph/Bar.vue +81 -0
- package/components/graph/Circle.vue +164 -0
- package/components/graph/HalfCircle.vue +46 -0
- package/components/graph/LinePlot.vue +189 -0
- package/components/graph/ProgressArc.vue +94 -0
- package/components/nav/Favorite.vue +56 -0
- package/components/nav/GlobalLoading.vue +25 -0
- package/components/nav/Group.vue +462 -0
- package/components/nav/Header.vue +1156 -0
- package/components/nav/HeaderPageActionMenu.vue +22 -0
- package/components/nav/Jump.vue +128 -0
- package/components/nav/NamespaceFilter.vue +1155 -0
- package/components/nav/Pinned.vue +52 -0
- package/components/nav/TopLevelMenu.helper.ts +562 -0
- package/components/nav/TopLevelMenu.vue +1602 -0
- package/components/nav/Type.vue +292 -0
- package/components/nav/WindowManager/ChartReadme.vue +48 -0
- package/components/nav/WindowManager/ContainerLogs.vue +877 -0
- package/components/nav/WindowManager/ContainerShell.vue +585 -0
- package/components/nav/WindowManager/KubectlShell.vue +42 -0
- package/components/nav/WindowManager/MachineSsh.vue +21 -0
- package/components/nav/WindowManager/Window.vue +105 -0
- package/components/nav/WindowManager/__tests__/ContainerLogs.test.ts +197 -0
- package/components/nav/WindowManager/__tests__/ContainerShell.test.ts +571 -0
- package/components/nav/WindowManager/index.vue +587 -0
- package/components/nav/WorkspaceSwitcher.vue +190 -0
- package/components/nav/__tests__/TopLevelMenu.test.ts +598 -0
- package/components/nav/__tests__/Type.test.ts +491 -0
- package/components/templates/blank.vue +20 -0
- package/components/templates/default.vue +263 -0
- package/components/templates/home.vue +126 -0
- package/components/templates/plain.vue +134 -0
- package/components/templates/standalone.vue +9 -0
- package/components/templates/unauthenticated.vue +26 -0
- package/components/user.retention/user-retention-header.vue +34 -0
- package/composables/focusTrap.ts +68 -0
- package/composables/useClickOutside.ts +81 -0
- package/composables/useCompactInput.test.ts +36 -0
- package/composables/useCompactInput.ts +20 -0
- package/composables/useI18n.ts +26 -0
- package/composables/useLabeledFormElement.test.ts +135 -0
- package/composables/useLabeledFormElement.ts +153 -0
- package/composables/useUserRetentionValidation.test.ts +178 -0
- package/composables/useUserRetentionValidation.ts +201 -0
- package/config/__test__/home-links.test.ts +57 -0
- package/config/cookies.js +4 -0
- package/config/elemental-types.js +9 -0
- package/config/features.js +6 -0
- package/config/harvester-manager-types.js +3 -0
- package/config/home-links.js +209 -0
- package/config/labels-annotations.js +192 -0
- package/config/local-storage.js +6 -0
- package/config/page-actions.js +4 -0
- package/config/pagination-table-headers.js +80 -0
- package/config/persistentVolume.ts +108 -0
- package/config/pod-security-admission.ts +82 -0
- package/config/private-label.js +94 -0
- package/config/product/apps.js +148 -0
- package/config/product/auth.js +218 -0
- package/config/product/backup.js +61 -0
- package/config/product/cis.js +158 -0
- package/config/product/explorer.js +632 -0
- package/config/product/fleet.js +100 -0
- package/config/product/gatekeeper.js +119 -0
- package/config/product/istio.js +89 -0
- package/config/product/legacy.js +62 -0
- package/config/product/logging.js +377 -0
- package/config/product/longhorn.js +49 -0
- package/config/product/manager.js +217 -0
- package/config/product/monitoring.js +287 -0
- package/config/product/navlinks.js +32 -0
- package/config/product/neuvector.js +30 -0
- package/config/product/settings.js +161 -0
- package/config/product/uiplugins.js +18 -0
- package/config/query-params.js +79 -0
- package/config/roles.ts +409 -0
- package/config/router/index.js +26 -0
- package/config/router/navigation-guards/attempt-first-login.js +73 -0
- package/config/router/navigation-guards/authentication.js +64 -0
- package/config/router/navigation-guards/clusters.js +132 -0
- package/config/router/navigation-guards/i18n.js +13 -0
- package/config/router/navigation-guards/index.js +23 -0
- package/config/router/navigation-guards/install-redirect.js +95 -0
- package/config/router/navigation-guards/load-initial-settings.js +15 -0
- package/config/router/navigation-guards/page-title.js +12 -0
- package/config/router/navigation-guards/products.js +15 -0
- package/config/router/navigation-guards/record-last-route.js +24 -0
- package/config/router/navigation-guards/runtime-extension-route.js +31 -0
- package/config/router/navigation-guards/server-upgrade-growl.js +19 -0
- package/config/router/routes.js +488 -0
- package/config/schema.js +32 -0
- package/config/secret.js +14 -0
- package/config/settings.ts +258 -0
- package/config/store.js +184 -0
- package/config/system-namespaces.js +18 -0
- package/config/table-headers.js +1115 -0
- package/config/types.js +353 -0
- package/config/uiplugins.js +272 -0
- package/config/version.js +33 -0
- package/config/workload.ts +1 -0
- package/core/plugin-helpers.ts +220 -0
- package/core/plugin-routes.ts +144 -0
- package/core/plugin.ts +367 -0
- package/core/plugins-loader.js +31 -0
- package/core/plugins.js +471 -0
- package/core/types-provisioning.ts +361 -0
- package/core/types.ts +661 -0
- package/detail/__tests__/autoscaling.horizontalpodautoscaler.test.ts +135 -0
- package/detail/__tests__/provisioning.cattle.io.cluster.test.ts +119 -0
- package/detail/__tests__/service.test.ts +62 -0
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +254 -0
- package/detail/catalog.cattle.io.app.vue +181 -0
- package/detail/catalog.cattle.io.clusterrepo.vue +35 -0
- package/detail/cis.cattle.io.clusterscan.vue +372 -0
- package/detail/configmap.vue +81 -0
- package/detail/constraints.gatekeeper.sh.constraint.vue +66 -0
- package/detail/fleet.cattle.io.bundle.vue +63 -0
- package/detail/fleet.cattle.io.cluster.vue +99 -0
- package/detail/fleet.cattle.io.clustergroup.vue +76 -0
- package/detail/fleet.cattle.io.gitrepo.vue +148 -0
- package/detail/harvesterhci.io.management.cluster.vue +104 -0
- package/detail/helm.cattle.io.projecthelmchart.vue +249 -0
- package/detail/management.cattle.io.fleetworkspace.vue +100 -0
- package/detail/management.cattle.io.globalrole.vue +8 -0
- package/detail/management.cattle.io.roletemplate.vue +11 -0
- package/detail/management.cattle.io.user.vue +312 -0
- package/detail/namespace.vue +269 -0
- package/detail/networking.k8s.io.ingress.vue +74 -0
- package/detail/node.vue +330 -0
- package/detail/pod.vue +255 -0
- package/detail/provisioning.cattle.io.cluster.vue +1134 -0
- package/detail/rbac.authorization.k8s.io.clusterrole.vue +8 -0
- package/detail/rbac.authorization.k8s.io.role.vue +8 -0
- package/detail/secret.vue +313 -0
- package/detail/service.vue +202 -0
- package/detail/workload/index.vue +541 -0
- package/dialog/AddClusterMemberDialog.vue +86 -0
- package/dialog/AddCustomBadgeDialog.vue +465 -0
- package/dialog/AddProjectMemberDialog.vue +181 -0
- package/dialog/AddonConfigConfirmationDialog.vue +101 -0
- package/dialog/DeactivateDriverDialog.vue +138 -0
- package/dialog/DiagnosticTimingsDialog.vue +141 -0
- package/dialog/DrainNode.vue +247 -0
- package/dialog/ForceMachineRemoveDialog.vue +131 -0
- package/dialog/GenericPrompt.vue +135 -0
- package/dialog/GitRepoForceUpdateDialog.vue +132 -0
- package/dialog/RollbackWorkloadDialog.vue +308 -0
- package/dialog/RotateCertificatesDialog.vue +205 -0
- package/dialog/RotateEncryptionKeyDialog.vue +191 -0
- package/dialog/SaveAsRKETemplateDialog.vue +139 -0
- package/dialog/ScaleMachineDownDialog.vue +156 -0
- package/dialog/ScalePoolDownDialog.vue +121 -0
- package/dialog/SloDialog.vue +97 -0
- package/directives/clean-html.js +15 -0
- package/directives/clean-tooltip.js +32 -0
- package/directives/focus.js +47 -0
- package/directives/int-number.js +21 -0
- package/directives/positive-int-number.js +19 -0
- package/directives/strip-html-aria-label.js +19 -0
- package/directives/trim-whitespace.js +19 -0
- package/edit/__tests__/cis.cattle.io.clusterscan.test.ts +87 -0
- package/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +246 -0
- package/edit/__tests__/kontainerDriver.test.ts +110 -0
- package/edit/__tests__/management.cattle.io.clusterroletemplatebinding.test.ts +71 -0
- package/edit/__tests__/management.cattle.io.setting.test.ts +109 -0
- package/edit/__tests__/monitoring.coreos.com.prometheusrule.test.ts +57 -0
- package/edit/__tests__/namespace.test.ts +49 -0
- package/edit/__tests__/nodeDriver.test.ts +89 -0
- package/edit/__tests__/service.test.ts +100 -0
- package/edit/__tests__/ui.cattle.io.navlink.test.ts +114 -0
- package/edit/auth/AuthProviderWarningBanners.vue +34 -0
- package/edit/auth/__tests__/AuthProviderWarningBanners.test.ts +19 -0
- package/edit/auth/__tests__/azuread.test.ts +238 -0
- package/edit/auth/__tests__/oidc.test.ts +151 -0
- package/edit/auth/azuread.vue +537 -0
- package/edit/auth/github.vue +269 -0
- package/edit/auth/googleoauth.vue +256 -0
- package/edit/auth/ldap/__tests__/config.test.ts +58 -0
- package/edit/auth/ldap/config.vue +403 -0
- package/edit/auth/ldap/index.vue +156 -0
- package/edit/auth/oidc.vue +412 -0
- package/edit/auth/saml.vue +432 -0
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +58 -0
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +130 -0
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +343 -0
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +79 -0
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +60 -0
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +220 -0
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +198 -0
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +71 -0
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +58 -0
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +65 -0
- package/edit/catalog.cattle.io.clusterrepo.vue +336 -0
- package/edit/cis.cattle.io.clusterscan.vue +377 -0
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +153 -0
- package/edit/cis.cattle.io.clusterscanprofile.vue +150 -0
- package/edit/cloudcredential.vue +319 -0
- package/edit/configmap.vue +163 -0
- package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +72 -0
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +78 -0
- package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +52 -0
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +368 -0
- package/edit/fleet.cattle.io.cluster.vue +105 -0
- package/edit/fleet.cattle.io.clustergroup.vue +187 -0
- package/edit/fleet.cattle.io.gitrepo.vue +910 -0
- package/edit/group.principal.vue +65 -0
- package/edit/helm.cattle.io.projecthelmchart.vue +163 -0
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +94 -0
- package/edit/kontainerDriver.vue +67 -0
- package/edit/logging-flow/Match.vue +142 -0
- package/edit/logging-flow/index.vue +549 -0
- package/edit/logging.banzaicloud.io.clusterflow.vue +7 -0
- package/edit/logging.banzaicloud.io.clusteroutput.vue +12 -0
- package/edit/logging.banzaicloud.io.flow.vue +7 -0
- package/edit/logging.banzaicloud.io.output/__tests__/logging.banzaicloud.io.output.test.ts +279 -0
- package/edit/logging.banzaicloud.io.output/index.vue +386 -0
- package/edit/logging.banzaicloud.io.output/providers/__tests__/loki.test.ts +13 -0
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +77 -0
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +94 -0
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +112 -0
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +95 -0
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +234 -0
- package/edit/logging.banzaicloud.io.output/providers/file.vue +47 -0
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +152 -0
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +102 -0
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +167 -0
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +166 -0
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +76 -0
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +72 -0
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +107 -0
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +172 -0
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +71 -0
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +225 -0
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +142 -0
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +122 -0
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +180 -0
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +59 -0
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +234 -0
- package/edit/logging.banzaicloud.io.output/providers/utils.js +27 -0
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +71 -0
- package/edit/management.cattle.io.fleetworkspace.vue +245 -0
- package/edit/management.cattle.io.globalrole.vue +8 -0
- package/edit/management.cattle.io.node.vue +72 -0
- package/edit/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +111 -0
- package/edit/management.cattle.io.project.vue +255 -0
- package/edit/management.cattle.io.projectroletemplatebinding.vue +96 -0
- package/edit/management.cattle.io.roletemplate.vue +11 -0
- package/edit/management.cattle.io.setting.vue +264 -0
- package/edit/management.cattle.io.user.vue +264 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +324 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +287 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +423 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +152 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +272 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +175 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +282 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +203 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +140 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +230 -0
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +534 -0
- package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +229 -0
- package/edit/monitoring.coreos.com.prometheusrule/RecordingRule.vue +112 -0
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +223 -0
- package/edit/monitoring.coreos.com.receiver/auth.vue +142 -0
- package/edit/monitoring.coreos.com.receiver/index.vue +357 -0
- package/edit/monitoring.coreos.com.receiver/tls.vue +72 -0
- package/edit/monitoring.coreos.com.receiver/types/__tests__/email.test.ts +57 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +130 -0
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +237 -0
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +97 -0
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +88 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.add.vue +65 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +28 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +93 -0
- package/edit/monitoring.coreos.com.route.vue +237 -0
- package/edit/namespace.vue +282 -0
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +194 -0
- package/edit/networking.istio.io.destinationrule/index.vue +237 -0
- package/edit/networking.k8s.io.ingress/Certificate.vue +134 -0
- package/edit/networking.k8s.io.ingress/Certificates.vue +111 -0
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +145 -0
- package/edit/networking.k8s.io.ingress/IngressClass.vue +65 -0
- package/edit/networking.k8s.io.ingress/Rule.vue +188 -0
- package/edit/networking.k8s.io.ingress/RulePath.vue +224 -0
- package/edit/networking.k8s.io.ingress/Rules.vue +155 -0
- package/edit/networking.k8s.io.ingress/index.vue +300 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +108 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +50 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +401 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRules.vue +93 -0
- package/edit/networking.k8s.io.networkpolicy/__tests__/PolicyRuleTarget.test.ts +180 -0
- package/edit/networking.k8s.io.networkpolicy/__tests__/utils/mock.json +158 -0
- package/edit/networking.k8s.io.networkpolicy/__tests__/utils/selectors.test.ts +45 -0
- package/edit/networking.k8s.io.networkpolicy/index.vue +299 -0
- package/edit/node.vue +82 -0
- package/edit/nodeDriver.vue +72 -0
- package/edit/persistentvolume/__tests__/persistentvolume.test.ts +93 -0
- package/edit/persistentvolume/index.vue +380 -0
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +90 -0
- package/edit/persistentvolume/plugins/azureDisk.vue +136 -0
- package/edit/persistentvolume/plugins/azureFile.vue +78 -0
- package/edit/persistentvolume/plugins/cephfs.vue +109 -0
- package/edit/persistentvolume/plugins/cinder.vue +89 -0
- package/edit/persistentvolume/plugins/csi.vue +209 -0
- package/edit/persistentvolume/plugins/fc.vue +101 -0
- package/edit/persistentvolume/plugins/flexVolume.vue +102 -0
- package/edit/persistentvolume/plugins/flocker.vue +45 -0
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +90 -0
- package/edit/persistentvolume/plugins/glusterfs.vue +70 -0
- package/edit/persistentvolume/plugins/hostPath.vue +82 -0
- package/edit/persistentvolume/plugins/iscsi.vue +170 -0
- package/edit/persistentvolume/plugins/local.vue +37 -0
- package/edit/persistentvolume/plugins/longhorn.vue +99 -0
- package/edit/persistentvolume/plugins/nfs.vue +70 -0
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +58 -0
- package/edit/persistentvolume/plugins/portworxVolume.vue +71 -0
- package/edit/persistentvolume/plugins/quobyte.vue +88 -0
- package/edit/persistentvolume/plugins/rbd.vue +127 -0
- package/edit/persistentvolume/plugins/scaleIO.vue +146 -0
- package/edit/persistentvolume/plugins/storageos.vue +98 -0
- package/edit/persistentvolume/plugins/vsphereVolume.vue +63 -0
- package/edit/persistentvolumeclaim.vue +395 -0
- package/edit/pod.vue +27 -0
- package/edit/policy.poddisruptionbudget.vue +152 -0
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +40 -0
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +303 -0
- package/edit/provisioning.cattle.io.cluster/Labels.vue +46 -0
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +324 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/Advanced.test.ts +306 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/Basics.test.ts +564 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/CustomCommand.test.ts +129 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/DirectoryConfig.test.ts +182 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/DrainOptions.test.ts +54 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/index.test.ts +72 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +546 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/utils/cluster.ts +391 -0
- package/edit/provisioning.cattle.io.cluster/index.vue +733 -0
- package/edit/provisioning.cattle.io.cluster/rke2.vue +2547 -0
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnAdditionalManifest.vue +49 -0
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig.vue +112 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Advanced.vue +221 -0
- package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +335 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +700 -0
- package/edit/provisioning.cattle.io.cluster/tabs/DirectoryConfig.vue +219 -0
- package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +374 -0
- package/edit/provisioning.cattle.io.cluster/tabs/MemberRoles.vue +40 -0
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/S3Config.vue +153 -0
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +138 -0
- package/edit/provisioning.cattle.io.cluster/tabs/networking/ACE.vue +73 -0
- package/edit/provisioning.cattle.io.cluster/tabs/networking/index.vue +214 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +211 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryMirrors.vue +138 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/__tests__/RegistryConfigs.test.ts +66 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/index.vue +149 -0
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/DrainOptions.vue +155 -0
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/index.vue +76 -0
- package/edit/rbac.authorization.k8s.io.clusterrole.vue +8 -0
- package/edit/rbac.authorization.k8s.io.role.vue +8 -0
- package/edit/resources.cattle.io.backup.vue +454 -0
- package/edit/resources.cattle.io.restore.vue +326 -0
- package/edit/secret/__tests__/ssh.test.ts +79 -0
- package/edit/secret/basic.vue +64 -0
- package/edit/secret/generic.vue +64 -0
- package/edit/secret/index.vue +407 -0
- package/edit/secret/registry.vue +145 -0
- package/edit/secret/ssh.vue +106 -0
- package/edit/secret/tls.vue +94 -0
- package/edit/service.vue +549 -0
- package/edit/serviceaccount.vue +193 -0
- package/edit/storage.k8s.io.storageclass/index.vue +307 -0
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +25 -0
- package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +114 -0
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +40 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +180 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +75 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +47 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +69 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +117 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +99 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/no-provisioner.vue +21 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +83 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +91 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +117 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +116 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +65 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +97 -0
- package/edit/token.vue +316 -0
- package/edit/ui.cattle.io.navlink.vue +461 -0
- package/edit/workload/Job.vue +339 -0
- package/edit/workload/Upgrading.vue +372 -0
- package/edit/workload/VolumeClaimTemplate.vue +136 -0
- package/edit/workload/__tests__/Job.test.ts +72 -0
- package/edit/workload/__tests__/Upgrading.test.ts +61 -0
- package/edit/workload/__tests__/index.test.ts +103 -0
- package/edit/workload/index.vue +676 -0
- package/edit/workload/mixins/workload.js +1067 -0
- package/edit/workload/storage/ContainerMountPaths.vue +171 -0
- package/edit/workload/storage/Mount.vue +157 -0
- package/edit/workload/storage/__tests__/Mount.test.ts +102 -0
- package/edit/workload/storage/__tests__/Storage.test.ts +106 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +73 -0
- package/edit/workload/storage/azureDisk.vue +104 -0
- package/edit/workload/storage/azureFile.vue +74 -0
- package/edit/workload/storage/csi/driver.longhorn.io.vue +48 -0
- package/edit/workload/storage/csi/index.vue +122 -0
- package/edit/workload/storage/emptyDir.vue +88 -0
- package/edit/workload/storage/ephemeralVolume/index.vue +108 -0
- package/edit/workload/storage/gcePersistentDisk.vue +73 -0
- package/edit/workload/storage/hostPath.vue +115 -0
- package/edit/workload/storage/index.vue +339 -0
- package/edit/workload/storage/nfs.vue +78 -0
- package/edit/workload/storage/persistentVolumeClaim/__tests__/persistentvolumeclaim.test.ts +38 -0
- package/edit/workload/storage/persistentVolumeClaim/index.vue +154 -0
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +256 -0
- package/edit/workload/storage/secret.vue +186 -0
- package/edit/workload/storage/vsphereVolume.vue +73 -0
- package/initialize/App.vue +70 -0
- package/initialize/app-extended.js +112 -0
- package/initialize/entry-helpers.js +147 -0
- package/initialize/entry.js +33 -0
- package/initialize/install-components.js +11 -0
- package/initialize/install-directives.js +61 -0
- package/initialize/install-plugins.js +128 -0
- package/list/__tests__/workload.test.ts +55 -0
- package/list/catalog.cattle.io.app.vue +76 -0
- package/list/catalog.cattle.io.clusterrepo.vue +83 -0
- package/list/cis.cattle.io.clusterscan.vue +76 -0
- package/list/fleet.cattle.io.bundle.vue +127 -0
- package/list/fleet.cattle.io.cluster.vue +95 -0
- package/list/fleet.cattle.io.clustergroup.vue +88 -0
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +94 -0
- package/list/fleet.cattle.io.gitrepo.vue +108 -0
- package/list/group.principal.vue +153 -0
- package/list/harvesterhci.io.management.cluster.vue +244 -0
- package/list/helm.cattle.io.projecthelmchart.vue +157 -0
- package/list/logging.banzaicloud.io.clusterflow.vue +44 -0
- package/list/logging.banzaicloud.io.flow.vue +45 -0
- package/list/management.cattle.io.cluster.vue +54 -0
- package/list/management.cattle.io.feature.vue +367 -0
- package/list/management.cattle.io.fleetworkspace.vue +44 -0
- package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +51 -0
- package/list/management.cattle.io.setting.vue +117 -0
- package/list/management.cattle.io.user.vue +178 -0
- package/list/monitoring.coreos.com.alertmanagerconfig.vue +83 -0
- package/list/namespace.vue +79 -0
- package/list/networking.k8s.io.ingress.vue +39 -0
- package/list/node.vue +418 -0
- package/list/persistentvolume.vue +89 -0
- package/list/persistentvolumeclaim.vue +32 -0
- package/list/provisioning.cattle.io.cluster.vue +318 -0
- package/list/rbac.authorization.k8s.io.clusterrolebinding.vue +47 -0
- package/list/service.vue +48 -0
- package/list/ui.cattle.io.navlink.vue +72 -0
- package/list/workload.vue +187 -0
- package/machine-config/__tests__/vmwarevsphere.test.ts +257 -0
- package/machine-config/amazonec2.vue +702 -0
- package/machine-config/azure.vue +901 -0
- package/machine-config/digitalocean.vue +231 -0
- package/machine-config/generic.vue +103 -0
- package/machine-config/linode.vue +189 -0
- package/machine-config/pnap.vue +288 -0
- package/machine-config/vmwarevsphere-config.ts +17 -0
- package/machine-config/vmwarevsphere.vue +1252 -0
- package/mixins/__tests__/auth-config.test.ts +74 -0
- package/mixins/__tests__/chart.test.ts +104 -0
- package/mixins/__tests__/create-edit-view.test.ts +56 -0
- package/mixins/auth-config.js +332 -0
- package/mixins/back-link.js +15 -0
- package/mixins/brand.js +211 -0
- package/mixins/browser-tab-visibility.js +31 -0
- package/mixins/chart.js +557 -0
- package/mixins/child-hook.js +82 -0
- package/mixins/closeable.js +47 -0
- package/mixins/compact-input.ts +25 -0
- package/mixins/create-edit-view/impl.js +201 -0
- package/mixins/create-edit-view/index.js +48 -0
- package/mixins/fetch.client.js +90 -0
- package/mixins/form-validation.js +197 -0
- package/mixins/labeled-form-element.ts +225 -0
- package/mixins/login.js +31 -0
- package/mixins/metric-poller.js +19 -0
- package/mixins/page-actions.js +36 -0
- package/mixins/resource-fetch-api-pagination.js +339 -0
- package/mixins/resource-fetch-namespaced.js +90 -0
- package/mixins/resource-fetch.js +290 -0
- package/mixins/resource-manager.js +109 -0
- package/mixins/vue-select-overrides.js +102 -0
- package/models/__tests__/apps.deployment.test.ts +93 -0
- package/models/__tests__/batch.cronjob.test.ts +88 -0
- package/models/__tests__/catalog.cattle.io.app.test.ts +148 -0
- package/models/__tests__/cluster.test.ts +44 -0
- package/models/__tests__/fleet.cattle.io.cluster.test.ts +36 -0
- package/models/__tests__/fleet.cattle.io.gitrepo.test.ts +157 -0
- package/models/__tests__/management.cattle.io.cluster.test.ts +23 -0
- package/models/__tests__/management.cattle.io.node.ts +181 -0
- package/models/__tests__/management.cattle.io.nodepool.ts +83 -0
- package/models/__tests__/namespace.test.ts +165 -0
- package/models/__tests__/node.test.ts +74 -0
- package/models/__tests__/provisioning.cattle.io.cluster.test.ts +155 -0
- package/models/__tests__/schema.tests.ts +24 -0
- package/models/__tests__/secret.test.ts +80 -0
- package/models/__tests__/steve-schema.test.ts +73 -0
- package/models/__tests__/storage.k8s.io.storageclass.test.ts +22 -0
- package/models/__tests__/workload.test.ts +91 -0
- package/models/app.js +25 -0
- package/models/apps.controllerrevision.js +7 -0
- package/models/apps.daemonset.js +22 -0
- package/models/apps.deployment.js +71 -0
- package/models/apps.replicaset.js +11 -0
- package/models/apps.statefulset.js +49 -0
- package/models/autoscaling.horizontalpodautoscaler.js +44 -0
- package/models/batch.cronjob.js +85 -0
- package/models/batch.job.js +19 -0
- package/models/catalog.cattle.io.app.js +488 -0
- package/models/catalog.cattle.io.clusterrepo.js +223 -0
- package/models/catalog.cattle.io.operation.js +43 -0
- package/models/catalog.cattle.io.repo.js +4 -0
- package/models/catalog.cattle.io.uiplugin.js +37 -0
- package/models/chart.js +50 -0
- package/models/chartinstallaction.js +17 -0
- package/models/chartupgradeaction.js +12 -0
- package/models/cis.cattle.io.clusterscan.js +179 -0
- package/models/cis.cattle.io.clusterscanbenchmark.js +18 -0
- package/models/cis.cattle.io.clusterscanprofile.js +31 -0
- package/models/cis.cattle.io.clusterscanreport.js +62 -0
- package/models/cloudcredential.js +336 -0
- package/models/cluster/node.js +487 -0
- package/models/cluster/schema.js +6 -0
- package/models/cluster.js +44 -0
- package/models/cluster.x-k8s.io.machine.js +272 -0
- package/models/cluster.x-k8s.io.machinedeployment.js +228 -0
- package/models/cluster.x-k8s.io.machineset.js +23 -0
- package/models/clusterroletemplatebinding.js +31 -0
- package/models/configmap.js +20 -0
- package/models/constraints.gatekeeper.sh.constraint.js +121 -0
- package/models/driver.js +63 -0
- package/models/etcdbackup.js +45 -0
- package/models/event.js +34 -0
- package/models/fleet.cattle.io.bundle.js +168 -0
- package/models/fleet.cattle.io.cluster.js +221 -0
- package/models/fleet.cattle.io.clustergroup.js +62 -0
- package/models/fleet.cattle.io.clusterregistrationtoken.js +14 -0
- package/models/fleet.cattle.io.gitrepo.js +548 -0
- package/models/group.principal.js +71 -0
- package/models/helm.cattle.io.projecthelmchart.js +38 -0
- package/models/k8s.cni.cncf.io.networkattachmentdefinition.js +88 -0
- package/models/kontainerdriver.js +85 -0
- package/models/logging.banzaicloud.io.clusterflow.js +36 -0
- package/models/logging.banzaicloud.io.clusteroutput.js +4 -0
- package/models/logging.banzaicloud.io.flow.js +114 -0
- package/models/logging.banzaicloud.io.output.js +173 -0
- package/models/management/schema.js +6 -0
- package/models/management.cattle.io.authconfig.js +70 -0
- package/models/management.cattle.io.cluster.js +501 -0
- package/models/management.cattle.io.clusterroletemplatebinding.js +143 -0
- package/models/management.cattle.io.feature.js +56 -0
- package/models/management.cattle.io.fleetworkspace.js +90 -0
- package/models/management.cattle.io.gitreporestriction.js +5 -0
- package/models/management.cattle.io.globalrole.js +172 -0
- package/models/management.cattle.io.globalrolebinding.js +59 -0
- package/models/management.cattle.io.kontainerdriver.js +90 -0
- package/models/management.cattle.io.node.js +179 -0
- package/models/management.cattle.io.nodepool.js +185 -0
- package/models/management.cattle.io.nodetemplate.js +139 -0
- package/models/management.cattle.io.podsecurityadmissionconfigurationtemplate.js +3 -0
- package/models/management.cattle.io.project.js +182 -0
- package/models/management.cattle.io.projectroletemplatebinding.js +150 -0
- package/models/management.cattle.io.roletemplate.js +216 -0
- package/models/management.cattle.io.setting.js +71 -0
- package/models/management.cattle.io.user.js +302 -0
- package/models/metrics.k8s.io.nodemetrics.js +41 -0
- package/models/monitoring.coreos.com.alertmanagerconfig.js +126 -0
- package/models/monitoring.coreos.com.podmonitor.js +23 -0
- package/models/monitoring.coreos.com.prometheusrule.js +38 -0
- package/models/monitoring.coreos.com.receiver.js +197 -0
- package/models/monitoring.coreos.com.route.js +162 -0
- package/models/monitoring.coreos.com.servicemonitor.js +23 -0
- package/models/namespace.js +262 -0
- package/models/networking.istio.io.destinationrule.js +19 -0
- package/models/networking.k8s.io.ingress.js +209 -0
- package/models/nodedriver.js +93 -0
- package/models/persistentvolume.js +43 -0
- package/models/persistentvolumeclaim.js +63 -0
- package/models/pod.js +279 -0
- package/models/principal.js +42 -0
- package/models/projectroletemplatebinding.js +35 -0
- package/models/provisioning.cattle.io.cluster.js +1091 -0
- package/models/rbac.authorization.k8s.io.clusterrole.js +17 -0
- package/models/rbac.authorization.k8s.io.clusterrolebinding.js +16 -0
- package/models/rbac.authorization.k8s.io.role.js +52 -0
- package/models/rbac.authorization.k8s.io.rolebinding.js +16 -0
- package/models/replicationcontroller.js +4 -0
- package/models/resources.cattle.io.backup.js +29 -0
- package/models/resources.cattle.io.restore.js +33 -0
- package/models/rke-machine-config.cattle.io.harvesterconfig.js +19 -0
- package/models/rke-machine.cattle.io.amazonec2machinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.azuremachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.digitaloceanmachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.linodemachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.machinetemplate.js +22 -0
- package/models/rke-machine.cattle.io.pnapmachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.vmwarevspheremachinetemplate.js +14 -0
- package/models/rke.cattle.io.etcdsnapshot.js +76 -0
- package/models/schema.js +38 -0
- package/models/secret.js +473 -0
- package/models/service.js +193 -0
- package/models/steve-schema.ts +254 -0
- package/models/storage.k8s.io.storageclass.js +164 -0
- package/models/templates.gatekeeper.sh.constrainttemplate.js +23 -0
- package/models/token.js +19 -0
- package/models/ui.cattle.io.navlink.js +38 -0
- package/models/workload.js +688 -0
- package/models/workload.service.js +341 -0
- package/package.json +173 -0
- package/pages/404.vue +15 -0
- package/pages/__tests__/prefs.test.ts +96 -0
- package/pages/about.vue +303 -0
- package/pages/account/create-key.vue +16 -0
- package/pages/account/index.vue +252 -0
- package/pages/auth/login.vue +591 -0
- package/pages/auth/logout.vue +44 -0
- package/pages/auth/setup.vue +521 -0
- package/pages/auth/verify.vue +198 -0
- package/pages/c/_cluster/_product/_resource/_id.vue +12 -0
- package/pages/c/_cluster/_product/_resource/_namespace/_id.vue +12 -0
- package/pages/c/_cluster/_product/_resource/create.vue +12 -0
- package/pages/c/_cluster/_product/_resource/index.vue +12 -0
- package/pages/c/_cluster/_product/index.vue +15 -0
- package/pages/c/_cluster/_product/members/index.vue +8 -0
- package/pages/c/_cluster/_product/namespaces.vue +77 -0
- package/pages/c/_cluster/_product/projectsnamespaces.vue +6 -0
- package/pages/c/_cluster/apps/charts/__tests__/install.helper.test.ts +18 -0
- package/pages/c/_cluster/apps/charts/chart.vue +452 -0
- package/pages/c/_cluster/apps/charts/index.vue +718 -0
- package/pages/c/_cluster/apps/charts/install.helpers.js +15 -0
- package/pages/c/_cluster/apps/charts/install.vue +2050 -0
- package/pages/c/_cluster/auth/config/_id.vue +35 -0
- package/pages/c/_cluster/auth/config/index.vue +116 -0
- package/pages/c/_cluster/auth/group.principal/assign-edit.vue +138 -0
- package/pages/c/_cluster/auth/roles/_resource/_id.vue +12 -0
- package/pages/c/_cluster/auth/roles/_resource/create.vue +12 -0
- package/pages/c/_cluster/auth/roles/index.vue +215 -0
- package/pages/c/_cluster/auth/user.retention/index.vue +323 -0
- package/pages/c/_cluster/ecm/index.vue +14 -0
- package/pages/c/_cluster/explorer/ConfigBadge.vue +64 -0
- package/pages/c/_cluster/explorer/EventsTable.vue +121 -0
- package/pages/c/_cluster/explorer/__tests__/index.test.ts +264 -0
- package/pages/c/_cluster/explorer/explorer-utils.js +17 -0
- package/pages/c/_cluster/explorer/index.vue +1002 -0
- package/pages/c/_cluster/explorer/tools/__tests__/index.test.ts +71 -0
- package/pages/c/_cluster/explorer/tools/index.vue +397 -0
- package/pages/c/_cluster/explorer/tools/pages/_page.vue +29 -0
- package/pages/c/_cluster/fleet/GitRepoGraphConfig.js +249 -0
- package/pages/c/_cluster/fleet/index.vue +506 -0
- package/pages/c/_cluster/gatekeeper/constraints/index.vue +90 -0
- package/pages/c/_cluster/gatekeeper/index.vue +78 -0
- package/pages/c/_cluster/istio/index.vue +149 -0
- package/pages/c/_cluster/legacy/pages/_page.vue +29 -0
- package/pages/c/_cluster/legacy/project/_page.vue +57 -0
- package/pages/c/_cluster/legacy/project/index.vue +32 -0
- package/pages/c/_cluster/legacy/project/pipelines.vue +96 -0
- package/pages/c/_cluster/logging/index.vue +94 -0
- package/pages/c/_cluster/longhorn/__tests__/longhorn.index.test.ts +92 -0
- package/pages/c/_cluster/longhorn/index.vue +107 -0
- package/pages/c/_cluster/manager/cloudCredential/_id.vue +15 -0
- package/pages/c/_cluster/manager/cloudCredential/create.vue +15 -0
- package/pages/c/_cluster/manager/cloudCredential/index.vue +158 -0
- package/pages/c/_cluster/manager/drivers/kontainerDriver/_id.vue +12 -0
- package/pages/c/_cluster/manager/drivers/kontainerDriver/create.vue +15 -0
- package/pages/c/_cluster/manager/drivers/kontainerDriver/index.vue +91 -0
- package/pages/c/_cluster/manager/drivers/nodeDriver/_id.vue +12 -0
- package/pages/c/_cluster/manager/drivers/nodeDriver/create.vue +15 -0
- package/pages/c/_cluster/manager/drivers/nodeDriver/index.vue +60 -0
- package/pages/c/_cluster/manager/jwt.authentication/index.vue +244 -0
- package/pages/c/_cluster/manager/pages/_page.vue +22 -0
- package/pages/c/_cluster/mcapps/pages/_page.vue +22 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/index.vue +12 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +320 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/index.vue +24 -0
- package/pages/c/_cluster/monitoring/index.vue +202 -0
- package/pages/c/_cluster/monitoring/monitor/_namespace/_id.vue +19 -0
- package/pages/c/_cluster/monitoring/monitor/create.vue +27 -0
- package/pages/c/_cluster/monitoring/monitor/index.vue +99 -0
- package/pages/c/_cluster/monitoring/route-receiver/_id.vue +27 -0
- package/pages/c/_cluster/monitoring/route-receiver/create.vue +19 -0
- package/pages/c/_cluster/monitoring/route-receiver/index.vue +133 -0
- package/pages/c/_cluster/navlinks/_group.vue +42 -0
- package/pages/c/_cluster/neuvector/index.vue +75 -0
- package/pages/c/_cluster/settings/DefaultLinksEditor.vue +128 -0
- package/pages/c/_cluster/settings/banners.vue +361 -0
- package/pages/c/_cluster/settings/brand.vue +648 -0
- package/pages/c/_cluster/settings/index.vue +20 -0
- package/pages/c/_cluster/settings/links.vue +167 -0
- package/pages/c/_cluster/settings/performance.vue +515 -0
- package/pages/c/_cluster/uiplugins/AddExtensionRepos.vue +175 -0
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogLoadDialog.vue +551 -0
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogUninstallDialog.vue +193 -0
- package/pages/c/_cluster/uiplugins/CatalogList/index.vue +134 -0
- package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +261 -0
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +366 -0
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +503 -0
- package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +83 -0
- package/pages/c/_cluster/uiplugins/UninstallDialog.vue +152 -0
- package/pages/c/_cluster/uiplugins/__tests__/AddExtensionRepos.test.ts +76 -0
- package/pages/c/_cluster/uiplugins/__tests__/SetupUIPlugins.test.ts +77 -0
- package/pages/c/_cluster/uiplugins/index.vue +1288 -0
- package/pages/clusters/index.vue +21 -0
- package/pages/diagnostic.vue +532 -0
- package/pages/fail-whale.vue +197 -0
- package/pages/home.vue +848 -0
- package/pages/index.vue +54 -0
- package/pages/prefs.vue +367 -0
- package/pages/support/index.vue +263 -0
- package/pkg/auto-import.js +118 -0
- package/pkg/babel.config.js +8 -0
- package/pkg/dynamic-importer.lib.js +82 -0
- package/pkg/dynamic-plugin-loader.js +28 -0
- package/pkg/import.js +10 -0
- package/pkg/model-loader-require.lib.js +3 -0
- package/pkg/tsconfig.json +65 -0
- package/pkg/vue.config.js +146 -0
- package/plugins/axios.js +31 -0
- package/plugins/clean-html.js +103 -0
- package/plugins/codemirror-loader.js +5 -0
- package/plugins/codemirror.js +359 -0
- package/plugins/dashboard-store/__tests__/actions.test.ts +250 -0
- package/plugins/dashboard-store/__tests__/getters.test.ts +100 -0
- package/plugins/dashboard-store/__tests__/mutations.test.ts +391 -0
- package/plugins/dashboard-store/__tests__/resource-class.test.ts +49 -0
- package/plugins/dashboard-store/__tests__/utils/store-mocks.ts +7 -0
- package/plugins/dashboard-store/actions.js +784 -0
- package/plugins/dashboard-store/classify.js +18 -0
- package/plugins/dashboard-store/getters.js +457 -0
- package/plugins/dashboard-store/index.js +53 -0
- package/plugins/dashboard-store/model-loader-require.js +12 -0
- package/plugins/dashboard-store/model-loader.js +76 -0
- package/plugins/dashboard-store/mutations.js +548 -0
- package/plugins/dashboard-store/normalize.js +48 -0
- package/plugins/dashboard-store/resource-class.js +1902 -0
- package/plugins/ember-cookie.js +13 -0
- package/plugins/extend-router.js +80 -0
- package/plugins/floating-vue.js +1 -0
- package/plugins/formatters.js +15 -0
- package/plugins/global-formatters.js +20 -0
- package/plugins/i18n.js +136 -0
- package/plugins/js-yaml.js +4 -0
- package/plugins/nuxt-client-init.js +3 -0
- package/plugins/plugin.js +93 -0
- package/plugins/replaceall.js +19 -0
- package/plugins/shortkey.js +282 -0
- package/plugins/steve/__tests__/getters.test.ts +214 -0
- package/plugins/steve/__tests__/header-warnings.test.ts +238 -0
- package/plugins/steve/__tests__/mutations.test.ts +50 -0
- package/plugins/steve/__tests__/resource-utils.test.ts +159 -0
- package/plugins/steve/__tests__/steve-class.test.ts +59 -0
- package/plugins/steve/__tests__/subscribe.spec.ts +109 -0
- package/plugins/steve/__tests__/utils/mutation.test.helpers.ts +105 -0
- package/plugins/steve/__tests__/utils/steve-mocks.ts +31 -0
- package/plugins/steve/accept-or-reject-socket-message.ts +103 -0
- package/plugins/steve/actions.js +386 -0
- package/plugins/steve/caches/resourceCache.js +60 -0
- package/plugins/steve/getters.js +342 -0
- package/plugins/steve/header-warnings.ts +91 -0
- package/plugins/steve/hybrid-class.js +102 -0
- package/plugins/steve/index.js +76 -0
- package/plugins/steve/mutations.js +210 -0
- package/plugins/steve/norman-class.js +198 -0
- package/plugins/steve/performanceTesting.js +128 -0
- package/plugins/steve/projectAndNamespaceFiltering.utils.ts +80 -0
- package/plugins/steve/resource-utils.ts +38 -0
- package/plugins/steve/resourceWatcher.js +251 -0
- package/plugins/steve/schema.d.ts +22 -0
- package/plugins/steve/schema.utils.js +25 -0
- package/plugins/steve/steve-class.js +61 -0
- package/plugins/steve/steve-description-class.js +36 -0
- package/plugins/steve/steve-pagination-utils.ts +513 -0
- package/plugins/steve/subscribe.js +1092 -0
- package/plugins/steve/worker/index.js +24 -0
- package/plugins/steve/worker/web-worker.advanced.js +320 -0
- package/plugins/steve/worker/web-worker.basic.js +116 -0
- package/plugins/steve-create-worker.js +14 -0
- package/plugins/version.js +11 -0
- package/promptRemove/management.cattle.io.fleetworkspace.vue +98 -0
- package/promptRemove/management.cattle.io.globalrole.vue +49 -0
- package/promptRemove/management.cattle.io.project.vue +131 -0
- package/promptRemove/management.cattle.io.roletemplate.vue +51 -0
- package/promptRemove/mixin/roleDeletionCheck.js +105 -0
- package/promptRemove/pod.vue +132 -0
- package/public/index.html +74 -0
- package/rancher-components/Accordion/Accordion.test.ts +45 -0
- package/rancher-components/Accordion/Accordion.vue +86 -0
- package/rancher-components/Accordion/index.ts +1 -0
- package/rancher-components/BadgeState/BadgeState.test.ts +12 -0
- package/rancher-components/BadgeState/BadgeState.vue +118 -0
- package/rancher-components/BadgeState/index.ts +1 -0
- package/rancher-components/Banner/Banner.test.ts +59 -0
- package/rancher-components/Banner/Banner.vue +257 -0
- package/rancher-components/Banner/index.ts +1 -0
- package/rancher-components/Card/Card.test.ts +37 -0
- package/rancher-components/Card/Card.vue +187 -0
- package/rancher-components/Card/index.ts +1 -0
- package/rancher-components/Form/Checkbox/Checkbox.test.ts +68 -0
- package/rancher-components/Form/Checkbox/Checkbox.vue +488 -0
- package/rancher-components/Form/Checkbox/index.ts +1 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +57 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +471 -0
- package/rancher-components/Form/LabeledInput/index.ts +1 -0
- package/rancher-components/Form/Radio/RadioButton.test.ts +33 -0
- package/rancher-components/Form/Radio/RadioButton.vue +304 -0
- package/rancher-components/Form/Radio/RadioGroup.test.ts +27 -0
- package/rancher-components/Form/Radio/RadioGroup.vue +298 -0
- package/rancher-components/Form/Radio/index.ts +2 -0
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +199 -0
- package/rancher-components/Form/TextArea/index.ts +1 -0
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +94 -0
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +192 -0
- package/rancher-components/Form/ToggleSwitch/index.ts +1 -0
- package/rancher-components/Form/index.ts +5 -0
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +140 -0
- package/rancher-components/LabeledTooltip/index.ts +1 -0
- package/rancher-components/RcButton/RcButton.test.ts +97 -0
- package/rancher-components/RcButton/RcButton.vue +95 -0
- package/rancher-components/RcButton/index.ts +2 -0
- package/rancher-components/RcButton/types.ts +17 -0
- package/rancher-components/RcDropdown/RcDropdown.vue +124 -0
- package/rancher-components/RcDropdown/RcDropdownItem.vue +121 -0
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +66 -0
- package/rancher-components/RcDropdown/RcDropdownSeparator.vue +6 -0
- package/rancher-components/RcDropdown/RcDropdownTrigger.vue +42 -0
- package/rancher-components/RcDropdown/index.ts +5 -0
- package/rancher-components/RcDropdown/types.ts +49 -0
- package/rancher-components/RcDropdown/useDropdownCollection.ts +46 -0
- package/rancher-components/RcDropdown/useDropdownContext.ts +113 -0
- package/rancher-components/StringList/StringList.test.ts +754 -0
- package/rancher-components/StringList/StringList.vue +645 -0
- package/rancher-components/StringList/index.ts +1 -0
- package/scripts/.gitlab/workflows/build-extension-catalog.gitlab-ci.yml +69 -0
- package/scripts/build-pkg.sh +102 -0
- package/scripts/clean +6 -0
- package/scripts/drone-build-pkg.sh +31 -0
- package/scripts/extension/bundle +86 -0
- package/scripts/extension/helm/charts/ui-plugin-server/.helmignore +23 -0
- package/scripts/extension/helm/charts/ui-plugin-server/Chart.yaml +18 -0
- package/scripts/extension/helm/charts/ui-plugin-server/templates/_helpers.tpl +63 -0
- package/scripts/extension/helm/charts/ui-plugin-server/templates/cr.yaml +14 -0
- package/scripts/extension/helm/charts/ui-plugin-server/values.yaml +8 -0
- package/scripts/extension/helm/package/Dockerfile +27 -0
- package/scripts/extension/helm/package/nginx.conf +17 -0
- package/scripts/extension/helm/scripts/package +31 -0
- package/scripts/extension/helm/scripts/patch +128 -0
- package/scripts/extension/helm/scripts/version +31 -0
- package/scripts/extension/helmpatch +67 -0
- package/scripts/extension/parse-tag-name +39 -0
- package/scripts/extension/publish +476 -0
- package/scripts/pkgfile.js +23 -0
- package/scripts/publish-pkg.sh +18 -0
- package/scripts/publish-shell.sh +115 -0
- package/scripts/record-deps.js +37 -0
- package/scripts/serve-pkgs +71 -0
- package/scripts/sync-shell-deps +37 -0
- package/scripts/test-plugins-build.sh +248 -0
- package/scripts/typegen.sh +102 -0
- package/scripts/vue-migrate.js +686 -0
- package/server/har-file.js +183 -0
- package/server/server-middleware.js +11 -0
- package/server/server.crt +22 -0
- package/server/server.csr +16 -0
- package/server/server.key +27 -0
- package/server/v3.ext +8 -0
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +39 -0
- package/store/__tests__/auth.test.ts +120 -0
- package/store/__tests__/catalog.test.ts +207 -0
- package/store/__tests__/index.test.ts +110 -0
- package/store/__tests__/type-map.test.ts +1122 -0
- package/store/action-menu.js +240 -0
- package/store/auth.js +409 -0
- package/store/aws.js +256 -0
- package/store/catalog.js +666 -0
- package/store/cru-resource.ts +26 -0
- package/store/customisation.js +35 -0
- package/store/digitalocean.js +198 -0
- package/store/features.js +73 -0
- package/store/github.js +109 -0
- package/store/gitlab.js +159 -0
- package/store/growl.js +98 -0
- package/store/i18n.js +356 -0
- package/store/index.js +1290 -0
- package/store/linode.js +142 -0
- package/store/plugins.js +210 -0
- package/store/pnap.js +128 -0
- package/store/prefs.js +531 -0
- package/store/resource-fetch.js +44 -0
- package/store/store-types.js +7 -0
- package/store/type-map.js +2057 -0
- package/store/type-map.utils.ts +243 -0
- package/store/uiplugins.ts +67 -0
- package/store/wm.js +95 -0
- package/tsconfig.json +48 -0
- package/tsconfig.paths.json +21 -0
- package/types/api.d.ts +1 -0
- package/types/components/labeledSelect.ts +50 -0
- package/types/components/paginatedResourceTable.ts +25 -0
- package/types/components/resourceLabeledSelect.ts +48 -0
- package/types/fleet.d.ts +1 -0
- package/types/form.ts +1 -0
- package/types/generic.ts +2 -0
- package/types/rancher/index.d.ts +9 -0
- package/types/resources/fleet.d.ts +57 -0
- package/types/resources/pod-security-admission.ts +36 -0
- package/types/resources/settings.d.ts +93 -0
- package/types/resources/userPreferences.d.ts +13 -0
- package/types/shell/index.d.ts +4704 -0
- package/types/store/dashboard-store.types.ts +46 -0
- package/types/store/pagination.types.ts +470 -0
- package/types/store/type-map.ts +30 -0
- package/types/store/vuex.d.ts +17 -0
- package/types/t.ts +1 -0
- package/types/vue-shim.d +20 -0
- package/types/vue-shim.d.ts +20 -0
- package/utils/__mocks__/socket.js +21 -0
- package/utils/__tests__/array.test.ts +514 -0
- package/utils/__tests__/cluster.test.ts +57 -0
- package/utils/__tests__/create-yaml.test.ts +490 -0
- package/utils/__tests__/formatter.test.ts +77 -0
- package/utils/__tests__/grafana.test.ts +44 -0
- package/utils/__tests__/kontainer.test.ts +180 -0
- package/utils/__tests__/object.test.ts +409 -0
- package/utils/__tests__/pod-security-admission.test.ts +61 -0
- package/utils/__tests__/selector.test.ts +444 -0
- package/utils/__tests__/sort.test.ts +61 -0
- package/utils/__tests__/string.test.ts +91 -0
- package/utils/__tests__/version.test.ts +18 -0
- package/utils/alertmanagerconfig.js +181 -0
- package/utils/array.ts +256 -0
- package/utils/async.ts +38 -0
- package/utils/auth.js +334 -0
- package/utils/aws.js +0 -0
- package/utils/axios.js +171 -0
- package/utils/azure.js +24 -0
- package/utils/banners.js +103 -0
- package/utils/clipboard.js +5 -0
- package/utils/cluster.js +298 -0
- package/utils/color.js +147 -0
- package/utils/computed.js +45 -0
- package/utils/config.js +4 -0
- package/utils/cookie-universal.js +10 -0
- package/utils/create-yaml.js +518 -0
- package/utils/crypto/LICENSE.txt +15 -0
- package/utils/crypto/browserHashUtils.js +51 -0
- package/utils/crypto/browserMd5.js +183 -0
- package/utils/crypto/browserSha1.js +149 -0
- package/utils/crypto/browserSha256.js +237 -0
- package/utils/crypto/index.js +181 -0
- package/utils/custom-validators.js +32 -0
- package/utils/dom.js +15 -0
- package/utils/download.js +35 -0
- package/utils/duration.js +43 -0
- package/utils/dynamic-importer.js +134 -0
- package/utils/ember-page.js +30 -0
- package/utils/error.js +131 -0
- package/utils/favicon.js +49 -0
- package/utils/fleet.ts +191 -0
- package/utils/formatter.js +13 -0
- package/utils/gatekeeper/util.js +35 -0
- package/utils/gc/gc-interval.ts +40 -0
- package/utils/gc/gc-root-store.js +76 -0
- package/utils/gc/gc-route-changed.ts +44 -0
- package/utils/gc/gc-types.ts +21 -0
- package/utils/gc/gc.ts +282 -0
- package/utils/git.ts +92 -0
- package/utils/grafana.js +114 -0
- package/utils/ingress.ts +64 -0
- package/utils/kontainer.ts +190 -0
- package/utils/kube.js +9 -0
- package/utils/monitoring.js +63 -0
- package/utils/namespace-filter.js +43 -0
- package/utils/object.js +501 -0
- package/utils/pagination-utils.ts +176 -0
- package/utils/pagination-wrapper.ts +70 -0
- package/utils/parse-externalid.js +139 -0
- package/utils/platform.js +64 -0
- package/utils/pod-security-admission.ts +39 -0
- package/utils/poller-sequential.js +53 -0
- package/utils/poller.js +39 -0
- package/utils/position.js +172 -0
- package/utils/promise.js +115 -0
- package/utils/queue.js +70 -0
- package/utils/router.js +119 -0
- package/utils/select.js +65 -0
- package/utils/selector.js +229 -0
- package/utils/settings.ts +108 -0
- package/utils/socket.js +409 -0
- package/utils/sort.js +225 -0
- package/utils/stream.js +49 -0
- package/utils/string.js +362 -0
- package/utils/svg-filter.js +301 -0
- package/utils/time.js +121 -0
- package/utils/title.ts +3 -0
- package/utils/type-helpers.ts +9 -0
- package/utils/uiplugins.ts +319 -0
- package/utils/unit-tests/ChildRenderingRouterLinkStub.ts +36 -0
- package/utils/units.js +184 -0
- package/utils/url.ts +171 -0
- package/utils/v-sphere.ts +285 -0
- package/utils/validators/__tests__/cidr.test.ts +33 -0
- package/utils/validators/cidr.js +14 -0
- package/utils/validators/cluster-name.js +12 -0
- package/utils/validators/container-images.js +24 -0
- package/utils/validators/cron-schedule.js +14 -0
- package/utils/validators/flow-output.js +15 -0
- package/utils/validators/formRules/__tests__/index.test.ts +1218 -0
- package/utils/validators/formRules/index.ts +535 -0
- package/utils/validators/index.js +244 -0
- package/utils/validators/kubernetes-name.js +39 -0
- package/utils/validators/logging-outputs.js +11 -0
- package/utils/validators/monitoring-route.js +13 -0
- package/utils/validators/pod-affinity.js +128 -0
- package/utils/validators/prometheusrule.js +76 -0
- package/utils/validators/role-template.js +27 -0
- package/utils/validators/service.js +136 -0
- package/utils/validators/setting.js +9 -0
- package/utils/version.js +128 -0
- package/utils/versions.ts +39 -0
- package/utils/width.js +39 -0
- package/utils/window.js +46 -0
- package/vue-config-helper.js +135 -0
- package/vue.config.js +577 -0
|
@@ -0,0 +1,2050 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import jsyaml from 'js-yaml';
|
|
3
|
+
import merge from 'lodash/merge';
|
|
4
|
+
import isEqual from 'lodash/isEqual';
|
|
5
|
+
import { mapPref, DIFF } from '@shell/store/prefs';
|
|
6
|
+
import { mapFeature, MULTI_CLUSTER, LEGACY } from '@shell/store/features';
|
|
7
|
+
import { mapGetters } from 'vuex';
|
|
8
|
+
import { markRaw } from 'vue';
|
|
9
|
+
import { Banner } from '@components/Banner';
|
|
10
|
+
import ButtonGroup from '@shell/components/ButtonGroup';
|
|
11
|
+
import ChartReadme from '@shell/components/ChartReadme';
|
|
12
|
+
import { Checkbox } from '@components/Form/Checkbox';
|
|
13
|
+
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
14
|
+
import { LabeledInput } from '@components/Form/LabeledInput';
|
|
15
|
+
import { LabeledTooltip } from '@components/LabeledTooltip';
|
|
16
|
+
import LazyImage from '@shell/components/LazyImage';
|
|
17
|
+
import Loading from '@shell/components/Loading';
|
|
18
|
+
import NameNsDescription from '@shell/components/form/NameNsDescription';
|
|
19
|
+
import ResourceCancelModal from '@shell/components/ResourceCancelModal';
|
|
20
|
+
import Questions from '@shell/components/Questions';
|
|
21
|
+
import Tabbed from '@shell/components/Tabbed';
|
|
22
|
+
import UnitInput from '@shell/components/form/UnitInput';
|
|
23
|
+
import YamlEditor, { EDITOR_MODES } from '@shell/components/YamlEditor';
|
|
24
|
+
import Wizard from '@shell/components/Wizard';
|
|
25
|
+
import TypeDescription from '@shell/components/TypeDescription';
|
|
26
|
+
import ChartMixin from '@shell/mixins/chart';
|
|
27
|
+
import ChildHook, { BEFORE_SAVE_HOOKS, AFTER_SAVE_HOOKS } from '@shell/mixins/child-hook';
|
|
28
|
+
import { CATALOG, MANAGEMENT, DEFAULT_WORKSPACE, CAPI } from '@shell/config/types';
|
|
29
|
+
import {
|
|
30
|
+
CHART, FROM_CLUSTER, FROM_TOOLS, HIDE_SIDE_NAV, NAMESPACE, REPO, REPO_TYPE, VERSION, _FLAGGED
|
|
31
|
+
} from '@shell/config/query-params';
|
|
32
|
+
import { CATALOG as CATALOG_ANNOTATIONS, PROJECT } from '@shell/config/labels-annotations';
|
|
33
|
+
|
|
34
|
+
import { exceptionToErrorsArray } from '@shell/utils/error';
|
|
35
|
+
import { clone, diff, get, set } from '@shell/utils/object';
|
|
36
|
+
import { ignoreVariables } from './install.helpers';
|
|
37
|
+
import { findBy, insertAt } from '@shell/utils/array';
|
|
38
|
+
import { saferDump } from '@shell/utils/create-yaml';
|
|
39
|
+
import { LINUX, WINDOWS } from '@shell/store/catalog';
|
|
40
|
+
import { SETTING } from '@shell/config/settings';
|
|
41
|
+
|
|
42
|
+
const VALUES_STATE = {
|
|
43
|
+
FORM: 'FORM',
|
|
44
|
+
YAML: 'YAML',
|
|
45
|
+
DIFF: 'DIFF'
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
function isPlainLayout(query) {
|
|
49
|
+
return Object.keys(query).includes(HIDE_SIDE_NAV);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
name: 'Install',
|
|
54
|
+
|
|
55
|
+
layout(context) {
|
|
56
|
+
return isPlainLayout(context.query) ? 'plain' : '';
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
components: {
|
|
60
|
+
Banner,
|
|
61
|
+
ButtonGroup,
|
|
62
|
+
ChartReadme,
|
|
63
|
+
Checkbox,
|
|
64
|
+
LabeledInput,
|
|
65
|
+
LabeledSelect,
|
|
66
|
+
LabeledTooltip,
|
|
67
|
+
LazyImage,
|
|
68
|
+
Loading,
|
|
69
|
+
NameNsDescription,
|
|
70
|
+
ResourceCancelModal,
|
|
71
|
+
Questions,
|
|
72
|
+
Tabbed,
|
|
73
|
+
UnitInput,
|
|
74
|
+
YamlEditor,
|
|
75
|
+
Wizard,
|
|
76
|
+
TypeDescription
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
mixins: [
|
|
80
|
+
ChildHook,
|
|
81
|
+
ChartMixin
|
|
82
|
+
],
|
|
83
|
+
|
|
84
|
+
async fetch() {
|
|
85
|
+
this.errors = [];
|
|
86
|
+
// IMPORTANT! Any exception thrown before this.value is set will result in an empty page
|
|
87
|
+
|
|
88
|
+
/*
|
|
89
|
+
fetchChart is defined in shell/mixins. It first checks the URL
|
|
90
|
+
query for an app name and namespace. It uses those values to check
|
|
91
|
+
for a catalog app resource. If found, it sets the form to edit
|
|
92
|
+
mode. If not, it sets the form to create mode.
|
|
93
|
+
|
|
94
|
+
If the app and app namespace are not provided in the query,
|
|
95
|
+
it checks for target name and namespace values defined in the
|
|
96
|
+
Helm chart itself.
|
|
97
|
+
*/
|
|
98
|
+
try {
|
|
99
|
+
await this.fetchChart();
|
|
100
|
+
} catch (e) {
|
|
101
|
+
console.warn('Unable to fetch chart: ', e); // eslint-disable-line no-console
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
await this.fetchAutoInstallInfo();
|
|
106
|
+
} catch (e) {
|
|
107
|
+
console.warn('Unable to determine if other charts require install: ', e); // eslint-disable-line no-console
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// If the chart doesn't contain system `systemDefaultRegistry` properties there's no point applying them
|
|
111
|
+
if (this.showCustomRegistry) {
|
|
112
|
+
// Note: Cluster scoped registry is only supported for node driver clusters
|
|
113
|
+
try {
|
|
114
|
+
this.clusterRegistry = await this.getClusterRegistry();
|
|
115
|
+
} catch (e) {
|
|
116
|
+
console.warn('Unable to get cluster registry: ', e); // eslint-disable-line no-console
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
try {
|
|
120
|
+
this.globalRegistry = await this.getGlobalRegistry();
|
|
121
|
+
} catch (e) {
|
|
122
|
+
console.warn('Unable to get global registry: ', e); // eslint-disable-line no-console
|
|
123
|
+
}
|
|
124
|
+
this.defaultRegistrySetting = this.clusterRegistry || this.globalRegistry;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
try {
|
|
128
|
+
this.serverUrlSetting = await this.$store.dispatch('management/find', {
|
|
129
|
+
type: MANAGEMENT.SETTING,
|
|
130
|
+
id: SETTING.SERVER_URL,
|
|
131
|
+
});
|
|
132
|
+
} catch (e) {
|
|
133
|
+
console.error('Unable to fetch `server-url` setting: ', e); // eslint-disable-line no-console
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/*
|
|
137
|
+
Figure out the namespace where the chart is
|
|
138
|
+
being installed or upgraded.
|
|
139
|
+
*/
|
|
140
|
+
if ( this.existing ) {
|
|
141
|
+
/*
|
|
142
|
+
If the Helm chart is already installed,
|
|
143
|
+
use the existing namespace by default.
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
this.forceNamespace = this.existing.metadata.namespace;
|
|
147
|
+
this.nameDisabled = true;
|
|
148
|
+
} else if (this.$route.query[FROM_CLUSTER] === _FLAGGED) {
|
|
149
|
+
/* For Fleet, use the fleet-default namespace. */
|
|
150
|
+
this.forceNamespace = DEFAULT_WORKSPACE;
|
|
151
|
+
} else if ( this.chart?.targetNamespace ) {
|
|
152
|
+
/* If a target namespace is defined in the chart,
|
|
153
|
+
set the target namespace as default. */
|
|
154
|
+
this.forceNamespace = this.chart.targetNamespace;
|
|
155
|
+
} else if ( this.query.appNamespace ) {
|
|
156
|
+
/* If a namespace is defined in the URL query,
|
|
157
|
+
use that namespace as default. */
|
|
158
|
+
this.forceNamespace = this.query.appNamespace;
|
|
159
|
+
} else {
|
|
160
|
+
this.forceNamespace = null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Check if the app is deprecated. */
|
|
164
|
+
try {
|
|
165
|
+
this.legacyApp = this.existing ? await this.existing.deployedAsLegacy() : false;
|
|
166
|
+
} catch (e) {
|
|
167
|
+
this.legacyApp = false;
|
|
168
|
+
console.warn('Unable to determine if existing install is a legacy app: ', e); // eslint-disable-line no-console
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Check if the app is a multicluster deprecated app.
|
|
172
|
+
(Multicluster apps were replaced by Fleet.) */
|
|
173
|
+
|
|
174
|
+
try {
|
|
175
|
+
this.mcapp = this.existing ? await this.existing.deployedAsMultiCluster() : false;
|
|
176
|
+
} catch (e) {
|
|
177
|
+
this.mcapp = false;
|
|
178
|
+
console.warn('Unable to determine if existing install is a mc app: ', e); // eslint-disable-line no-console
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* The form state is intialized as a chartInstallAction resource. */
|
|
182
|
+
try {
|
|
183
|
+
this.value = await this.$store.dispatch('cluster/create', {
|
|
184
|
+
type: 'chartInstallAction',
|
|
185
|
+
metadata: {
|
|
186
|
+
namespace: this.forceNamespace || this.$store.getters['defaultNamespace'],
|
|
187
|
+
name: this.existing?.spec?.name || this.query.appName || '',
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
} catch (e) {
|
|
191
|
+
console.error('Unable to create object of type `chartInstallAction`: ', e); // eslint-disable-line no-console
|
|
192
|
+
|
|
193
|
+
// Nothing's going to work without a `value`. See https://github.com/rancher/dashboard/issues/9452 to handle this and other catches.
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Logic for when the Helm chart is not already installed */
|
|
198
|
+
if ( !this.existing) {
|
|
199
|
+
/*
|
|
200
|
+
The target name is used for Git repos for Fleet.
|
|
201
|
+
The target name indicates the name of the cluster
|
|
202
|
+
group that the chart is meant to be installed in.
|
|
203
|
+
*/
|
|
204
|
+
if ( this.chart?.targetName ) {
|
|
205
|
+
/*
|
|
206
|
+
Set the name of the chartInstallAction
|
|
207
|
+
to the name of the cluster group
|
|
208
|
+
where the chart should be installed.
|
|
209
|
+
*/
|
|
210
|
+
this.value.metadata.name = this.chart.targetName;
|
|
211
|
+
this.nameDisabled = true;
|
|
212
|
+
} else if ( this.query.appName ) {
|
|
213
|
+
this.value.metadata.name = this.query.appName;
|
|
214
|
+
} else {
|
|
215
|
+
this.nameDisabled = false;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if ( this.query.description ) {
|
|
219
|
+
this.customCmdOpts.description = this.query.description;
|
|
220
|
+
}
|
|
221
|
+
} /* End of logic for when chart is already installed */
|
|
222
|
+
|
|
223
|
+
/*
|
|
224
|
+
Logic for what to do if the user is installing
|
|
225
|
+
the Helm chart for the first time and a default
|
|
226
|
+
namespace has been set.
|
|
227
|
+
*/
|
|
228
|
+
if (this.forceNamespace && !this.existing) {
|
|
229
|
+
let ns;
|
|
230
|
+
|
|
231
|
+
/*
|
|
232
|
+
Before moving forward, check to make sure the
|
|
233
|
+
default namespace exists and the logged-in user
|
|
234
|
+
has permission to see it.
|
|
235
|
+
*/
|
|
236
|
+
try {
|
|
237
|
+
ns = await this.$store.dispatch('cluster/find', { type: NAMESPACE, id: this.forceNamespace });
|
|
238
|
+
const project = ns.metadata.annotations?.[PROJECT];
|
|
239
|
+
|
|
240
|
+
if (project) {
|
|
241
|
+
this.project = project.replace(':', '/');
|
|
242
|
+
}
|
|
243
|
+
} catch {}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* If no chart by the given app name and namespace
|
|
247
|
+
can be found, or if no version is found, do nothing. */
|
|
248
|
+
if ( !this.chart || !this.query.versionName) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if ( this.version ) {
|
|
253
|
+
/*
|
|
254
|
+
Check if the Helm chart has provided the name
|
|
255
|
+
of a Vue component to use for configuring
|
|
256
|
+
chart values. If so, load that component.
|
|
257
|
+
|
|
258
|
+
This will set this.valuesComponent,
|
|
259
|
+
this.showValuesComponent.
|
|
260
|
+
*/
|
|
261
|
+
await this.loadValuesComponent();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/*
|
|
265
|
+
this.loadedVersion will only be true if you select a non-defalut
|
|
266
|
+
option from the "Version" dropdown menu in Apps & Marketplace
|
|
267
|
+
when updating a previously installed app.
|
|
268
|
+
*/
|
|
269
|
+
if ( !this.loadedVersion || this.loadedVersion !== this.version.key ) {
|
|
270
|
+
let userValues;
|
|
271
|
+
|
|
272
|
+
/*
|
|
273
|
+
When you select a version, a new chart is loaded. Then
|
|
274
|
+
Rancher anticipates that you probably want to port all of your
|
|
275
|
+
previously customized, non-default values from the old chart
|
|
276
|
+
version to the new chart version, so it applies the previous
|
|
277
|
+
chart's customization to the new chart values before
|
|
278
|
+
you see the values form on the next page in the workflow.
|
|
279
|
+
*/
|
|
280
|
+
if ( this.loadedVersion ) {
|
|
281
|
+
if ( this.showingYaml ) {
|
|
282
|
+
this.applyYamlToValues();
|
|
283
|
+
}
|
|
284
|
+
/*
|
|
285
|
+
this.loadedVersionValues is taken from versionInfo,
|
|
286
|
+
which contains everything there is to know about a specific
|
|
287
|
+
version of a Helm chart, including all chart values,
|
|
288
|
+
chart metadata, a short app README and a more
|
|
289
|
+
version-specific README called the chart README.
|
|
290
|
+
|
|
291
|
+
Here we assume that any difference between the values in
|
|
292
|
+
two different Helm chart versions is a "user value," or
|
|
293
|
+
a user-selected customization.
|
|
294
|
+
*/
|
|
295
|
+
userValues = diff(this.loadedVersionValues, this.chartValues);
|
|
296
|
+
} else if ( this.existing ) {
|
|
297
|
+
await this.existing.fetchValues(); // In theory this has already been called, but do again to be safe
|
|
298
|
+
/* For an already installed app, use the values from the previous install. */
|
|
299
|
+
userValues = clone(this.existing.values || {});
|
|
300
|
+
} else {
|
|
301
|
+
/* For an new app, start empty. */
|
|
302
|
+
userValues = {};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/*
|
|
306
|
+
Remove global values if they are identical to
|
|
307
|
+
the currently available information about the cluster
|
|
308
|
+
and Rancher settings.
|
|
309
|
+
|
|
310
|
+
Immediately before the Helm chart is installed or
|
|
311
|
+
upgraded, the global values are re-added.
|
|
312
|
+
*/
|
|
313
|
+
this.removeGlobalValuesFrom(userValues);
|
|
314
|
+
|
|
315
|
+
/*
|
|
316
|
+
The merge() method is used to merge two or more objects
|
|
317
|
+
starting with the left-most to the right-most to create a
|
|
318
|
+
parent mapping object. When two keys are the same, the
|
|
319
|
+
generated object will have value for the rightmost key.
|
|
320
|
+
In this case, any values in userValues override any
|
|
321
|
+
matching values in versionInfo.
|
|
322
|
+
*/
|
|
323
|
+
this.chartValues = merge(merge({}, this.versionInfo?.values || {}), userValues);
|
|
324
|
+
|
|
325
|
+
if (this.showCustomRegistry) {
|
|
326
|
+
/**
|
|
327
|
+
* The input to configure the registry should never be
|
|
328
|
+
* shown for third-party charts, which don't have Rancher
|
|
329
|
+
* global values.
|
|
330
|
+
*/
|
|
331
|
+
const existingRegistry = this.chartValues?.global?.systemDefaultRegistry || this.chartValues?.global?.cattle?.systemDefaultRegistry;
|
|
332
|
+
|
|
333
|
+
delete this.chartValues?.global?.systemDefaultRegistry;
|
|
334
|
+
delete this.chartValues?.global?.cattle?.systemDefaultRegistry;
|
|
335
|
+
|
|
336
|
+
this.customRegistrySetting = existingRegistry || this.defaultRegistrySetting;
|
|
337
|
+
this.showCustomRegistryInput = !!this.customRegistrySetting;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Serializes an object as a YAML document */
|
|
341
|
+
this.valuesYaml = saferDump(this.chartValues);
|
|
342
|
+
|
|
343
|
+
/* For YAML diff */
|
|
344
|
+
if ( !this.loadedVersion ) {
|
|
345
|
+
this.originalYamlValues = this.valuesYaml;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
this.loadedVersionValues = this.versionInfo?.values || {};
|
|
349
|
+
this.loadedVersion = this.version?.key;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* Check if chart exists and if required values exist */
|
|
353
|
+
this.updateStepOneReady();
|
|
354
|
+
|
|
355
|
+
this.preFormYamlOption = this.valuesComponent || this.hasQuestions ? VALUES_STATE.FORM : VALUES_STATE.YAML;
|
|
356
|
+
|
|
357
|
+
/* Look for annotation to say this app is a legacy migrated app (we look in either place for now) */
|
|
358
|
+
this.migratedApp = (this.existing?.spec?.chart?.metadata?.annotations?.[CATALOG_ANNOTATIONS.MIGRATED] === 'true');
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
data() {
|
|
362
|
+
/* Helm CLI options that are not persisted on the back end,
|
|
363
|
+
but are used for the final install/upgrade operation. */
|
|
364
|
+
const defaultCmdOpts = {
|
|
365
|
+
cleanupOnFail: false,
|
|
366
|
+
crds: true,
|
|
367
|
+
hooks: true,
|
|
368
|
+
force: false,
|
|
369
|
+
resetValues: false,
|
|
370
|
+
openApi: true,
|
|
371
|
+
wait: true,
|
|
372
|
+
timeout: 600,
|
|
373
|
+
historyMax: 5,
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
return {
|
|
377
|
+
defaultRegistrySetting: '',
|
|
378
|
+
customRegistrySetting: '',
|
|
379
|
+
serverUrlSetting: null,
|
|
380
|
+
chartValues: null,
|
|
381
|
+
clusterRegistry: '',
|
|
382
|
+
originalYamlValues: null,
|
|
383
|
+
previousYamlValues: null,
|
|
384
|
+
errors: null,
|
|
385
|
+
existing: null,
|
|
386
|
+
globalRegistry: '',
|
|
387
|
+
forceNamespace: null,
|
|
388
|
+
loadedVersion: null,
|
|
389
|
+
loadedVersionValues: null,
|
|
390
|
+
legacyApp: null,
|
|
391
|
+
mcapp: null,
|
|
392
|
+
mode: null,
|
|
393
|
+
value: null,
|
|
394
|
+
valuesComponent: null,
|
|
395
|
+
valuesYaml: '',
|
|
396
|
+
project: null,
|
|
397
|
+
migratedApp: false,
|
|
398
|
+
defaultCmdOpts,
|
|
399
|
+
customCmdOpts: { ...defaultCmdOpts },
|
|
400
|
+
autoInstallInfo: [],
|
|
401
|
+
|
|
402
|
+
nameDisabled: false,
|
|
403
|
+
|
|
404
|
+
preFormYamlOption: VALUES_STATE.YAML,
|
|
405
|
+
formYamlOption: VALUES_STATE.YAML,
|
|
406
|
+
showDiff: false,
|
|
407
|
+
showValuesComponent: true,
|
|
408
|
+
showQuestions: true,
|
|
409
|
+
showSlideIn: false,
|
|
410
|
+
shownReadmeWindows: [],
|
|
411
|
+
showCommandStep: false,
|
|
412
|
+
showCustomRegistryInput: false,
|
|
413
|
+
isNamespaceNew: false,
|
|
414
|
+
|
|
415
|
+
stepBasic: {
|
|
416
|
+
name: 'basics',
|
|
417
|
+
label: this.t('catalog.install.steps.basics.label'),
|
|
418
|
+
subtext: this.t('catalog.install.steps.basics.subtext'),
|
|
419
|
+
descriptionKey: 'catalog.install.steps.basics.description',
|
|
420
|
+
ready: true,
|
|
421
|
+
weight: 30
|
|
422
|
+
},
|
|
423
|
+
stepClusterTplVersion: {
|
|
424
|
+
name: 'clusterTplVersion',
|
|
425
|
+
label: this.t('catalog.install.steps.clusterTplVersion.label'),
|
|
426
|
+
subtext: this.t('catalog.install.steps.clusterTplVersion.subtext'),
|
|
427
|
+
descriptionKey: 'catalog.install.steps.helmValues.description',
|
|
428
|
+
ready: true,
|
|
429
|
+
weight: 30
|
|
430
|
+
},
|
|
431
|
+
stepValues: {
|
|
432
|
+
name: 'helmValues',
|
|
433
|
+
label: this.t('catalog.install.steps.helmValues.label'),
|
|
434
|
+
subtext: this.t('catalog.install.steps.helmValues.subtext'),
|
|
435
|
+
descriptionKey: 'catalog.install.steps.helmValues.description',
|
|
436
|
+
ready: true,
|
|
437
|
+
weight: 20
|
|
438
|
+
},
|
|
439
|
+
stepCommands: {
|
|
440
|
+
name: 'helmCli',
|
|
441
|
+
label: this.t('catalog.install.steps.helmCli.label'),
|
|
442
|
+
subtext: this.t('catalog.install.steps.helmCli.subtext'),
|
|
443
|
+
descriptionKey: 'catalog.install.steps.helmCli.description',
|
|
444
|
+
ready: true,
|
|
445
|
+
weight: 10
|
|
446
|
+
},
|
|
447
|
+
|
|
448
|
+
isPlainLayout: isPlainLayout(this.$route.query),
|
|
449
|
+
|
|
450
|
+
legacyDefs: {
|
|
451
|
+
legacy: this.t('catalog.install.error.legacy.category.legacy'),
|
|
452
|
+
mcm: this.t('catalog.install.error.legacy.category.mcm')
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
computed: {
|
|
458
|
+
...mapGetters({ inStore: 'catalog/inStore', features: 'features/get' }),
|
|
459
|
+
mcm: mapFeature(MULTI_CLUSTER),
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Return list of variables to filter chart questions
|
|
463
|
+
*/
|
|
464
|
+
ignoreVariables() {
|
|
465
|
+
return ignoreVariables(this.versionInfo);
|
|
466
|
+
},
|
|
467
|
+
|
|
468
|
+
namespaceIsNew() {
|
|
469
|
+
const all = this.$store.getters['cluster/all'](NAMESPACE);
|
|
470
|
+
const want = this.value?.metadata?.namespace;
|
|
471
|
+
|
|
472
|
+
if ( !want ) {
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
return !findBy(all, 'id', want);
|
|
477
|
+
},
|
|
478
|
+
|
|
479
|
+
showProject() {
|
|
480
|
+
return this.isRancher && !this.existing && this.forceNamespace;
|
|
481
|
+
},
|
|
482
|
+
|
|
483
|
+
projectOpts() {
|
|
484
|
+
const cluster = this.currentCluster;
|
|
485
|
+
const projects = this.$store.getters['management/all'](MANAGEMENT.PROJECT);
|
|
486
|
+
|
|
487
|
+
const out = projects.filter((x) => x.spec.clusterName === cluster?.id).map((project) => {
|
|
488
|
+
return {
|
|
489
|
+
id: project.id,
|
|
490
|
+
label: project.nameDisplay,
|
|
491
|
+
value: project.id
|
|
492
|
+
};
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
out.unshift({
|
|
496
|
+
id: 'none',
|
|
497
|
+
label: `(${ this.t('generic.none') })`,
|
|
498
|
+
value: '',
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
return out;
|
|
502
|
+
},
|
|
503
|
+
|
|
504
|
+
charts() {
|
|
505
|
+
const current = this.existing?.matchingCharts(true)[0];
|
|
506
|
+
|
|
507
|
+
const out = this.$store.getters['catalog/charts'].filter((x) => {
|
|
508
|
+
if ( x.key === current?.key || x.chartName === current?.chartName ) {
|
|
509
|
+
return true;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if ( x.hidden && !this.showHidden ) {
|
|
513
|
+
return false;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
if ( x.deprecated && !this.showDeprecated ) {
|
|
517
|
+
return false;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
return true;
|
|
521
|
+
});
|
|
522
|
+
|
|
523
|
+
let last = '';
|
|
524
|
+
|
|
525
|
+
for ( let i = 0 ; i < out.length ; i++ ) {
|
|
526
|
+
if ( out[i].repoName !== last ) {
|
|
527
|
+
last = out[i].repoName;
|
|
528
|
+
insertAt(out, i, {
|
|
529
|
+
kind: 'label',
|
|
530
|
+
label: out[i].repoNameDisplay,
|
|
531
|
+
disabled: true
|
|
532
|
+
});
|
|
533
|
+
i++;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
return out;
|
|
538
|
+
},
|
|
539
|
+
|
|
540
|
+
showSelectVersionOrChart() {
|
|
541
|
+
// Allow the user to choose a version if the app exists OR they've come from tools
|
|
542
|
+
return this.existing || (FROM_TOOLS in this.$route.query);
|
|
543
|
+
},
|
|
544
|
+
|
|
545
|
+
showNameEditor() {
|
|
546
|
+
return !this.nameDisabled || !this.forceNamespace;
|
|
547
|
+
},
|
|
548
|
+
|
|
549
|
+
showVersions() {
|
|
550
|
+
return this.chart?.versions.length > 1;
|
|
551
|
+
},
|
|
552
|
+
|
|
553
|
+
targetNamespace() {
|
|
554
|
+
if ( this.forceNamespace ) {
|
|
555
|
+
return this.forceNamespace;
|
|
556
|
+
} else if ( this.value?.metadata.namespace ) {
|
|
557
|
+
return this.value.metadata.namespace;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
return 'default';
|
|
561
|
+
},
|
|
562
|
+
|
|
563
|
+
editorMode() {
|
|
564
|
+
if ( this.showDiff ) {
|
|
565
|
+
return EDITOR_MODES.DIFF_CODE;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
return EDITOR_MODES.EDIT_CODE;
|
|
569
|
+
},
|
|
570
|
+
|
|
571
|
+
showingYaml() {
|
|
572
|
+
return this.formYamlOption === VALUES_STATE.YAML || ( !this.valuesComponent && !this.hasQuestions );
|
|
573
|
+
},
|
|
574
|
+
|
|
575
|
+
showingYamlDiff() {
|
|
576
|
+
return this.formYamlOption === VALUES_STATE.DIFF;
|
|
577
|
+
},
|
|
578
|
+
|
|
579
|
+
formYamlOptions() {
|
|
580
|
+
const options = [];
|
|
581
|
+
|
|
582
|
+
if (this.valuesComponent || this.hasQuestions) {
|
|
583
|
+
options.push({
|
|
584
|
+
labelKey: 'catalog.install.section.chartOptions',
|
|
585
|
+
value: VALUES_STATE.FORM,
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
options.push({
|
|
589
|
+
labelKey: 'catalog.install.section.valuesYaml',
|
|
590
|
+
value: VALUES_STATE.YAML,
|
|
591
|
+
}, {
|
|
592
|
+
labelKey: 'catalog.install.section.diff',
|
|
593
|
+
value: VALUES_STATE.DIFF,
|
|
594
|
+
// === quite obviously shouldn't work, but has been and still does. When the magic breaks address with heavier stringify/jsyaml.dump
|
|
595
|
+
disabled: this.formYamlOption === VALUES_STATE.FORM ? this.originalYamlValues === jsyaml.dump(this.chartValues || {}) : this.originalYamlValues === this.valuesYaml,
|
|
596
|
+
});
|
|
597
|
+
|
|
598
|
+
return options;
|
|
599
|
+
},
|
|
600
|
+
|
|
601
|
+
yamlDiffModeOptions() {
|
|
602
|
+
return [{
|
|
603
|
+
labelKey: 'resourceYaml.buttons.unified',
|
|
604
|
+
value: 'unified',
|
|
605
|
+
}, {
|
|
606
|
+
labelKey: 'resourceYaml.buttons.split',
|
|
607
|
+
value: 'split',
|
|
608
|
+
}];
|
|
609
|
+
},
|
|
610
|
+
|
|
611
|
+
stepperName() {
|
|
612
|
+
return this.existing?.nameDisplay || this.chart?.chartNameDisplay;
|
|
613
|
+
},
|
|
614
|
+
|
|
615
|
+
stepperSubtext() {
|
|
616
|
+
return this.existing && this.currentVersion !== this.targetVersion ? `${ this.currentVersion } > ${ this.targetVersion }` : this.targetVersion;
|
|
617
|
+
},
|
|
618
|
+
|
|
619
|
+
readmeWindowName() {
|
|
620
|
+
// Version can change, so allow multiple WM tabs for different versions
|
|
621
|
+
return `${ this.stepperName }-${ this.version?.version }`;
|
|
622
|
+
},
|
|
623
|
+
|
|
624
|
+
showingReadmeWindow() {
|
|
625
|
+
return !!this.$store.getters['wm/byId'](this.readmeWindowName);
|
|
626
|
+
},
|
|
627
|
+
|
|
628
|
+
diffMode: mapPref(DIFF),
|
|
629
|
+
|
|
630
|
+
step1Description() {
|
|
631
|
+
const descriptionKey = this.steps.find((s) => s.name === 'basics').descriptionKey;
|
|
632
|
+
|
|
633
|
+
return this.$store.getters['i18n/withFallback'](descriptionKey, { action: this.action, existing: !!this.existing }, '');
|
|
634
|
+
},
|
|
635
|
+
|
|
636
|
+
step2Description() {
|
|
637
|
+
const descriptionKey = this.steps.find((s) => s.name === 'helmValues').descriptionKey;
|
|
638
|
+
|
|
639
|
+
return this.$store.getters['i18n/withFallback'](descriptionKey, { action: this.action, existing: !!this.existing }, '');
|
|
640
|
+
},
|
|
641
|
+
|
|
642
|
+
step3Description() {
|
|
643
|
+
const descriptionKey = this.steps.find((s) => s.name === 'helmCli').descriptionKey;
|
|
644
|
+
|
|
645
|
+
return this.$store.getters['i18n/withFallback'](descriptionKey, { action: this.action, existing: !!this.existing }, '');
|
|
646
|
+
},
|
|
647
|
+
|
|
648
|
+
steps() {
|
|
649
|
+
const steps = [];
|
|
650
|
+
|
|
651
|
+
const type = this.version?.annotations?.[CATALOG_ANNOTATIONS.TYPE];
|
|
652
|
+
|
|
653
|
+
if ( type === CATALOG_ANNOTATIONS._CLUSTER_TPL ) {
|
|
654
|
+
if (this.filteredVersions?.length > 1) {
|
|
655
|
+
steps.push(this.stepClusterTplVersion);
|
|
656
|
+
}
|
|
657
|
+
steps.push({
|
|
658
|
+
...this.stepValues,
|
|
659
|
+
label: this.t('catalog.install.steps.clusterTplValues.label'),
|
|
660
|
+
subtext: this.t('catalog.install.steps.clusterTplValues.subtext'),
|
|
661
|
+
descriptionKey: 'catalog.install.steps.clusterTplValues.description',
|
|
662
|
+
});
|
|
663
|
+
} else {
|
|
664
|
+
steps.push(
|
|
665
|
+
this.stepBasic,
|
|
666
|
+
this.stepValues,
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
if (this.showCommandStep) {
|
|
671
|
+
steps.push(this.stepCommands);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
return steps.sort((a, b) => (b.weight || 0) - (a.weight || 0));
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
cmdOptions() {
|
|
678
|
+
return this.showCommandStep ? this.customCmdOpts : this.defaultCmdOpts;
|
|
679
|
+
},
|
|
680
|
+
|
|
681
|
+
namespaceNewAllowed() {
|
|
682
|
+
return !this.existing && !this.forceNamespace;
|
|
683
|
+
},
|
|
684
|
+
|
|
685
|
+
legacyEnabled() {
|
|
686
|
+
// Check for the legacy feature flag in the settings
|
|
687
|
+
return this.features(LEGACY);
|
|
688
|
+
},
|
|
689
|
+
|
|
690
|
+
legacyFeatureRoute() {
|
|
691
|
+
return {
|
|
692
|
+
name: 'c-cluster-product-resource',
|
|
693
|
+
params: { product: 'settings', resource: 'management.cattle.io.feature' }
|
|
694
|
+
};
|
|
695
|
+
},
|
|
696
|
+
|
|
697
|
+
legacyAppRoute() {
|
|
698
|
+
return { name: 'c-cluster-legacy-project' };
|
|
699
|
+
},
|
|
700
|
+
|
|
701
|
+
windowsIncompatible() {
|
|
702
|
+
if (this.chart?.windowsIncompatible) {
|
|
703
|
+
return this.t('catalog.charts.windowsIncompatible');
|
|
704
|
+
}
|
|
705
|
+
if (this.versionInfo) {
|
|
706
|
+
const incompatibleVersion = !(this.versionInfo?.chart?.annotations?.[CATALOG_ANNOTATIONS.PERMITTED_OS] || LINUX).includes('windows');
|
|
707
|
+
|
|
708
|
+
if (incompatibleVersion && !this.chart.windowsIncompatible) {
|
|
709
|
+
return this.t('catalog.charts.versionWindowsIncompatible');
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
return null;
|
|
714
|
+
},
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Check if the chart contains `systemDefaultRegistry` properties.
|
|
718
|
+
* If not we shouldn't apply the setting, because if the option
|
|
719
|
+
* is exposed for third-party Helm charts, it confuses users because
|
|
720
|
+
* it shows a private registry setting that is never used
|
|
721
|
+
* by the chart they are installing. If not hidden, the setting
|
|
722
|
+
* does nothing, and if the user changes it, it will look like
|
|
723
|
+
* there is a bug in the UI when it doesn't work, because UI is
|
|
724
|
+
* exposing a feature that the chart does not have.
|
|
725
|
+
*/
|
|
726
|
+
showCustomRegistry() {
|
|
727
|
+
const global = this.versionInfo?.values?.global || {};
|
|
728
|
+
|
|
729
|
+
return global.systemDefaultRegistry !== undefined || global.cattle?.systemDefaultRegistry !== undefined;
|
|
730
|
+
},
|
|
731
|
+
|
|
732
|
+
},
|
|
733
|
+
|
|
734
|
+
watch: {
|
|
735
|
+
'$route.query'(neu, old) {
|
|
736
|
+
// If the query changes, refetch the chart
|
|
737
|
+
// When going back to app list, the query is empty and we don't want to refetch
|
|
738
|
+
if ( !isEqual(neu, old) && Object.keys(neu).length > 0 ) {
|
|
739
|
+
this.$fetch();
|
|
740
|
+
this.showSlideIn = false;
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
|
|
744
|
+
'value.metadata.namespace'(neu, old) {
|
|
745
|
+
if (neu) {
|
|
746
|
+
const ns = this.$store.getters['cluster/byId'](NAMESPACE, this.value.metadata.namespace);
|
|
747
|
+
|
|
748
|
+
const project = ns?.metadata.annotations?.[PROJECT];
|
|
749
|
+
|
|
750
|
+
if (project) {
|
|
751
|
+
this.project = project.replace(':', '/');
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
|
|
756
|
+
preFormYamlOption(neu, old) {
|
|
757
|
+
if (neu === VALUES_STATE.FORM && this.valuesYaml !== this.previousYamlValues && !!this.$refs.cancelModal) {
|
|
758
|
+
this.$refs.cancelModal.show();
|
|
759
|
+
} else {
|
|
760
|
+
this.formYamlOption = neu;
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
|
|
764
|
+
formYamlOption(neu, old) {
|
|
765
|
+
switch (neu) {
|
|
766
|
+
case VALUES_STATE.FORM:
|
|
767
|
+
// Return to form, reset everything back to starting point
|
|
768
|
+
this.valuesYaml = this.previousYamlValues;
|
|
769
|
+
|
|
770
|
+
this.showValuesComponent = true;
|
|
771
|
+
this.showQuestions = true;
|
|
772
|
+
|
|
773
|
+
this.showDiff = false;
|
|
774
|
+
break;
|
|
775
|
+
case VALUES_STATE.YAML:
|
|
776
|
+
// Show the YAML preview
|
|
777
|
+
if (old === VALUES_STATE.FORM) {
|
|
778
|
+
this.valuesYaml = jsyaml.dump(this.chartValues || {});
|
|
779
|
+
this.previousYamlValues = this.valuesYaml;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
this.showValuesComponent = false;
|
|
783
|
+
this.showQuestions = false;
|
|
784
|
+
|
|
785
|
+
this.showDiff = false;
|
|
786
|
+
break;
|
|
787
|
+
case VALUES_STATE.DIFF:
|
|
788
|
+
// Show the YAML diff
|
|
789
|
+
if (old === VALUES_STATE.FORM) {
|
|
790
|
+
this.valuesYaml = jsyaml.dump(this.chartValues || {});
|
|
791
|
+
this.previousYamlValues = this.valuesYaml;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
this.showValuesComponent = false;
|
|
795
|
+
this.showQuestions = false;
|
|
796
|
+
|
|
797
|
+
this.updateValue(this.valuesYaml);
|
|
798
|
+
this.showDiff = true;
|
|
799
|
+
break;
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
|
|
803
|
+
requires() {
|
|
804
|
+
this.updateStepOneReady();
|
|
805
|
+
},
|
|
806
|
+
|
|
807
|
+
warnings() {
|
|
808
|
+
this.updateStepOneReady();
|
|
809
|
+
},
|
|
810
|
+
|
|
811
|
+
},
|
|
812
|
+
|
|
813
|
+
async mounted() {
|
|
814
|
+
// Load a Vue component named in the Helm chart
|
|
815
|
+
// for editing values
|
|
816
|
+
await this.loadValuesComponent();
|
|
817
|
+
|
|
818
|
+
window.scrollTop = 0;
|
|
819
|
+
|
|
820
|
+
this.preFormYamlOption = this.valuesComponent || this.hasQuestions ? VALUES_STATE.FORM : VALUES_STATE.YAML;
|
|
821
|
+
},
|
|
822
|
+
|
|
823
|
+
beforeUnmount() {
|
|
824
|
+
this.shownReadmeWindows.forEach((name) => this.$store.dispatch('wm/close', name, { root: true }));
|
|
825
|
+
},
|
|
826
|
+
|
|
827
|
+
methods: {
|
|
828
|
+
async getClusterRegistry() {
|
|
829
|
+
const hasPermissionToSeeProvCluster = this.$store.getters[`management/schemaFor`](CAPI.RANCHER_CLUSTER);
|
|
830
|
+
|
|
831
|
+
if (hasPermissionToSeeProvCluster) {
|
|
832
|
+
const mgmCluster = this.$store.getters['currentCluster'];
|
|
833
|
+
const provClusterId = mgmCluster?.provClusterId;
|
|
834
|
+
let provCluster;
|
|
835
|
+
|
|
836
|
+
try {
|
|
837
|
+
provCluster = provClusterId ? await this.$store.dispatch('management/find', {
|
|
838
|
+
type: CAPI.RANCHER_CLUSTER,
|
|
839
|
+
id: provClusterId
|
|
840
|
+
}) : {};
|
|
841
|
+
} catch (e) {
|
|
842
|
+
console.error(`Unable to fetch prov cluster '${ provClusterId }': `, e); // eslint-disable-line no-console
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
if (provCluster?.isRke2) { // isRke2 returns true for both RKE2 and K3s clusters.
|
|
846
|
+
// If a cluster scoped registry exists,
|
|
847
|
+
// it should be used by default.
|
|
848
|
+
const clusterRegistry = provCluster.agentConfig?.['system-default-registry'] || '';
|
|
849
|
+
|
|
850
|
+
if (clusterRegistry) {
|
|
851
|
+
return clusterRegistry;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
if (provCluster?.isRke1) {
|
|
856
|
+
// For RKE1 clusters, the cluster scoped private registry is on the management
|
|
857
|
+
// cluster, not the provisioning cluster.
|
|
858
|
+
const rke1Registries = mgmCluster?.spec?.rancherKubernetesEngineConfig?.privateRegistries;
|
|
859
|
+
|
|
860
|
+
if (rke1Registries?.length > 0) {
|
|
861
|
+
const defaultRegistry = rke1Registries.find((registry) => {
|
|
862
|
+
return registry.isDefault;
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
return defaultRegistry.url;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
|
|
871
|
+
async getGlobalRegistry() {
|
|
872
|
+
// Use the global registry as a fallback.
|
|
873
|
+
// If it is an empty string, the container
|
|
874
|
+
// runtime will pull images from docker.io.
|
|
875
|
+
const globalRegistry = await this.$store.dispatch('management/find', {
|
|
876
|
+
type: MANAGEMENT.SETTING,
|
|
877
|
+
id: SETTING.SYSTEM_DEFAULT_REGISTRY,
|
|
878
|
+
});
|
|
879
|
+
|
|
880
|
+
return globalRegistry.value;
|
|
881
|
+
},
|
|
882
|
+
|
|
883
|
+
updateValue(value) {
|
|
884
|
+
if (this.$refs.yaml) {
|
|
885
|
+
this.$refs.yaml.updateValue(value);
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
|
|
889
|
+
async loadValuesComponent() {
|
|
890
|
+
// The const component is a string, for example, 'monitoring'.
|
|
891
|
+
const component = this.version?.annotations?.[CATALOG_ANNOTATIONS.COMPONENT];
|
|
892
|
+
|
|
893
|
+
// Load a values component for the UI if it is named in the Helm chart.
|
|
894
|
+
if ( component ) {
|
|
895
|
+
const hasChartComponent = this.$store.getters['type-map/hasCustomChart'](component);
|
|
896
|
+
|
|
897
|
+
if ( hasChartComponent ) {
|
|
898
|
+
this.valuesComponent = markRaw(this.$store.getters['type-map/importChart'](component));
|
|
899
|
+
this.showValuesComponent = true;
|
|
900
|
+
} else {
|
|
901
|
+
this.valuesComponent = null;
|
|
902
|
+
this.showValuesComponent = false;
|
|
903
|
+
}
|
|
904
|
+
} else {
|
|
905
|
+
this.valuesComponent = null;
|
|
906
|
+
this.showValuesComponent = false;
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
|
|
910
|
+
selectChart(chart) {
|
|
911
|
+
if ( !chart ) {
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
this.$router.applyQuery({
|
|
916
|
+
[REPO]: chart.repoName,
|
|
917
|
+
[REPO_TYPE]: chart.repoType,
|
|
918
|
+
[CHART]: chart.chartName,
|
|
919
|
+
[VERSION]: chart.versions[0].version
|
|
920
|
+
});
|
|
921
|
+
},
|
|
922
|
+
|
|
923
|
+
cancel() {
|
|
924
|
+
if ( this.existing ) {
|
|
925
|
+
this.done();
|
|
926
|
+
} else if (this.$route.query[FROM_TOOLS] === _FLAGGED) {
|
|
927
|
+
this.$router.replace(this.clusterToolsLocation());
|
|
928
|
+
} else if (this.$route.query[FROM_CLUSTER] === _FLAGGED) {
|
|
929
|
+
this.$router.replace(this.clustersLocation());
|
|
930
|
+
} else {
|
|
931
|
+
this.$router.replace(this.chartLocation(false));
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
|
|
935
|
+
done() {
|
|
936
|
+
if ( this.$route.query[FROM_TOOLS] === _FLAGGED ) {
|
|
937
|
+
this.$router.replace(this.clusterToolsLocation());
|
|
938
|
+
} else if (this.$route.query[FROM_CLUSTER] === _FLAGGED) {
|
|
939
|
+
this.$router.replace(this.clustersLocation());
|
|
940
|
+
} else {
|
|
941
|
+
// If the create app process fails helm validation then we still get here... so until this is fixed new apps will be taken to the
|
|
942
|
+
// generic apps list (existing apps will be taken to their detail page)
|
|
943
|
+
this.$router.replace(this.appLocation());
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
|
|
947
|
+
async finish(btnCb) {
|
|
948
|
+
try {
|
|
949
|
+
const isUpgrade = !!this.existing;
|
|
950
|
+
|
|
951
|
+
this.errors = [];
|
|
952
|
+
|
|
953
|
+
await this.applyHooks(BEFORE_SAVE_HOOKS);
|
|
954
|
+
|
|
955
|
+
const { errors, input } = this.actionInput(isUpgrade);
|
|
956
|
+
|
|
957
|
+
if ( errors?.length ) {
|
|
958
|
+
this.errors = errors;
|
|
959
|
+
btnCb(false);
|
|
960
|
+
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
const res = await this.repo.doAction((isUpgrade ? 'upgrade' : 'install'), input);
|
|
965
|
+
const operationId = `${ res.operationNamespace }/${ res.operationName }`;
|
|
966
|
+
|
|
967
|
+
// Non-admins without a cluster won't be able to fetch operations immediately
|
|
968
|
+
await this.repo.waitForOperation(operationId);
|
|
969
|
+
|
|
970
|
+
// Dynamically use store decided when loading catalog (covers standard user case when there's not cluster)
|
|
971
|
+
this.operation = await this.$store.dispatch(`${ this.inStore }/find`, {
|
|
972
|
+
type: CATALOG.OPERATION,
|
|
973
|
+
id: operationId
|
|
974
|
+
});
|
|
975
|
+
|
|
976
|
+
try {
|
|
977
|
+
await this.operation.waitForLink('logs');
|
|
978
|
+
this.operation.openLogs();
|
|
979
|
+
} catch (e) {
|
|
980
|
+
// The wait times out eventually, move on...
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
await this.applyHooks(AFTER_SAVE_HOOKS);
|
|
984
|
+
|
|
985
|
+
btnCb(true);
|
|
986
|
+
this.done();
|
|
987
|
+
} catch (err) {
|
|
988
|
+
this.errors = exceptionToErrorsArray(err);
|
|
989
|
+
btnCb(false);
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
|
|
993
|
+
addGlobalValuesTo(values) {
|
|
994
|
+
let global = values.global;
|
|
995
|
+
|
|
996
|
+
if ( !global ) {
|
|
997
|
+
global = {};
|
|
998
|
+
set(values, 'global', global);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
let cattle = global.cattle;
|
|
1002
|
+
|
|
1003
|
+
if ( !cattle ) {
|
|
1004
|
+
cattle = {};
|
|
1005
|
+
set(values.global, 'cattle', cattle);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
const cluster = this.currentCluster;
|
|
1009
|
+
const projects = this.$store.getters['management/all'](MANAGEMENT.PROJECT);
|
|
1010
|
+
const systemProjectId = projects.find((p) => p.spec?.displayName === 'System')?.id?.split('/')?.[1] || '';
|
|
1011
|
+
|
|
1012
|
+
const serverUrl = this.serverUrlSetting?.value || '';
|
|
1013
|
+
const isWindows = (cluster?.workerOSs || []).includes(WINDOWS);
|
|
1014
|
+
const pathPrefix = cluster?.spec?.rancherKubernetesEngineConfig?.prefixPath || '';
|
|
1015
|
+
const windowsPathPrefix = cluster?.spec?.rancherKubernetesEngineConfig?.winPrefixPath || '';
|
|
1016
|
+
|
|
1017
|
+
setIfNotSet(cattle, 'clusterId', cluster?.id);
|
|
1018
|
+
setIfNotSet(cattle, 'clusterName', cluster?.nameDisplay);
|
|
1019
|
+
|
|
1020
|
+
if (this.showCustomRegistry) {
|
|
1021
|
+
set(cattle, 'systemDefaultRegistry', this.customRegistrySetting);
|
|
1022
|
+
set(global, 'systemDefaultRegistry', this.customRegistrySetting);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
setIfNotSet(global, 'cattle.systemProjectId', systemProjectId);
|
|
1026
|
+
setIfNotSet(cattle, 'url', serverUrl);
|
|
1027
|
+
setIfNotSet(cattle, 'rkePathPrefix', pathPrefix);
|
|
1028
|
+
setIfNotSet(cattle, 'rkeWindowsPathPrefix', windowsPathPrefix);
|
|
1029
|
+
|
|
1030
|
+
if ( isWindows ) {
|
|
1031
|
+
setIfNotSet(cattle, 'windows.enabled', true);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
return values;
|
|
1035
|
+
|
|
1036
|
+
function setIfNotSet(obj, key, val) {
|
|
1037
|
+
if ( typeof get(obj, key) === 'undefined' ) {
|
|
1038
|
+
set(obj, key, val);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
|
|
1043
|
+
removeGlobalValuesFrom(values) {
|
|
1044
|
+
if ( !values ) {
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
const cluster = this.$store.getters['currentCluster'];
|
|
1049
|
+
const serverUrl = this.serverUrlSetting?.value || '';
|
|
1050
|
+
const isWindows = (cluster?.workerOSs || []).includes(WINDOWS);
|
|
1051
|
+
const pathPrefix = cluster?.spec?.rancherKubernetesEngineConfig?.prefixPath || '';
|
|
1052
|
+
const windowsPathPrefix = cluster?.spec?.rancherKubernetesEngineConfig?.winPrefixPath || '';
|
|
1053
|
+
|
|
1054
|
+
if ( values.global?.cattle ) {
|
|
1055
|
+
deleteIfEqual(values.global.cattle, 'clusterId', cluster?.id);
|
|
1056
|
+
deleteIfEqual(values.global.cattle, 'clusterName', cluster?.nameDisplay);
|
|
1057
|
+
deleteIfEqual(values.global.cattle, 'url', serverUrl);
|
|
1058
|
+
deleteIfEqual(values.global.cattle, 'rkePathPrefix', pathPrefix);
|
|
1059
|
+
deleteIfEqual(values.global.cattle, 'rkeWindowsPathPrefix', windowsPathPrefix);
|
|
1060
|
+
|
|
1061
|
+
if ( isWindows ) {
|
|
1062
|
+
deleteIfEqual(values.global.cattle.windows, 'enabled', true);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
if ( values.global?.cattle?.windows && !Object.keys(values.global.cattle.windows).length ) {
|
|
1067
|
+
delete values.global.cattle.windows;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
if ( values.global?.cattle && !Object.keys(values.global.cattle).length ) {
|
|
1071
|
+
delete values.global.cattle;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
if ( !Object.keys(values.global || {}).length ) {
|
|
1075
|
+
delete values.global;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
return values;
|
|
1079
|
+
|
|
1080
|
+
function deleteIfEqual(obj, key, val) {
|
|
1081
|
+
if ( get(obj, key) === val ) {
|
|
1082
|
+
delete obj[key];
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
|
|
1087
|
+
applyYamlToValues() {
|
|
1088
|
+
try {
|
|
1089
|
+
this.chartValues = jsyaml.load(this.valuesYaml);
|
|
1090
|
+
} catch (err) {
|
|
1091
|
+
return { errors: exceptionToErrorsArray(err) };
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
return { errors: [] };
|
|
1095
|
+
},
|
|
1096
|
+
|
|
1097
|
+
/*
|
|
1098
|
+
actionInput determines what values Rancher finally sends
|
|
1099
|
+
to the backend when installing or upgrading the app. It
|
|
1100
|
+
injects Rancher-specific values into the chart values.
|
|
1101
|
+
*/
|
|
1102
|
+
actionInput(isUpgrade) {
|
|
1103
|
+
/* Default values defined in the Helm chart itself */
|
|
1104
|
+
const fromChart = this.versionInfo?.values || {};
|
|
1105
|
+
|
|
1106
|
+
const errors = [];
|
|
1107
|
+
|
|
1108
|
+
if ( this.showingYaml || this.showingYamlDiff ) {
|
|
1109
|
+
const { errors: yamlErrors } = this.applyYamlToValues();
|
|
1110
|
+
|
|
1111
|
+
errors.push(...yamlErrors);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/*
|
|
1115
|
+
Only save the values that differ from the chart's standard values.yaml.
|
|
1116
|
+
chartValues is created by applying the user's customized onto
|
|
1117
|
+
the default chart values.
|
|
1118
|
+
*/
|
|
1119
|
+
const values = diff(fromChart, this.chartValues);
|
|
1120
|
+
|
|
1121
|
+
/*
|
|
1122
|
+
Refer to the developer docs at docs/developer/helm-chart-apps.md
|
|
1123
|
+
for details on what values are injected and where they come from.
|
|
1124
|
+
*/
|
|
1125
|
+
|
|
1126
|
+
this.addGlobalValuesTo(values);
|
|
1127
|
+
|
|
1128
|
+
const form = JSON.parse(JSON.stringify(this.value));
|
|
1129
|
+
|
|
1130
|
+
/*
|
|
1131
|
+
Migrated annotations are required to allow a deprecated legacy app to be
|
|
1132
|
+
upgraded.
|
|
1133
|
+
*/
|
|
1134
|
+
const migratedAnnotations = this.migratedApp ? { [CATALOG_ANNOTATIONS.MIGRATED]: 'true' } : {};
|
|
1135
|
+
|
|
1136
|
+
const chart = {
|
|
1137
|
+
chartName: this.chart.chartName,
|
|
1138
|
+
version: this.version?.version || this.query.versionName,
|
|
1139
|
+
releaseName: form.metadata.name,
|
|
1140
|
+
description: this.customCmdOpts.description,
|
|
1141
|
+
annotations: {
|
|
1142
|
+
...migratedAnnotations,
|
|
1143
|
+
[CATALOG_ANNOTATIONS.SOURCE_REPO_TYPE]: this.chart.repoType,
|
|
1144
|
+
[CATALOG_ANNOTATIONS.SOURCE_REPO_NAME]: this.chart.repoName
|
|
1145
|
+
},
|
|
1146
|
+
values,
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1149
|
+
if ( isUpgrade ) {
|
|
1150
|
+
chart.resetValues = this.cmdOptions.resetValues;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/*
|
|
1154
|
+
Configure Helm CLI options for doing the install or
|
|
1155
|
+
upgrade operation.
|
|
1156
|
+
*/
|
|
1157
|
+
const out = {
|
|
1158
|
+
charts: [chart],
|
|
1159
|
+
noHooks: this.cmdOptions.hooks === false,
|
|
1160
|
+
timeout: this.cmdOptions.timeout > 0 ? `${ this.cmdOptions.timeout }s` : null,
|
|
1161
|
+
wait: this.cmdOptions.wait === true,
|
|
1162
|
+
namespace: form.metadata.namespace,
|
|
1163
|
+
projectId: this.project,
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
/*
|
|
1167
|
+
Configure Helm CLI options that are specific to
|
|
1168
|
+
installs or specific to upgrades.
|
|
1169
|
+
*/
|
|
1170
|
+
if ( isUpgrade ) {
|
|
1171
|
+
out.force = this.cmdOptions.force === true;
|
|
1172
|
+
out.historyMax = this.cmdOptions.historyMax;
|
|
1173
|
+
out.cleanupOnFail = this.cmdOptions.cleanupOnFail;
|
|
1174
|
+
} else {
|
|
1175
|
+
out.disableOpenAPIValidation = this.cmdOptions.openApi === false;
|
|
1176
|
+
out.skipCRDs = this.cmdOptions.crds === false;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
const more = [];
|
|
1180
|
+
|
|
1181
|
+
const auto = (this.version?.annotations?.[CATALOG_ANNOTATIONS.AUTO_INSTALL_GVK] || '').split(/\s*,\s*/).filter((x) => !!x).reverse();
|
|
1182
|
+
|
|
1183
|
+
for ( const gvr of auto ) {
|
|
1184
|
+
const provider = this.$store.getters['catalog/versionProviding']({
|
|
1185
|
+
gvr,
|
|
1186
|
+
repoName: this.chart.repoName,
|
|
1187
|
+
repoType: this.chart.repoType
|
|
1188
|
+
});
|
|
1189
|
+
|
|
1190
|
+
if ( provider ) {
|
|
1191
|
+
more.push(provider);
|
|
1192
|
+
} else {
|
|
1193
|
+
errors.push(`This chart requires another chart that provides ${ gvr }, but none was was found`);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/* Chart custom UI components have the ability to edit CRD chart values eg gatekeeper-crd has values.enableRuntimeDefaultSeccompProfile
|
|
1198
|
+
like the main chart, only CRD values that differ from defaults should be sent on install/upgrade
|
|
1199
|
+
CRDs should be installed with the same global values as the main chart
|
|
1200
|
+
*/
|
|
1201
|
+
for (const versionInfo of this.autoInstallInfo) {
|
|
1202
|
+
// allValues are the values potentially changed in the installation ui: any previously customized values + defaults
|
|
1203
|
+
// values are default values from the chart
|
|
1204
|
+
const { allValues, values: crdValues } = versionInfo;
|
|
1205
|
+
|
|
1206
|
+
// only save crd values that differ from the defaults defined in chart values.yaml
|
|
1207
|
+
const customizedCrdValues = diff(crdValues, allValues);
|
|
1208
|
+
|
|
1209
|
+
// CRD globals should be overwritten by main chart globals
|
|
1210
|
+
// we want to avoid including globals present on crd values and not main chart values
|
|
1211
|
+
// that covers the scenario where a global value was customized on a previous install (and so is present in crd global vals) and the user has reverted it to default on this update (no longer present in main chart global vals)
|
|
1212
|
+
const crdValuesToInstall = { ...customizedCrdValues, global: values.global };
|
|
1213
|
+
|
|
1214
|
+
out.charts.unshift({
|
|
1215
|
+
chartName: versionInfo.chart.name,
|
|
1216
|
+
version: versionInfo.chart.version,
|
|
1217
|
+
releaseName: versionInfo.chart.annotations[CATALOG_ANNOTATIONS.RELEASE_NAME] || chart.name,
|
|
1218
|
+
projectId: this.project,
|
|
1219
|
+
values: crdValuesToInstall
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
/*
|
|
1223
|
+
'more' contains additional
|
|
1224
|
+
charts that may not be CRD charts but are also meant to be installed at
|
|
1225
|
+
the same time.
|
|
1226
|
+
*/
|
|
1227
|
+
for ( const dependency of more ) {
|
|
1228
|
+
out.charts.unshift({
|
|
1229
|
+
chartName: dependency.name,
|
|
1230
|
+
version: dependency.version,
|
|
1231
|
+
releaseName: dependency.annotations[CATALOG_ANNOTATIONS.RELEASE_NAME] || dependency.name,
|
|
1232
|
+
projectId: this.project,
|
|
1233
|
+
values: this.addGlobalValuesTo({ global: values.global }),
|
|
1234
|
+
annotations: {
|
|
1235
|
+
...migratedAnnotations,
|
|
1236
|
+
[CATALOG_ANNOTATIONS.SOURCE_REPO_TYPE]: dependency.repoType,
|
|
1237
|
+
[CATALOG_ANNOTATIONS.SOURCE_REPO_NAME]: dependency.repoName
|
|
1238
|
+
},
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
return { errors, input: out };
|
|
1243
|
+
},
|
|
1244
|
+
|
|
1245
|
+
tabChanged() {
|
|
1246
|
+
window.scrollTop = 0;
|
|
1247
|
+
},
|
|
1248
|
+
|
|
1249
|
+
updateStepOneReady() {
|
|
1250
|
+
const okRequires = !this.requires.length;
|
|
1251
|
+
const okChart = !!this.chart;
|
|
1252
|
+
|
|
1253
|
+
this.steps[0].ready = okRequires && okChart;
|
|
1254
|
+
},
|
|
1255
|
+
|
|
1256
|
+
updateStepTwoReady(update) {
|
|
1257
|
+
this.updateStep('helmValues', { ready: update });
|
|
1258
|
+
},
|
|
1259
|
+
|
|
1260
|
+
getOptionLabel(opt) {
|
|
1261
|
+
return opt?.chartNameDisplay;
|
|
1262
|
+
},
|
|
1263
|
+
|
|
1264
|
+
showReadmeWindow() {
|
|
1265
|
+
this.$store.dispatch('wm/open', {
|
|
1266
|
+
id: this.readmeWindowName,
|
|
1267
|
+
label: this.readmeWindowName,
|
|
1268
|
+
icon: 'file',
|
|
1269
|
+
component: 'ChartReadme',
|
|
1270
|
+
attrs: { versionInfo: this.versionInfo }
|
|
1271
|
+
}, { root: true });
|
|
1272
|
+
this.shownReadmeWindows.push(this.readmeWindowName);
|
|
1273
|
+
},
|
|
1274
|
+
|
|
1275
|
+
updateStep(stepName, update) {
|
|
1276
|
+
const step = this.steps.find((step) => step.name === stepName);
|
|
1277
|
+
|
|
1278
|
+
if (step) {
|
|
1279
|
+
for (const prop in update) {
|
|
1280
|
+
step[prop] = update[prop];
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
};
|
|
1286
|
+
</script>
|
|
1287
|
+
|
|
1288
|
+
<template>
|
|
1289
|
+
<Loading v-if="$fetchState.pending" />
|
|
1290
|
+
<div
|
|
1291
|
+
v-else-if="!legacyApp && !mcapp"
|
|
1292
|
+
class="install-steps pt-20"
|
|
1293
|
+
:class="{ 'isPlainLayout': isPlainLayout}"
|
|
1294
|
+
>
|
|
1295
|
+
<TypeDescription resource="chart" />
|
|
1296
|
+
<Wizard
|
|
1297
|
+
v-if="value"
|
|
1298
|
+
:steps="steps"
|
|
1299
|
+
:errors="errors"
|
|
1300
|
+
:edit-first-step="true"
|
|
1301
|
+
:banner-title="stepperName"
|
|
1302
|
+
:banner-title-subtext="stepperSubtext"
|
|
1303
|
+
:finish-mode="action"
|
|
1304
|
+
class="wizard"
|
|
1305
|
+
:class="{'windowsIncompatible': windowsIncompatible}"
|
|
1306
|
+
@cancel="cancel"
|
|
1307
|
+
@finish="finish"
|
|
1308
|
+
>
|
|
1309
|
+
<template #bannerTitleImage>
|
|
1310
|
+
<div>
|
|
1311
|
+
<div class="logo-bg">
|
|
1312
|
+
<LazyImage
|
|
1313
|
+
:src="chart ? chart.icon : ''"
|
|
1314
|
+
class="logo"
|
|
1315
|
+
/>
|
|
1316
|
+
</div>
|
|
1317
|
+
<label
|
|
1318
|
+
v-if="windowsIncompatible"
|
|
1319
|
+
class="os-label"
|
|
1320
|
+
>
|
|
1321
|
+
{{ windowsIncompatible }}
|
|
1322
|
+
</label>
|
|
1323
|
+
</div>
|
|
1324
|
+
</template>
|
|
1325
|
+
<template #basics>
|
|
1326
|
+
<div class="step__basic">
|
|
1327
|
+
<Banner
|
|
1328
|
+
v-if="step1Description"
|
|
1329
|
+
color="info"
|
|
1330
|
+
class="description"
|
|
1331
|
+
>
|
|
1332
|
+
<div>
|
|
1333
|
+
<span>{{ step1Description }}</span>
|
|
1334
|
+
<span
|
|
1335
|
+
v-if="namespaceNewAllowed"
|
|
1336
|
+
class="mt-10"
|
|
1337
|
+
>
|
|
1338
|
+
{{ t('catalog.install.steps.basics.nsCreationDescription', {}, true) }}
|
|
1339
|
+
</span>
|
|
1340
|
+
</div>
|
|
1341
|
+
</Banner>
|
|
1342
|
+
<div
|
|
1343
|
+
v-if="requires.length || warnings.length"
|
|
1344
|
+
class="mb-15"
|
|
1345
|
+
>
|
|
1346
|
+
<Banner
|
|
1347
|
+
v-for="(msg, i) in requires"
|
|
1348
|
+
:key="i"
|
|
1349
|
+
color="error"
|
|
1350
|
+
>
|
|
1351
|
+
<span v-clean-html="msg" />
|
|
1352
|
+
</Banner>
|
|
1353
|
+
|
|
1354
|
+
<Banner
|
|
1355
|
+
v-for="(msg, i) in warnings"
|
|
1356
|
+
:key="i"
|
|
1357
|
+
color="warning"
|
|
1358
|
+
>
|
|
1359
|
+
<span v-clean-html="msg" />
|
|
1360
|
+
</Banner>
|
|
1361
|
+
</div>
|
|
1362
|
+
<div
|
|
1363
|
+
v-if="showSelectVersionOrChart"
|
|
1364
|
+
class="row mb-20"
|
|
1365
|
+
>
|
|
1366
|
+
<div class="col span-4">
|
|
1367
|
+
<!-- We have a chart for the app, let the user select a new version -->
|
|
1368
|
+
<LabeledSelect
|
|
1369
|
+
v-if="chart"
|
|
1370
|
+
:label="t('catalog.install.version')"
|
|
1371
|
+
:value="query.versionName"
|
|
1372
|
+
:options="filteredVersions"
|
|
1373
|
+
:selectable="version => !version.disabled"
|
|
1374
|
+
@update:value="selectVersion"
|
|
1375
|
+
/>
|
|
1376
|
+
<!-- Can't find the chart for the app, let the user try to select one -->
|
|
1377
|
+
<LabeledSelect
|
|
1378
|
+
v-else
|
|
1379
|
+
:label="t('catalog.install.chart')"
|
|
1380
|
+
:value="chart"
|
|
1381
|
+
:options="charts"
|
|
1382
|
+
:selectable="option => !option.disabled"
|
|
1383
|
+
:get-option-label="opt => getOptionLabel(opt)"
|
|
1384
|
+
option-key="key"
|
|
1385
|
+
@update:value="selectChart($event)"
|
|
1386
|
+
>
|
|
1387
|
+
<template v-slot:option="opt">
|
|
1388
|
+
<template v-if="opt.kind === 'divider'">
|
|
1389
|
+
<hr>
|
|
1390
|
+
</template>
|
|
1391
|
+
<template v-else-if="opt.kind === 'label'">
|
|
1392
|
+
<b style="position: relative; left: -2.5px;">{{ opt.label }}</b>
|
|
1393
|
+
</template>
|
|
1394
|
+
</template>
|
|
1395
|
+
</LabeledSelect>
|
|
1396
|
+
</div>
|
|
1397
|
+
</div>
|
|
1398
|
+
<NameNsDescription
|
|
1399
|
+
v-model:value="value"
|
|
1400
|
+
:description-hidden="true"
|
|
1401
|
+
:mode="mode"
|
|
1402
|
+
:name-disabled="nameDisabled"
|
|
1403
|
+
:name-required="false"
|
|
1404
|
+
:name-ns-hidden="!showNameEditor"
|
|
1405
|
+
:force-namespace="forceNamespace"
|
|
1406
|
+
:namespace-new-allowed="namespaceNewAllowed"
|
|
1407
|
+
:extra-columns="showProject ? ['project'] : []"
|
|
1408
|
+
:show-spacer="false"
|
|
1409
|
+
:horizontal="false"
|
|
1410
|
+
@isNamespaceNew="isNamespaceNew = $event"
|
|
1411
|
+
>
|
|
1412
|
+
<template
|
|
1413
|
+
v-if="showProject"
|
|
1414
|
+
#project
|
|
1415
|
+
>
|
|
1416
|
+
<LabeledSelect
|
|
1417
|
+
v-model:value="project"
|
|
1418
|
+
:disabled="!namespaceIsNew"
|
|
1419
|
+
:label="t('catalog.install.project')"
|
|
1420
|
+
option-key="id"
|
|
1421
|
+
:options="projectOpts"
|
|
1422
|
+
:tooltip="!namespaceIsNew ? t('catalog.install.namespaceIsInProject', {namespace: value.metadata.namespace}, true) : ''"
|
|
1423
|
+
:hover-tooltip="!namespaceIsNew"
|
|
1424
|
+
:status="'info'"
|
|
1425
|
+
/>
|
|
1426
|
+
</template>
|
|
1427
|
+
</NameNsDescription>
|
|
1428
|
+
<Checkbox
|
|
1429
|
+
v-model:value="showCommandStep"
|
|
1430
|
+
class="mb-20"
|
|
1431
|
+
:label="t('catalog.install.steps.helmCli.checkbox', { action, existing: !!existing })"
|
|
1432
|
+
/>
|
|
1433
|
+
|
|
1434
|
+
<Checkbox
|
|
1435
|
+
v-if="showCustomRegistry"
|
|
1436
|
+
v-model:value="showCustomRegistryInput"
|
|
1437
|
+
class="mb-20"
|
|
1438
|
+
:label="t('catalog.chart.registry.custom.checkBoxLabel')"
|
|
1439
|
+
:tooltip="t('catalog.chart.registry.tooltip')"
|
|
1440
|
+
/>
|
|
1441
|
+
<div class="row">
|
|
1442
|
+
<div class="col span-6">
|
|
1443
|
+
<LabeledInput
|
|
1444
|
+
v-if="showCustomRegistryInput"
|
|
1445
|
+
v-model:value="customRegistrySetting"
|
|
1446
|
+
label-key="catalog.chart.registry.custom.inputLabel"
|
|
1447
|
+
placeholder-key="catalog.chart.registry.custom.placeholder"
|
|
1448
|
+
:min-height="30"
|
|
1449
|
+
/>
|
|
1450
|
+
</div>
|
|
1451
|
+
</div>
|
|
1452
|
+
<div
|
|
1453
|
+
class="step__values__controls--spacer"
|
|
1454
|
+
style="flex:1"
|
|
1455
|
+
>
|
|
1456
|
+
|
|
1457
|
+
</div>
|
|
1458
|
+
<Banner
|
|
1459
|
+
v-if="isNamespaceNew && value.metadata.namespace.length"
|
|
1460
|
+
color="info"
|
|
1461
|
+
class="namespace-create-banner"
|
|
1462
|
+
>
|
|
1463
|
+
<div v-clean-html="t('catalog.install.steps.basics.createNamespace', {namespace: value.metadata.namespace}, true) " />
|
|
1464
|
+
</Banner>
|
|
1465
|
+
</div>
|
|
1466
|
+
</template>
|
|
1467
|
+
<template #clusterTplVersion>
|
|
1468
|
+
<Banner
|
|
1469
|
+
color="info"
|
|
1470
|
+
class="description"
|
|
1471
|
+
>
|
|
1472
|
+
{{ t('catalog.install.steps.clusterTplVersion.description') }}
|
|
1473
|
+
</Banner>
|
|
1474
|
+
<div class="row mb-20">
|
|
1475
|
+
<div class="col span-4">
|
|
1476
|
+
<LabeledSelect
|
|
1477
|
+
v-if="chart"
|
|
1478
|
+
:label="t('catalog.install.version')"
|
|
1479
|
+
:value="query.versionName"
|
|
1480
|
+
:options="filteredVersions"
|
|
1481
|
+
:selectable="version => !version.disabled"
|
|
1482
|
+
@update:value="selectVersion"
|
|
1483
|
+
/>
|
|
1484
|
+
</div>
|
|
1485
|
+
<div class="step__values__controls--spacer">
|
|
1486
|
+
|
|
1487
|
+
</div>
|
|
1488
|
+
<div class="btn-group">
|
|
1489
|
+
<button
|
|
1490
|
+
type="button"
|
|
1491
|
+
class="btn bg-primary btn-sm"
|
|
1492
|
+
:disabled="!hasReadme || showingReadmeWindow"
|
|
1493
|
+
@click="showSlideIn = !showSlideIn"
|
|
1494
|
+
>
|
|
1495
|
+
{{ t('catalog.install.steps.helmValues.chartInfo.button') }}
|
|
1496
|
+
</button>
|
|
1497
|
+
</div>
|
|
1498
|
+
</div>
|
|
1499
|
+
</template>
|
|
1500
|
+
<template #helmValues>
|
|
1501
|
+
<Banner
|
|
1502
|
+
v-if="step2Description"
|
|
1503
|
+
color="info"
|
|
1504
|
+
class="description"
|
|
1505
|
+
>
|
|
1506
|
+
{{ step2Description }}
|
|
1507
|
+
</Banner>
|
|
1508
|
+
<div class="step__values__controls">
|
|
1509
|
+
<ButtonGroup
|
|
1510
|
+
v-model:value="preFormYamlOption"
|
|
1511
|
+
data-testid="btn-group-options-view"
|
|
1512
|
+
:options="formYamlOptions"
|
|
1513
|
+
inactive-class="bg-disabled btn-sm"
|
|
1514
|
+
active-class="bg-primary btn-sm"
|
|
1515
|
+
:disabled="preFormYamlOption != formYamlOption"
|
|
1516
|
+
/>
|
|
1517
|
+
<div class="step__values__controls--spacer">
|
|
1518
|
+
|
|
1519
|
+
</div>
|
|
1520
|
+
<ButtonGroup
|
|
1521
|
+
v-if="showDiff"
|
|
1522
|
+
v-model:value="diffMode"
|
|
1523
|
+
:options="yamlDiffModeOptions"
|
|
1524
|
+
inactive-class="bg-disabled btn-sm"
|
|
1525
|
+
active-class="bg-primary btn-sm"
|
|
1526
|
+
/>
|
|
1527
|
+
<div
|
|
1528
|
+
v-if="hasReadme && !showingReadmeWindow"
|
|
1529
|
+
class="btn-group"
|
|
1530
|
+
>
|
|
1531
|
+
<button
|
|
1532
|
+
type="button"
|
|
1533
|
+
class="btn bg-primary btn-sm"
|
|
1534
|
+
@click="showSlideIn = !showSlideIn"
|
|
1535
|
+
>
|
|
1536
|
+
{{ t('catalog.install.steps.helmValues.chartInfo.button') }}
|
|
1537
|
+
</button>
|
|
1538
|
+
</div>
|
|
1539
|
+
</div>
|
|
1540
|
+
|
|
1541
|
+
<div class="scroll__container">
|
|
1542
|
+
<div class="scroll__content">
|
|
1543
|
+
<!-- Values (as Custom Component in ./shell/charts/) -->
|
|
1544
|
+
<template v-if="valuesComponent && showValuesComponent">
|
|
1545
|
+
<component
|
|
1546
|
+
:is="valuesComponent"
|
|
1547
|
+
v-if="valuesComponent"
|
|
1548
|
+
v-model:value="chartValues"
|
|
1549
|
+
:mode="mode"
|
|
1550
|
+
:chart="chart"
|
|
1551
|
+
class="step__values__content"
|
|
1552
|
+
:existing="existing"
|
|
1553
|
+
:version="version"
|
|
1554
|
+
:version-info="versionInfo"
|
|
1555
|
+
:auto-install-info="autoInstallInfo"
|
|
1556
|
+
@warn="e=>errors.push(e)"
|
|
1557
|
+
@register-before-hook="registerBeforeHook"
|
|
1558
|
+
@register-after-hook="registerAfterHook"
|
|
1559
|
+
/>
|
|
1560
|
+
</template>
|
|
1561
|
+
|
|
1562
|
+
<!-- Values (as Questions, abstracted component based on question.yaml configuration from repositories) -->
|
|
1563
|
+
<Tabbed
|
|
1564
|
+
v-else-if="hasQuestions && showQuestions"
|
|
1565
|
+
ref="tabs"
|
|
1566
|
+
:side-tabs="true"
|
|
1567
|
+
:hide-single-tab="true"
|
|
1568
|
+
:class="{'with-name': showNameEditor}"
|
|
1569
|
+
class="step__values__content"
|
|
1570
|
+
@changed="tabChanged($event)"
|
|
1571
|
+
>
|
|
1572
|
+
<Questions
|
|
1573
|
+
v-model:value="chartValues"
|
|
1574
|
+
:in-store="inStore"
|
|
1575
|
+
:mode="mode"
|
|
1576
|
+
:source="versionInfo"
|
|
1577
|
+
:ignore-variables="ignoreVariables"
|
|
1578
|
+
tabbed="multiple"
|
|
1579
|
+
:target-namespace="targetNamespace"
|
|
1580
|
+
/>
|
|
1581
|
+
</Tabbed>
|
|
1582
|
+
<!-- Values (as YAML) -->
|
|
1583
|
+
<template v-else>
|
|
1584
|
+
<YamlEditor
|
|
1585
|
+
ref="yaml"
|
|
1586
|
+
v-model:value="valuesYaml"
|
|
1587
|
+
class="step__values__content"
|
|
1588
|
+
:scrolling="true"
|
|
1589
|
+
:initial-yaml-values="originalYamlValues"
|
|
1590
|
+
:editor-mode="editorMode"
|
|
1591
|
+
:hide-preview-buttons="true"
|
|
1592
|
+
/>
|
|
1593
|
+
</template>
|
|
1594
|
+
</div>
|
|
1595
|
+
</div>
|
|
1596
|
+
|
|
1597
|
+
<!-- Confirm loss of changes on toggle from yaml/preview to form -->
|
|
1598
|
+
<ResourceCancelModal
|
|
1599
|
+
ref="cancelModal"
|
|
1600
|
+
:is-cancel-modal="false"
|
|
1601
|
+
:is-form="true"
|
|
1602
|
+
@cancel-cancel="preFormYamlOption=formYamlOption"
|
|
1603
|
+
@confirm-cancel="formYamlOption = preFormYamlOption;"
|
|
1604
|
+
/>
|
|
1605
|
+
</template>
|
|
1606
|
+
<template #helmCli>
|
|
1607
|
+
<Banner
|
|
1608
|
+
v-if="step3Description"
|
|
1609
|
+
color="info"
|
|
1610
|
+
class="description"
|
|
1611
|
+
>
|
|
1612
|
+
{{ step3Description }}
|
|
1613
|
+
</Banner>
|
|
1614
|
+
<div>
|
|
1615
|
+
<Checkbox
|
|
1616
|
+
v-if="existing"
|
|
1617
|
+
v-model:value="customCmdOpts.cleanupOnFail"
|
|
1618
|
+
:label="t('catalog.install.helm.cleanupOnFail')"
|
|
1619
|
+
/>
|
|
1620
|
+
</div>
|
|
1621
|
+
<div>
|
|
1622
|
+
<Checkbox
|
|
1623
|
+
v-if="!existing"
|
|
1624
|
+
v-model:value="customCmdOpts.crds"
|
|
1625
|
+
:label="t('catalog.install.helm.crds')"
|
|
1626
|
+
/>
|
|
1627
|
+
</div>
|
|
1628
|
+
<div>
|
|
1629
|
+
<Checkbox
|
|
1630
|
+
v-model:value="customCmdOpts.hooks"
|
|
1631
|
+
:label="t('catalog.install.helm.hooks')"
|
|
1632
|
+
/>
|
|
1633
|
+
</div>
|
|
1634
|
+
<div>
|
|
1635
|
+
<Checkbox
|
|
1636
|
+
v-if="existing"
|
|
1637
|
+
v-model:value="customCmdOpts.force"
|
|
1638
|
+
:label="t('catalog.install.helm.force')"
|
|
1639
|
+
/>
|
|
1640
|
+
</div>
|
|
1641
|
+
<div>
|
|
1642
|
+
<Checkbox
|
|
1643
|
+
v-if="existing"
|
|
1644
|
+
v-model:value="customCmdOpts.resetValues"
|
|
1645
|
+
:label="t('catalog.install.helm.resetValues')"
|
|
1646
|
+
/>
|
|
1647
|
+
</div>
|
|
1648
|
+
<div>
|
|
1649
|
+
<Checkbox
|
|
1650
|
+
v-if="!existing"
|
|
1651
|
+
v-model:value="customCmdOpts.openApi"
|
|
1652
|
+
:label="t('catalog.install.helm.openapi')"
|
|
1653
|
+
/>
|
|
1654
|
+
</div>
|
|
1655
|
+
<div>
|
|
1656
|
+
<Checkbox
|
|
1657
|
+
v-model:value="customCmdOpts.wait"
|
|
1658
|
+
:label="t('catalog.install.helm.wait')"
|
|
1659
|
+
/>
|
|
1660
|
+
</div>
|
|
1661
|
+
<div
|
|
1662
|
+
style="display: block; max-width: 400px;"
|
|
1663
|
+
class="mt-10"
|
|
1664
|
+
>
|
|
1665
|
+
<UnitInput
|
|
1666
|
+
v-model:value="customCmdOpts.timeout"
|
|
1667
|
+
:label="t('catalog.install.helm.timeout.label')"
|
|
1668
|
+
:suffix="t('catalog.install.helm.timeout.unit', {value: customCmdOpts.timeout})"
|
|
1669
|
+
type="number"
|
|
1670
|
+
/>
|
|
1671
|
+
</div>
|
|
1672
|
+
<div
|
|
1673
|
+
style="display: block; max-width: 400px;"
|
|
1674
|
+
class="mt-10"
|
|
1675
|
+
>
|
|
1676
|
+
<UnitInput
|
|
1677
|
+
v-if="existing"
|
|
1678
|
+
v-model:value="customCmdOpts.historyMax"
|
|
1679
|
+
:label="t('catalog.install.helm.historyMax.label')"
|
|
1680
|
+
:suffix="t('catalog.install.helm.historyMax.unit', {value: customCmdOpts.historyMax})"
|
|
1681
|
+
type="number"
|
|
1682
|
+
/>
|
|
1683
|
+
</div>
|
|
1684
|
+
<div
|
|
1685
|
+
style="display: block; max-width: 400px;"
|
|
1686
|
+
class="mt-10"
|
|
1687
|
+
>
|
|
1688
|
+
<LabeledInput
|
|
1689
|
+
v-model:value="customCmdOpts.description"
|
|
1690
|
+
label-key="catalog.install.helm.description.label"
|
|
1691
|
+
placeholder-key="catalog.install.helm.description.placeholder"
|
|
1692
|
+
:min-height="30"
|
|
1693
|
+
/>
|
|
1694
|
+
</div>
|
|
1695
|
+
</template>
|
|
1696
|
+
</Wizard>
|
|
1697
|
+
<div
|
|
1698
|
+
class="slideIn"
|
|
1699
|
+
:class="{'hide': false, 'slideIn__show': showSlideIn}"
|
|
1700
|
+
>
|
|
1701
|
+
<h2 class="slideIn__header">
|
|
1702
|
+
{{ t('catalog.install.steps.helmValues.chartInfo.label') }}
|
|
1703
|
+
<div class="slideIn__header__buttons">
|
|
1704
|
+
<div
|
|
1705
|
+
v-clean-tooltip="t('catalog.install.slideIn.dock')"
|
|
1706
|
+
class="slideIn__header__button"
|
|
1707
|
+
@click="showSlideIn = false; showReadmeWindow()"
|
|
1708
|
+
>
|
|
1709
|
+
<i class="icon icon-dock" />
|
|
1710
|
+
</div>
|
|
1711
|
+
<div
|
|
1712
|
+
class="slideIn__header__button"
|
|
1713
|
+
@click="showSlideIn = false"
|
|
1714
|
+
>
|
|
1715
|
+
<i class="icon icon-close" />
|
|
1716
|
+
</div>
|
|
1717
|
+
</div>
|
|
1718
|
+
</h2>
|
|
1719
|
+
<ChartReadme
|
|
1720
|
+
v-if="hasReadme"
|
|
1721
|
+
:version-info="versionInfo"
|
|
1722
|
+
class="chart-content__tabs"
|
|
1723
|
+
/>
|
|
1724
|
+
</div>
|
|
1725
|
+
</div>
|
|
1726
|
+
|
|
1727
|
+
<!-- App is deployed as a Legacy or MultiCluster app, don't let user update from here -->
|
|
1728
|
+
<div
|
|
1729
|
+
v-else
|
|
1730
|
+
class="install-steps"
|
|
1731
|
+
:class="{ 'isPlainLayout': isPlainLayout}"
|
|
1732
|
+
>
|
|
1733
|
+
<div class="outer-container">
|
|
1734
|
+
<div class="header mb-20">
|
|
1735
|
+
<div class="title">
|
|
1736
|
+
<div class="top choice-banner">
|
|
1737
|
+
<div class="title">
|
|
1738
|
+
<!-- Logo -->
|
|
1739
|
+
<slot name="bannerTitleImage">
|
|
1740
|
+
<div class="round-image">
|
|
1741
|
+
<LazyImage
|
|
1742
|
+
:src="chart ? chart.icon : ''"
|
|
1743
|
+
class="logo"
|
|
1744
|
+
/>
|
|
1745
|
+
</div>
|
|
1746
|
+
</slot>
|
|
1747
|
+
<!-- Title with subtext -->
|
|
1748
|
+
<div class="subtitle">
|
|
1749
|
+
<h2 v-if="stepperName">
|
|
1750
|
+
{{ stepperName }}
|
|
1751
|
+
</h2>
|
|
1752
|
+
<span
|
|
1753
|
+
v-if="stepperSubtext"
|
|
1754
|
+
class="subtext"
|
|
1755
|
+
>{{ stepperSubtext }}</span>
|
|
1756
|
+
</div>
|
|
1757
|
+
</div>
|
|
1758
|
+
</div>
|
|
1759
|
+
</div>
|
|
1760
|
+
</div>
|
|
1761
|
+
<Banner
|
|
1762
|
+
color="warning"
|
|
1763
|
+
class="description"
|
|
1764
|
+
>
|
|
1765
|
+
<span v-if="!mcapp">
|
|
1766
|
+
{{ t('catalog.install.error.legacy.label', { legacyType: mcapp ? legacyDefs.mcm : legacyDefs.legacy }, true) }}
|
|
1767
|
+
</span>
|
|
1768
|
+
<template v-if="!legacyEnabled">
|
|
1769
|
+
<span v-clean-html="t('catalog.install.error.legacy.enableLegacy.prompt', true)" />
|
|
1770
|
+
<router-link :to="legacyFeatureRoute">
|
|
1771
|
+
{{ t('catalog.install.error.legacy.enableLegacy.goto') }}
|
|
1772
|
+
</router-link>
|
|
1773
|
+
</template>
|
|
1774
|
+
<template v-else-if="mcapp">
|
|
1775
|
+
<span v-clean-html="t('catalog.install.error.legacy.mcmNotSupported')" />
|
|
1776
|
+
</template>
|
|
1777
|
+
<template v-else>
|
|
1778
|
+
<router-link :to="legacyAppRoute">
|
|
1779
|
+
<span v-clean-html="t('catalog.install.error.legacy.navigate')" />
|
|
1780
|
+
</router-link>
|
|
1781
|
+
</template>
|
|
1782
|
+
</Banner>
|
|
1783
|
+
</div>
|
|
1784
|
+
</div>
|
|
1785
|
+
</template>
|
|
1786
|
+
|
|
1787
|
+
<style lang="scss" scoped>
|
|
1788
|
+
$title-height: 50px;
|
|
1789
|
+
$padding: 5px;
|
|
1790
|
+
$slideout-width: 35%;
|
|
1791
|
+
|
|
1792
|
+
.install-steps {
|
|
1793
|
+
padding-top: 0;
|
|
1794
|
+
height: 0;
|
|
1795
|
+
position: relative;
|
|
1796
|
+
overflow: hidden;
|
|
1797
|
+
|
|
1798
|
+
&.isPlainLayout {
|
|
1799
|
+
padding: 20px;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.description {
|
|
1803
|
+
display: flex;
|
|
1804
|
+
flex-direction: column;
|
|
1805
|
+
margin-top: 0;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.wizard {
|
|
1810
|
+
.logo-bg {
|
|
1811
|
+
margin-right: 10px;
|
|
1812
|
+
height: $title-height;
|
|
1813
|
+
width: $title-height;
|
|
1814
|
+
background-color: white;
|
|
1815
|
+
border: $padding solid white;
|
|
1816
|
+
border-radius: calc( 3 * var(--border-radius));
|
|
1817
|
+
position: relative;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.logo {
|
|
1821
|
+
max-height: $title-height - 2 * $padding;
|
|
1822
|
+
max-width: $title-height - 2 * $padding;
|
|
1823
|
+
position: absolute;
|
|
1824
|
+
width: auto;
|
|
1825
|
+
height: auto;
|
|
1826
|
+
top: 0;
|
|
1827
|
+
right: 0;
|
|
1828
|
+
bottom: 0;
|
|
1829
|
+
left: 0;
|
|
1830
|
+
margin: auto;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
// Hack - We're adding an absolute tag under the logo that we want to consume space without breaking vertical alignment of row.
|
|
1834
|
+
// W ith the slots available this isn't possible without adding tag specific styles to the root wizard classes
|
|
1835
|
+
&.windowsIncompatible {
|
|
1836
|
+
:deep() .header {
|
|
1837
|
+
padding-bottom: 15px;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
.os-label {
|
|
1842
|
+
position: absolute;
|
|
1843
|
+
background-color: var(--warning-banner-bg);
|
|
1844
|
+
color:var(--warning);
|
|
1845
|
+
margin-top: 5px;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
.step {
|
|
1851
|
+
&__basic {
|
|
1852
|
+
display: flex;
|
|
1853
|
+
flex-direction: column;
|
|
1854
|
+
flex: 1;
|
|
1855
|
+
|
|
1856
|
+
.spacer {
|
|
1857
|
+
line-height: 2;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
.namespace-create-banner {
|
|
1861
|
+
margin-bottom: 70px;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
&__values {
|
|
1865
|
+
&__controls {
|
|
1866
|
+
display: flex;
|
|
1867
|
+
margin-bottom: 15px;
|
|
1868
|
+
|
|
1869
|
+
& > *:not(:last-of-type) {
|
|
1870
|
+
margin-right: $padding * 2;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
&--spacer {
|
|
1874
|
+
flex: 1
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
&__content {
|
|
1880
|
+
flex: 1;
|
|
1881
|
+
|
|
1882
|
+
:deep() .tab-container {
|
|
1883
|
+
overflow: auto;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
.slideIn {
|
|
1891
|
+
$slideout-width: 35%;
|
|
1892
|
+
|
|
1893
|
+
border-left: var(--header-border-size) solid var(--header-border);
|
|
1894
|
+
position: absolute;
|
|
1895
|
+
top: 0;
|
|
1896
|
+
right: -$slideout-width;
|
|
1897
|
+
height: 100%;
|
|
1898
|
+
background-color: var(--topmenu-bg);
|
|
1899
|
+
width: $slideout-width;
|
|
1900
|
+
z-index: 10;
|
|
1901
|
+
display: flex;
|
|
1902
|
+
flex-direction: column;
|
|
1903
|
+
|
|
1904
|
+
padding: 10px;
|
|
1905
|
+
|
|
1906
|
+
transition: right .5s ease;
|
|
1907
|
+
|
|
1908
|
+
&__header {
|
|
1909
|
+
display: flex;
|
|
1910
|
+
align-items: center;
|
|
1911
|
+
justify-content: space-between;
|
|
1912
|
+
|
|
1913
|
+
&__buttons {
|
|
1914
|
+
display: flex;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
&__button {
|
|
1918
|
+
cursor: pointer;
|
|
1919
|
+
display: flex;
|
|
1920
|
+
align-items: center;
|
|
1921
|
+
justify-content: center;
|
|
1922
|
+
padding: 2px;
|
|
1923
|
+
> i {
|
|
1924
|
+
font-size: 20px;
|
|
1925
|
+
opacity: 0.5;
|
|
1926
|
+
}
|
|
1927
|
+
&:hover {
|
|
1928
|
+
background-color: var(--wm-closer-hover-bg);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
.chart-content__tabs {
|
|
1934
|
+
display: flex;
|
|
1935
|
+
flex-direction: column;
|
|
1936
|
+
flex: 1;
|
|
1937
|
+
|
|
1938
|
+
height: 0;
|
|
1939
|
+
|
|
1940
|
+
padding-bottom: 10px;
|
|
1941
|
+
|
|
1942
|
+
:deep() .chart-readmes {
|
|
1943
|
+
flex: 1;
|
|
1944
|
+
overflow: auto;
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
&__show {
|
|
1949
|
+
right: 0;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
.scroll {
|
|
1955
|
+
&__container {
|
|
1956
|
+
$yaml-height: 200px;
|
|
1957
|
+
min-height: $yaml-height;
|
|
1958
|
+
margin-bottom: 60px;
|
|
1959
|
+
overflow: auto;
|
|
1960
|
+
display: flex;
|
|
1961
|
+
flex: 1;
|
|
1962
|
+
}
|
|
1963
|
+
&__content {
|
|
1964
|
+
display: flex;
|
|
1965
|
+
flex: 1;
|
|
1966
|
+
overflow: auto;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
:deep() .yaml-editor {
|
|
1971
|
+
flex: 1
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
.outer-container {
|
|
1975
|
+
display: flex;
|
|
1976
|
+
flex-direction: column;
|
|
1977
|
+
padding: 0;
|
|
1978
|
+
overflow: auto;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
.header {
|
|
1982
|
+
display: flex;
|
|
1983
|
+
align-content: space-between;
|
|
1984
|
+
align-items: center;
|
|
1985
|
+
|
|
1986
|
+
border-bottom: var(--header-border-size) solid var(--header-border);
|
|
1987
|
+
|
|
1988
|
+
& > .title {
|
|
1989
|
+
flex: 1;
|
|
1990
|
+
min-height: 75px;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
.choice-banner {
|
|
1994
|
+
|
|
1995
|
+
flex-basis: 40%;
|
|
1996
|
+
display: flex;
|
|
1997
|
+
align-items: center;
|
|
1998
|
+
|
|
1999
|
+
&.top {
|
|
2000
|
+
|
|
2001
|
+
H2 {
|
|
2002
|
+
margin: 0px;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
.title{
|
|
2006
|
+
display: flex;
|
|
2007
|
+
align-items: center;
|
|
2008
|
+
justify-content: space-evenly;
|
|
2009
|
+
|
|
2010
|
+
& > .subtitle {
|
|
2011
|
+
margin: 0 20px;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
.subtitle{
|
|
2016
|
+
display: flex;
|
|
2017
|
+
flex-direction: column;
|
|
2018
|
+
& .subtext {
|
|
2019
|
+
color: var(--input-label);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
&:not(.top){
|
|
2026
|
+
box-shadow: 0px 0px 12px 3px var(--box-bg);
|
|
2027
|
+
flex-direction: row;
|
|
2028
|
+
align-items: center;
|
|
2029
|
+
justify-content: start;
|
|
2030
|
+
&:hover{
|
|
2031
|
+
outline: var(--outline-width) solid var(--outline);
|
|
2032
|
+
cursor: pointer;
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
& .round-image {
|
|
2037
|
+
min-width: 50px;
|
|
2038
|
+
height: 50px;
|
|
2039
|
+
margin: 10px 10px 10px 0;
|
|
2040
|
+
border-radius: 50%;
|
|
2041
|
+
overflow: hidden;
|
|
2042
|
+
.logo {
|
|
2043
|
+
min-width: 50px;
|
|
2044
|
+
height: 50px;
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
</style>
|