@rancher/shell 0.1.0
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/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/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 +148 -0
- package/assets/brand/suse/metadata.json +3 -0
- package/assets/brand/suse/rancher-logo.svg +130 -0
- package/assets/data/aws-regions.json +29 -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/field-valid.svg +16 -0
- package/assets/images/generic-catalog.svg +15 -0
- package/assets/images/generic-driver.svg +17 -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/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/aks-black.svg +28 -0
- package/assets/images/providers/aks.svg +31 -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/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/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/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 +35 -0
- package/assets/styles/base/_basic.scss +112 -0
- package/assets/styles/base/_color.scss +11 -0
- package/assets/styles/base/_functions.scss +134 -0
- package/assets/styles/base/_helpers.scss +263 -0
- package/assets/styles/base/_mixins.scss +165 -0
- package/assets/styles/base/_typography.scss +69 -0
- package/assets/styles/base/_variables.scss +58 -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 +182 -0
- package/assets/styles/global/_cards.scss +94 -0
- package/assets/styles/global/_columns.scss +122 -0
- package/assets/styles/global/_form.scss +145 -0
- package/assets/styles/global/_gauges.scss +55 -0
- package/assets/styles/global/_labeled-input.scss +130 -0
- package/assets/styles/global/_resource.scss +89 -0
- package/assets/styles/global/_select.scss +182 -0
- package/assets/styles/global/_table.scss +106 -0
- package/assets/styles/global/_tooltip.scss +197 -0
- package/assets/styles/themes/_dark.scss +204 -0
- package/assets/styles/themes/_light.scss +533 -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-js-modal.scss +12 -0
- package/assets/styles/vendor/vue-select.scss +386 -0
- package/assets/translations/en-us.yaml +6802 -0
- package/assets/translations/zh-hans.yaml +7062 -0
- package/chart/example.vue +18 -0
- package/chart/istio.vue +209 -0
- package/chart/logging/index.vue +70 -0
- package/chart/monitoring/ClusterSelector.vue +213 -0
- package/chart/monitoring/StorageClassSelector.vue +45 -0
- package/chart/monitoring/alerting/index.vue +215 -0
- package/chart/monitoring/grafana/index.vue +319 -0
- package/chart/monitoring/index.vue +276 -0
- package/chart/monitoring/prometheus/index.vue +379 -0
- package/chart/monitoring/steps/uninstall-v1.vue +131 -0
- package/chart/rancher-alerting-drivers.vue +39 -0
- package/chart/rancher-backup/S3.vue +97 -0
- package/chart/rancher-backup/index.vue +218 -0
- package/chart/rancher-gatekeeper.vue +29 -0
- package/cloud-credential/aws.vue +98 -0
- package/cloud-credential/azure.vue +113 -0
- package/cloud-credential/digitalocean.vue +44 -0
- package/cloud-credential/gcp.vue +64 -0
- package/cloud-credential/generic.vue +84 -0
- package/cloud-credential/harvester.vue +149 -0
- package/cloud-credential/linode.vue +44 -0
- package/cloud-credential/s3.vue +152 -0
- package/cloud-credential/vmwarevsphere.vue +99 -0
- package/components/ActionDropdown.vue +249 -0
- package/components/ActionMenu.vue +312 -0
- package/components/AdvancedSection.vue +28 -0
- package/components/Alert.vue +51 -0
- package/components/AlertTable.vue +111 -0
- package/components/AssignTo.vue +162 -0
- package/components/AsyncButton.vue +249 -0
- package/components/BackLink.vue +27 -0
- package/components/BadgeState.vue +99 -0
- package/components/Banner.vue +148 -0
- package/components/BannerGraphic.vue +103 -0
- package/components/BrandImage.vue +85 -0
- package/components/ButtonDropdown.vue +305 -0
- package/components/ButtonGroup.vue +88 -0
- package/components/Card.vue +104 -0
- package/components/ChartHeading.vue +21 -0
- package/components/ChartReadme.vue +80 -0
- package/components/ClusterBadge.vue +34 -0
- package/components/ClusterProviderIcon.vue +95 -0
- package/components/CodeMirror.vue +126 -0
- package/components/Collapse.vue +55 -0
- package/components/CollapsibleCard.vue +113 -0
- package/components/CommunityLinks.vue +128 -0
- package/components/ConsumptionGauge.vue +133 -0
- package/components/ContainerResourceLimit.vue +216 -0
- package/components/CopyCode.vue +66 -0
- package/components/CopyToClipboard.vue +43 -0
- package/components/CopyToClipboardText.vue +39 -0
- package/components/CountBox.vue +104 -0
- package/components/CountGauge.vue +157 -0
- package/components/CruResource.vue +565 -0
- package/components/CruResourceFooter.vue +108 -0
- package/components/DashboardMetrics.vue +106 -0
- package/components/DashboardOptions.vue +136 -0
- package/components/DetailText.vue +192 -0
- package/components/DetailTop.vue +263 -0
- package/components/EmberPage.vue +609 -0
- package/components/EmberPageView.vue +36 -0
- package/components/EtcdInfoBanner.vue +57 -0
- package/components/EventsTable.vue +67 -0
- package/components/FileDiff.vue +174 -0
- package/components/FixedBanner.vue +228 -0
- package/components/Flag.vue +77 -0
- package/components/Glance.vue +70 -0
- package/components/GlobalRoleBindings.vue +376 -0
- package/components/GradientBox.vue +79 -0
- package/components/GrafanaDashboard.vue +269 -0
- package/components/GrowlManager.vue +160 -0
- package/components/HardwareResourceGauge.vue +154 -0
- package/components/HarvesterServiceAddOnConfig.vue +204 -0
- package/components/HarvesterUpgradeProgressBarList.vue +109 -0
- package/components/IconMessage.vue +87 -0
- package/components/Import.vue +206 -0
- package/components/IndentedPanel.vue +24 -0
- package/components/InfoBox.vue +78 -0
- package/components/InputOrDisplay.vue +67 -0
- package/components/KeyValueView.vue +256 -0
- package/components/LabelValue.vue +42 -0
- package/components/LandingPagePreference.vue +141 -0
- package/components/LazyImage.vue +55 -0
- package/components/Loading.vue +72 -0
- package/components/Markdown.vue +96 -0
- package/components/MessageLink.vue +64 -0
- package/components/ModalWithCard.vue +124 -0
- package/components/MoveModal.vue +135 -0
- package/components/NovncConsole.vue +93 -0
- package/components/NovncConsoleWrapper.vue +150 -0
- package/components/PercentageBar.vue +120 -0
- package/components/ProgressBarMulti.vue +156 -0
- package/components/PromptChangePassword.vue +106 -0
- package/components/PromptModal.vue +98 -0
- package/components/PromptRemove.vue +401 -0
- package/components/PromptRestore.vue +299 -0
- package/components/Questions/Array.vue +34 -0
- package/components/Questions/Boolean.vue +26 -0
- package/components/Questions/CloudCredential.vue +51 -0
- package/components/Questions/Enum.vue +29 -0
- package/components/Questions/Float.vue +31 -0
- package/components/Questions/Int.vue +31 -0
- package/components/Questions/Question.js +73 -0
- package/components/Questions/QuestionMap.vue +39 -0
- package/components/Questions/Reference.vue +128 -0
- package/components/Questions/String.vue +41 -0
- package/components/Questions/index.vue +489 -0
- package/components/Random.vue +92 -0
- package/components/RelatedResources.vue +181 -0
- package/components/RelatedWorkloadsTable.vue +44 -0
- package/components/ResourceCancelModal.vue +108 -0
- package/components/ResourceDetail/Masthead.vue +483 -0
- package/components/ResourceDetail/index.vue +386 -0
- package/components/ResourceList/Masthead.vue +176 -0
- package/components/ResourceList/index.vue +149 -0
- package/components/ResourceSummary.vue +163 -0
- package/components/ResourceTable.vue +401 -0
- package/components/ResourceYaml.vue +412 -0
- package/components/RoleBindings.vue +453 -0
- package/components/SelectIconGrid.vue +364 -0
- package/components/SimpleBox.vue +102 -0
- package/components/SingleClusterInfo.vue +171 -0
- package/components/SortableTable/THead.vue +221 -0
- package/components/SortableTable/actions.js +151 -0
- package/components/SortableTable/filtering.js +214 -0
- package/components/SortableTable/grouping.js +41 -0
- package/components/SortableTable/index.vue +1393 -0
- package/components/SortableTable/paging.js +118 -0
- package/components/SortableTable/selection.js +601 -0
- package/components/SortableTable/sorting.js +102 -0
- package/components/StatusTable.vue +55 -0
- package/components/Tabbed/Tab.vue +94 -0
- package/components/Tabbed/index.vue +419 -0
- package/components/TabbedLinks/index.vue +94 -0
- package/components/TableSparkLine.vue +105 -0
- package/components/Tag.vue +19 -0
- package/components/Tip.vue +40 -0
- package/components/TypeDescription.vue +55 -0
- package/components/VMConsoleBar.vue +87 -0
- package/components/Wizard.vue +559 -0
- package/components/YamlEditor.vue +266 -0
- package/components/__tests__/Banner.test.ts +13 -0
- package/components/__tests__/CopyCode.test.ts +21 -0
- package/components/__tests__/CruResource.test.ts +73 -0
- package/components/auth/AllowedPrincipals.vue +107 -0
- package/components/auth/AuthBanner.vue +71 -0
- package/components/auth/Principal.vue +169 -0
- package/components/auth/RoleDetailEdit.vue +724 -0
- package/components/auth/SelectPrincipal.vue +203 -0
- package/components/auth/login/github.vue +19 -0
- package/components/auth/login/ldap.vue +86 -0
- package/components/auth/login/oauth.vue +21 -0
- package/components/auth/login/oidc.vue +21 -0
- package/components/auth/login/saml.vue +23 -0
- package/components/dialog/AddClusterMemberDialog.vue +72 -0
- package/components/dialog/AddCustomBadgeDialog.vue +272 -0
- package/components/dialog/AddProjectMemberDialog.vue +109 -0
- package/components/dialog/AddonConfigConfirmationDialog.vue +76 -0
- package/components/dialog/DrainNode.vue +218 -0
- package/components/dialog/ForceMachineRemoveDialog.vue +106 -0
- package/components/dialog/GenericPrompt.vue +103 -0
- package/components/dialog/RollbackWorkloadDialog.vue +306 -0
- package/components/dialog/RotateCertificatesDialog.vue +196 -0
- package/components/dialog/RotateEncryptionKeyDialog.vue +158 -0
- package/components/dialog/SaveAsRKETemplateDialog.vue +122 -0
- package/components/dialog/ScaleMachineDownDialog.vue +127 -0
- package/components/dialog/harvester/AddHotplugModal.vue +159 -0
- package/components/dialog/harvester/BackupModal.vue +117 -0
- package/components/dialog/harvester/CloneTemplate.vue +125 -0
- package/components/dialog/harvester/EjectCDROMDialog.vue +157 -0
- package/components/dialog/harvester/ExportImageDialog.vue +152 -0
- package/components/dialog/harvester/MaintenanceDialog.vue +94 -0
- package/components/dialog/harvester/MigrationDialog.vue +154 -0
- package/components/dialog/harvester/RestoreDialog.vue +153 -0
- package/components/dialog/harvester/SupportBundle.vue +217 -0
- package/components/dialog/harvester/UnplugVolume.vue +108 -0
- package/components/fleet/FleetBundleResources.vue +86 -0
- package/components/fleet/FleetBundles.vue +127 -0
- package/components/fleet/FleetClusters.vue +103 -0
- package/components/fleet/FleetIntro.vue +60 -0
- package/components/fleet/FleetRepos.vue +150 -0
- package/components/fleet/FleetResources.vue +139 -0
- package/components/fleet/FleetStatus.vue +289 -0
- package/components/fleet/FleetSummary.vue +190 -0
- package/components/fleet/ResourcesSummary.vue +89 -0
- package/components/form/ArrayList.vue +354 -0
- package/components/form/ArrayListGrouped.vue +113 -0
- package/components/form/ArrayListSelect.vue +77 -0
- package/components/form/BannerSettings.vue +211 -0
- package/components/form/ChangePassword.vue +414 -0
- package/components/form/Checkbox.vue +292 -0
- package/components/form/ColorInput.vue +139 -0
- package/components/form/Command.vue +186 -0
- package/components/form/Conditions.vue +93 -0
- package/components/form/Container.vue +143 -0
- package/components/form/EnvVars.vue +146 -0
- package/components/form/FileImageSelector.vue +129 -0
- package/components/form/FileSelector.vue +151 -0
- package/components/form/Footer.vue +107 -0
- package/components/form/GithubPicker.vue +383 -0
- package/components/form/HealthCheck.vue +84 -0
- package/components/form/HookOption.vue +244 -0
- package/components/form/InputWithSelect.vue +310 -0
- package/components/form/KeyValue.vue +668 -0
- package/components/form/LabeledInput.vue +245 -0
- package/components/form/LabeledSelect.vue +476 -0
- package/components/form/LabeledTooltip.vue +116 -0
- package/components/form/Labels.vue +77 -0
- package/components/form/LifecycleHooks.vue +79 -0
- package/components/form/MatchExpressions.vue +278 -0
- package/components/form/Members/ClusterMembershipEditor.vue +63 -0
- package/components/form/Members/ClusterPermissionsEditor.vue +269 -0
- package/components/form/Members/MembershipEditor.vue +198 -0
- package/components/form/Members/ProjectMembershipEditor.vue +64 -0
- package/components/form/NameNsDescription.vue +391 -0
- package/components/form/Networking.vue +271 -0
- package/components/form/NodeAffinity.vue +158 -0
- package/components/form/NodeScheduling.vue +163 -0
- package/components/form/NotificationSettings.vue +71 -0
- package/components/form/Password.vue +137 -0
- package/components/form/PlusMinus.vue +80 -0
- package/components/form/PodAffinity.vue +288 -0
- package/components/form/PodSecurity.vue +152 -0
- package/components/form/Ports.vue +282 -0
- package/components/form/Probe.vue +313 -0
- package/components/form/ProjectMemberEditor.vue +290 -0
- package/components/form/RadioButton.vue +229 -0
- package/components/form/RadioGroup.vue +187 -0
- package/components/form/ResourceQuota/Namespace.vue +117 -0
- package/components/form/ResourceQuota/NamespaceRow.vue +171 -0
- package/components/form/ResourceQuota/Project.vue +90 -0
- package/components/form/ResourceQuota/ProjectRow.vue +78 -0
- package/components/form/ResourceQuota/shared.js +147 -0
- package/components/form/ResourceTabs/index.vue +174 -0
- package/components/form/RuleSelector.vue +170 -0
- package/components/form/Scheduling.vue +115 -0
- package/components/form/SecretSelector.vue +187 -0
- package/components/form/Security.vue +201 -0
- package/components/form/Select.vue +251 -0
- package/components/form/SelectOrCreateAuthSecret.vue +475 -0
- package/components/form/SerialConsole/index.vue +267 -0
- package/components/form/ServiceNameSelect.vue +158 -0
- package/components/form/ServicePorts.vue +281 -0
- package/components/form/ShellInput.vue +89 -0
- package/components/form/SimpleSecretSelector.vue +196 -0
- package/components/form/Taints.vue +83 -0
- package/components/form/TextAreaAutoGrow.vue +127 -0
- package/components/form/ToggleSwitch.vue +127 -0
- package/components/form/Tolerations.vue +220 -0
- package/components/form/UnitInput.vue +237 -0
- package/components/form/ValueFromResource.vue +373 -0
- package/components/form/WorkloadPorts.vue +476 -0
- package/components/form/__tests__/ArrayListGrouped.test.ts +39 -0
- package/components/form/__tests__/KeyValue.test.ts +18 -0
- package/components/form/__tests__/LabeledInput.test.ts +20 -0
- package/components/form/__tests__/UnitInput.test.ts +183 -0
- package/components/formatter/AppSummaryGraph.vue +136 -0
- package/components/formatter/AttachVMWithName.vue +46 -0
- package/components/formatter/BadgeStateFormatter.vue +60 -0
- package/components/formatter/Capitalize.vue +21 -0
- package/components/formatter/Checked.vue +20 -0
- package/components/formatter/CloudInitType.vue +27 -0
- package/components/formatter/ClusterLink.vue +92 -0
- package/components/formatter/CopyToClipboard.vue +18 -0
- package/components/formatter/Date.vue +74 -0
- package/components/formatter/Endpoints.vue +99 -0
- package/components/formatter/ExternalLink.vue +7 -0
- package/components/formatter/FleetSummaryGraph.vue +95 -0
- package/components/formatter/HarvesterBackupTargetValidation.vue +43 -0
- package/components/formatter/HarvesterCPUUsed.vue +122 -0
- package/components/formatter/HarvesterDiskState.vue +66 -0
- package/components/formatter/HarvesterHostName.vue +66 -0
- package/components/formatter/HarvesterIpAddress.vue +71 -0
- package/components/formatter/HarvesterMemoryUsed.vue +140 -0
- package/components/formatter/HarvesterMigrationState.vue +85 -0
- package/components/formatter/HarvesterNodeName.vue +49 -0
- package/components/formatter/HarvesterStorageUsed.vue +194 -0
- package/components/formatter/HarvesterVmState.vue +123 -0
- package/components/formatter/IconIsDefault.vue +34 -0
- package/components/formatter/IconText.vue +46 -0
- package/components/formatter/ImagePercentageBar.vue +86 -0
- package/components/formatter/IngressFullPath.vue +17 -0
- package/components/formatter/IngressTarget.vue +68 -0
- package/components/formatter/InternalExternalIP.vue +45 -0
- package/components/formatter/KeyValue.vue +74 -0
- package/components/formatter/Link.vue +149 -0
- package/components/formatter/LinkDetail.vue +46 -0
- package/components/formatter/LinkDetailImage.vue +31 -0
- package/components/formatter/LinkName.vue +50 -0
- package/components/formatter/List.vue +22 -0
- package/components/formatter/ListLink.vue +29 -0
- package/components/formatter/ListLinkDetail.vue +25 -0
- package/components/formatter/LiveDate.vue +139 -0
- package/components/formatter/LiveExpiryBadgeState.vue +66 -0
- package/components/formatter/LiveExpiryDate.vue +69 -0
- package/components/formatter/MachineSummaryGraph.vue +43 -0
- package/components/formatter/Number.vue +31 -0
- package/components/formatter/Percentage.vue +25 -0
- package/components/formatter/PercentageBar.vue +41 -0
- package/components/formatter/PodImages.vue +56 -0
- package/components/formatter/PodsUsage.vue +49 -0
- package/components/formatter/Port.vue +24 -0
- package/components/formatter/Principal.vue +19 -0
- package/components/formatter/PrincipalGroupBindings.vue +53 -0
- package/components/formatter/QualityText.vue +21 -0
- package/components/formatter/ReceiverIcons.vue +124 -0
- package/components/formatter/RunBookLink.vue +15 -0
- package/components/formatter/Scale.vue +108 -0
- package/components/formatter/ScanResult.vue +30 -0
- package/components/formatter/SecretData.vue +52 -0
- package/components/formatter/SecretType.vue +38 -0
- package/components/formatter/ServiceTargets.vue +109 -0
- package/components/formatter/ServiceType.vue +44 -0
- package/components/formatter/Shortened.vue +49 -0
- package/components/formatter/Si.vue +42 -0
- package/components/formatter/Translate.vue +32 -0
- package/components/formatter/VerticalScroll.vue +17 -0
- package/components/formatter/VirtualServiceGateways.vue +105 -0
- package/components/formatter/Weight.vue +132 -0
- package/components/formatter/WorkloadDetailEndpoints.vue +110 -0
- package/components/formatter/WorkloadHealthScale.vue +279 -0
- package/components/formatter/__tests__/PodsUsage.test.ts +38 -0
- package/components/graph/AspectPreserver.vue +68 -0
- package/components/graph/Bar.vue +70 -0
- package/components/graph/Circle.vue +135 -0
- package/components/graph/HalfCircle.vue +41 -0
- package/components/graph/LinePlot.vue +193 -0
- package/components/graph/ProgressArc.vue +88 -0
- package/components/nav/Favorite.vue +56 -0
- package/components/nav/GlobalLoading.vue +22 -0
- package/components/nav/Group.vue +371 -0
- package/components/nav/HarvesterUpgrade.vue +222 -0
- package/components/nav/Header.vue +875 -0
- package/components/nav/Jump.vue +106 -0
- package/components/nav/NamespaceFilter.vue +841 -0
- package/components/nav/TopLevelMenu.vue +710 -0
- package/components/nav/Type.vue +192 -0
- package/components/nav/WindowManager/ChartReadme.vue +45 -0
- package/components/nav/WindowManager/ContainerLogs.vue +670 -0
- package/components/nav/WindowManager/ContainerShell.vue +415 -0
- package/components/nav/WindowManager/KubectlShell.vue +42 -0
- package/components/nav/WindowManager/MachineSsh.vue +21 -0
- package/components/nav/WindowManager/Window.vue +97 -0
- package/components/nav/WindowManager/index.vue +310 -0
- package/components/nav/WorkspaceSwitcher.vue +147 -0
- package/config/cookies.js +4 -0
- package/config/features.js +3 -0
- package/config/footer.js +19 -0
- package/config/harvester-map.js +44 -0
- package/config/harvester-table-headers.js +27 -0
- package/config/labels-annotations.js +180 -0
- package/config/local-storage.js +6 -0
- package/config/nuxt-paths.js +7 -0
- package/config/page-actions.js +3 -0
- package/config/private-label.js +70 -0
- package/config/product/apps.js +115 -0
- package/config/product/auth.js +215 -0
- package/config/product/backup.js +61 -0
- package/config/product/cis.js +157 -0
- package/config/product/explorer.js +306 -0
- package/config/product/fleet.js +90 -0
- package/config/product/gatekeeper.js +119 -0
- package/config/product/harvester-manager.js +100 -0
- package/config/product/harvester.js +305 -0
- package/config/product/istio.js +79 -0
- package/config/product/legacy.js +201 -0
- package/config/product/logging.js +377 -0
- package/config/product/longhorn.js +49 -0
- package/config/product/manager.js +176 -0
- package/config/product/monitoring.js +286 -0
- package/config/product/multi-cluster-apps.js +73 -0
- package/config/product/navlinks.js +32 -0
- package/config/product/neuvector.js +30 -0
- package/config/product/settings.js +130 -0
- package/config/query-params.js +72 -0
- package/config/roles.ts +365 -0
- package/config/schema.js +32 -0
- package/config/secret.js +15 -0
- package/config/settings.js +194 -0
- package/config/system-namespaces.js +15 -0
- package/config/table-headers.js +908 -0
- package/config/types.js +292 -0
- package/content/docs/en-us/getting-started.md +249 -0
- package/content/docs/en-us/whats-new.md +108 -0
- package/content/docs/zh-hans/getting-started.md +248 -0
- package/content/docs/zh-hans/whats-new.md +56 -0
- package/core/plugin-routes.ts +138 -0
- package/core/plugin.ts +181 -0
- package/core/plugins-loader.js +31 -0
- package/core/plugins.js +293 -0
- package/core/types.ts +114 -0
- package/creators/app/.eslintignore +18 -0
- package/creators/app/.eslintrc.js +173 -0
- package/creators/app/.vscode/settings.json +23 -0
- package/creators/app/app.package.json +9 -0
- package/creators/app/babel.config.js +18 -0
- package/creators/app/init +95 -0
- package/creators/app/nuxt.config.js +6 -0
- package/creators/app/package.json +19 -0
- package/creators/app/tsconfig.json +37 -0
- package/creators/pkg/babel.config.js +1 -0
- package/creators/pkg/index.ts +14 -0
- package/creators/pkg/init +154 -0
- package/creators/pkg/nuxt.config.js +6 -0
- package/creators/pkg/package.json +19 -0
- package/creators/pkg/pkg.package.json +21 -0
- package/creators/pkg/tsconfig.json +49 -0
- package/creators/pkg/vue-shim.ts +4 -0
- package/creators/pkg/vue.config.js +1 -0
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +193 -0
- package/detail/catalog.cattle.io.app.vue +135 -0
- package/detail/catalog.cattle.io.clusterrepo.vue +25 -0
- package/detail/cis.cattle.io.clusterscan.vue +339 -0
- package/detail/configmap.vue +62 -0
- package/detail/constraints.gatekeeper.sh.constraint.vue +46 -0
- package/detail/fleet.cattle.io.bundle.vue +67 -0
- package/detail/fleet.cattle.io.cluster.vue +76 -0
- package/detail/fleet.cattle.io.clustergroup.vue +60 -0
- package/detail/fleet.cattle.io.gitrepo.vue +115 -0
- package/detail/harvesterhci.io.host/HarvesterHostBasic.vue +343 -0
- package/detail/harvesterhci.io.host/HarvesterHostDisk.vue +200 -0
- package/detail/harvesterhci.io.host/HarvesterHostNetwork.vue +89 -0
- package/detail/harvesterhci.io.host/VirtualMachineInstance.vue +134 -0
- package/detail/harvesterhci.io.host/index.vue +243 -0
- package/detail/harvesterhci.io.management.cluster.vue +97 -0
- package/detail/harvesterhci.io.virtualmachinebackup/index.vue +221 -0
- package/detail/harvesterhci.io.virtualmachineimage.vue +118 -0
- package/detail/helm.cattle.io.projecthelmchart.vue +229 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineBasics.vue +279 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineEvents.vue +75 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineKeypairs.vue +114 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineMigration.vue +79 -0
- package/detail/kubevirt.io.virtualmachine/index.vue +213 -0
- package/detail/management.cattle.io.fleetworkspace.vue +85 -0
- package/detail/management.cattle.io.globalrole.vue +8 -0
- package/detail/management.cattle.io.roletemplate.vue +8 -0
- package/detail/management.cattle.io.user.vue +288 -0
- package/detail/namespace.vue +270 -0
- package/detail/networking.k8s.io.ingress.vue +57 -0
- package/detail/node.vue +285 -0
- package/detail/pod.vue +235 -0
- package/detail/provisioning.cattle.io.cluster.vue +719 -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 +226 -0
- package/detail/service.vue +199 -0
- package/detail/workload/index.vue +323 -0
- package/edit/auth/azuread.vue +278 -0
- package/edit/auth/github.vue +231 -0
- package/edit/auth/googleoauth.vue +200 -0
- package/edit/auth/ldap/config.vue +238 -0
- package/edit/auth/ldap/index.vue +136 -0
- package/edit/auth/oidc.vue +259 -0
- package/edit/auth/saml.vue +222 -0
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +51 -0
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +243 -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 +216 -0
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +187 -0
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +61 -0
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +51 -0
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +60 -0
- package/edit/catalog.cattle.io.clusterrepo.vue +109 -0
- package/edit/cis.cattle.io.clusterscan.vue +301 -0
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +107 -0
- package/edit/cis.cattle.io.clusterscanprofile.vue +142 -0
- package/edit/cloudcredential.vue +279 -0
- package/edit/configmap.vue +125 -0
- package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +70 -0
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +76 -0
- package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +50 -0
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +331 -0
- package/edit/fleet.cattle.io.cluster.vue +93 -0
- package/edit/fleet.cattle.io.clustergroup.vue +161 -0
- package/edit/fleet.cattle.io.gitrepo.vue +515 -0
- package/edit/group.principal.vue +60 -0
- package/edit/harvesterhci.io.cloudtemplate.vue +123 -0
- package/edit/harvesterhci.io.host/HarvesterDisk.vue +263 -0
- package/edit/harvesterhci.io.host/index.vue +524 -0
- package/edit/harvesterhci.io.keypair.vue +112 -0
- package/edit/harvesterhci.io.managedchart/index.vue +25 -0
- package/edit/harvesterhci.io.managedchart/rancher-monitoring.vue +172 -0
- package/edit/harvesterhci.io.management.cluster.vue +136 -0
- package/edit/harvesterhci.io.networkattachmentdefinition.vue +210 -0
- package/edit/harvesterhci.io.setting/additional-ca.vue +36 -0
- package/edit/harvesterhci.io.setting/backup-target.vue +182 -0
- package/edit/harvesterhci.io.setting/http-proxy.vue +79 -0
- package/edit/harvesterhci.io.setting/index.vue +201 -0
- package/edit/harvesterhci.io.setting/overcommit-config.vue +91 -0
- package/edit/harvesterhci.io.setting/ssl-certificates.vue +117 -0
- package/edit/harvesterhci.io.setting/ssl-parameters.vue +161 -0
- package/edit/harvesterhci.io.setting/support-bundle-image.vue +134 -0
- package/edit/harvesterhci.io.setting/support-bundle-namespaces.vue +73 -0
- package/edit/harvesterhci.io.setting/vip-pools.vue +244 -0
- package/edit/harvesterhci.io.setting/vm-force-reset-policy.vue +81 -0
- package/edit/harvesterhci.io.virtualmachinebackup.vue +256 -0
- package/edit/harvesterhci.io.virtualmachineimage.vue +364 -0
- package/edit/harvesterhci.io.virtualmachinetemplateversion.vue +332 -0
- package/edit/harvesterhci.io.volume.vue +195 -0
- package/edit/helm.cattle.io.projecthelmchart.vue +147 -0
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +210 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/AccessCredentialsUsers.vue +190 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/index.vue +212 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/type/basicAuth.vue +94 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/type/sshkey.vue +85 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineCloudConfig/DataTemplate.vue +152 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineCloudConfig/index.vue +278 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineCpuMemory.vue +111 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineNetwork/base.vue +238 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineNetwork/index.vue +142 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue +256 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/index.vue +392 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/container.vue +86 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/existing.vue +247 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/vmImage.vue +225 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/volume.vue +162 -0
- package/edit/kubevirt.io.virtualmachine/index.vue +633 -0
- package/edit/logging-flow/Match.vue +96 -0
- package/edit/logging-flow/index.vue +419 -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/index.vue +317 -0
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +72 -0
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +79 -0
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +92 -0
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +80 -0
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +206 -0
- package/edit/logging.banzaicloud.io.output/providers/file.vue +42 -0
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +147 -0
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +82 -0
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +129 -0
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +146 -0
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +71 -0
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +56 -0
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +102 -0
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +144 -0
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +71 -0
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +102 -0
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +154 -0
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +59 -0
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +189 -0
- package/edit/logging.banzaicloud.io.output/providers/utils.js +27 -0
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +68 -0
- package/edit/management.cattle.io.fleetworkspace.vue +92 -0
- package/edit/management.cattle.io.globalrole.vue +8 -0
- package/edit/management.cattle.io.project.vue +271 -0
- package/edit/management.cattle.io.projectroletemplatebinding.vue +95 -0
- package/edit/management.cattle.io.roletemplate.vue +8 -0
- package/edit/management.cattle.io.setting.vue +157 -0
- package/edit/management.cattle.io.user.vue +251 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +310 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +261 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +367 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +144 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +263 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +126 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +252 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +171 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +133 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +183 -0
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +497 -0
- package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +192 -0
- package/edit/monitoring.coreos.com.prometheusrule/RecordingRule.vue +106 -0
- package/edit/monitoring.coreos.com.prometheusrule/duration.js +41 -0
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +192 -0
- package/edit/monitoring.coreos.com.receiver/auth.vue +113 -0
- package/edit/monitoring.coreos.com.receiver/index.vue +282 -0
- package/edit/monitoring.coreos.com.receiver/tls.vue +55 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +78 -0
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +211 -0
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +79 -0
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +89 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.add.vue +65 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +24 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +68 -0
- package/edit/monitoring.coreos.com.route.vue +179 -0
- package/edit/namespace.vue +213 -0
- package/edit/network.harvesterhci.io.clusternetwork/index.vue +19 -0
- package/edit/network.harvesterhci.io.clusternetwork/vlan.vue +134 -0
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +185 -0
- package/edit/networking.istio.io.destinationrule/index.vue +233 -0
- package/edit/networking.k8s.io.ingress/Certificate.vue +119 -0
- package/edit/networking.k8s.io.ingress/Certificates.vue +101 -0
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +117 -0
- package/edit/networking.k8s.io.ingress/Rule.vue +133 -0
- package/edit/networking.k8s.io.ingress/RulePath.vue +178 -0
- package/edit/networking.k8s.io.ingress/Rules.vue +133 -0
- package/edit/networking.k8s.io.ingress/index.vue +150 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +91 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +50 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +287 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRules.vue +93 -0
- package/edit/networking.k8s.io.networkpolicy/index.vue +267 -0
- package/edit/node.vue +69 -0
- package/edit/persistentvolume/index.vue +298 -0
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +74 -0
- package/edit/persistentvolume/plugins/azureDisk.vue +119 -0
- package/edit/persistentvolume/plugins/azureFile.vue +63 -0
- package/edit/persistentvolume/plugins/cephfs.vue +80 -0
- package/edit/persistentvolume/plugins/cinder.vue +69 -0
- package/edit/persistentvolume/plugins/csi.vue +107 -0
- package/edit/persistentvolume/plugins/fc.vue +82 -0
- package/edit/persistentvolume/plugins/flexVolume.vue +77 -0
- package/edit/persistentvolume/plugins/flocker.vue +35 -0
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +74 -0
- package/edit/persistentvolume/plugins/glusterfs.vue +60 -0
- package/edit/persistentvolume/plugins/hostPath.vue +72 -0
- package/edit/persistentvolume/plugins/iscsi.vue +125 -0
- package/edit/persistentvolume/plugins/local.vue +32 -0
- package/edit/persistentvolume/plugins/longhorn.vue +88 -0
- package/edit/persistentvolume/plugins/nfs.vue +60 -0
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +48 -0
- package/edit/persistentvolume/plugins/portworxVolume.vue +61 -0
- package/edit/persistentvolume/plugins/quobyte.vue +68 -0
- package/edit/persistentvolume/plugins/rbd.vue +88 -0
- package/edit/persistentvolume/plugins/scaleIO.vue +101 -0
- package/edit/persistentvolume/plugins/storageos.vue +73 -0
- package/edit/persistentvolume/plugins/vsphereVolume.vue +43 -0
- package/edit/persistentvolumeclaim.vue +271 -0
- package/edit/provisioning.cattle.io.cluster/ACE.vue +82 -0
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +37 -0
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +242 -0
- package/edit/provisioning.cattle.io.cluster/DrainOptions.vue +129 -0
- package/edit/provisioning.cattle.io.cluster/Labels.vue +30 -0
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +239 -0
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +154 -0
- package/edit/provisioning.cattle.io.cluster/RegistryMirrors.vue +75 -0
- package/edit/provisioning.cattle.io.cluster/S3Config.vue +121 -0
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +288 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/CustomCommand.tests.ts +42 -0
- package/edit/provisioning.cattle.io.cluster/import.vue +174 -0
- package/edit/provisioning.cattle.io.cluster/index.vue +505 -0
- package/edit/provisioning.cattle.io.cluster/rke2.vue +2095 -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 +252 -0
- package/edit/resources.cattle.io.restore.vue +264 -0
- package/edit/secret/basic.vue +54 -0
- package/edit/secret/generic.vue +63 -0
- package/edit/secret/index.vue +307 -0
- package/edit/secret/registry.vue +127 -0
- package/edit/secret/ssh.vue +74 -0
- package/edit/secret/tls.vue +86 -0
- package/edit/service.vue +487 -0
- package/edit/serviceaccount.vue +148 -0
- package/edit/storage.k8s.io.storageclass/index.vue +212 -0
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +20 -0
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +35 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +159 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +65 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +32 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +58 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +105 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +54 -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 +48 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +51 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +62 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +76 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +40 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +67 -0
- package/edit/token.vue +275 -0
- package/edit/ui.cattle.io.navlink.vue +430 -0
- package/edit/workload/Job.vue +235 -0
- package/edit/workload/Upgrading.vue +294 -0
- package/edit/workload/VolumeClaimTemplate.vue +136 -0
- package/edit/workload/index.vue +1106 -0
- package/edit/workload/storage/Mount.vue +153 -0
- package/edit/workload/storage/__tests__/Mount.test.ts +98 -0
- package/edit/workload/storage/__tests__/Storage.test.ts +21 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +54 -0
- package/edit/workload/storage/azureDisk.vue +80 -0
- package/edit/workload/storage/azureFile.vue +52 -0
- package/edit/workload/storage/csi/driver.longhorn.io.vue +41 -0
- package/edit/workload/storage/csi/index.vue +65 -0
- package/edit/workload/storage/ephemeralVolume/index.vue +76 -0
- package/edit/workload/storage/gcePersistentDisk.vue +47 -0
- package/edit/workload/storage/hostPath.vue +100 -0
- package/edit/workload/storage/index.vue +360 -0
- package/edit/workload/storage/nfs.vue +78 -0
- package/edit/workload/storage/persistentVolumeClaim/index.vue +144 -0
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +224 -0
- package/edit/workload/storage/secret.vue +181 -0
- package/edit/workload/storage/vsphereVolume.vue +55 -0
- package/layouts/blank.vue +17 -0
- package/layouts/default.vue +827 -0
- package/layouts/error.vue +119 -0
- package/layouts/home.vue +84 -0
- package/layouts/plain.vue +89 -0
- package/layouts/unauthenticated.vue +26 -0
- package/list/catalog.cattle.io.app.vue +50 -0
- package/list/catalog.cattle.io.clusterrepo.vue +90 -0
- package/list/cis.cattle.io.clusterscan.vue +64 -0
- package/list/fleet.cattle.io.bundle.vue +108 -0
- package/list/fleet.cattle.io.cluster.vue +79 -0
- package/list/fleet.cattle.io.clustergroup.vue +71 -0
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +81 -0
- package/list/fleet.cattle.io.gitrepo.vue +57 -0
- package/list/group.principal.vue +143 -0
- package/list/harvesterhci.io.cloudtemplate.vue +78 -0
- package/list/harvesterhci.io.dashboard/HarvesterUpgrade.vue +210 -0
- package/list/harvesterhci.io.dashboard/index.vue +774 -0
- package/list/harvesterhci.io.host/index.vue +174 -0
- package/list/harvesterhci.io.management.cluster.vue +181 -0
- package/list/harvesterhci.io.networkattachmentdefinition.vue +167 -0
- package/list/harvesterhci.io.setting.vue +241 -0
- package/list/harvesterhci.io.virtualmachinebackup.vue +172 -0
- package/list/harvesterhci.io.virtualmachineimage.vue +47 -0
- package/list/harvesterhci.io.virtualmachinetemplateversion.vue +177 -0
- package/list/harvesterhci.io.volume.vue +122 -0
- package/list/helm.cattle.io.projecthelmchart.vue +124 -0
- package/list/kubevirt.io.virtualmachine.vue +191 -0
- package/list/logging.banzaicloud.io.clusterflow.vue +36 -0
- package/list/logging.banzaicloud.io.flow.vue +41 -0
- package/list/management.cattle.io.cluster.vue +31 -0
- package/list/management.cattle.io.feature.vue +306 -0
- package/list/management.cattle.io.setting.vue +166 -0
- package/list/management.cattle.io.user.vue +121 -0
- package/list/monitoring.coreos.com.alertmanagerconfig.vue +89 -0
- package/list/namespace.vue +44 -0
- package/list/node.vue +191 -0
- package/list/persistentvolume.vue +27 -0
- package/list/provisioning.cattle.io.cluster.vue +162 -0
- package/list/service.vue +43 -0
- package/list/ui.cattle.io.navlink.vue +49 -0
- package/list/workload.vue +130 -0
- package/machine-config/amazonec2.vue +664 -0
- package/machine-config/azure.vue +445 -0
- package/machine-config/digitalocean.vue +228 -0
- package/machine-config/generic.vue +101 -0
- package/machine-config/harvester.vue +528 -0
- package/machine-config/linode.vue +186 -0
- package/machine-config/vmwarevsphere.vue +1018 -0
- package/middleware/authenticated.js +387 -0
- package/middleware/i18n.js +10 -0
- package/mixins/auth-config.js +304 -0
- package/mixins/back-link.js +15 -0
- package/mixins/brand.js +122 -0
- package/mixins/chart.js +384 -0
- package/mixins/child-hook.js +82 -0
- package/mixins/closeable.js +47 -0
- package/mixins/compact-input.js +24 -0
- package/mixins/create-edit-view/impl.js +200 -0
- package/mixins/create-edit-view/index.js +46 -0
- package/mixins/harvester-vm/impl.js +267 -0
- package/mixins/harvester-vm/index.js +1313 -0
- package/mixins/labeled-form-element.js +137 -0
- package/mixins/login.js +31 -0
- package/mixins/metric-poller.js +19 -0
- package/mixins/page-actions.js +34 -0
- package/mixins/v1-workload-metrics.js +43 -0
- package/mixins/vue-select-overrides.js +98 -0
- package/models/app.js +25 -0
- package/models/apps.daemonset.js +4 -0
- package/models/apps.deployment.js +13 -0
- package/models/apps.replicaset.js +4 -0
- package/models/apps.statefulset.js +4 -0
- package/models/autoscaling.horizontalpodautoscaler.js +44 -0
- package/models/batch.cronjob.js +71 -0
- package/models/batch.job.js +4 -0
- package/models/catalog.cattle.io.app.js +315 -0
- package/models/catalog.cattle.io.clusterrepo.js +163 -0
- package/models/catalog.cattle.io.operation.js +43 -0
- package/models/catalog.cattle.io.repo.js +4 -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 +157 -0
- package/models/cis.cattle.io.clusterscanbenchmark.js +18 -0
- package/models/cis.cattle.io.clusterscanprofile.js +14 -0
- package/models/cis.cattle.io.clusterscanreport.js +62 -0
- package/models/cloudcredential.js +172 -0
- package/models/cluster/node.js +411 -0
- package/models/cluster.x-k8s.io.machine.js +244 -0
- package/models/cluster.x-k8s.io.machinedeployment.js +196 -0
- package/models/cluster.x-k8s.io.machineset.js +23 -0
- package/models/clusterroletemplatebinding.js +27 -0
- package/models/configmap.js +20 -0
- package/models/constraints.gatekeeper.sh.constraint.js +75 -0
- package/models/etcdbackup.js +40 -0
- package/models/event.js +23 -0
- package/models/fleet.cattle.io.bundle.js +132 -0
- package/models/fleet.cattle.io.cluster.js +133 -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 +315 -0
- package/models/group.principal.js +71 -0
- package/models/harvester/configmap.js +32 -0
- package/models/harvester/harvesterhci.io.blockdevice.js +55 -0
- package/models/harvester/harvesterhci.io.keypair.js +12 -0
- package/models/harvester/harvesterhci.io.setting.js +127 -0
- package/models/harvester/harvesterhci.io.supportbundle.js +35 -0
- package/models/harvester/harvesterhci.io.upgrade.js +226 -0
- package/models/harvester/harvesterhci.io.virtualmachinebackup.js +113 -0
- package/models/harvester/harvesterhci.io.virtualmachineimage.js +252 -0
- package/models/harvester/harvesterhci.io.virtualmachinerestore.js +43 -0
- package/models/harvester/harvesterhci.io.virtualmachinetemplate.js +69 -0
- package/models/harvester/harvesterhci.io.virtualmachinetemplateversion.js +218 -0
- package/models/harvester/k8s.cni.cncf.io.networkattachmentdefinition.js +32 -0
- package/models/harvester/kubevirt.io.virtualmachine.js +850 -0
- package/models/harvester/kubevirt.io.virtualmachineinstance.js +142 -0
- package/models/harvester/management.cattle.io.managedchart.js +191 -0
- package/models/harvester/management.cattle.io.setting.js +40 -0
- package/models/harvester/network.harvesterhci.io.clusternetwork.js +100 -0
- package/models/harvester/network.harvesterhci.io.nodenetwork.js +34 -0
- package/models/harvester/node.js +260 -0
- package/models/harvester/persistentvolumeclaim.js +166 -0
- package/models/harvester/pod.js +185 -0
- package/models/harvesterhci.io.management.cluster.js +33 -0
- package/models/helm.cattle.io.projecthelmchart.js +39 -0
- package/models/k8s.cni.cncf.io.networkattachmentdefinition.js +93 -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 +110 -0
- package/models/logging.banzaicloud.io.output.js +161 -0
- package/models/management.cattle.io.authconfig.js +69 -0
- package/models/management.cattle.io.cluster.js +427 -0
- package/models/management.cattle.io.clusterroletemplatebinding.js +130 -0
- package/models/management.cattle.io.feature.js +56 -0
- package/models/management.cattle.io.fleetworkspace.js +74 -0
- package/models/management.cattle.io.globalrole.js +127 -0
- package/models/management.cattle.io.globalrolebinding.js +59 -0
- package/models/management.cattle.io.kontainerdriver.js +68 -0
- package/models/management.cattle.io.node.js +139 -0
- package/models/management.cattle.io.nodepool.js +167 -0
- package/models/management.cattle.io.nodetemplate.js +139 -0
- package/models/management.cattle.io.project.js +135 -0
- package/models/management.cattle.io.projectroletemplatebinding.js +150 -0
- package/models/management.cattle.io.roletemplate.js +173 -0
- package/models/management.cattle.io.setting.js +42 -0
- package/models/management.cattle.io.user.js +201 -0
- package/models/metrics.k8s.io.nodemetrics.js +41 -0
- package/models/monitoring.coreos.com.alertmanagerconfig.js +125 -0
- package/models/monitoring.coreos.com.podmonitor.js +23 -0
- package/models/monitoring.coreos.com.prometheusrule.js +29 -0
- package/models/monitoring.coreos.com.receiver.js +195 -0
- package/models/monitoring.coreos.com.route.js +162 -0
- package/models/monitoring.coreos.com.servicemonitor.js +23 -0
- package/models/namespace.js +189 -0
- package/models/networking.istio.io.destinationrule.js +20 -0
- package/models/networking.k8s.io.ingress.js +196 -0
- package/models/persistentvolume.js +142 -0
- package/models/persistentvolumeclaim.js +18 -0
- package/models/pod.js +183 -0
- package/models/principal.js +42 -0
- package/models/projectroletemplatebinding.js +20 -0
- package/models/provisioning.cattle.io.cluster.js +617 -0
- package/models/rbac.authorization.k8s.io.clusterrole.js +17 -0
- package/models/rbac.authorization.k8s.io.role.js +52 -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.vmwarevspheremachinetemplate.js +14 -0
- package/models/rke.cattle.io.etcdsnapshot.js +69 -0
- package/models/schema.js +17 -0
- package/models/secret.js +352 -0
- package/models/service.js +179 -0
- package/models/storage.k8s.io.storageclass.js +121 -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 +853 -0
- package/nuxt.config.js +683 -0
- package/package.json +165 -0
- package/pages/about.vue +209 -0
- package/pages/account/create-key.vue +17 -0
- package/pages/account/index.vue +227 -0
- package/pages/auth/login.vue +426 -0
- package/pages/auth/logout.vue +18 -0
- package/pages/auth/setup.vue +430 -0
- package/pages/auth/verify.vue +134 -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 +91 -0
- package/pages/c/_cluster/_product/namespaces.vue +75 -0
- package/pages/c/_cluster/_product/projectsnamespaces.vue +301 -0
- package/pages/c/_cluster/apps/charts/chart.vue +307 -0
- package/pages/c/_cluster/apps/charts/index.vue +595 -0
- package/pages/c/_cluster/apps/charts/install.vue +1638 -0
- package/pages/c/_cluster/apps/index.vue +17 -0
- package/pages/c/_cluster/auth/config/_id.vue +32 -0
- package/pages/c/_cluster/auth/config/index.vue +104 -0
- package/pages/c/_cluster/auth/group.principal/assign-edit.vue +133 -0
- package/pages/c/_cluster/auth/index.vue +19 -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 +193 -0
- package/pages/c/_cluster/backup/index.vue +11 -0
- package/pages/c/_cluster/cis/index.vue +11 -0
- package/pages/c/_cluster/ecm/index.vue +16 -0
- package/pages/c/_cluster/explorer/ConfigBadge.vue +55 -0
- package/pages/c/_cluster/explorer/EventsTable.vue +88 -0
- package/pages/c/_cluster/explorer/explorer-utils.js +17 -0
- package/pages/c/_cluster/explorer/index.vue +559 -0
- package/pages/c/_cluster/explorer/tools/index.vue +482 -0
- package/pages/c/_cluster/explorer/tools/pages/_page.vue +26 -0
- package/pages/c/_cluster/fleet/index.vue +474 -0
- package/pages/c/_cluster/gatekeeper/constraints/index.vue +90 -0
- package/pages/c/_cluster/gatekeeper/index.vue +67 -0
- package/pages/c/_cluster/harvester/airgapupgrade/index.vue +306 -0
- package/pages/c/_cluster/harvester/console/_uid/serial.vue +51 -0
- package/pages/c/_cluster/harvester/console/_uid/vnc.vue +46 -0
- package/pages/c/_cluster/harvester/index.vue +24 -0
- package/pages/c/_cluster/harvester/support/index.vue +154 -0
- package/pages/c/_cluster/harvesterManager/index.vue +24 -0
- package/pages/c/_cluster/index.vue +17 -0
- package/pages/c/_cluster/istio/index.vue +139 -0
- package/pages/c/_cluster/legacy/index.vue +22 -0
- package/pages/c/_cluster/legacy/pages/_page.vue +26 -0
- package/pages/c/_cluster/legacy/project/_page.vue +54 -0
- package/pages/c/_cluster/legacy/project/index.vue +29 -0
- package/pages/c/_cluster/legacy/project/pipelines.vue +74 -0
- package/pages/c/_cluster/logging/index.vue +87 -0
- package/pages/c/_cluster/longhorn/index.vue +68 -0
- package/pages/c/_cluster/manager/cloudCredential/_id.vue +16 -0
- package/pages/c/_cluster/manager/cloudCredential/create.vue +16 -0
- package/pages/c/_cluster/manager/cloudCredential/index.vue +89 -0
- package/pages/c/_cluster/manager/index.vue +22 -0
- package/pages/c/_cluster/manager/pages/_page.vue +23 -0
- package/pages/c/_cluster/mcapps/index.vue +21 -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 +310 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/index.vue +24 -0
- package/pages/c/_cluster/monitoring/index.vue +207 -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 +81 -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 +114 -0
- package/pages/c/_cluster/navlinks/_group.vue +42 -0
- package/pages/c/_cluster/neuvector/index.vue +66 -0
- package/pages/c/_cluster/settings/banners.vue +279 -0
- package/pages/c/_cluster/settings/brand.vue +344 -0
- package/pages/c/_cluster/settings/index.vue +22 -0
- package/pages/c/index.vue +9 -0
- package/pages/clusters/index.vue +21 -0
- package/pages/docs/_doc.vue +320 -0
- package/pages/docs/toc.js +27 -0
- package/pages/fail-whale.vue +111 -0
- package/pages/home.vue +447 -0
- package/pages/index.vue +22 -0
- package/pages/plugins.vue +387 -0
- package/pages/prefs.vue +233 -0
- package/pages/rio/mesh.vue +505 -0
- package/pages/support/index.vue +284 -0
- package/pkg/auto-import.js +81 -0
- package/pkg/babel.config.js +8 -0
- package/pkg/dynamic-importer.lib.js +62 -0
- package/pkg/import.js +10 -0
- package/pkg/model-loader.lib.js +3 -0
- package/pkg/tsconfig.json +49 -0
- package/pkg/vue.config.js +120 -0
- package/plugins/axios.js +67 -0
- package/plugins/back-button.js +5 -0
- package/plugins/codemirror-loader.js +5 -0
- package/plugins/codemirror.js +169 -0
- package/plugins/dashboard-store/actions.js +443 -0
- package/plugins/dashboard-store/classify.js +35 -0
- package/plugins/dashboard-store/extensions.js +22 -0
- package/plugins/dashboard-store/getters.js +287 -0
- package/plugins/dashboard-store/index.js +158 -0
- package/plugins/dashboard-store/model-loader.js +73 -0
- package/plugins/dashboard-store/mutations.js +262 -0
- package/plugins/dashboard-store/normalize.js +48 -0
- package/plugins/dashboard-store/rehydrate-all.js +44 -0
- package/plugins/dashboard-store/resource-class.js +1813 -0
- package/plugins/directives.js +41 -0
- package/plugins/extend-router.js +60 -0
- package/plugins/global-formatters.js +10 -0
- package/plugins/i18n.js +101 -0
- package/plugins/int-number.js +19 -0
- package/plugins/js-yaml.js +4 -0
- package/plugins/lookup.js +50 -0
- package/plugins/nuxt-client-init.js +3 -0
- package/plugins/plugin.js +22 -0
- package/plugins/portal.js +4 -0
- package/plugins/replaceall.js +19 -0
- package/plugins/resize.js +5 -0
- package/plugins/shortkey.js +4 -0
- package/plugins/steve/actions.js +373 -0
- package/plugins/steve/getters.js +105 -0
- package/plugins/steve/hybrid-class.js +103 -0
- package/plugins/steve/index.js +70 -0
- package/plugins/steve/mutations.js +27 -0
- package/plugins/steve/norman-class.js +51 -0
- package/plugins/steve/performanceTesting.js +123 -0
- package/plugins/steve/steve-class.js +31 -0
- package/plugins/steve/subscribe.js +633 -0
- package/plugins/steve/urloptions.js +47 -0
- package/plugins/tooltip.js +4 -0
- package/plugins/transitions.js +4 -0
- package/plugins/trim-whitespace.js +37 -0
- package/plugins/v-select.js +4 -0
- package/plugins/vue-clipboard2.js +4 -0
- package/plugins/vue-js-modal.js +4 -0
- package/promptRemove/kubevirt.io.virtualmachine.vue +178 -0
- package/scripts/build-pkg.sh +51 -0
- package/scripts/pkgfile.js +23 -0
- package/scripts/publish-pkg.sh +18 -0
- package/scripts/publish-shell.sh +52 -0
- package/scripts/serve-pkgs +62 -0
- package/server/server-middleware.js +19 -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/server/verdaccio-middleware.js +56 -0
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +39 -0
- package/store/action-menu.js +229 -0
- package/store/auth.js +329 -0
- package/store/aws.js +209 -0
- package/store/catalog.js +661 -0
- package/store/digitalocean.js +198 -0
- package/store/features.js +66 -0
- package/store/github.js +252 -0
- package/store/growl.js +89 -0
- package/store/harvester-common.js +126 -0
- package/store/i18n.js +318 -0
- package/store/index.js +1073 -0
- package/store/linode.js +142 -0
- package/store/plugins.js +222 -0
- package/store/prefs.js +484 -0
- package/store/type-map.js +1839 -0
- package/store/uiplugins.ts +112 -0
- package/store/wm.js +84 -0
- package/types/index.d.ts +7 -0
- package/utils/__tests__/array.test.ts +502 -0
- package/utils/__tests__/object.test.ts +152 -0
- package/utils/__tests__/selector.test.ts +444 -0
- package/utils/alertmanagerconfig.js +162 -0
- package/utils/array.ts +179 -0
- package/utils/auth.js +81 -0
- package/utils/aws.js +0 -0
- package/utils/cluster.js +45 -0
- package/utils/color.js +92 -0
- package/utils/computed.js +45 -0
- package/utils/create-yaml.js +359 -0
- package/utils/crypto/LICENSE.txt +15 -0
- package/utils/crypto/browserHashUtils.js +33 -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 +45 -0
- package/utils/download.js +35 -0
- package/utils/dynamic-importer.js +120 -0
- package/utils/ember-page.js +30 -0
- package/utils/error.js +80 -0
- package/utils/gatekeeper/util.js +35 -0
- package/utils/grafana.js +87 -0
- package/utils/group.js +70 -0
- package/utils/install-redirect.js +55 -0
- package/utils/monitoring.js +73 -0
- package/utils/namespace-filter.js +31 -0
- package/utils/object.js +338 -0
- package/utils/parse-externalid.js +139 -0
- package/utils/platform.js +64 -0
- package/utils/poller-sequential.js +53 -0
- package/utils/poller.js +39 -0
- package/utils/position.js +175 -0
- package/utils/promise.js +95 -0
- package/utils/queue.js +70 -0
- package/utils/router.js +27 -0
- package/utils/select.js +67 -0
- package/utils/selector.js +227 -0
- package/utils/socket.js +315 -0
- package/utils/sort.js +225 -0
- package/utils/stream.js +49 -0
- package/utils/string.js +286 -0
- package/utils/time.js +56 -0
- package/utils/type-helpers.ts +9 -0
- package/utils/units.js +184 -0
- package/utils/url.ts +171 -0
- package/utils/validators/cidr.js +5 -0
- package/utils/validators/cluster-name.js +12 -0
- package/utils/validators/container-images.js +24 -0
- package/utils/validators/cron-schedule.js +9 -0
- package/utils/validators/flow-output.js +15 -0
- package/utils/validators/index.js +243 -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 +19 -0
- package/utils/validators/service.js +136 -0
- package/utils/validators/setting.js +48 -0
- package/utils/validators/vm-datavolumes.js +38 -0
- package/utils/validators/vm-image.js +32 -0
- package/utils/validators/vm.js +214 -0
- package/utils/version.js +127 -0
- package/utils/window.js +46 -0
|
@@ -0,0 +1,2095 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import difference from 'lodash/difference';
|
|
3
|
+
import throttle from 'lodash/throttle';
|
|
4
|
+
import isArray from 'lodash/isArray';
|
|
5
|
+
import merge from 'lodash/merge';
|
|
6
|
+
import { mapGetters } from 'vuex';
|
|
7
|
+
|
|
8
|
+
import CreateEditView from '@shell/mixins/create-edit-view';
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
CAPI,
|
|
12
|
+
MANAGEMENT,
|
|
13
|
+
NORMAN,
|
|
14
|
+
SCHEMA,
|
|
15
|
+
DEFAULT_WORKSPACE
|
|
16
|
+
} from '@shell/config/types';
|
|
17
|
+
import { _CREATE, _EDIT, _VIEW } from '@shell/config/query-params';
|
|
18
|
+
|
|
19
|
+
import { findBy, removeObject, clear } from '@shell/utils/array';
|
|
20
|
+
import { createYaml } from '@shell/utils/create-yaml';
|
|
21
|
+
import {
|
|
22
|
+
clone, diff, set, get, isEmpty
|
|
23
|
+
} from '@shell/utils/object';
|
|
24
|
+
import { allHash } from '@shell/utils/promise';
|
|
25
|
+
import { sortBy } from '@shell/utils/sort';
|
|
26
|
+
import { camelToTitle, nlToBr } from '@shell/utils/string';
|
|
27
|
+
import { compare, sortable } from '@shell/utils/version';
|
|
28
|
+
import { isHarvesterSatisfiesVersion } from '@shell/utils/cluster';
|
|
29
|
+
|
|
30
|
+
import ArrayList from '@shell/components/form/ArrayList';
|
|
31
|
+
import ArrayListGrouped from '@shell/components/form/ArrayListGrouped';
|
|
32
|
+
import BadgeState from '@shell/components/BadgeState';
|
|
33
|
+
import Banner from '@shell/components/Banner';
|
|
34
|
+
import Checkbox from '@shell/components/form/Checkbox';
|
|
35
|
+
import CruResource from '@shell/components/CruResource';
|
|
36
|
+
import LabeledInput from '@shell/components/form/LabeledInput';
|
|
37
|
+
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
38
|
+
import Loading from '@shell/components/Loading';
|
|
39
|
+
import MatchExpressions from '@shell/components/form/MatchExpressions';
|
|
40
|
+
import NameNsDescription from '@shell/components/form/NameNsDescription';
|
|
41
|
+
import RadioGroup from '@shell/components/form/RadioGroup';
|
|
42
|
+
import Tab from '@shell/components/Tabbed/Tab';
|
|
43
|
+
import Tabbed from '@shell/components/Tabbed';
|
|
44
|
+
import UnitInput from '@shell/components/form/UnitInput';
|
|
45
|
+
import YamlEditor from '@shell/components/YamlEditor';
|
|
46
|
+
import Questions from '@shell/components/Questions';
|
|
47
|
+
|
|
48
|
+
import { normalizeName } from '@shell/components/form/NameNsDescription.vue';
|
|
49
|
+
import ClusterMembershipEditor from '@shell/components/form/Members/ClusterMembershipEditor';
|
|
50
|
+
import SelectOrCreateAuthSecret from '@shell/components/form/SelectOrCreateAuthSecret';
|
|
51
|
+
import { LEGACY } from '@shell/store/features';
|
|
52
|
+
import semver from 'semver';
|
|
53
|
+
import { canViewClusterMembershipEditor } from '@shell/components/form/Members/ClusterMembershipEditor.vue';
|
|
54
|
+
import { SETTING } from '@shell/config/settings';
|
|
55
|
+
import ACE from './ACE';
|
|
56
|
+
import AgentEnv from './AgentEnv';
|
|
57
|
+
import DrainOptions from './DrainOptions';
|
|
58
|
+
import Labels from './Labels';
|
|
59
|
+
import MachinePool from './MachinePool';
|
|
60
|
+
import RegistryConfigs from './RegistryConfigs';
|
|
61
|
+
import RegistryMirrors from './RegistryMirrors';
|
|
62
|
+
import S3Config from './S3Config';
|
|
63
|
+
import SelectCredential from './SelectCredential';
|
|
64
|
+
|
|
65
|
+
const PUBLIC = 'public';
|
|
66
|
+
const PRIVATE = 'private';
|
|
67
|
+
const ADVANCED = 'advanced';
|
|
68
|
+
|
|
69
|
+
const HARVESTER = 'harvester';
|
|
70
|
+
const HARVESTER_CLOUD_PROVIDER = 'harvester-cloud-provider';
|
|
71
|
+
|
|
72
|
+
export default {
|
|
73
|
+
components: {
|
|
74
|
+
ACE,
|
|
75
|
+
AgentEnv,
|
|
76
|
+
ArrayList,
|
|
77
|
+
ArrayListGrouped,
|
|
78
|
+
BadgeState,
|
|
79
|
+
Banner,
|
|
80
|
+
Checkbox,
|
|
81
|
+
ClusterMembershipEditor,
|
|
82
|
+
CruResource,
|
|
83
|
+
DrainOptions,
|
|
84
|
+
LabeledInput,
|
|
85
|
+
LabeledSelect,
|
|
86
|
+
Labels,
|
|
87
|
+
Loading,
|
|
88
|
+
MachinePool,
|
|
89
|
+
MatchExpressions,
|
|
90
|
+
NameNsDescription,
|
|
91
|
+
Questions,
|
|
92
|
+
RadioGroup,
|
|
93
|
+
RegistryConfigs,
|
|
94
|
+
RegistryMirrors,
|
|
95
|
+
S3Config,
|
|
96
|
+
SelectCredential,
|
|
97
|
+
SelectOrCreateAuthSecret,
|
|
98
|
+
Tab,
|
|
99
|
+
Tabbed,
|
|
100
|
+
UnitInput,
|
|
101
|
+
YamlEditor,
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
mixins: [CreateEditView],
|
|
105
|
+
|
|
106
|
+
props: {
|
|
107
|
+
mode: {
|
|
108
|
+
type: String,
|
|
109
|
+
required: true,
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
value: {
|
|
113
|
+
type: Object,
|
|
114
|
+
required: true,
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
provider: {
|
|
118
|
+
type: String,
|
|
119
|
+
required: true,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
async fetch() {
|
|
124
|
+
if ( !this.rke2Versions ) {
|
|
125
|
+
const hash = {
|
|
126
|
+
rke2Versions: this.$store.dispatch('management/request', { url: '/v1-rke2-release/releases' }),
|
|
127
|
+
k3sVersions: this.$store.dispatch('management/request', { url: '/v1-k3s-release/releases' }),
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
if ( this.$store.getters['management/canList'](MANAGEMENT.POD_SECURITY_POLICY_TEMPLATE) ) {
|
|
131
|
+
hash.allPSPs = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.POD_SECURITY_POLICY_TEMPLATE });
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Get the latest versions from the global settings if possible
|
|
135
|
+
const globalSettings = await this.$store.getters['management/all'](MANAGEMENT.SETTING) || [];
|
|
136
|
+
const defaultRke2Setting = globalSettings.find(setting => setting.id === 'rke2-default-version') || {};
|
|
137
|
+
const defaultK3sSetting = globalSettings.find(setting => setting.id === 'k3s-default-version') || {};
|
|
138
|
+
|
|
139
|
+
let defaultRke2 = defaultRke2Setting?.value || defaultRke2Setting?.default;
|
|
140
|
+
let defaultK3s = defaultK3sSetting?.value || defaultK3sSetting?.default;
|
|
141
|
+
|
|
142
|
+
// RKE2: Use the channel if we can not get the version from the settings
|
|
143
|
+
if (!defaultRke2) {
|
|
144
|
+
hash.rke2Channels = this.$store.dispatch('management/request', { url: '/v1-rke2-release/channels' });
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// K3S: Use the channel if we can not get the version from the settings
|
|
148
|
+
if (!defaultK3s) {
|
|
149
|
+
hash.k3sChannels = this.$store.dispatch('management/request', { url: '/v1-k3s-release/channels' });
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const res = await allHash(hash);
|
|
153
|
+
|
|
154
|
+
this.allPSPs = res.allPSPs || [];
|
|
155
|
+
this.rke2Versions = res.rke2Versions.data || [];
|
|
156
|
+
this.k3sVersions = res.k3sVersions.data || [];
|
|
157
|
+
|
|
158
|
+
if (!defaultRke2) {
|
|
159
|
+
const rke2Channels = res.rke2Channels.data || [];
|
|
160
|
+
|
|
161
|
+
defaultRke2 = rke2Channels.find(x => x.id === 'default')?.latest;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (!defaultK3s) {
|
|
165
|
+
const k3sChannels = res.k3sChannels.data || [];
|
|
166
|
+
|
|
167
|
+
defaultK3s = k3sChannels.find(x => x.id === 'default')?.latest;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if ( !this.rke2Versions.length && !this.k3sVersions.length ) {
|
|
171
|
+
throw new Error('No version info found in KDM');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Store default versions
|
|
175
|
+
this.defaultRke2 = defaultRke2;
|
|
176
|
+
this.defaultK3s = defaultK3s;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if ( !this.value.spec ) {
|
|
180
|
+
set(this.value, 'spec', {});
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if ( !this.value.spec.machineSelectorConfig ) {
|
|
184
|
+
set(this.value.spec, 'machineSelectorConfig', []);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if ( !this.value.spec.machineSelectorConfig.find(x => !x.machineLabelSelector) ) {
|
|
188
|
+
this.value.spec.machineSelectorConfig.unshift({ config: {} });
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if ( this.value.spec.cloudCredentialSecretName ) {
|
|
192
|
+
await this.$store.dispatch('rancher/findAll', { type: NORMAN.CLOUD_CREDENTIAL });
|
|
193
|
+
this.credentialId = `${ this.value.spec.cloudCredentialSecretName }`;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if ( !this.value.spec.kubernetesVersion ) {
|
|
197
|
+
set(this.value.spec, 'kubernetesVersion', this.defaultVersion);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
for ( const k in this.serverArgs ) {
|
|
201
|
+
if ( this.serverConfig[k] === undefined ) {
|
|
202
|
+
const def = this.serverArgs[k].default;
|
|
203
|
+
|
|
204
|
+
set(this.serverConfig, k, (def !== undefined ? def : undefined));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
for ( const k in this.agentArgs ) {
|
|
209
|
+
if ( this.agentConfig[k] === undefined ) {
|
|
210
|
+
const def = this.agentArgs[k].default;
|
|
211
|
+
|
|
212
|
+
set(this.agentConfig, k, (def !== undefined ? def : undefined));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if ( !this.serverConfig.profile ) {
|
|
217
|
+
set(this.serverConfig, 'profile', null);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if ( this.rkeConfig.etcd?.s3?.bucket ) {
|
|
221
|
+
this.s3Backup = true;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if ( !this.rkeConfig.etcd ) {
|
|
225
|
+
set(this.rkeConfig, 'etcd', {
|
|
226
|
+
disableSnapshots: false,
|
|
227
|
+
s3: null,
|
|
228
|
+
snapshotRetention: 5,
|
|
229
|
+
snapshotScheduleCron: '0 */5 * * *',
|
|
230
|
+
});
|
|
231
|
+
} else if (typeof this.rkeConfig.etcd.disableSnapshots === 'undefined') {
|
|
232
|
+
const disableSnapshots = !this.rkeConfig.etcd.snapshotRetention && !this.rkeConfig.etcd.snapshotScheduleCron;
|
|
233
|
+
|
|
234
|
+
set(this.rkeConfig.etcd, 'disableSnapshots', disableSnapshots);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if ( !this.machinePools ) {
|
|
238
|
+
await this.initMachinePools(this.value.spec.rkeConfig.machinePools);
|
|
239
|
+
if ( this.mode === _CREATE && !this.machinePools.length ) {
|
|
240
|
+
await this.addMachinePool();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if ( this.value.spec.defaultPodSecurityPolicyTemplateName === undefined ) {
|
|
245
|
+
set(this.value.spec, 'defaultPodSecurityPolicyTemplateName', '');
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (this.isHarvesterDriver && this.mode === _CREATE && this.agentConfig['cloud-provider-name'] === undefined) {
|
|
249
|
+
this.agentConfig['cloud-provider-name'] = HARVESTER;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
await this.initAddons();
|
|
253
|
+
await this.initRegistry();
|
|
254
|
+
|
|
255
|
+
Object.entries(this.chartValues).forEach(([name, value]) => {
|
|
256
|
+
const key = this.chartVersionKey(name);
|
|
257
|
+
|
|
258
|
+
this.userChartValues[key] = value;
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
data() {
|
|
263
|
+
if ( !this.value.spec.rkeConfig ) {
|
|
264
|
+
set(this.value.spec, 'rkeConfig', {});
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if ( !this.value.spec.rkeConfig.chartValues ) {
|
|
268
|
+
set(this.value.spec.rkeConfig, 'chartValues', {});
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if ( !this.value.spec.rkeConfig.upgradeStrategy ) {
|
|
272
|
+
set(this.value.spec.rkeConfig, 'upgradeStrategy', {
|
|
273
|
+
controlPlaneConcurrency: '1',
|
|
274
|
+
controlPlaneDrainOptions: {},
|
|
275
|
+
workerConcurrency: '1',
|
|
276
|
+
workerDrainOptions: {},
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if ( !this.value.spec.rkeConfig.machineGlobalConfig ) {
|
|
281
|
+
set(this.value.spec, 'rkeConfig.machineGlobalConfig', {});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if ( !this.value.spec.rkeConfig.machineSelectorConfig?.length ) {
|
|
285
|
+
set(this.value.spec, 'rkeConfig.machineSelectorConfig', [{ config: {} }]);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
return {
|
|
289
|
+
loadedOnce: false,
|
|
290
|
+
lastIdx: 0,
|
|
291
|
+
allPSPs: null,
|
|
292
|
+
nodeComponent: null,
|
|
293
|
+
credentialId: null,
|
|
294
|
+
credential: null,
|
|
295
|
+
machinePools: null,
|
|
296
|
+
rke2Versions: null,
|
|
297
|
+
k3sVersions: null,
|
|
298
|
+
defaultRke2: '',
|
|
299
|
+
defaultK3s: '',
|
|
300
|
+
s3Backup: false,
|
|
301
|
+
versionInfo: {},
|
|
302
|
+
membershipUpdate: {},
|
|
303
|
+
systemRegistry: null,
|
|
304
|
+
registryHost: null,
|
|
305
|
+
registryMode: null,
|
|
306
|
+
registrySecret: null,
|
|
307
|
+
userChartValues: {},
|
|
308
|
+
userChartValuesTemp: {},
|
|
309
|
+
addonsRev: 0,
|
|
310
|
+
clusterIsAlreadyCreated: !!this.value.id
|
|
311
|
+
};
|
|
312
|
+
},
|
|
313
|
+
|
|
314
|
+
computed: {
|
|
315
|
+
...mapGetters({ allCharts: 'catalog/charts' }),
|
|
316
|
+
...mapGetters({ features: 'features/get' }),
|
|
317
|
+
|
|
318
|
+
PUBLIC: () => PUBLIC,
|
|
319
|
+
PRIVATE: () => PRIVATE,
|
|
320
|
+
ADVANCED: () => ADVANCED,
|
|
321
|
+
|
|
322
|
+
rkeConfig() {
|
|
323
|
+
return this.value.spec.rkeConfig;
|
|
324
|
+
},
|
|
325
|
+
|
|
326
|
+
advancedTitleAlt() {
|
|
327
|
+
const machineSelectorLength = this.rkeConfig.machineSelectorConfig.length;
|
|
328
|
+
|
|
329
|
+
return this.t('cluster.advanced.argInfo.machineSelector.titleAlt', { count: machineSelectorLength });
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
chartValues() {
|
|
333
|
+
return this.value.spec.rkeConfig.chartValues;
|
|
334
|
+
},
|
|
335
|
+
|
|
336
|
+
serverConfig() {
|
|
337
|
+
return this.value.spec.rkeConfig.machineGlobalConfig;
|
|
338
|
+
},
|
|
339
|
+
|
|
340
|
+
agentConfig() {
|
|
341
|
+
return this.value.agentConfig;
|
|
342
|
+
},
|
|
343
|
+
|
|
344
|
+
showK3sTechPreviewWarning() {
|
|
345
|
+
const selectedVersion = this.value?.spec?.kubernetesVersion || 'none';
|
|
346
|
+
|
|
347
|
+
return !!this.k3sVersions.find(v => v.version === selectedVersion);
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
// kubeletConfigs() {
|
|
351
|
+
// return this.value.spec.rkeConfig.machineSelectorConfig.filter(x => !!x.machineLabelSelector);
|
|
352
|
+
// },
|
|
353
|
+
|
|
354
|
+
unsupportedSelectorConfig() {
|
|
355
|
+
let global = 0;
|
|
356
|
+
let kubeletOnly = 0;
|
|
357
|
+
let other = 0;
|
|
358
|
+
|
|
359
|
+
// The form supports one config that has no selector for all the main parts
|
|
360
|
+
// And one or more configs that have a selector and exactly only kubelet-args.
|
|
361
|
+
// If there are any other properties set, or multiple configs with no selector
|
|
362
|
+
// show a warning that you're editing only part of the config in the UI.
|
|
363
|
+
|
|
364
|
+
for ( const conf of this.value.spec?.rkeConfig?.machineSelectorConfig ) {
|
|
365
|
+
if ( conf.machineLabelSelector ) {
|
|
366
|
+
const keys = Object.keys(conf.config || {});
|
|
367
|
+
|
|
368
|
+
if ( keys.length === 0 || (keys.length === 1 && keys[0] === 'kubelet-arg') ) {
|
|
369
|
+
kubeletOnly++;
|
|
370
|
+
} else {
|
|
371
|
+
other++;
|
|
372
|
+
}
|
|
373
|
+
} else {
|
|
374
|
+
global++;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// eslint-disable-next-line no-console
|
|
379
|
+
console.log(`Global: ${ global }, Kubelet Only: ${ kubeletOnly }, Other: ${ other }`);
|
|
380
|
+
|
|
381
|
+
return ( global > 1 || other > 0 );
|
|
382
|
+
},
|
|
383
|
+
|
|
384
|
+
versionOptions() {
|
|
385
|
+
const cur = this.liveValue?.spec?.kubernetesVersion || '';
|
|
386
|
+
const existingRke2 = this.mode === _EDIT && cur.includes('rke2');
|
|
387
|
+
const existingK3s = this.mode === _EDIT && cur.includes('k3s');
|
|
388
|
+
const rke2 = this.filterAndMap(this.rke2Versions, (existingRke2 ? cur : null), cur, this.defaultRke2);
|
|
389
|
+
const k3s = this.filterAndMap(this.k3sVersions, (existingK3s ? cur : null), cur, this.defaultK3s);
|
|
390
|
+
const showRke2 = rke2.length && !existingK3s;
|
|
391
|
+
const showK3s = k3s.length && !existingRke2;
|
|
392
|
+
const out = [];
|
|
393
|
+
|
|
394
|
+
if ( showRke2 ) {
|
|
395
|
+
if ( showK3s ) {
|
|
396
|
+
out.push({ kind: 'group', label: this.t('cluster.provider.rke2') });
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
out.push(...rke2);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
if ( showK3s ) {
|
|
403
|
+
if ( showRke2 ) {
|
|
404
|
+
out.push({
|
|
405
|
+
kind: 'group',
|
|
406
|
+
label: this.t('cluster.provider.k3s'),
|
|
407
|
+
badge: this.t('generic.techPreview')
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
out.push(...k3s);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if ( cur ) {
|
|
415
|
+
const existing = out.find(x => x.value === cur);
|
|
416
|
+
|
|
417
|
+
if ( existing ) {
|
|
418
|
+
existing.disabled = false;
|
|
419
|
+
} else {
|
|
420
|
+
out.unshift({ label: `${ cur } (current)`, value: cur });
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return out;
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
isK3s() {
|
|
428
|
+
return (this.value?.spec?.kubernetesVersion || '').includes('k3s');
|
|
429
|
+
},
|
|
430
|
+
|
|
431
|
+
profileOptions() {
|
|
432
|
+
const out = (this.agentArgs.profile?.options || []).map((x) => {
|
|
433
|
+
return { label: x, value: x };
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
out.unshift({ label: '(None)', value: '' });
|
|
437
|
+
|
|
438
|
+
return out;
|
|
439
|
+
},
|
|
440
|
+
|
|
441
|
+
pspOptions() {
|
|
442
|
+
if ( this.isK3s ) {
|
|
443
|
+
return null;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const out = [{ label: 'RKE2 Default', value: '' }];
|
|
447
|
+
|
|
448
|
+
if ( this.allPSPs ) {
|
|
449
|
+
for ( const pspt of this.allPSPs ) {
|
|
450
|
+
out.push({
|
|
451
|
+
label: pspt.nameDisplay,
|
|
452
|
+
value: pspt.id,
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
const cur = this.value.spec.defaultPodSecurityPolicyTemplateName;
|
|
458
|
+
|
|
459
|
+
if ( cur && !out.find(x => x.value === cur) ) {
|
|
460
|
+
out.unshift({ label: `${ cur } (Current)`, value: cur });
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
return out;
|
|
464
|
+
},
|
|
465
|
+
|
|
466
|
+
disableOptions() {
|
|
467
|
+
return this.serverArgs.disable.options.map((value) => {
|
|
468
|
+
return {
|
|
469
|
+
label: this.$store.getters['i18n/withFallback'](`cluster.${ this.isK3s ? 'k3s' : 'rke2' }.systemService."${ value }"`, null, value.replace(/^(rke2|rancher)-/, '')),
|
|
470
|
+
value,
|
|
471
|
+
};
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
|
|
475
|
+
cloudProviderOptions() {
|
|
476
|
+
const out = [{ label: '(None)', value: '' }];
|
|
477
|
+
|
|
478
|
+
const preferred = this.$store.getters['plugins/cloudProviderForDriver'](this.provider);
|
|
479
|
+
|
|
480
|
+
for ( const opt of this.agentArgs['cloud-provider-name'].options ) {
|
|
481
|
+
// If we don't have a preferred provider... show all options
|
|
482
|
+
const showAllOptions = preferred === undefined;
|
|
483
|
+
// If we have a preferred provider... only show default, preferred and external
|
|
484
|
+
const isPreferred = opt === preferred;
|
|
485
|
+
const isExternal = opt === 'external';
|
|
486
|
+
|
|
487
|
+
if (showAllOptions || isPreferred || isExternal) {
|
|
488
|
+
out.push({
|
|
489
|
+
label: this.$store.getters['i18n/withFallback'](`cluster.cloudProvider."${ opt }".label`, null, opt),
|
|
490
|
+
value: opt,
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
const cur = this.agentConfig['cloud-provider-name'];
|
|
496
|
+
|
|
497
|
+
if ( cur && !out.find(x => x.value === cur) ) {
|
|
498
|
+
out.unshift({ label: `${ cur } (Current)`, value: cur });
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
return out;
|
|
502
|
+
},
|
|
503
|
+
|
|
504
|
+
selectedVersion() {
|
|
505
|
+
const str = this.value.spec.kubernetesVersion;
|
|
506
|
+
|
|
507
|
+
if ( !str ) {
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
const out = findBy(this.versionOptions, 'value', str);
|
|
512
|
+
|
|
513
|
+
return out;
|
|
514
|
+
},
|
|
515
|
+
|
|
516
|
+
haveArgInfo() {
|
|
517
|
+
if ( this.selectedVersion?.serverArgs && this.selectedVersion?.agentArgs ) {
|
|
518
|
+
return true;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
return false;
|
|
522
|
+
},
|
|
523
|
+
|
|
524
|
+
serverArgs() {
|
|
525
|
+
return this.selectedVersion?.serverArgs || {};
|
|
526
|
+
},
|
|
527
|
+
|
|
528
|
+
agentArgs() {
|
|
529
|
+
return this.selectedVersion?.agentArgs || {};
|
|
530
|
+
},
|
|
531
|
+
|
|
532
|
+
chartVersions() {
|
|
533
|
+
return this.selectedVersion?.charts || {};
|
|
534
|
+
},
|
|
535
|
+
|
|
536
|
+
showCisProfile() {
|
|
537
|
+
return this.provider === 'custom' && ( this.serverArgs.profile || this.agentArgs.profile );
|
|
538
|
+
},
|
|
539
|
+
|
|
540
|
+
registryOptions() {
|
|
541
|
+
return [PUBLIC, PRIVATE, ADVANCED].map((opt) => {
|
|
542
|
+
return {
|
|
543
|
+
label: this.$store.getters['i18n/withFallback'](`cluster.privateRegistry.mode."${ opt }"`, null, opt),
|
|
544
|
+
value: opt,
|
|
545
|
+
};
|
|
546
|
+
});
|
|
547
|
+
},
|
|
548
|
+
|
|
549
|
+
needCredential() {
|
|
550
|
+
if ( this.provider === 'custom' || this.provider === 'import' || this.mode === _VIEW ) {
|
|
551
|
+
return false;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
return true;
|
|
555
|
+
},
|
|
556
|
+
|
|
557
|
+
hasMachinePools() {
|
|
558
|
+
if ( this.provider === 'custom' || this.provider === 'import' ) {
|
|
559
|
+
return false;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
return true;
|
|
563
|
+
},
|
|
564
|
+
|
|
565
|
+
unremovedMachinePools() {
|
|
566
|
+
return this.machinePools.filter(x => !x.remove);
|
|
567
|
+
},
|
|
568
|
+
|
|
569
|
+
machineConfigSchema() {
|
|
570
|
+
if ( !this.hasMachinePools ) {
|
|
571
|
+
return null;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
const schema = this.$store.getters['management/schemaFor'](`${ CAPI.MACHINE_CONFIG_GROUP }.${ this.provider }config`);
|
|
575
|
+
|
|
576
|
+
return schema;
|
|
577
|
+
},
|
|
578
|
+
|
|
579
|
+
nodeTotals() {
|
|
580
|
+
const roles = ['etcd', 'controlPlane', 'worker'];
|
|
581
|
+
const counts = {};
|
|
582
|
+
const out = {
|
|
583
|
+
color: {},
|
|
584
|
+
label: {},
|
|
585
|
+
icon: {},
|
|
586
|
+
tooltip: {},
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
for ( const role of roles ) {
|
|
590
|
+
counts[role] = 0;
|
|
591
|
+
out.color[role] = 'bg-success';
|
|
592
|
+
out.icon[role] = 'icon-checkmark';
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
for ( const row of this.machinePools ) {
|
|
596
|
+
if ( row.remove ) {
|
|
597
|
+
continue;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
const qty = parseInt(row.pool.quantity, 10);
|
|
601
|
+
|
|
602
|
+
if ( isNaN(qty) ) {
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
for ( const role of roles ) {
|
|
607
|
+
counts[role] = counts[role] + (row.pool[`${ role }Role`] ? qty : 0);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
for ( const role of roles ) {
|
|
612
|
+
out.label[role] = this.t(`cluster.machinePool.nodeTotals.label.${ role }`, { count: counts[role] });
|
|
613
|
+
out.tooltip[role] = this.t(`cluster.machinePool.nodeTotals.tooltip.${ role }`, { count: counts[role] });
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
if ( counts.etcd === 0 ) {
|
|
617
|
+
out.color.etcd = 'bg-error';
|
|
618
|
+
out.icon.etcd = 'icon-x';
|
|
619
|
+
} else if ( counts.etcd === 1 || counts.etcd % 2 === 0 || counts.etcd > 7 ) {
|
|
620
|
+
out.color.etcd = 'bg-warning';
|
|
621
|
+
out.icon.etcd = 'icon-warning';
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if ( counts.controlPlane === 0 ) {
|
|
625
|
+
out.color.controlPlane = 'bg-error';
|
|
626
|
+
out.icon.controlPlane = 'icon-x';
|
|
627
|
+
} else if ( counts.controlPlane === 1 ) {
|
|
628
|
+
out.color.controlPlane = 'bg-warning';
|
|
629
|
+
out.icon.controlPlane = 'icon-warning';
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
if ( counts.worker === 0 ) {
|
|
633
|
+
out.color.worker = 'bg-error';
|
|
634
|
+
out.icon.worker = 'icon-x';
|
|
635
|
+
} else if ( counts.worker === 1 ) {
|
|
636
|
+
out.color.worker = 'bg-warning';
|
|
637
|
+
out.icon.worker = 'icon-warning';
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
return out;
|
|
641
|
+
},
|
|
642
|
+
|
|
643
|
+
enabledSystemServices: {
|
|
644
|
+
get() {
|
|
645
|
+
const out = difference(this.serverArgs.disable.options, this.serverConfig.disable || []);
|
|
646
|
+
|
|
647
|
+
return out;
|
|
648
|
+
},
|
|
649
|
+
|
|
650
|
+
set(neu) {
|
|
651
|
+
const out = difference(this.serverArgs.disable.options, neu);
|
|
652
|
+
|
|
653
|
+
set(this.serverConfig, 'disable', out);
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
|
|
657
|
+
showCloudConfigYaml() {
|
|
658
|
+
if ( !this.agentArgs['cloud-provider-name'] ) {
|
|
659
|
+
return false;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
const name = this.agentConfig['cloud-provider-name'];
|
|
663
|
+
|
|
664
|
+
if ( !name ) {
|
|
665
|
+
return false;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
switch ( name ) {
|
|
669
|
+
case 'none': return false;
|
|
670
|
+
case 'aws': return false;
|
|
671
|
+
case 'rancher-vsphere': return false;
|
|
672
|
+
case HARVESTER: return false;
|
|
673
|
+
default: return true;
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
showVsphereNote() {
|
|
678
|
+
if ( !this.agentArgs['cloud-provider-name'] ) {
|
|
679
|
+
return false;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
const name = this.agentConfig['cloud-provider-name'];
|
|
683
|
+
|
|
684
|
+
return name === 'rancher-vsphere';
|
|
685
|
+
},
|
|
686
|
+
|
|
687
|
+
showCni() {
|
|
688
|
+
return !!this.serverArgs.cni;
|
|
689
|
+
},
|
|
690
|
+
|
|
691
|
+
showCloudProvider() {
|
|
692
|
+
return this.agentArgs['cloud-provider-name'];
|
|
693
|
+
},
|
|
694
|
+
|
|
695
|
+
addonNames() {
|
|
696
|
+
const names = [];
|
|
697
|
+
const cni = this.serverConfig.cni;
|
|
698
|
+
|
|
699
|
+
if ( cni ) {
|
|
700
|
+
const parts = cni.split(',').map(x => `rke2-${ x }`);
|
|
701
|
+
|
|
702
|
+
names.push(...parts);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (this.showCloudProvider) { // Shouldn't be removed such that changes to it will re-trigger this watch
|
|
706
|
+
if ( this.agentConfig['cloud-provider-name'] === 'rancher-vsphere' ) {
|
|
707
|
+
names.push('rancher-vsphere-cpi', 'rancher-vsphere-csi');
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
if ( this.agentConfig['cloud-provider-name'] === HARVESTER ) {
|
|
711
|
+
names.push(HARVESTER_CLOUD_PROVIDER);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
return names;
|
|
716
|
+
},
|
|
717
|
+
|
|
718
|
+
addonVersions() {
|
|
719
|
+
const versions = this.addonNames.map(name => this.chartVersionFor(name));
|
|
720
|
+
|
|
721
|
+
return versions.filter(x => !!x);
|
|
722
|
+
},
|
|
723
|
+
|
|
724
|
+
showk8s21LegacyWarning() {
|
|
725
|
+
const isLegacyEnabled = this.features(LEGACY);
|
|
726
|
+
|
|
727
|
+
if (!isLegacyEnabled) {
|
|
728
|
+
return false;
|
|
729
|
+
}
|
|
730
|
+
const selectedVersion = semver.coerce(this.value.spec.kubernetesVersion);
|
|
731
|
+
|
|
732
|
+
return semver.satisfies(selectedVersion, '>=1.21.0');
|
|
733
|
+
},
|
|
734
|
+
|
|
735
|
+
canManageMembers() {
|
|
736
|
+
return canViewClusterMembershipEditor(this.$store);
|
|
737
|
+
},
|
|
738
|
+
|
|
739
|
+
isHarvesterDriver() {
|
|
740
|
+
return this.$route.query.type === HARVESTER;
|
|
741
|
+
},
|
|
742
|
+
|
|
743
|
+
defaultVersion() {
|
|
744
|
+
const all = this.versionOptions.filter(x => !!x.value);
|
|
745
|
+
const first = all[0]?.value;
|
|
746
|
+
const preferred = all.find(x => x.value === this.defaultRke2)?.value;
|
|
747
|
+
|
|
748
|
+
const rke2 = this.filterAndMap(this.rke2Versions, null);
|
|
749
|
+
const showRke2 = rke2.length;
|
|
750
|
+
let out;
|
|
751
|
+
|
|
752
|
+
if (this.isHarvesterDriver && showRke2) {
|
|
753
|
+
const satisfiesVersion = rke2.filter((v) => {
|
|
754
|
+
return isHarvesterSatisfiesVersion(v.value);
|
|
755
|
+
}) || [];
|
|
756
|
+
|
|
757
|
+
if (satisfiesVersion.length > 0) {
|
|
758
|
+
out = satisfiesVersion[0]?.value;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if ( !out ) {
|
|
763
|
+
out = preferred || first;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
return out;
|
|
767
|
+
},
|
|
768
|
+
|
|
769
|
+
ciliumIpv6: {
|
|
770
|
+
get() {
|
|
771
|
+
// eslint-disable-next-line no-unused-vars
|
|
772
|
+
const cni = this.serverConfig.cni; // force this property to recalculate if cni was changed away from cilium and chartValues['rke-cilium'] deleted
|
|
773
|
+
|
|
774
|
+
return this.userChartValues[this.chartVersionKey('rke2-cilium')]?.cilium?.ipv6?.enabled || false;
|
|
775
|
+
},
|
|
776
|
+
set(val) {
|
|
777
|
+
const name = this.chartVersionKey('rke2-cilium');
|
|
778
|
+
const values = this.userChartValues[name];
|
|
779
|
+
|
|
780
|
+
set(this, 'userChartValues', {
|
|
781
|
+
...this.userChartValues,
|
|
782
|
+
[name]: {
|
|
783
|
+
...values,
|
|
784
|
+
cilium: {
|
|
785
|
+
...values?.cilium,
|
|
786
|
+
ipv6: {
|
|
787
|
+
...values?.cilium?.ipv6,
|
|
788
|
+
enabled: val
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
|
|
796
|
+
showIpv6Warning() {
|
|
797
|
+
const clusterCIDR = this.serverConfig['cluster-cidr'] || '';
|
|
798
|
+
const serviceCIDR = this.serverConfig['service-cidr'] || '';
|
|
799
|
+
|
|
800
|
+
return clusterCIDR.includes(':') || serviceCIDR.includes(':');
|
|
801
|
+
},
|
|
802
|
+
|
|
803
|
+
appsOSWarning() {
|
|
804
|
+
if (this.mode !== _EDIT ) {
|
|
805
|
+
return null;
|
|
806
|
+
}
|
|
807
|
+
const { linuxWorkerCount, windowsWorkerCount } = this.value?.mgmt?.status || {};
|
|
808
|
+
|
|
809
|
+
if (!windowsWorkerCount) {
|
|
810
|
+
if (!!this.machinePools.find((pool) => {
|
|
811
|
+
return pool?.config?.os === 'windows';
|
|
812
|
+
})) {
|
|
813
|
+
return this.t('cluster.banner.os', { newOS: 'Windows', existingOS: 'Linux' });
|
|
814
|
+
}
|
|
815
|
+
} else if (!linuxWorkerCount) {
|
|
816
|
+
if (this.machinePools.find((pool) => {
|
|
817
|
+
return pool?.config?.os === 'linux';
|
|
818
|
+
})) {
|
|
819
|
+
return this.t('cluster.banner.os', { newOS: 'Linux', existingOS: 'Windows' });
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
return null;
|
|
824
|
+
},
|
|
825
|
+
|
|
826
|
+
showForm() {
|
|
827
|
+
return !!this.credentialId || !this.needCredential;
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
|
|
831
|
+
watch: {
|
|
832
|
+
s3Backup(neu) {
|
|
833
|
+
if ( neu ) {
|
|
834
|
+
// We need to make sure that s3 doesn't already have an existing value otherwise when editing a cluster with s3 defined this will clear s3.
|
|
835
|
+
if (isEmpty(this.rkeConfig.etcd?.s3)) {
|
|
836
|
+
set(this.rkeConfig.etcd, 's3', {});
|
|
837
|
+
}
|
|
838
|
+
} else {
|
|
839
|
+
set(this.rkeConfig.etcd, 's3', null);
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
|
|
843
|
+
credentialId(val) {
|
|
844
|
+
if ( val ) {
|
|
845
|
+
this.credential = this.$store.getters['rancher/byId'](NORMAN.CLOUD_CREDENTIAL, this.credentialId);
|
|
846
|
+
} else {
|
|
847
|
+
this.credential = null;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
this.value.spec.cloudCredentialSecretName = val;
|
|
851
|
+
},
|
|
852
|
+
|
|
853
|
+
addonNames(neu, old) {
|
|
854
|
+
// To catch the 'some addons' --> 'no addons' case also check array length (`difference([], [1,2,3]) === []`)
|
|
855
|
+
const diff = old.length !== neu.length || difference(neu, old).length ;
|
|
856
|
+
|
|
857
|
+
if (diff) {
|
|
858
|
+
// Allow time for addonNames to update... then fetch any missing addons
|
|
859
|
+
this.$nextTick(() => this.initAddons());
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
|
|
863
|
+
selectedVersion() {
|
|
864
|
+
this.versionInfo = {}; // Invalidate cache such that version info relevent to selected kube version is updated
|
|
865
|
+
|
|
866
|
+
// Allow time for addonNames to update... then fetch any missing addons
|
|
867
|
+
this.$nextTick(() => this.initAddons());
|
|
868
|
+
},
|
|
869
|
+
|
|
870
|
+
showCni(neu) {
|
|
871
|
+
// Update `serverConfig.cni to recalculate addonNames...
|
|
872
|
+
// ... which will eventually update `value.spec.rkeConfig.chartValues`
|
|
873
|
+
if (neu) {
|
|
874
|
+
// Type supports CNI, assign default if we can
|
|
875
|
+
if (!this.serverConfig.cni) {
|
|
876
|
+
const def = this.serverArgs.cni.default;
|
|
877
|
+
|
|
878
|
+
set(this.serverConfig, 'cni', def);
|
|
879
|
+
}
|
|
880
|
+
} else {
|
|
881
|
+
// Type doesn't support cni, clear `cni`
|
|
882
|
+
set(this.serverConfig, 'cni', undefined);
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
|
|
886
|
+
showCloudProvider(neu) {
|
|
887
|
+
if (!neu) {
|
|
888
|
+
// No cloud provider available? Then clear cloud provider setting. This will recalculate addonNames...
|
|
889
|
+
// ... which will eventually update `value.spec.rkeConfig.chartValues`
|
|
890
|
+
set(this.agentConfig, 'cloud-provider-name', undefined);
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
|
|
894
|
+
},
|
|
895
|
+
|
|
896
|
+
mounted() {
|
|
897
|
+
window.rke = this;
|
|
898
|
+
},
|
|
899
|
+
|
|
900
|
+
created() {
|
|
901
|
+
this.registerBeforeHook(this.saveMachinePools, 'save-machine-pools');
|
|
902
|
+
this.registerBeforeHook(this.setRegistryConfig, 'set-registry-config');
|
|
903
|
+
this.registerAfterHook(this.cleanupMachinePools, 'cleanup-machine-pools');
|
|
904
|
+
this.registerAfterHook(this.saveRoleBindings, 'save-role-bindings');
|
|
905
|
+
},
|
|
906
|
+
|
|
907
|
+
methods: {
|
|
908
|
+
nlToBr,
|
|
909
|
+
set,
|
|
910
|
+
|
|
911
|
+
async initMachinePools(existing) {
|
|
912
|
+
const out = [];
|
|
913
|
+
|
|
914
|
+
if ( existing?.length ) {
|
|
915
|
+
for ( const pool of existing ) {
|
|
916
|
+
const type = `${ CAPI.MACHINE_CONFIG_GROUP }.${ pool.machineConfigRef.kind.toLowerCase() }`;
|
|
917
|
+
let config;
|
|
918
|
+
|
|
919
|
+
if ( this.$store.getters['management/canList'](type) ) {
|
|
920
|
+
try {
|
|
921
|
+
config = await this.$store.dispatch('management/find', {
|
|
922
|
+
type,
|
|
923
|
+
id: `${ this.value.metadata.namespace }/${ pool.machineConfigRef.name }`,
|
|
924
|
+
});
|
|
925
|
+
} catch (e) {
|
|
926
|
+
// Some users can't see the config, that's ok.
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
// @TODO what if the pool is missing?
|
|
931
|
+
const id = `pool${ ++this.lastIdx }`;
|
|
932
|
+
|
|
933
|
+
out.push({
|
|
934
|
+
id,
|
|
935
|
+
remove: false,
|
|
936
|
+
create: false,
|
|
937
|
+
update: true,
|
|
938
|
+
pool: clone(pool),
|
|
939
|
+
config: config ? await this.$store.dispatch('management/clone', { resource: config }) : null,
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
this.machinePools = out;
|
|
945
|
+
},
|
|
946
|
+
|
|
947
|
+
async addMachinePool(idx) {
|
|
948
|
+
if ( !this.machineConfigSchema ) {
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
const numCurrentPools = this.machinePools.length || 0;
|
|
953
|
+
|
|
954
|
+
const config = await this.$store.dispatch('management/createPopulated', {
|
|
955
|
+
type: this.machineConfigSchema.id,
|
|
956
|
+
metadata: { namespace: DEFAULT_WORKSPACE }
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
config.applyDefaults(idx, this.machinePools);
|
|
960
|
+
|
|
961
|
+
const name = `pool${ ++this.lastIdx }`;
|
|
962
|
+
const pool = {
|
|
963
|
+
id: name,
|
|
964
|
+
config,
|
|
965
|
+
remove: false,
|
|
966
|
+
create: true,
|
|
967
|
+
update: false,
|
|
968
|
+
pool: {
|
|
969
|
+
name,
|
|
970
|
+
etcdRole: numCurrentPools === 0,
|
|
971
|
+
controlPlaneRole: numCurrentPools === 0,
|
|
972
|
+
workerRole: true,
|
|
973
|
+
hostnamePrefix: '',
|
|
974
|
+
labels: {},
|
|
975
|
+
quantity: 1,
|
|
976
|
+
unhealthyNodeTimeout: '0m',
|
|
977
|
+
machineConfigRef: {
|
|
978
|
+
kind: this.machineConfigSchema.attributes.kind,
|
|
979
|
+
name: null,
|
|
980
|
+
},
|
|
981
|
+
},
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
if (this.provider === 'vmwarevsphere') {
|
|
985
|
+
pool.pool.machineOS = 'linux';
|
|
986
|
+
}
|
|
987
|
+
this.machinePools.push(pool);
|
|
988
|
+
|
|
989
|
+
this.$nextTick(() => {
|
|
990
|
+
if ( this.$refs.pools?.select ) {
|
|
991
|
+
this.$refs.pools.select(name);
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
},
|
|
995
|
+
|
|
996
|
+
removeMachinePool(idx) {
|
|
997
|
+
const entry = this.machinePools[idx];
|
|
998
|
+
|
|
999
|
+
if ( !entry ) {
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
if ( entry.create ) {
|
|
1004
|
+
// If this is a new pool that isn't saved yet, it can just be dropped
|
|
1005
|
+
removeObject(this.machinePools, entry);
|
|
1006
|
+
} else {
|
|
1007
|
+
// Mark for removal on save
|
|
1008
|
+
entry.remove = true;
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
|
|
1012
|
+
async syncMachineConfigWithLatest(machinePool) {
|
|
1013
|
+
if (machinePool?.config?.id) {
|
|
1014
|
+
const latestConfig = await this.$store.dispatch('management/find', {
|
|
1015
|
+
type: machinePool.config.type,
|
|
1016
|
+
id: machinePool.config.id,
|
|
1017
|
+
opt: { force: true },
|
|
1018
|
+
});
|
|
1019
|
+
const clonedCurrentConfig = await this.$store.dispatch('management/clone', { resource: machinePool.config });
|
|
1020
|
+
const clonedLatestConfig = await this.$store.dispatch('management/clone', { resource: latestConfig });
|
|
1021
|
+
|
|
1022
|
+
// We don't allow the user to edit any of the fields in metadata from the UI so it's safe to override it with the
|
|
1023
|
+
// metadata defined by the latest backend value. This is primarily used to ensure the resourceVersion is up to date.
|
|
1024
|
+
delete clonedCurrentConfig.metadata;
|
|
1025
|
+
machinePool.config = merge(machinePool.config, clonedLatestConfig);
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
|
|
1029
|
+
async saveMachinePools() {
|
|
1030
|
+
const finalPools = [];
|
|
1031
|
+
|
|
1032
|
+
for ( const entry of this.machinePools ) {
|
|
1033
|
+
if ( entry.remove ) {
|
|
1034
|
+
continue;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
await this.syncMachineConfigWithLatest(entry);
|
|
1038
|
+
|
|
1039
|
+
// Capitals and such aren't allowed;
|
|
1040
|
+
set(entry.pool, 'name', normalizeName(entry.pool.name) || 'pool');
|
|
1041
|
+
|
|
1042
|
+
const prefix = `${ this.value.metadata.name }-${ entry.pool.name }`.substr(0, 50).toLowerCase();
|
|
1043
|
+
|
|
1044
|
+
if ( entry.create ) {
|
|
1045
|
+
if ( !entry.config.metadata?.name ) {
|
|
1046
|
+
entry.config.metadata.generateName = `nc-${ prefix }-`;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
const neu = await entry.config.save();
|
|
1050
|
+
|
|
1051
|
+
entry.config = neu;
|
|
1052
|
+
entry.pool.machineConfigRef.name = neu.metadata.name;
|
|
1053
|
+
entry.create = false;
|
|
1054
|
+
entry.update = true;
|
|
1055
|
+
} else if ( entry.update ) {
|
|
1056
|
+
entry.config = await entry.config.save();
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if ( !entry.pool.hostnamePrefix ) {
|
|
1060
|
+
entry.pool.hostnamePrefix = `${ prefix }-`;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
finalPools.push(entry.pool);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
this.value.spec.rkeConfig.machinePools = finalPools;
|
|
1067
|
+
},
|
|
1068
|
+
|
|
1069
|
+
async cleanupMachinePools() {
|
|
1070
|
+
for ( const entry of this.machinePools ) {
|
|
1071
|
+
if ( entry.remove && entry.config ) {
|
|
1072
|
+
try {
|
|
1073
|
+
await entry.config.remove();
|
|
1074
|
+
} catch (e) {}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
|
|
1079
|
+
async saveRoleBindings() {
|
|
1080
|
+
await this.value.waitForMgmt();
|
|
1081
|
+
|
|
1082
|
+
if (this.membershipUpdate.save) {
|
|
1083
|
+
await this.membershipUpdate.save(this.value.mgmt.id);
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
|
|
1087
|
+
validationPassed() {
|
|
1088
|
+
return (this.provider === 'custom' || !!this.credentialId);
|
|
1089
|
+
},
|
|
1090
|
+
|
|
1091
|
+
cancelCredential() {
|
|
1092
|
+
if ( this.$refs.cruresource ) {
|
|
1093
|
+
this.$refs.cruresource.emitOrRoute();
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
|
|
1097
|
+
done() {
|
|
1098
|
+
let routeName = 'c-cluster-product-resource';
|
|
1099
|
+
|
|
1100
|
+
if ( this.mode === _CREATE && (this.provider === 'import' || this.provider === 'custom') ) {
|
|
1101
|
+
// Go show the registration command
|
|
1102
|
+
routeName = 'c-cluster-product-resource-namespace-id';
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
this.$router.push({
|
|
1106
|
+
name: routeName,
|
|
1107
|
+
params: {
|
|
1108
|
+
cluster: this.$route.params.cluster,
|
|
1109
|
+
product: this.$store.getters['productId'],
|
|
1110
|
+
resource: CAPI.RANCHER_CLUSTER,
|
|
1111
|
+
namespace: this.value.metadata.namespace,
|
|
1112
|
+
id: this.value.metadata.name,
|
|
1113
|
+
},
|
|
1114
|
+
});
|
|
1115
|
+
},
|
|
1116
|
+
|
|
1117
|
+
showAddonConfirmation() {
|
|
1118
|
+
return new Promise((resolve, reject) => {
|
|
1119
|
+
this.$store.dispatch('cluster/promptModal', { component: 'AddonConfigConfirmationDialog', resources: [value => resolve(value)] });
|
|
1120
|
+
});
|
|
1121
|
+
},
|
|
1122
|
+
|
|
1123
|
+
async saveOverride(btnCb) {
|
|
1124
|
+
if ( this.errors ) {
|
|
1125
|
+
clear(this.errors);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (this.isEdit && this.liveValue?.spec?.kubernetesVersion !== this.value?.spec?.kubernetesVersion) {
|
|
1129
|
+
const shouldContinue = await this.showAddonConfirmation();
|
|
1130
|
+
|
|
1131
|
+
if (!shouldContinue) {
|
|
1132
|
+
return btnCb('cancelled');
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
if (this.value.cloudProvider === 'aws') {
|
|
1137
|
+
const missingProfileName = this.machinePools.some(mp => !mp.config.iamInstanceProfile);
|
|
1138
|
+
|
|
1139
|
+
if (missingProfileName) {
|
|
1140
|
+
this.errors.push(this.t('cluster.validation.iamInstanceProfileName', {}, true));
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
for (const [index] of this.machinePools.entries()) { // validator machine config
|
|
1145
|
+
if ( typeof this.$refs.pool[index]?.test === 'function' ) {
|
|
1146
|
+
try {
|
|
1147
|
+
const res = await this.$refs.pool[index].test();
|
|
1148
|
+
|
|
1149
|
+
if (Array.isArray(res) && res.length > 0) {
|
|
1150
|
+
this.errors.push(...res);
|
|
1151
|
+
}
|
|
1152
|
+
} catch (e) {
|
|
1153
|
+
this.errors.push(e);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
if (!this.value.metadata.name && this.agentConfig['cloud-provider-name'] === HARVESTER) {
|
|
1159
|
+
this.errors.push(this.t('validation.required', { key: this.t('cluster.name.label') }, true));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
if (this.errors.length) {
|
|
1163
|
+
btnCb(false);
|
|
1164
|
+
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
const clusterId = get(this.credential, 'decodedData.clusterId') || '';
|
|
1169
|
+
|
|
1170
|
+
this.applyChartValues(this.value.spec.rkeConfig);
|
|
1171
|
+
|
|
1172
|
+
if (this.agentConfig['cloud-provider-name'] === HARVESTER && clusterId && this.isCreate) {
|
|
1173
|
+
const namespace = this.machinePools?.[0]?.config?.vmNamespace;
|
|
1174
|
+
|
|
1175
|
+
const res = await this.$store.dispatch('management/request', {
|
|
1176
|
+
url: `/k8s/clusters/${ clusterId }/v1/harvester/kubeconfig`,
|
|
1177
|
+
method: 'POST',
|
|
1178
|
+
data: {
|
|
1179
|
+
clusterRoleName: 'harvesterhci.io:cloudprovider',
|
|
1180
|
+
namespace,
|
|
1181
|
+
serviceAccountName: this.value.metadata.name,
|
|
1182
|
+
},
|
|
1183
|
+
});
|
|
1184
|
+
|
|
1185
|
+
set(this.agentConfig, 'cloud-provider-config', res.data);
|
|
1186
|
+
set(this.chartValues, `${ HARVESTER_CLOUD_PROVIDER }.clusterName`, this.value.metadata.name);
|
|
1187
|
+
set(this.chartValues, `${ HARVESTER_CLOUD_PROVIDER }.cloudConfigPath`, '/var/lib/rancher/rke2/etc/config-files/cloud-provider-config');
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
await this.save(btnCb);
|
|
1191
|
+
},
|
|
1192
|
+
|
|
1193
|
+
cancel() {
|
|
1194
|
+
this.$router.push({
|
|
1195
|
+
name: 'c-cluster-product-resource',
|
|
1196
|
+
params: {
|
|
1197
|
+
cluster: this.$route.params.cluster,
|
|
1198
|
+
product: this.$store.getters['productId'],
|
|
1199
|
+
resource: CAPI.RANCHER_CLUSTER,
|
|
1200
|
+
},
|
|
1201
|
+
});
|
|
1202
|
+
},
|
|
1203
|
+
|
|
1204
|
+
chartVersionFor(chartName) {
|
|
1205
|
+
const entry = this.chartVersions[chartName];
|
|
1206
|
+
|
|
1207
|
+
if ( !entry ) {
|
|
1208
|
+
return null;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
const out = this.$store.getters['catalog/version']({
|
|
1212
|
+
repoType: 'cluster',
|
|
1213
|
+
repoName: entry.repo,
|
|
1214
|
+
chartName,
|
|
1215
|
+
versionName: entry.version,
|
|
1216
|
+
});
|
|
1217
|
+
|
|
1218
|
+
return out;
|
|
1219
|
+
},
|
|
1220
|
+
|
|
1221
|
+
async initAddons() {
|
|
1222
|
+
for ( const v of this.addonVersions ) {
|
|
1223
|
+
if ( this.versionInfo[v.name] ) {
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
const res = await this.$store.dispatch('catalog/getVersionInfo', {
|
|
1228
|
+
repoType: 'cluster',
|
|
1229
|
+
repoName: v.repoName,
|
|
1230
|
+
chartName: v.name,
|
|
1231
|
+
versionName: v.version
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1234
|
+
set(this.versionInfo, v.name, res);
|
|
1235
|
+
const key = this.chartVersionKey(v.name);
|
|
1236
|
+
|
|
1237
|
+
if (!this.userChartValues[key]) {
|
|
1238
|
+
this.userChartValues[key] = {};
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
|
|
1243
|
+
labelForAddon(name) {
|
|
1244
|
+
const fallback = `${ camelToTitle(name.replace(/^(rke|rke2|rancher)-/, '')) } Configuration`;
|
|
1245
|
+
|
|
1246
|
+
return this.$store.getters['i18n/withFallback'](`cluster.addonChart."${ name }"`, null, fallback);
|
|
1247
|
+
},
|
|
1248
|
+
|
|
1249
|
+
showAddons() {
|
|
1250
|
+
this.addonsRev++;
|
|
1251
|
+
this.addonNames.forEach((name) => {
|
|
1252
|
+
const chartValues = this.versionInfo[name]?.questions ? this.initYamlEditor(name) : {};
|
|
1253
|
+
|
|
1254
|
+
set(this.userChartValuesTemp, name, chartValues);
|
|
1255
|
+
});
|
|
1256
|
+
this.refreshYamls();
|
|
1257
|
+
},
|
|
1258
|
+
|
|
1259
|
+
refreshYamls() {
|
|
1260
|
+
const keys = Object.keys(this.$refs).filter(x => x.startsWith('yaml'));
|
|
1261
|
+
|
|
1262
|
+
for ( const k of keys ) {
|
|
1263
|
+
const entry = this.$refs[k];
|
|
1264
|
+
const list = isArray(entry) ? entry : [entry];
|
|
1265
|
+
|
|
1266
|
+
for ( const component of list ) {
|
|
1267
|
+
component?.refresh(); // `yaml` ref can be undefined on switching from Basic to Addon tab (Azure --> Amazon --> addon)
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
|
|
1272
|
+
updateValues(name, values) {
|
|
1273
|
+
set(this.userChartValuesTemp, name, values);
|
|
1274
|
+
this.syncChartValues(name);
|
|
1275
|
+
},
|
|
1276
|
+
|
|
1277
|
+
syncChartValues: throttle(function(name) {
|
|
1278
|
+
const fromChart = this.versionInfo[name]?.values;
|
|
1279
|
+
const fromUser = this.userChartValuesTemp[name];
|
|
1280
|
+
const different = diff(fromChart, fromUser);
|
|
1281
|
+
|
|
1282
|
+
this.userChartValues[this.chartVersionKey(name)] = different;
|
|
1283
|
+
}, 250, { leading: true }),
|
|
1284
|
+
|
|
1285
|
+
updateQuestions(name) {
|
|
1286
|
+
this.syncChartValues(name);
|
|
1287
|
+
},
|
|
1288
|
+
|
|
1289
|
+
initQuestions(name) {
|
|
1290
|
+
const defaultChartValue = this.versionInfo[name];
|
|
1291
|
+
const startingChartValue = this.initYamlEditor(name);
|
|
1292
|
+
|
|
1293
|
+
return {
|
|
1294
|
+
...defaultChartValue,
|
|
1295
|
+
values: startingChartValue,
|
|
1296
|
+
};
|
|
1297
|
+
},
|
|
1298
|
+
|
|
1299
|
+
initYamlEditor(name) {
|
|
1300
|
+
const defaultChartValue = this.versionInfo[name];
|
|
1301
|
+
const key = this.chartVersionKey(name);
|
|
1302
|
+
|
|
1303
|
+
return merge({}, defaultChartValue?.values || {}, this.userChartValues[key] || {});
|
|
1304
|
+
},
|
|
1305
|
+
|
|
1306
|
+
chartVersionKey(name) {
|
|
1307
|
+
const addonVersion = this.addonVersions.find(av => av.name === name);
|
|
1308
|
+
|
|
1309
|
+
return addonVersion ? `${ name }-${ addonVersion.version }` : name;
|
|
1310
|
+
},
|
|
1311
|
+
|
|
1312
|
+
onMembershipUpdate(update) {
|
|
1313
|
+
this.$set(this, 'membershipUpdate', update);
|
|
1314
|
+
},
|
|
1315
|
+
|
|
1316
|
+
canRemoveKubeletRow(row, idx) {
|
|
1317
|
+
return idx !== 0;
|
|
1318
|
+
},
|
|
1319
|
+
|
|
1320
|
+
async initRegistry() {
|
|
1321
|
+
let registryMode = PUBLIC;
|
|
1322
|
+
let registryHost = this.agentConfig?.['system-default-registry'] || '';
|
|
1323
|
+
let registrySecret = null;
|
|
1324
|
+
let regs = this.rkeConfig.registries;
|
|
1325
|
+
|
|
1326
|
+
this.systemRegistry = (await this.$store.dispatch('management/find', { type: MANAGEMENT.SETTING, id: SETTING.SYSTEM_DEFAULT_REGISTRY })).value || '';
|
|
1327
|
+
|
|
1328
|
+
if ( !regs ) {
|
|
1329
|
+
regs = {};
|
|
1330
|
+
set(this.rkeConfig, 'registries', regs);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if ( !regs.configs ) {
|
|
1334
|
+
set(regs, 'configs', {});
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
if ( !regs.mirrors ) {
|
|
1338
|
+
set(regs, 'mirrors', {});
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if ( registryHost ) {
|
|
1342
|
+
registryMode = PRIVATE;
|
|
1343
|
+
} else if ( this.systemRegistry ) {
|
|
1344
|
+
registryHost = this.systemRegistry;
|
|
1345
|
+
registryMode = PRIVATE;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
if ( Object.keys(regs.mirrors || {}).length || Object.keys(regs.configs || {}).length > 1 ) {
|
|
1349
|
+
registryMode = ADVANCED;
|
|
1350
|
+
} else {
|
|
1351
|
+
const hostname = Object.keys(regs.configs)[0];
|
|
1352
|
+
const config = regs.configs[hostname];
|
|
1353
|
+
|
|
1354
|
+
if ( config ) {
|
|
1355
|
+
if ( hostname !== registryHost || config.caBundle || config.insecureSkipVerify || config.tlsSecretName ) {
|
|
1356
|
+
registryMode = ADVANCED;
|
|
1357
|
+
} else {
|
|
1358
|
+
registryMode = PRIVATE;
|
|
1359
|
+
registrySecret = config.authConfigSecretName;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
this.registryHost = registryHost;
|
|
1365
|
+
this.registryMode = registryMode;
|
|
1366
|
+
this.registrySecret = registrySecret;
|
|
1367
|
+
},
|
|
1368
|
+
|
|
1369
|
+
setRegistryConfig() {
|
|
1370
|
+
const hostname = (this.registryHost || '').trim();
|
|
1371
|
+
|
|
1372
|
+
if ( this.registryMode === PUBLIC ) {
|
|
1373
|
+
if ( this.systemRegistry ) {
|
|
1374
|
+
// Empty string overrides the system default to nothing
|
|
1375
|
+
set(this.agentConfig, 'system-default-registry', '');
|
|
1376
|
+
} else {
|
|
1377
|
+
// No need to set anything
|
|
1378
|
+
set(this.agentConfig, 'system-default-registry', undefined);
|
|
1379
|
+
}
|
|
1380
|
+
} else if ( !hostname || hostname === this.systemRegistry ) {
|
|
1381
|
+
// Undefined removes the key which uses the global setting without hardcoding it into the config
|
|
1382
|
+
set(this.agentConfig, 'system-default-registry', undefined);
|
|
1383
|
+
} else {
|
|
1384
|
+
set(this.agentConfig, 'system-default-registry', hostname);
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
if ( this.registryMode === ADVANCED ) {
|
|
1388
|
+
// Leave it alone...
|
|
1389
|
+
} else if ( this.registryMode === PRIVATE ) {
|
|
1390
|
+
set(this.rkeConfig.registries, 'mirrors', {});
|
|
1391
|
+
|
|
1392
|
+
if ( this.registrySecret ) {
|
|
1393
|
+
set(this.rkeConfig.registries, 'configs', {
|
|
1394
|
+
[hostname]: {
|
|
1395
|
+
authConfigSecretName: this.registrySecret,
|
|
1396
|
+
caBundle: null,
|
|
1397
|
+
insecureSkipVerify: false,
|
|
1398
|
+
tlsSecretName: null,
|
|
1399
|
+
}
|
|
1400
|
+
});
|
|
1401
|
+
} else {
|
|
1402
|
+
set(this.rkeConfig.registries, 'configs', {});
|
|
1403
|
+
}
|
|
1404
|
+
} else {
|
|
1405
|
+
set(this.rkeConfig.registries, 'configs', {});
|
|
1406
|
+
set(this.rkeConfig.registries, 'mirrors', {});
|
|
1407
|
+
}
|
|
1408
|
+
},
|
|
1409
|
+
|
|
1410
|
+
filterAndMap(versions, minVersion, currentVersion, defaultVersion) {
|
|
1411
|
+
const out = (versions || []).filter(obj => !!obj.serverArgs).map((obj) => {
|
|
1412
|
+
let disabled = false;
|
|
1413
|
+
let experimental = false;
|
|
1414
|
+
|
|
1415
|
+
if ( minVersion ) {
|
|
1416
|
+
disabled = compare(obj.id, minVersion) < 0;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
if ( defaultVersion ) {
|
|
1420
|
+
experimental = compare(defaultVersion, obj.id) < 0;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
return {
|
|
1424
|
+
label: obj.id + (experimental ? ` (${ this.t('cluster.kubernetesVersion.experimental') })` : ''),
|
|
1425
|
+
value: obj.id,
|
|
1426
|
+
sort: sortable(obj.id),
|
|
1427
|
+
serverArgs: obj.serverArgs,
|
|
1428
|
+
agentArgs: obj.agentArgs,
|
|
1429
|
+
charts: obj.charts,
|
|
1430
|
+
disabled,
|
|
1431
|
+
};
|
|
1432
|
+
});
|
|
1433
|
+
|
|
1434
|
+
const sorted = sortBy(out, 'sort:desc');
|
|
1435
|
+
const versionMap = {};
|
|
1436
|
+
|
|
1437
|
+
return sorted.filter((version) => {
|
|
1438
|
+
// Always show pre-releases
|
|
1439
|
+
if (semver.prerelease(version.value)) {
|
|
1440
|
+
return true;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
const majorMinor = `${ semver.major(version.value) }.${ semver.minor(version.value) }`;
|
|
1444
|
+
|
|
1445
|
+
// Always show current version, else show if we haven't shown anything for this major.minor version yet
|
|
1446
|
+
if (version === currentVersion || !versionMap[majorMinor]) {
|
|
1447
|
+
versionMap[majorMinor] = true;
|
|
1448
|
+
|
|
1449
|
+
return true;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
return false;
|
|
1453
|
+
});
|
|
1454
|
+
},
|
|
1455
|
+
|
|
1456
|
+
generateYaml() {
|
|
1457
|
+
const resource = this.value;
|
|
1458
|
+
const inStore = this.$store.getters['currentStore'](resource);
|
|
1459
|
+
const schemas = this.$store.getters[`${ inStore }/all`](SCHEMA);
|
|
1460
|
+
const clonedResource = clone(resource);
|
|
1461
|
+
|
|
1462
|
+
this.applyChartValues(clonedResource.spec.rkeConfig);
|
|
1463
|
+
|
|
1464
|
+
const out = createYaml(schemas, resource.type, clonedResource);
|
|
1465
|
+
|
|
1466
|
+
return out;
|
|
1467
|
+
},
|
|
1468
|
+
|
|
1469
|
+
applyChartValues(rkeConfig) {
|
|
1470
|
+
rkeConfig.chartValues = {};
|
|
1471
|
+
this.addonNames.forEach((name) => {
|
|
1472
|
+
const key = this.chartVersionKey(name);
|
|
1473
|
+
const userValues = this.userChartValues[key];
|
|
1474
|
+
|
|
1475
|
+
if (userValues) {
|
|
1476
|
+
set(rkeConfig.chartValues, name, userValues);
|
|
1477
|
+
}
|
|
1478
|
+
});
|
|
1479
|
+
},
|
|
1480
|
+
get
|
|
1481
|
+
},
|
|
1482
|
+
};
|
|
1483
|
+
</script>
|
|
1484
|
+
|
|
1485
|
+
<template>
|
|
1486
|
+
<Loading v-if="$fetchState.pending && !loadedOnce" />
|
|
1487
|
+
<Banner v-else-if="$fetchState.error" color="error" :label="$fetchState.error" />
|
|
1488
|
+
<CruResource
|
|
1489
|
+
v-else
|
|
1490
|
+
ref="cruresource"
|
|
1491
|
+
:mode="mode"
|
|
1492
|
+
:validation-passed="validationPassed()"
|
|
1493
|
+
:resource="value"
|
|
1494
|
+
:errors="errors"
|
|
1495
|
+
:cancel-event="true"
|
|
1496
|
+
:done-route="doneRoute"
|
|
1497
|
+
:apply-hooks="applyHooks"
|
|
1498
|
+
:generate-yaml="generateYaml"
|
|
1499
|
+
class="rke2"
|
|
1500
|
+
@done="done"
|
|
1501
|
+
@finish="saveOverride"
|
|
1502
|
+
@cancel="cancel"
|
|
1503
|
+
@error="e=>errors = e"
|
|
1504
|
+
>
|
|
1505
|
+
<Banner
|
|
1506
|
+
v-if="isEdit"
|
|
1507
|
+
color="warning"
|
|
1508
|
+
>
|
|
1509
|
+
<span v-html="t('cluster.banner.rke2-k3-reprovisioning', {}, true)" />
|
|
1510
|
+
</Banner>
|
|
1511
|
+
<SelectCredential
|
|
1512
|
+
v-if="needCredential"
|
|
1513
|
+
v-model="credentialId"
|
|
1514
|
+
:mode="mode"
|
|
1515
|
+
:provider="provider"
|
|
1516
|
+
:cancel="cancelCredential"
|
|
1517
|
+
:showing-form="showForm"
|
|
1518
|
+
/>
|
|
1519
|
+
|
|
1520
|
+
<div v-if="showForm" class="mt-20">
|
|
1521
|
+
<NameNsDescription
|
|
1522
|
+
v-if="!isView"
|
|
1523
|
+
v-model="value"
|
|
1524
|
+
:mode="mode"
|
|
1525
|
+
:namespaced="false"
|
|
1526
|
+
name-label="cluster.name.label"
|
|
1527
|
+
name-placeholder="cluster.name.placeholder"
|
|
1528
|
+
description-label="cluster.description.label"
|
|
1529
|
+
description-placeholder="cluster.description.placeholder"
|
|
1530
|
+
/>
|
|
1531
|
+
|
|
1532
|
+
<Banner v-if="appsOSWarning" color="error">
|
|
1533
|
+
{{ appsOSWarning }}
|
|
1534
|
+
</Banner>
|
|
1535
|
+
|
|
1536
|
+
<template v-if="hasMachinePools">
|
|
1537
|
+
<div class="clearfix">
|
|
1538
|
+
<h2 v-t="'cluster.tabs.machinePools'" class="pull-left" />
|
|
1539
|
+
<div v-if="!isView" class="pull-right">
|
|
1540
|
+
<BadgeState
|
|
1541
|
+
v-tooltip="nodeTotals.tooltip.etcd"
|
|
1542
|
+
:color="nodeTotals.color.etcd"
|
|
1543
|
+
:icon="nodeTotals.icon.etcd"
|
|
1544
|
+
:label="nodeTotals.label.etcd"
|
|
1545
|
+
class="mr-10"
|
|
1546
|
+
/>
|
|
1547
|
+
<BadgeState
|
|
1548
|
+
v-tooltip="nodeTotals.tooltip.controlPlane"
|
|
1549
|
+
:color="nodeTotals.color.controlPlane"
|
|
1550
|
+
:icon="nodeTotals.icon.controlPlane"
|
|
1551
|
+
:label="nodeTotals.label.controlPlane"
|
|
1552
|
+
class="mr-10"
|
|
1553
|
+
/>
|
|
1554
|
+
<BadgeState
|
|
1555
|
+
v-tooltip="nodeTotals.tooltip.worker"
|
|
1556
|
+
:color="nodeTotals.color.worker"
|
|
1557
|
+
:icon="nodeTotals.icon.worker"
|
|
1558
|
+
:label="nodeTotals.label.worker"
|
|
1559
|
+
/>
|
|
1560
|
+
</div>
|
|
1561
|
+
</div>
|
|
1562
|
+
|
|
1563
|
+
<Tabbed
|
|
1564
|
+
ref="pools"
|
|
1565
|
+
:side-tabs="true"
|
|
1566
|
+
:show-tabs-add-remove="!isView"
|
|
1567
|
+
@addTab="addMachinePool($event)"
|
|
1568
|
+
@removeTab="removeMachinePool($event)"
|
|
1569
|
+
>
|
|
1570
|
+
<template v-for="obj in machinePools">
|
|
1571
|
+
<Tab v-if="!obj.remove" :key="obj.id" :name="obj.id" :label="obj.pool.name || '(Not Named)'" :show-header="false">
|
|
1572
|
+
<MachinePool
|
|
1573
|
+
ref="pool"
|
|
1574
|
+
:value="obj"
|
|
1575
|
+
:cluster="value"
|
|
1576
|
+
:mode="mode"
|
|
1577
|
+
:provider="provider"
|
|
1578
|
+
:credential-id="credentialId"
|
|
1579
|
+
@error="e=>errors = e"
|
|
1580
|
+
/>
|
|
1581
|
+
</Tab>
|
|
1582
|
+
</template>
|
|
1583
|
+
<div v-if="!unremovedMachinePools.length">
|
|
1584
|
+
You do not have any machine pools defined, click the plus to add one.
|
|
1585
|
+
</div>
|
|
1586
|
+
</Tabbed>
|
|
1587
|
+
<div class="spacer" />
|
|
1588
|
+
</template>
|
|
1589
|
+
|
|
1590
|
+
<h2 v-t="'cluster.tabs.cluster'" />
|
|
1591
|
+
<Tabbed :side-tabs="true">
|
|
1592
|
+
<Tab name="basic" label-key="cluster.tabs.basic" :weight="11" @active="refreshYamls">
|
|
1593
|
+
<Banner v-if="!haveArgInfo" color="warning" label="Configuration information is not available for the selected Kubernetes version. The options available in this screen will be limited, you may want to use the YAML editor." />
|
|
1594
|
+
<Banner v-if="showk8s21LegacyWarning" color="warning" :label="t('cluster.legacyWarning')" />
|
|
1595
|
+
<div class="row mb-10">
|
|
1596
|
+
<div class="col span-6">
|
|
1597
|
+
<LabeledSelect
|
|
1598
|
+
v-model="value.spec.kubernetesVersion"
|
|
1599
|
+
:mode="mode"
|
|
1600
|
+
:options="versionOptions"
|
|
1601
|
+
label-key="cluster.kubernetesVersion.label"
|
|
1602
|
+
/>
|
|
1603
|
+
<div v-if="showK3sTechPreviewWarning" class="k3s-tech-preview-info">
|
|
1604
|
+
{{ t('cluster.k3s.techPreview') }}
|
|
1605
|
+
</div>
|
|
1606
|
+
</div>
|
|
1607
|
+
<div v-if="showCloudProvider" class="col span-6">
|
|
1608
|
+
<LabeledSelect
|
|
1609
|
+
v-model="agentConfig['cloud-provider-name']"
|
|
1610
|
+
:mode="mode"
|
|
1611
|
+
:disabled="clusterIsAlreadyCreated"
|
|
1612
|
+
:options="cloudProviderOptions"
|
|
1613
|
+
:label="t('cluster.rke2.cloudProvider.label')"
|
|
1614
|
+
/>
|
|
1615
|
+
</div>
|
|
1616
|
+
</div>
|
|
1617
|
+
<div v-if="showCni" :style="{'align-items':'center'}" class="row">
|
|
1618
|
+
<div class="col span-6">
|
|
1619
|
+
<LabeledSelect
|
|
1620
|
+
v-model="serverConfig.cni"
|
|
1621
|
+
:mode="mode"
|
|
1622
|
+
:disabled="clusterIsAlreadyCreated"
|
|
1623
|
+
:options="serverArgs.cni.options"
|
|
1624
|
+
:label="t('cluster.rke2.cni.label')"
|
|
1625
|
+
/>
|
|
1626
|
+
</div>
|
|
1627
|
+
<div v-if="serverConfig.cni === 'cilium' || serverConfig.cni === 'multus,cilium'" class="col">
|
|
1628
|
+
<Checkbox v-model="ciliumIpv6" :mode="mode" :label="t('cluster.rke2.address.ipv6.enable')" />
|
|
1629
|
+
</div>
|
|
1630
|
+
</div>
|
|
1631
|
+
<template v-if="showVsphereNote">
|
|
1632
|
+
<Banner color="warning" label-key="cluster.cloudProvider.rancher-vsphere.note" />
|
|
1633
|
+
</template>
|
|
1634
|
+
<template v-else-if="showCloudConfigYaml">
|
|
1635
|
+
<div class="spacer" />
|
|
1636
|
+
|
|
1637
|
+
<div class="col span-12">
|
|
1638
|
+
<h3>
|
|
1639
|
+
{{ t('cluster.rke2.cloudProvider.header') }}
|
|
1640
|
+
</h3>
|
|
1641
|
+
<YamlEditor
|
|
1642
|
+
ref="yaml"
|
|
1643
|
+
v-model="agentConfig['cloud-provider-config']"
|
|
1644
|
+
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
|
|
1645
|
+
initial-yaml-values="# Cloud Provider Config"
|
|
1646
|
+
class="yaml-editor"
|
|
1647
|
+
/>
|
|
1648
|
+
</div>
|
|
1649
|
+
</template>
|
|
1650
|
+
|
|
1651
|
+
<div class="spacer" />
|
|
1652
|
+
|
|
1653
|
+
<h3>
|
|
1654
|
+
{{ t('cluster.rke2.security.header') }}
|
|
1655
|
+
</h3>
|
|
1656
|
+
<div class="row">
|
|
1657
|
+
<div class="col span-6">
|
|
1658
|
+
<LabeledSelect
|
|
1659
|
+
v-if="pspOptions"
|
|
1660
|
+
v-model="value.spec.defaultPodSecurityPolicyTemplateName"
|
|
1661
|
+
:mode="mode"
|
|
1662
|
+
:options="pspOptions"
|
|
1663
|
+
:label="t('cluster.rke2.defaultPodSecurityPolicyTemplateName.label')"
|
|
1664
|
+
/>
|
|
1665
|
+
</div>
|
|
1666
|
+
<div v-if="showCisProfile" class="col span-6">
|
|
1667
|
+
<LabeledSelect
|
|
1668
|
+
v-if="serverArgs.profile"
|
|
1669
|
+
v-model="serverConfig.profile"
|
|
1670
|
+
:mode="mode"
|
|
1671
|
+
:options="profileOptions"
|
|
1672
|
+
label="Server CIS Profile"
|
|
1673
|
+
/>
|
|
1674
|
+
<LabeledSelect
|
|
1675
|
+
v-else-if="agentArgs.profile"
|
|
1676
|
+
v-model="agentConfig.profile"
|
|
1677
|
+
:mode="mode"
|
|
1678
|
+
:options="profileOptions"
|
|
1679
|
+
label="Worker CIS Profile"
|
|
1680
|
+
/>
|
|
1681
|
+
</div>
|
|
1682
|
+
</div>
|
|
1683
|
+
<div class="row">
|
|
1684
|
+
<div class="col span-12 mt-20">
|
|
1685
|
+
<Checkbox v-if="serverArgs['secrets-encryption']" v-model="serverConfig['secrets-encryption']" :mode="mode" label="Encrypt Secrets" />
|
|
1686
|
+
<Checkbox v-model="value.spec.enableNetworkPolicy" :mode="mode" :label="t('cluster.rke2.enableNetworkPolicy.label')" />
|
|
1687
|
+
<!-- <Checkbox v-if="agentArgs.selinux" v-model="agentConfig.selinux" :mode="mode" label="SELinux" /> -->
|
|
1688
|
+
</div>
|
|
1689
|
+
</div>
|
|
1690
|
+
|
|
1691
|
+
<div class="spacer" />
|
|
1692
|
+
|
|
1693
|
+
<div v-if="serverArgs.disable" class="row">
|
|
1694
|
+
<div class="col span-12">
|
|
1695
|
+
<div>
|
|
1696
|
+
<h3>
|
|
1697
|
+
{{ t('cluster.rke2.systemService.header') }}
|
|
1698
|
+
</h3>
|
|
1699
|
+
</div>
|
|
1700
|
+
<Checkbox
|
|
1701
|
+
v-for="opt in disableOptions"
|
|
1702
|
+
:key="opt.value"
|
|
1703
|
+
v-model="enabledSystemServices"
|
|
1704
|
+
:mode="mode"
|
|
1705
|
+
:label="opt.label"
|
|
1706
|
+
:value-when-true="opt.value"
|
|
1707
|
+
/>
|
|
1708
|
+
</div>
|
|
1709
|
+
</div>
|
|
1710
|
+
</Tab>
|
|
1711
|
+
|
|
1712
|
+
<Tab v-if="canManageMembers" name="memberRoles" label-key="cluster.tabs.memberRoles" :weight="10">
|
|
1713
|
+
<Banner v-if="isEdit" color="info">
|
|
1714
|
+
{{ t('cluster.memberRoles.removeMessage') }}
|
|
1715
|
+
</Banner>
|
|
1716
|
+
<ClusterMembershipEditor :mode="mode" :parent-id="value.mgmt ? value.mgmt.id : null" @membership-update="onMembershipUpdate" />
|
|
1717
|
+
</Tab>
|
|
1718
|
+
|
|
1719
|
+
<Tab name="etcd" label-key="cluster.tabs.etcd">
|
|
1720
|
+
<div class="row">
|
|
1721
|
+
<div class="col span-6">
|
|
1722
|
+
<RadioGroup
|
|
1723
|
+
v-model="rkeConfig.etcd.disableSnapshots"
|
|
1724
|
+
name="etcd-disable-snapshots"
|
|
1725
|
+
:options="[true, false]"
|
|
1726
|
+
:label="t('cluster.rke2.etcd.disableSnapshots.label')"
|
|
1727
|
+
:labels="[t('generic.disable'), t('generic.enable')]"
|
|
1728
|
+
:mode="mode"
|
|
1729
|
+
/>
|
|
1730
|
+
</div>
|
|
1731
|
+
</div>
|
|
1732
|
+
<div v-if="rkeConfig.etcd.disableSnapshots !== true" class="row">
|
|
1733
|
+
<div class="col span-6">
|
|
1734
|
+
<LabeledInput
|
|
1735
|
+
v-model="rkeConfig.etcd.snapshotScheduleCron"
|
|
1736
|
+
type="cron"
|
|
1737
|
+
placeholder="0 * * * *"
|
|
1738
|
+
:mode="mode"
|
|
1739
|
+
:label="t('cluster.rke2.etcd.snapshotScheduleCron.label')"
|
|
1740
|
+
/>
|
|
1741
|
+
</div>
|
|
1742
|
+
<div class="col span-6">
|
|
1743
|
+
<UnitInput
|
|
1744
|
+
v-model="rkeConfig.etcd.snapshotRetention"
|
|
1745
|
+
:mode="mode"
|
|
1746
|
+
:label="t('cluster.rke2.etcd.snapshotRetention.label')"
|
|
1747
|
+
:suffix="t('cluster.rke2.snapshots.suffix')"
|
|
1748
|
+
/>
|
|
1749
|
+
</div>
|
|
1750
|
+
</div>
|
|
1751
|
+
|
|
1752
|
+
<template v-if="rkeConfig.etcd.disableSnapshots !== true">
|
|
1753
|
+
<div class="spacer" />
|
|
1754
|
+
|
|
1755
|
+
<RadioGroup
|
|
1756
|
+
v-model="s3Backup"
|
|
1757
|
+
name="etcd-s3"
|
|
1758
|
+
:options="[false, true]"
|
|
1759
|
+
label="Backup Snapshots to S3"
|
|
1760
|
+
:labels="['Disable','Enable']"
|
|
1761
|
+
:mode="mode"
|
|
1762
|
+
/>
|
|
1763
|
+
|
|
1764
|
+
<S3Config
|
|
1765
|
+
v-if="s3Backup"
|
|
1766
|
+
v-model="rkeConfig.etcd.s3"
|
|
1767
|
+
:namespace="value.metadata.namespace"
|
|
1768
|
+
:register-before-hook="registerBeforeHook"
|
|
1769
|
+
:mode="mode"
|
|
1770
|
+
/>
|
|
1771
|
+
</template>
|
|
1772
|
+
|
|
1773
|
+
<div class="spacer" />
|
|
1774
|
+
|
|
1775
|
+
<div class="row">
|
|
1776
|
+
<div class="col span-6">
|
|
1777
|
+
<RadioGroup
|
|
1778
|
+
v-if="serverArgs['etcd-expose-metrics']"
|
|
1779
|
+
v-model="serverConfig['etcd-expose-metrics']"
|
|
1780
|
+
name="etcd-expose-metrics"
|
|
1781
|
+
:options="[false, true]"
|
|
1782
|
+
:label="t('cluster.rke2.etcd.exportMetric.label')"
|
|
1783
|
+
:labels="[t('cluster.rke2.etcd.exportMetric.false'), t('cluster.rke2.etcd.exportMetric.true')]"
|
|
1784
|
+
:mode="mode"
|
|
1785
|
+
/>
|
|
1786
|
+
</div>
|
|
1787
|
+
</div>
|
|
1788
|
+
</Tab>
|
|
1789
|
+
|
|
1790
|
+
<Tab v-if="haveArgInfo" name="networking" label-key="cluster.tabs.networking">
|
|
1791
|
+
<h3>
|
|
1792
|
+
{{ t('cluster.rke2.address.header') }}
|
|
1793
|
+
<i v-tooltip="t('cluster.rke2.address.tooltip')" class="icon icon-info" />
|
|
1794
|
+
</h3>
|
|
1795
|
+
<Banner v-if="showIpv6Warning" color="warning">
|
|
1796
|
+
{{ t('cluster.rke2.address.ipv6.warning') }}
|
|
1797
|
+
</Banner>
|
|
1798
|
+
<div class="row mb-20">
|
|
1799
|
+
<div v-if="serverArgs['cluster-cidr']" class="col span-6">
|
|
1800
|
+
<LabeledInput
|
|
1801
|
+
v-model="serverConfig['cluster-cidr']"
|
|
1802
|
+
:mode="mode"
|
|
1803
|
+
:disabled="clusterIsAlreadyCreated"
|
|
1804
|
+
:label="t('cluster.rke2.address.clusterCidr.label')"
|
|
1805
|
+
/>
|
|
1806
|
+
</div>
|
|
1807
|
+
<div v-if="serverArgs['service-cidr']" class="col span-6">
|
|
1808
|
+
<LabeledInput
|
|
1809
|
+
v-model="serverConfig['service-cidr']"
|
|
1810
|
+
:mode="mode"
|
|
1811
|
+
:disabled="clusterIsAlreadyCreated"
|
|
1812
|
+
:label="t('cluster.rke2.address.serviceCidr.label')"
|
|
1813
|
+
/>
|
|
1814
|
+
</div>
|
|
1815
|
+
</div>
|
|
1816
|
+
|
|
1817
|
+
<div class="row mb-20">
|
|
1818
|
+
<div v-if="serverArgs['cluster-dns']" class="col span-6">
|
|
1819
|
+
<LabeledInput
|
|
1820
|
+
v-model="serverConfig['cluster-dns']"
|
|
1821
|
+
:mode="mode"
|
|
1822
|
+
:disabled="clusterIsAlreadyCreated"
|
|
1823
|
+
:label="t('cluster.rke2.address.dns.label')"
|
|
1824
|
+
/>
|
|
1825
|
+
</div>
|
|
1826
|
+
<div v-if="serverArgs['cluster-domain']" class="col span-6">
|
|
1827
|
+
<LabeledInput
|
|
1828
|
+
v-model="serverConfig['cluster-domain']"
|
|
1829
|
+
:mode="mode"
|
|
1830
|
+
:disabled="clusterIsAlreadyCreated"
|
|
1831
|
+
:label="t('cluster.rke2.address.domain.label')"
|
|
1832
|
+
/>
|
|
1833
|
+
</div>
|
|
1834
|
+
</div>
|
|
1835
|
+
|
|
1836
|
+
<div v-if="serverArgs['service-node-port-range']" class="row mb-20">
|
|
1837
|
+
<div class="col span-6">
|
|
1838
|
+
<LabeledInput
|
|
1839
|
+
v-model="serverConfig['service-node-port-range']"
|
|
1840
|
+
:mode="mode"
|
|
1841
|
+
:label="t('cluster.rke2.address.nodePortRange.label')"
|
|
1842
|
+
/>
|
|
1843
|
+
</div>
|
|
1844
|
+
</div>
|
|
1845
|
+
|
|
1846
|
+
<div v-if="serverArgs['tls-san']" class="row mb-20">
|
|
1847
|
+
<div class="col span-6">
|
|
1848
|
+
<ArrayList
|
|
1849
|
+
v-model="serverConfig['tls-san']"
|
|
1850
|
+
:protip="false"
|
|
1851
|
+
:mode="mode"
|
|
1852
|
+
:title="t('cluster.rke2.address.tlsSan.label')"
|
|
1853
|
+
/>
|
|
1854
|
+
</div>
|
|
1855
|
+
</div>
|
|
1856
|
+
|
|
1857
|
+
<ACE v-model="value" :mode="mode" />
|
|
1858
|
+
</Tab>
|
|
1859
|
+
|
|
1860
|
+
<Tab name="upgrade" label-key="cluster.tabs.upgrade">
|
|
1861
|
+
<Banner v-if="get(rkeConfig, 'upgradeStrategy.controlPlaneDrainOptions.deleteEmptyDirData')" color="warning">
|
|
1862
|
+
{{ t('cluster.rke2.deleteEmptyDir', {}, true) }}
|
|
1863
|
+
</Banner>
|
|
1864
|
+
<div class="row">
|
|
1865
|
+
<div class="col span-6">
|
|
1866
|
+
<h3>Control Plane</h3>
|
|
1867
|
+
<LabeledInput
|
|
1868
|
+
v-model="rkeConfig.upgradeStrategy.controlPlaneConcurrency"
|
|
1869
|
+
:mode="mode"
|
|
1870
|
+
:label="t('cluster.rke2.controlPlaneConcurrency.label')"
|
|
1871
|
+
:tooltip="t('cluster.rke2.controlPlaneConcurrency.toolTip')"
|
|
1872
|
+
/>
|
|
1873
|
+
<div class="spacer" />
|
|
1874
|
+
<DrainOptions v-model="rkeConfig.upgradeStrategy.controlPlaneDrainOptions" :mode="mode" />
|
|
1875
|
+
</div>
|
|
1876
|
+
<div class="col span-6">
|
|
1877
|
+
<h3>
|
|
1878
|
+
{{ t('cluster.rke2.workNode.label') }}
|
|
1879
|
+
</h3>
|
|
1880
|
+
<LabeledInput
|
|
1881
|
+
v-model="rkeConfig.upgradeStrategy.workerConcurrency"
|
|
1882
|
+
:mode="mode"
|
|
1883
|
+
:label="t('cluster.rke2.workerConcurrency.label')"
|
|
1884
|
+
:tooltip="t('cluster.rke2.workerConcurrency.toolTip')"
|
|
1885
|
+
/>
|
|
1886
|
+
<div class="spacer" />
|
|
1887
|
+
<DrainOptions v-model="rkeConfig.upgradeStrategy.workerDrainOptions" :mode="mode" />
|
|
1888
|
+
</div>
|
|
1889
|
+
</div>
|
|
1890
|
+
</Tab>
|
|
1891
|
+
|
|
1892
|
+
<Tab name="registry" label-key="cluster.tabs.registry">
|
|
1893
|
+
<RadioGroup
|
|
1894
|
+
v-model="registryMode"
|
|
1895
|
+
name="registry-mode"
|
|
1896
|
+
:options="registryOptions"
|
|
1897
|
+
:mode="mode"
|
|
1898
|
+
/>
|
|
1899
|
+
|
|
1900
|
+
<LabeledInput
|
|
1901
|
+
v-if="registryMode !== PUBLIC"
|
|
1902
|
+
v-model="registryHost"
|
|
1903
|
+
class="mt-20"
|
|
1904
|
+
:mode="mode"
|
|
1905
|
+
:required="true"
|
|
1906
|
+
:label="t('cluster.privateRegistry.systemDefaultRegistry.label')"
|
|
1907
|
+
/>
|
|
1908
|
+
|
|
1909
|
+
<SelectOrCreateAuthSecret
|
|
1910
|
+
v-if="registryMode === PRIVATE"
|
|
1911
|
+
v-model="registrySecret"
|
|
1912
|
+
:register-before-hook="registerBeforeHook"
|
|
1913
|
+
:hook-priority="1"
|
|
1914
|
+
:mode="mode"
|
|
1915
|
+
in-store="management"
|
|
1916
|
+
:allow-ssh="false"
|
|
1917
|
+
:allow-rke="true"
|
|
1918
|
+
:vertical="true"
|
|
1919
|
+
:namespace="value.metadata.namespace"
|
|
1920
|
+
generate-name="registryconfig-auth-"
|
|
1921
|
+
/>
|
|
1922
|
+
<template v-else-if="registryMode === ADVANCED">
|
|
1923
|
+
<RegistryMirrors
|
|
1924
|
+
v-model="value"
|
|
1925
|
+
class="mt-20"
|
|
1926
|
+
:mode="mode"
|
|
1927
|
+
/>
|
|
1928
|
+
|
|
1929
|
+
<RegistryConfigs
|
|
1930
|
+
v-model="value"
|
|
1931
|
+
class="mt-20"
|
|
1932
|
+
:mode="mode"
|
|
1933
|
+
:cluster-register-before-hook="registerBeforeHook"
|
|
1934
|
+
/>
|
|
1935
|
+
</template>
|
|
1936
|
+
</Tab>
|
|
1937
|
+
|
|
1938
|
+
<Tab name="addons" label-key="cluster.tabs.addons" @active="showAddons">
|
|
1939
|
+
<Banner
|
|
1940
|
+
v-if="isEdit"
|
|
1941
|
+
color="warning"
|
|
1942
|
+
>
|
|
1943
|
+
{{ t('cluster.addOns.dependencyBanner') }}
|
|
1944
|
+
</Banner>
|
|
1945
|
+
<div v-if="versionInfo && addonVersions.length" :key="addonsRev">
|
|
1946
|
+
<div v-for="v in addonVersions" :key="v._key">
|
|
1947
|
+
<h3>{{ labelForAddon(v.name) }}</h3>
|
|
1948
|
+
<Questions
|
|
1949
|
+
v-if="versionInfo[v.name] && versionInfo[v.name].questions && v.name && userChartValuesTemp[v.name]"
|
|
1950
|
+
v-model="userChartValuesTemp[v.name]"
|
|
1951
|
+
:emit="true"
|
|
1952
|
+
in-store="management"
|
|
1953
|
+
:mode="mode"
|
|
1954
|
+
:tabbed="false"
|
|
1955
|
+
:source="versionInfo[v.name]"
|
|
1956
|
+
:target-namespace="value.metadata.namespace"
|
|
1957
|
+
@updated="updateQuestions(v.name)"
|
|
1958
|
+
/>
|
|
1959
|
+
<YamlEditor
|
|
1960
|
+
v-else
|
|
1961
|
+
ref="yaml-values"
|
|
1962
|
+
:value="initYamlEditor(v.name)"
|
|
1963
|
+
:scrolling="true"
|
|
1964
|
+
:as-object="true"
|
|
1965
|
+
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
|
|
1966
|
+
:hide-preview-buttons="true"
|
|
1967
|
+
@input="data => updateValues(v.name, data)"
|
|
1968
|
+
/>
|
|
1969
|
+
<div class="spacer" />
|
|
1970
|
+
</div>
|
|
1971
|
+
</div>
|
|
1972
|
+
|
|
1973
|
+
<div>
|
|
1974
|
+
<h3>
|
|
1975
|
+
{{ t('cluster.addOns.additionalManifest.title') }}
|
|
1976
|
+
<i
|
|
1977
|
+
v-tooltip="t('cluster.addOns.additionalManifest.tooltip')"
|
|
1978
|
+
class="icon icon-info"
|
|
1979
|
+
/>
|
|
1980
|
+
</h3>
|
|
1981
|
+
<YamlEditor
|
|
1982
|
+
ref="yaml-additional"
|
|
1983
|
+
v-model="rkeConfig.additionalManifest"
|
|
1984
|
+
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
|
|
1985
|
+
initial-yaml-values="# Additional Manifest YAML"
|
|
1986
|
+
class="yaml-editor"
|
|
1987
|
+
/>
|
|
1988
|
+
</div>
|
|
1989
|
+
</Tab>
|
|
1990
|
+
|
|
1991
|
+
<Tab
|
|
1992
|
+
name="advanced"
|
|
1993
|
+
label-key="cluster.tabs.advanced"
|
|
1994
|
+
:weight="-1"
|
|
1995
|
+
@active="refreshYamls"
|
|
1996
|
+
>
|
|
1997
|
+
<template v-if="haveArgInfo">
|
|
1998
|
+
<h3>{{ t('cluster.advanced.argInfo.title') }}</h3>
|
|
1999
|
+
<ArrayListGrouped
|
|
2000
|
+
v-if="agentArgs['kubelet-arg']"
|
|
2001
|
+
v-model="rkeConfig.machineSelectorConfig"
|
|
2002
|
+
class="mb-20"
|
|
2003
|
+
:add-label="t('cluster.advanced.argInfo.machineSelector.label')"
|
|
2004
|
+
:can-remove="canRemoveKubeletRow"
|
|
2005
|
+
:default-add-value="{machineLabelSelector: { matchExpressions: [], matchLabels: {} }, config: {'kubelet-arg': []}}"
|
|
2006
|
+
>
|
|
2007
|
+
<template #default="{row}">
|
|
2008
|
+
<template v-if="row.value.machineLabelSelector">
|
|
2009
|
+
<h3>{{ t('cluster.advanced.argInfo.machineSelector.title') }}</h3>
|
|
2010
|
+
<MatchExpressions
|
|
2011
|
+
v-model="row.value.machineLabelSelector"
|
|
2012
|
+
class="mb-20"
|
|
2013
|
+
:mode="mode"
|
|
2014
|
+
:show-remove="false"
|
|
2015
|
+
:initial-empty-row="true"
|
|
2016
|
+
/>
|
|
2017
|
+
<h3>{{ t('cluster.advanced.argInfo.machineSelector.subTitle') }}</h3>
|
|
2018
|
+
</template>
|
|
2019
|
+
<h3 v-else>
|
|
2020
|
+
{{ advancedTitleAlt }}
|
|
2021
|
+
</h3>
|
|
2022
|
+
|
|
2023
|
+
<ArrayList
|
|
2024
|
+
v-model="row.value.config['kubelet-arg']"
|
|
2025
|
+
:mode="mode"
|
|
2026
|
+
:add-label="t('cluster.advanced.argInfo.machineSelector.listLabel')"
|
|
2027
|
+
:initial-empty-row="!!row.value.machineLabelSelector"
|
|
2028
|
+
/>
|
|
2029
|
+
</template>
|
|
2030
|
+
</ArrayListGrouped>
|
|
2031
|
+
<Banner
|
|
2032
|
+
v-if="rkeConfig.machineSelectorConfig.length > 1"
|
|
2033
|
+
color="info"
|
|
2034
|
+
:label="t('cluster.advanced.argInfo.machineSelector.bannerLabel')"
|
|
2035
|
+
/>
|
|
2036
|
+
|
|
2037
|
+
<ArrayList
|
|
2038
|
+
v-if="serverArgs['kube-controller-manager-arg']"
|
|
2039
|
+
v-model="serverConfig['kube-controller-manager-arg']"
|
|
2040
|
+
:mode="mode"
|
|
2041
|
+
:title="t('cluster.advanced.argInfo.machineSelector.kubeControllerManagerTitle')"
|
|
2042
|
+
class="mb-20"
|
|
2043
|
+
/>
|
|
2044
|
+
<ArrayList
|
|
2045
|
+
v-if="serverArgs['kube-apiserver-arg']"
|
|
2046
|
+
v-model="serverConfig['kube-apiserver-arg']"
|
|
2047
|
+
:mode="mode"
|
|
2048
|
+
:title="t('cluster.advanced.argInfo.machineSelector.kubeApiServerTitle')"
|
|
2049
|
+
class="mb-20"
|
|
2050
|
+
/>
|
|
2051
|
+
<ArrayList
|
|
2052
|
+
v-if="serverArgs['kube-scheduler-arg']"
|
|
2053
|
+
v-model="serverConfig['kube-scheduler-arg']"
|
|
2054
|
+
:mode="mode"
|
|
2055
|
+
:title="t('cluster.advanced.argInfo.machineSelector.kubeSchedulerTitle')"
|
|
2056
|
+
/>
|
|
2057
|
+
</template>
|
|
2058
|
+
<template v-if="agentArgs['protect-kernel-defaults']">
|
|
2059
|
+
<div class="spacer" />
|
|
2060
|
+
|
|
2061
|
+
<div class="row">
|
|
2062
|
+
<div class="col span-12">
|
|
2063
|
+
<Checkbox
|
|
2064
|
+
v-model="agentConfig['protect-kernel-defaults']"
|
|
2065
|
+
:mode="mode"
|
|
2066
|
+
:label="t('cluster.advanced.agentArgs.label')"
|
|
2067
|
+
/>
|
|
2068
|
+
</div>
|
|
2069
|
+
</div>
|
|
2070
|
+
</template>
|
|
2071
|
+
</Tab>
|
|
2072
|
+
|
|
2073
|
+
<AgentEnv v-model="value" :mode="mode" />
|
|
2074
|
+
<Labels v-model="value" :mode="mode" />
|
|
2075
|
+
</Tabbed>
|
|
2076
|
+
</div>
|
|
2077
|
+
|
|
2078
|
+
<Banner
|
|
2079
|
+
v-if="unsupportedSelectorConfig"
|
|
2080
|
+
color="warning"
|
|
2081
|
+
:label="t('cluster.banner.warning')"
|
|
2082
|
+
/>
|
|
2083
|
+
|
|
2084
|
+
<template v-if="needCredential && !credentialId" #form-footer>
|
|
2085
|
+
<div><!-- Hide the outer footer --></div>
|
|
2086
|
+
</template>
|
|
2087
|
+
</CruResource>
|
|
2088
|
+
</template>
|
|
2089
|
+
|
|
2090
|
+
<style lang="scss" scoped>
|
|
2091
|
+
.k3s-tech-preview-info {
|
|
2092
|
+
color: var(--error);
|
|
2093
|
+
padding-top: 10px;
|
|
2094
|
+
}
|
|
2095
|
+
</style>
|