@rancher/shell 2.0.0 → 3.0.0-rc.1
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/styles/global/_labeled-input.scss +22 -11
- package/assets/styles/global/_layout.scss +4 -4
- package/assets/styles/global/_tooltip.scss +4 -3
- package/assets/translations/en-us.yaml +44 -8
- package/chart/__tests__/S3.test.ts +21 -14
- package/chart/example.vue +1 -1
- package/chart/gatekeeper.vue +4 -4
- package/chart/istio.vue +11 -11
- package/chart/logging/index.vue +8 -8
- package/chart/monitoring/ClusterSelector.vue +13 -13
- package/chart/monitoring/alerting/index.vue +6 -6
- package/chart/monitoring/grafana/index.vue +14 -14
- package/chart/monitoring/index.vue +122 -108
- package/chart/monitoring/prometheus/index.vue +18 -18
- package/chart/rancher-backup/S3.vue +11 -11
- package/chart/rancher-backup/index.vue +68 -60
- package/cloud-credential/__tests__/azure.test.ts +7 -17
- package/cloud-credential/__tests__/harvester.test.ts +2 -2
- package/cloud-credential/aws.vue +3 -3
- package/cloud-credential/azure.vue +4 -4
- package/cloud-credential/digitalocean.vue +1 -1
- package/cloud-credential/gcp.vue +1 -1
- package/cloud-credential/generic.vue +1 -1
- package/cloud-credential/harvester.vue +1 -1
- package/cloud-credential/linode.vue +1 -1
- package/cloud-credential/pnap.vue +2 -2
- package/cloud-credential/s3.vue +8 -8
- package/cloud-credential/vmwarevsphere.vue +4 -4
- package/components/ActionDropdown.vue +3 -3
- package/components/ActionMenu.vue +1 -1
- package/components/AlertTable.vue +18 -8
- package/components/AppModal.vue +20 -9
- package/components/AssignTo.vue +38 -37
- package/components/AsyncButton.vue +4 -7
- package/components/ButtonDropdown.vue +14 -13
- package/components/ButtonGroup.vue +1 -1
- package/components/Carousel.vue +1 -1
- package/components/Certificates.vue +1 -1
- package/components/ChartReadme.vue +7 -7
- package/components/CodeMirror.vue +2 -2
- package/components/CommunityLinks.vue +2 -2
- package/components/ConsumptionGauge.vue +1 -1
- package/components/ContainerResourceLimit.vue +11 -11
- package/components/CountGauge.vue +1 -1
- package/components/CreateDriver.vue +4 -4
- package/components/CruResource.vue +34 -20
- package/components/DashboardMetrics.vue +3 -3
- package/components/DashboardOptions.vue +3 -3
- package/components/DetailTop.vue +3 -3
- package/components/DisableAuthProviderModal.vue +7 -8
- package/components/EmberPage.vue +1 -1
- package/components/EtcdInfoBanner.vue +1 -1
- package/components/ExplorerMembers.vue +8 -9
- package/components/ExplorerProjectsNamespaces.vue +6 -7
- package/components/FileDiff.vue +1 -1
- package/components/FixedBanner.vue +1 -0
- package/components/GlobalRoleBindings.vue +5 -6
- package/components/GradientBox.vue +1 -2
- package/components/GrafanaDashboard.vue +13 -11
- package/components/GrowlManager.vue +1 -1
- package/components/HarvesterServiceAddOnConfig.vue +2 -2
- package/components/IconOrSvg.vue +1 -2
- package/components/Import.vue +4 -3
- package/components/Inactivity.vue +2 -2
- package/components/IndentedPanel.vue +0 -1
- package/components/InputOrDisplay.vue +3 -2
- package/components/KeyValueView.vue +4 -3
- package/components/LandingPagePreference.vue +3 -2
- package/components/LazyImage.vue +1 -1
- package/components/Loading.vue +1 -1
- package/components/LocaleSelector.vue +4 -4
- package/components/Markdown.vue +1 -1
- package/components/ModalWithCard.vue +1 -4
- package/components/MoveModal.vue +10 -11
- package/components/PercentageBar.vue +7 -7
- package/components/PodSecurityAdmission.vue +13 -13
- package/components/PromptChangePassword.vue +9 -9
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +35 -37
- package/components/PromptRestore.vue +68 -69
- package/components/Questions/Array.vue +3 -4
- package/components/Questions/Boolean.vue +1 -1
- package/components/Questions/CloudCredential.vue +1 -1
- package/components/Questions/Enum.vue +1 -1
- package/components/Questions/Float.vue +1 -1
- package/components/Questions/Int.vue +1 -1
- package/components/Questions/Question.js +1 -1
- package/components/Questions/QuestionMap.vue +3 -4
- package/components/Questions/Radio.vue +1 -1
- package/components/Questions/Reference.vue +2 -2
- package/components/Questions/String.vue +1 -1
- package/components/Questions/Yaml.vue +1 -1
- package/components/Questions/__tests__/Boolean.test.ts +26 -13
- package/components/Questions/__tests__/Float.test.ts +26 -13
- package/components/Questions/__tests__/Int.test.ts +26 -13
- package/components/Questions/__tests__/String.test.ts +26 -13
- package/components/Questions/__tests__/Yaml.test.ts +26 -14
- package/components/Questions/index.vue +10 -10
- package/components/Random.vue +1 -1
- package/components/ResourceDetail/Masthead.vue +7 -2
- package/components/ResourceDetail/index.vue +6 -3
- package/components/ResourceList/Masthead.vue +4 -0
- package/components/ResourceList/index.vue +10 -4
- package/components/ResourceSummary.vue +1 -1
- package/components/ResourceTable.vue +4 -5
- package/components/ResourceYaml.vue +1 -2
- package/components/RoleBindings.vue +3 -3
- package/components/SideNav.vue +8 -6
- package/components/SimpleBox.vue +0 -1
- package/components/SortableTable/THead.vue +5 -5
- package/components/SortableTable/index.vue +21 -20
- package/components/SortableTable/sortable-config.ts +4 -0
- package/components/StatusTable.vue +1 -1
- package/components/TabTitle.vue +3 -9
- package/components/Tabbed/Tab.vue +1 -1
- package/components/Tabbed/index.vue +2 -4
- package/components/Wizard.vue +8 -3
- package/components/YamlEditor.vue +4 -4
- package/components/__tests__/AppModal.test.ts +33 -25
- package/components/__tests__/ApplicationCard.test.ts +1 -1
- package/components/__tests__/AsyncButton.test.ts +42 -34
- package/components/__tests__/BackLink.test.ts +3 -3
- package/components/__tests__/ButtonGroup.test.ts +5 -5
- package/components/__tests__/Carousel.test.ts +2 -2
- package/components/__tests__/Certificates.test.ts +10 -8
- package/components/__tests__/ClusterBadge.test.ts +2 -2
- package/components/__tests__/CodeMirror.test.ts +94 -85
- package/components/__tests__/Collapse.test.ts +3 -3
- package/components/__tests__/CollapsibleCard.test.ts +6 -6
- package/components/__tests__/ConsumptionGauge.test.ts +6 -6
- package/components/__tests__/CruResource.test.ts +67 -56
- package/components/__tests__/EtcdInfoBanner.test.ts +11 -9
- package/components/__tests__/FixedBanner.test.ts +8 -8
- package/components/__tests__/GrowlManager.test.ts +24 -25
- package/components/__tests__/NamespaceFilter.test.ts +48 -34
- package/components/__tests__/PercentageBar.test.ts +10 -10
- package/components/__tests__/PodSecurityAdmission.test.ts +80 -38
- package/components/__tests__/ProjectRow.test.ts +1 -5
- package/components/__tests__/PromptRestore.test.ts +15 -18
- package/components/__tests__/TabTitle.test.ts +21 -14
- package/components/auth/AllowedPrincipals.vue +4 -5
- package/components/auth/RoleDetailEdit.vue +31 -29
- package/components/auth/SelectPrincipal.vue +2 -4
- package/components/auth/__tests__/RoleDetailEdit.test.ts +18 -14
- package/components/auth/login/ldap.vue +2 -2
- package/components/fleet/FleetClusters.vue +0 -1
- package/components/fleet/FleetRepos.vue +0 -1
- package/components/fleet/FleetStatus.vue +3 -3
- package/components/fleet/__tests__/FleetSummary.test.ts +8 -2
- package/components/form/ArrayList.vue +5 -6
- package/components/form/ArrayListGrouped.vue +2 -2
- package/components/form/ArrayListSelect.vue +4 -4
- package/components/form/BannerSettings.vue +10 -10
- package/components/form/ChangePassword.vue +9 -9
- package/components/form/ColorInput.vue +2 -2
- package/components/form/Command.vue +13 -15
- package/components/form/EnvVars.vue +7 -7
- package/components/form/FileImageSelector.vue +1 -1
- package/components/form/GitPicker.vue +7 -7
- package/components/form/HealthCheck.vue +4 -4
- package/components/form/HookOption.vue +13 -13
- package/components/form/InputWithSelect.vue +19 -13
- package/components/form/KeyValue.vue +14 -14
- package/components/form/LabeledSelect.vue +45 -35
- package/components/form/Labels.vue +3 -3
- package/components/form/LifecycleHooks.vue +5 -7
- package/components/form/MatchExpressions.vue +7 -7
- package/components/form/Members/ClusterMembershipEditor.vue +1 -2
- package/components/form/Members/ClusterPermissionsEditor.vue +9 -9
- package/components/form/Members/MembershipEditor.vue +4 -5
- package/components/form/Members/ProjectMembershipEditor.vue +1 -2
- package/components/form/NameNsDescription.vue +12 -13
- package/components/form/Networking.vue +17 -17
- package/components/form/NodeAffinity.vue +9 -10
- package/components/form/NodeScheduling.vue +7 -7
- package/components/form/NotificationSettings.vue +2 -2
- package/components/form/Password.vue +2 -2
- package/components/form/PodAffinity.vue +21 -23
- package/components/form/PodSecurity.vue +6 -6
- package/components/form/Ports.vue +5 -5
- package/components/form/Probe.vue +20 -20
- package/components/form/ProjectMemberEditor.vue +9 -9
- package/components/form/ResourceLabeledSelect.vue +11 -4
- package/components/form/ResourceQuota/Namespace.vue +3 -3
- package/components/form/ResourceQuota/NamespaceRow.vue +3 -3
- package/components/form/ResourceQuota/Project.vue +7 -6
- package/components/form/ResourceQuota/ProjectRow.vue +113 -114
- package/components/form/ResourceSelector.vue +3 -3
- package/components/form/ResourceTabs/index.vue +1 -1
- package/components/form/RuleSelector.vue +7 -6
- package/components/form/SecretSelector.vue +5 -6
- package/components/form/Security.vue +14 -14
- package/components/form/Select.vue +21 -11
- package/components/form/SelectOrCreateAuthSecret.vue +30 -27
- package/components/form/ServiceNameSelect.vue +8 -5
- package/components/form/ServicePorts.vue +4 -4
- package/components/form/ShellInput.vue +3 -3
- package/components/form/SimpleSecretSelector.vue +2 -2
- package/components/form/Taints.vue +18 -11
- package/components/form/Tolerations.vue +12 -12
- package/components/form/UnitInput.vue +1 -1
- package/components/form/ValueFromResource.vue +17 -17
- package/components/form/WorkloadPorts.vue +21 -21
- package/components/form/__tests__/ArrayList.test.ts +14 -11
- package/components/form/__tests__/ArrayListGrouped.test.ts +4 -4
- package/components/form/__tests__/BannerSettings.test.ts +6 -5
- package/components/form/__tests__/Command.test.ts +12 -12
- package/components/form/__tests__/Error.test.ts +5 -5
- package/components/form/__tests__/FileImageSelector.test.ts +5 -5
- package/components/form/__tests__/FileSelector.test.ts +9 -9
- package/components/form/__tests__/InputWithSelect.test.ts +42 -0
- package/components/form/__tests__/KeyValue.test.ts +28 -18
- package/components/form/__tests__/LabeledSelect.test.ts +9 -9
- package/components/form/__tests__/MatchExpressions.test.ts +10 -10
- package/components/form/__tests__/NameNsDescription.test.ts +28 -25
- package/components/form/__tests__/NodeAffinity.test.ts +4 -3
- package/components/form/__tests__/PodAffinity.test.ts +4 -3
- package/components/form/__tests__/Probe.test.ts +6 -6
- package/components/form/__tests__/Security.test.ts +6 -6
- package/components/form/__tests__/Select.test.ts +30 -0
- package/components/form/__tests__/ServiceNameSelect.test.ts +42 -0
- package/components/form/__tests__/Taints.test.ts +71 -0
- package/components/form/__tests__/UnitInput.test.ts +20 -24
- package/components/form/labeled-select-utils/labeled-select.utils.ts +1 -1
- package/components/formatter/AppSummaryGraph.vue +4 -4
- package/components/formatter/ClusterLink.vue +1 -1
- package/components/formatter/Endpoints.vue +4 -1
- package/components/formatter/FleetSummaryGraph.vue +4 -4
- package/components/formatter/ListLink.vue +1 -1
- package/components/formatter/ListLinkDetail.vue +2 -2
- package/components/formatter/LiveExpiryBadgeState.vue +18 -5
- package/components/formatter/LiveExpiryDate.vue +1 -1
- package/components/formatter/MachineSummaryGraph.vue +4 -4
- package/components/formatter/PercentageBar.vue +1 -1
- package/components/formatter/Principal.vue +0 -1
- package/components/formatter/PrincipalGroupBindings.vue +5 -5
- package/components/formatter/ReceiverIcons.vue +5 -3
- package/components/formatter/Scale.vue +4 -4
- package/components/formatter/ServiceTargets.vue +1 -1
- package/components/formatter/VirtualServiceGateways.vue +1 -1
- package/components/formatter/Weight.vue +2 -2
- package/components/formatter/WorkloadDetailEndpoints.vue +4 -1
- package/components/formatter/WorkloadHealthScale.vue +5 -6
- package/components/formatter/__tests__/Checked.test.ts +2 -2
- package/components/formatter/__tests__/ClusterLink.test.ts +3 -3
- package/components/formatter/__tests__/Date.test.ts +8 -8
- package/components/formatter/__tests__/LinkDetail.test.ts +10 -10
- package/components/formatter/__tests__/LiveDate.test.ts +21 -15
- package/components/formatter/__tests__/PodsUsage.test.ts +5 -5
- package/components/formatter/__tests__/Si.test.ts +3 -3
- package/components/formatter/__tests__/WorkloadDetailEndpoints.test.ts +5 -5
- package/components/graph/LinePlot.vue +1 -2
- package/components/nav/Group.vue +11 -6
- package/components/nav/Header.vue +162 -128
- package/components/nav/Jump.vue +1 -1
- package/components/nav/NamespaceFilter.vue +1 -1
- package/components/nav/TopLevelMenu.vue +15 -18
- package/components/nav/Type.vue +7 -7
- package/components/nav/WindowManager/ContainerLogs.vue +53 -38
- package/components/nav/WindowManager/ContainerShell.vue +38 -37
- package/components/nav/WindowManager/Window.vue +1 -1
- package/components/nav/WindowManager/__tests__/ContainerLogs.test.ts +192 -184
- package/components/nav/WindowManager/__tests__/ContainerShell.test.ts +21 -17
- package/components/nav/WindowManager/index.vue +4 -4
- package/components/nav/WorkspaceSwitcher.vue +16 -16
- package/components/nav/__tests__/TopLevelMenu.test.ts +354 -308
- package/components/nav/__tests__/Type.test.ts +194 -111
- package/components/nuxt/nuxt-build-indicator.vue +79 -52
- package/components/nuxt/nuxt-child.js +24 -25
- package/components/nuxt/nuxt-error.vue +48 -18
- package/components/nuxt/nuxt-link.client.js +4 -3
- package/components/nuxt/nuxt-loading.vue +96 -85
- package/components/templates/blank.vue +0 -1
- package/components/templates/default.vue +0 -4
- package/components/templates/home.vue +4 -4
- package/components/templates/plain.vue +3 -2
- package/composables/useI18n.ts +1 -1
- package/composables/useLabeledFormElement.ts +12 -1
- package/composables/useUserRetentionValidation.test.ts +178 -0
- package/composables/useUserRetentionValidation.ts +201 -0
- package/config/__test__/home-links.test.ts +2 -7
- package/config/pagination-table-headers.js +5 -4
- package/config/product/auth.js +1 -1
- package/config/query-params.js +1 -0
- package/config/roles.ts +34 -19
- package/config/router/index.js +10 -7
- package/config/router/navigation-guards/attempt-first-login.js +1 -1
- package/config/router/navigation-guards/authentication.js +2 -1
- package/{middleware/authenticated.js → config/router/navigation-guards/clusters.js} +28 -86
- package/config/router/navigation-guards/history.js +13 -0
- package/config/router/navigation-guards/i18n.js +13 -0
- package/config/router/navigation-guards/index.js +9 -1
- package/config/router/navigation-guards/install-redirect.js +95 -0
- package/config/router/navigation-guards/load-initial-settings.js +1 -1
- package/config/router/navigation-guards/page-title.js +12 -0
- package/config/router/navigation-guards/products.js +15 -0
- package/config/router/navigation-guards/runtime-extension-route.js +31 -0
- package/config/router/navigation-guards/server-upgrade-growl.js +19 -0
- package/config/router/routes.js +49 -23
- package/config/settings.ts +1 -1
- package/config/store.js +2 -5
- package/config/types.js +18 -0
- package/config/uiplugins.js +2 -2
- package/core/plugin-routes.ts +11 -14
- package/core/plugin.ts +10 -10
- package/core/plugins-loader.js +1 -3
- package/core/plugins.js +7 -1
- package/core/types.ts +7 -7
- package/detail/__tests__/autoscaling.horizontalpodautoscaler.test.ts +3 -3
- package/detail/__tests__/provisioning.cattle.io.cluster.test.ts +46 -4
- package/detail/__tests__/service.test.ts +6 -6
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +6 -5
- package/detail/catalog.cattle.io.app.vue +2 -2
- package/detail/cis.cattle.io.clusterscan.vue +3 -3
- package/detail/configmap.vue +4 -1
- package/detail/fleet.cattle.io.cluster.vue +2 -1
- package/detail/fleet.cattle.io.clustergroup.vue +2 -1
- package/detail/fleet.cattle.io.gitrepo.vue +2 -1
- package/detail/harvesterhci.io.management.cluster.vue +2 -1
- package/detail/helm.cattle.io.projecthelmchart.vue +3 -3
- package/detail/management.cattle.io.user.vue +2 -1
- package/detail/namespace.vue +2 -1
- package/detail/networking.k8s.io.ingress.vue +4 -2
- package/detail/node.vue +2 -1
- package/detail/provisioning.cattle.io.cluster.vue +10 -11
- package/detail/secret.vue +3 -2
- package/detail/service.vue +2 -1
- package/detail/workload/index.vue +1 -19
- package/dialog/AddClusterMemberDialog.vue +30 -31
- package/dialog/AddCustomBadgeDialog.vue +101 -104
- package/dialog/AddProjectMemberDialog.vue +45 -46
- package/dialog/AddonConfigConfirmationDialog.vue +22 -24
- package/dialog/DeactivateDriverDialog.vue +35 -17
- package/dialog/DiagnosticTimingsDialog.vue +29 -29
- package/dialog/DrainNode.vue +245 -249
- package/dialog/ForceMachineRemoveDialog.vue +32 -34
- package/dialog/GenericPrompt.vue +23 -25
- package/dialog/RollbackWorkloadDialog.vue +68 -71
- package/dialog/RotateCertificatesDialog.vue +17 -18
- package/dialog/RotateEncryptionKeyDialog.vue +46 -47
- package/dialog/SaveAsRKETemplateDialog.vue +46 -47
- package/dialog/ScaleMachineDownDialog.vue +3 -3
- package/dialog/ScalePoolDownDialog.vue +22 -24
- package/dialog/SloDialog.vue +95 -0
- package/directives/clean-html.js +3 -3
- package/directives/clean-tooltip.js +1 -1
- package/directives/focus.js +17 -11
- package/directives/int-number.js +2 -2
- package/directives/positive-int-number.js +2 -2
- package/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +7 -13
- package/edit/__tests__/kontainerDriver.test.ts +23 -20
- package/edit/__tests__/management.cattle.io.clusterroletemplatebinding.test.ts +31 -29
- package/edit/__tests__/management.cattle.io.setting.test.ts +20 -18
- package/edit/__tests__/monitoring.coreos.com.prometheusrule.test.ts +17 -15
- package/edit/__tests__/namespace.test.ts +29 -26
- package/edit/__tests__/nodeDriver.test.ts +35 -53
- package/edit/__tests__/service.test.ts +20 -17
- package/edit/__tests__/ui.cattle.io.navlink.test.ts +22 -20
- package/edit/auth/__tests__/AuthProviderWarningBanners.test.ts +2 -2
- package/edit/auth/__tests__/azuread.test.ts +43 -45
- package/edit/auth/__tests__/oidc.test.ts +38 -41
- package/edit/auth/azuread.vue +16 -23
- package/edit/auth/github.vue +6 -6
- package/edit/auth/googleoauth.vue +7 -7
- package/edit/auth/ldap/config.vue +29 -29
- package/edit/auth/ldap/index.vue +5 -5
- package/edit/auth/oidc.vue +18 -18
- package/edit/auth/saml.vue +94 -24
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +7 -7
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +18 -16
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +12 -12
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +5 -5
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/catalog.cattle.io.clusterrepo.vue +31 -32
- package/edit/cis.cattle.io.clusterscan.vue +9 -9
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +7 -7
- package/edit/cis.cattle.io.clusterscanprofile.vue +3 -3
- package/edit/cloudcredential.vue +13 -8
- package/edit/configmap.vue +7 -7
- package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +3 -3
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +1 -1
- package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +1 -1
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +21 -22
- package/edit/fleet.cattle.io.cluster.vue +2 -1
- package/edit/fleet.cattle.io.clustergroup.vue +3 -2
- package/edit/fleet.cattle.io.gitrepo.vue +18 -18
- package/edit/helm.cattle.io.projecthelmchart.vue +4 -4
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +3 -2
- package/edit/logging-flow/Match.vue +4 -4
- package/edit/logging-flow/index.vue +11 -10
- package/edit/logging.banzaicloud.io.output/__tests__/logging.banzaicloud.io.output.test.ts +79 -73
- package/edit/logging.banzaicloud.io.output/index.vue +4 -4
- package/edit/logging.banzaicloud.io.output/providers/__tests__/loki.test.ts +1 -1
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +4 -4
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +16 -16
- package/edit/logging.banzaicloud.io.output/providers/file.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +9 -9
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +15 -15
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +7 -7
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +19 -19
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +1 -1
- package/edit/management.cattle.io.fleetworkspace.vue +6 -4
- package/edit/management.cattle.io.node.vue +1 -1
- package/edit/management.cattle.io.project.vue +13 -10
- package/edit/management.cattle.io.projectroletemplatebinding.vue +3 -3
- package/edit/management.cattle.io.setting.vue +6 -6
- package/edit/management.cattle.io.user.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +2 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +5 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +11 -11
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +2 -2
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +10 -9
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +5 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +9 -9
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +36 -36
- package/edit/monitoring.coreos.com.prometheusrule/RecordingRule.vue +4 -4
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +9 -9
- package/edit/monitoring.coreos.com.receiver/auth.vue +9 -9
- package/edit/monitoring.coreos.com.receiver/index.vue +8 -8
- package/edit/monitoring.coreos.com.receiver/tls.vue +4 -4
- package/edit/monitoring.coreos.com.receiver/types/__tests__/email.test.ts +20 -16
- package/edit/monitoring.coreos.com.receiver/types/email.vue +12 -11
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +11 -11
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +7 -7
- package/edit/monitoring.coreos.com.route.vue +10 -10
- package/edit/namespace.vue +7 -7
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +12 -12
- package/edit/networking.istio.io.destinationrule/index.vue +15 -15
- package/edit/networking.k8s.io.ingress/Certificate.vue +5 -5
- package/edit/networking.k8s.io.ingress/Certificates.vue +2 -2
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +18 -18
- package/edit/networking.k8s.io.ingress/IngressClass.vue +1 -1
- package/edit/networking.k8s.io.ingress/Rule.vue +9 -7
- package/edit/networking.k8s.io.ingress/RulePath.vue +10 -10
- package/edit/networking.k8s.io.ingress/Rules.vue +3 -3
- package/edit/networking.k8s.io.ingress/index.vue +12 -8
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +4 -4
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +1 -1
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +47 -32
- package/edit/networking.k8s.io.networkpolicy/PolicyRules.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/__tests__/PolicyRuleTarget.test.ts +27 -26
- package/edit/networking.k8s.io.networkpolicy/index.vue +16 -14
- package/edit/node.vue +3 -2
- package/edit/nodeDriver.vue +6 -1
- package/edit/persistentvolume/__tests__/persistentvolume.test.ts +56 -50
- package/edit/persistentvolume/index.vue +23 -23
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +8 -8
- package/edit/persistentvolume/plugins/azureDisk.vue +10 -10
- package/edit/persistentvolume/plugins/azureFile.vue +6 -6
- package/edit/persistentvolume/plugins/cephfs.vue +10 -10
- package/edit/persistentvolume/plugins/cinder.vue +8 -8
- package/edit/persistentvolume/plugins/csi.vue +18 -18
- package/edit/persistentvolume/plugins/fc.vue +9 -9
- package/edit/persistentvolume/plugins/flexVolume.vue +9 -9
- package/edit/persistentvolume/plugins/flocker.vue +3 -3
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +8 -8
- package/edit/persistentvolume/plugins/glusterfs.vue +5 -5
- package/edit/persistentvolume/plugins/hostPath.vue +4 -4
- package/edit/persistentvolume/plugins/iscsi.vue +18 -18
- package/edit/persistentvolume/plugins/local.vue +2 -2
- package/edit/persistentvolume/plugins/longhorn.vue +8 -8
- package/edit/persistentvolume/plugins/nfs.vue +5 -5
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +5 -5
- package/edit/persistentvolume/plugins/portworxVolume.vue +6 -6
- package/edit/persistentvolume/plugins/quobyte.vue +7 -7
- package/edit/persistentvolume/plugins/rbd.vue +12 -12
- package/edit/persistentvolume/plugins/scaleIO.vue +15 -15
- package/edit/persistentvolume/plugins/storageos.vue +9 -9
- package/edit/persistentvolume/plugins/vsphereVolume.vue +5 -5
- package/edit/persistentvolumeclaim.vue +26 -25
- package/edit/policy.poddisruptionbudget.vue +12 -11
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +1 -1
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +10 -10
- package/edit/provisioning.cattle.io.cluster/Labels.vue +12 -1
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +5 -5
- package/edit/provisioning.cattle.io.cluster/__tests__/Advanced.test.ts +40 -36
- package/edit/provisioning.cattle.io.cluster/__tests__/Basics.test.ts +170 -78
- package/edit/provisioning.cattle.io.cluster/__tests__/CustomCommand.test.ts +16 -14
- package/edit/provisioning.cattle.io.cluster/__tests__/DirectoryConfig.test.ts +38 -8
- package/edit/provisioning.cattle.io.cluster/__tests__/DrainOptions.test.ts +14 -12
- package/edit/provisioning.cattle.io.cluster/__tests__/index.test.ts +18 -19
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +285 -84
- package/edit/provisioning.cattle.io.cluster/import.vue +7 -4
- package/edit/provisioning.cattle.io.cluster/index.vue +32 -13
- package/edit/provisioning.cattle.io.cluster/rke2.vue +149 -78
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig.vue +5 -5
- package/edit/provisioning.cattle.io.cluster/tabs/Advanced.vue +10 -11
- package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +12 -11
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +62 -24
- package/edit/provisioning.cattle.io.cluster/tabs/DirectoryConfig.vue +9 -9
- package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +12 -12
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/S3Config.vue +15 -15
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +6 -6
- package/edit/provisioning.cattle.io.cluster/tabs/networking/ACE.vue +3 -3
- package/edit/provisioning.cattle.io.cluster/tabs/networking/index.vue +18 -9
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +16 -12
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryMirrors.vue +4 -4
- package/edit/provisioning.cattle.io.cluster/tabs/registries/__tests__/RegistryConfigs.test.ts +64 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/index.vue +8 -6
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/DrainOptions.vue +15 -15
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/index.vue +4 -4
- package/edit/resources.cattle.io.backup.vue +9 -9
- package/edit/resources.cattle.io.restore.vue +11 -11
- package/edit/secret/basic.vue +2 -2
- package/edit/secret/generic.vue +1 -1
- package/edit/secret/index.vue +12 -10
- package/edit/secret/registry.vue +4 -4
- package/edit/secret/ssh.vue +2 -2
- package/edit/secret/tls.vue +2 -2
- package/edit/service.vue +23 -23
- package/edit/serviceaccount.vue +4 -4
- package/edit/storage.k8s.io.storageclass/index.vue +13 -13
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +1 -1
- package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +2 -2
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +4 -4
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +12 -12
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +3 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +3 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +4 -4
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +6 -6
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +9 -9
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +7 -7
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +8 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +11 -11
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +8 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +5 -5
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +7 -7
- package/edit/token.vue +6 -5
- package/edit/ui.cattle.io.navlink.vue +28 -27
- package/edit/workload/Job.vue +16 -16
- package/edit/workload/Upgrading.vue +16 -16
- package/edit/workload/VolumeClaimTemplate.vue +3 -3
- package/edit/workload/__tests__/Job.test.ts +8 -8
- package/edit/workload/__tests__/index.test.ts +32 -29
- package/edit/workload/index.vue +29 -28
- package/edit/workload/mixins/workload.js +30 -30
- package/edit/workload/storage/ContainerMountPaths.vue +3 -4
- package/edit/workload/storage/Mount.vue +3 -3
- package/edit/workload/storage/__tests__/Mount.test.ts +13 -13
- package/edit/workload/storage/__tests__/Storage.test.ts +26 -20
- package/edit/workload/storage/awsElasticBlockStore.vue +4 -4
- package/edit/workload/storage/azureDisk.vue +7 -7
- package/edit/workload/storage/azureFile.vue +5 -5
- package/edit/workload/storage/csi/driver.longhorn.io.vue +3 -3
- package/edit/workload/storage/csi/index.vue +4 -4
- package/edit/workload/storage/emptyDir.vue +4 -4
- package/edit/workload/storage/ephemeralVolume/index.vue +3 -3
- package/edit/workload/storage/gcePersistentDisk.vue +4 -4
- package/edit/workload/storage/hostPath.vue +4 -4
- package/edit/workload/storage/index.vue +3 -4
- package/edit/workload/storage/nfs.vue +4 -4
- package/edit/workload/storage/persistentVolumeClaim/__tests__/persistentvolumeclaim.test.ts +18 -16
- package/edit/workload/storage/persistentVolumeClaim/index.vue +5 -5
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +15 -15
- package/edit/workload/storage/secret.vue +9 -9
- package/edit/workload/storage/vsphereVolume.vue +4 -4
- package/initialize/App.vue +10 -8
- package/initialize/app-extended.js +14 -30
- package/initialize/entry-helpers.js +32 -429
- package/initialize/entry.js +11 -10
- package/initialize/install-plugins.js +15 -13
- package/list/__tests__/workload.test.ts +22 -20
- package/list/catalog.cattle.io.app.vue +1 -1
- package/list/cis.cattle.io.clusterscan.vue +1 -2
- package/list/fleet.cattle.io.clustergroup.vue +0 -1
- package/list/group.principal.vue +1 -1
- package/list/management.cattle.io.feature.vue +27 -31
- package/list/management.cattle.io.fleetworkspace.vue +0 -1
- package/list/management.cattle.io.setting.vue +2 -2
- package/list/management.cattle.io.user.vue +1 -1
- package/list/namespace.vue +0 -1
- package/list/node.vue +4 -5
- package/list/provisioning.cattle.io.cluster.vue +1 -1
- package/list/rbac.authorization.k8s.io.clusterrolebinding.vue +0 -1
- package/machine-config/__tests__/vmwarevsphere.test.ts +10 -7
- package/machine-config/amazonec2.vue +26 -26
- package/machine-config/azure.vue +31 -31
- package/machine-config/digitalocean.vue +8 -8
- package/machine-config/generic.vue +2 -1
- package/machine-config/linode.vue +4 -4
- package/machine-config/pnap.vue +11 -11
- package/machine-config/vmwarevsphere-config.ts +17 -0
- package/machine-config/vmwarevsphere.vue +400 -410
- package/mixins/__tests__/chart.test.ts +45 -24
- package/mixins/auth-config.js +37 -11
- package/mixins/chart.js +31 -15
- package/mixins/compact-input.ts +2 -3
- package/mixins/labeled-form-element.ts +8 -3
- package/mixins/resource-fetch.js +4 -3
- package/models/__tests__/apps.deployment.test.ts +93 -0
- package/models/apps.deployment.js +18 -4
- package/models/apps.statefulset.js +1 -2
- package/models/batch.cronjob.js +1 -2
- package/models/catalog.cattle.io.clusterrepo.js +1 -2
- package/models/driver.js +3 -2
- package/models/fleet.cattle.io.gitrepo.js +1 -2
- package/models/helm.cattle.io.projecthelmchart.js +2 -3
- package/models/kontainerdriver.js +30 -13
- package/models/management.cattle.io.authconfig.js +2 -2
- package/models/management.cattle.io.cluster.js +2 -2
- package/models/management.cattle.io.roletemplate.js +2 -3
- package/models/namespace.js +1 -2
- package/models/networking.istio.io.destinationrule.js +2 -3
- package/models/nodedriver.js +30 -13
- package/models/persistentvolumeclaim.js +2 -3
- package/models/provisioning.cattle.io.cluster.js +4 -0
- package/models/workload.js +2 -2
- package/package.json +44 -42
- package/pages/404.vue +15 -0
- package/pages/__tests__/prefs.test.ts +44 -44
- package/pages/about.vue +4 -4
- package/pages/account/index.vue +1 -2
- package/pages/auth/login.vue +29 -9
- package/pages/auth/logout.vue +23 -1
- package/pages/auth/setup.vue +35 -31
- package/pages/auth/verify.vue +38 -5
- package/pages/c/_cluster/_product/namespaces.vue +1 -2
- package/pages/c/_cluster/apps/charts/chart.vue +4 -4
- package/pages/c/_cluster/apps/charts/index.vue +16 -16
- package/pages/c/_cluster/apps/charts/install.vue +49 -82
- package/pages/c/_cluster/auth/config/index.vue +2 -2
- package/pages/c/_cluster/auth/roles/index.vue +2 -2
- package/pages/c/_cluster/auth/user.retention/index.vue +34 -95
- package/pages/c/_cluster/explorer/EventsTable.vue +1 -1
- package/pages/c/_cluster/explorer/__tests__/index.test.ts +32 -34
- package/pages/c/_cluster/explorer/index.vue +9 -6
- package/pages/c/_cluster/explorer/tools/__tests__/index.test.ts +22 -20
- package/pages/c/_cluster/fleet/index.vue +5 -6
- package/pages/c/_cluster/gatekeeper/index.vue +4 -5
- package/pages/c/_cluster/istio/index.vue +4 -6
- package/pages/c/_cluster/logging/index.vue +9 -5
- package/pages/c/_cluster/longhorn/__tests__/longhorn.index.test.ts +7 -5
- package/pages/c/_cluster/longhorn/index.vue +2 -9
- package/pages/c/_cluster/manager/drivers/kontainerDriver/index.vue +1 -4
- package/pages/c/_cluster/manager/drivers/nodeDriver/index.vue +1 -4
- package/pages/c/_cluster/manager/jwt.authentication/index.vue +14 -5
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +7 -9
- package/pages/c/_cluster/neuvector/index.vue +7 -10
- package/pages/c/_cluster/settings/DefaultLinksEditor.vue +7 -9
- package/pages/c/_cluster/settings/banners.vue +82 -84
- package/pages/c/_cluster/settings/brand.vue +21 -19
- package/pages/c/_cluster/settings/links.vue +6 -4
- package/pages/c/_cluster/settings/performance.vue +25 -21
- package/pages/c/_cluster/uiplugins/AddExtensionRepos.vue +2 -2
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogLoadDialog.vue +43 -45
- package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +5 -5
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +3 -2
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +3 -3
- package/pages/c/_cluster/uiplugins/__tests__/AddExtensionRepos.test.ts +20 -15
- package/pages/c/_cluster/uiplugins/__tests__/SetupUIPlugins.test.ts +12 -9
- package/pages/c/_cluster/uiplugins/index.vue +173 -176
- package/pages/diagnostic.vue +6 -9
- package/pages/fail-whale.vue +3 -1
- package/pages/home.vue +8 -17
- package/pages/index.vue +17 -16
- package/pages/prefs.vue +12 -12
- package/pages/support/index.vue +3 -3
- package/pkg/tsconfig.json +0 -1
- package/plugins/clean-html-directive.js +4 -3
- package/plugins/clean-tooltip-directive.js +4 -3
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/getters.js +1 -1
- package/plugins/dashboard-store/index.js +2 -0
- package/plugins/dashboard-store/mutations.js +5 -5
- package/plugins/dashboard-store/resource-class.js +5 -5
- package/plugins/extend-router.js +62 -42
- package/plugins/floating-vue.js +1 -0
- package/plugins/formatters.js +1 -1
- package/plugins/global-formatters.js +3 -14
- package/plugins/i18n.js +17 -22
- package/plugins/int-number.js +4 -3
- package/plugins/positive-int-number.js +4 -3
- package/plugins/shortkey.js +273 -0
- package/plugins/steve/__tests__/getters.test.ts +6 -3
- package/plugins/steve/getters.js +6 -4
- package/plugins/steve/hybrid-class.js +7 -12
- package/plugins/steve/mutations.js +1 -2
- package/plugins/steve/norman-class.js +10 -11
- package/plugins/steve/subscribe.js +3 -1
- package/plugins/trim-whitespace.js +4 -3
- package/promptRemove/management.cattle.io.globalrole.vue +1 -5
- package/promptRemove/management.cattle.io.project.vue +1 -1
- package/promptRemove/pod.vue +16 -8
- package/public/index.html +53 -52
- package/rancher-components/BadgeState/BadgeState.test.ts +1 -1
- package/rancher-components/BadgeState/BadgeState.vue +1 -1
- package/rancher-components/Banner/Banner.test.ts +2 -2
- package/rancher-components/Form/Checkbox/Checkbox.test.ts +5 -5
- package/rancher-components/Form/Checkbox/Checkbox.vue +4 -4
- package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +5 -5
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +15 -4
- package/rancher-components/Form/Radio/RadioButton.vue +3 -2
- package/rancher-components/Form/Radio/RadioGroup.test.ts +6 -9
- package/rancher-components/Form/Radio/RadioGroup.vue +4 -5
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +18 -1
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +13 -13
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -1
- package/rancher-components/StringList/StringList.test.ts +22 -22
- package/rancher-components/StringList/StringList.vue +10 -9
- package/scripts/extension/helm/charts/ui-plugin-server/Chart.yaml +1 -1
- package/scripts/publish-shell.sh +53 -58
- package/scripts/test-plugins-build.sh +44 -38
- package/scripts/vue-migrate.js +7 -4
- package/shell/types/shell/index.d.ts +2 -0
- package/store/__tests__/catalog.test.ts +4 -21
- package/store/auth.js +29 -11
- package/store/index.js +17 -9
- package/store/prefs.js +3 -4
- package/types/resources/settings.d.ts +54 -0
- package/types/store/pagination.types.ts +1 -1
- package/utils/__tests__/kontainer.test.ts +89 -1
- package/utils/auth.js +22 -7
- package/utils/axios.js +1 -1
- package/utils/download.js +1 -1
- package/utils/dynamic-importer.js +14 -12
- package/utils/error.js +4 -4
- package/utils/kontainer.ts +5 -1
- package/utils/object.js +4 -5
- package/utils/router.js +7 -1
- package/utils/select.js +1 -1
- package/utils/settings.ts +3 -1
- package/utils/unit-tests/ChildRenderingRouterLinkStub.ts +4 -4
- package/utils/version.js +2 -1
- package/vue.config.js +404 -396
- package/config/middleware.js +0 -6
- package/config/nuxt-paths.js +0 -7
- package/creators/app/app.package.json +0 -13
- package/creators/app/files/.eslintignore +0 -16
- package/creators/app/files/.eslintrc.js +0 -173
- package/creators/app/files/.gitignore +0 -70
- package/creators/app/files/.gitlab-ci.yml +0 -14
- package/creators/app/files/.vscode/settings.json +0 -21
- package/creators/app/files/babel.config.js +0 -1
- package/creators/app/files/tsconfig.json +0 -42
- package/creators/app/files/vue.config.js +0 -6
- package/creators/app/init +0 -120
- package/creators/app/package.json +0 -25
- package/creators/pkg/files/.github/workflows/build-extension-catalog.yml +0 -24
- package/creators/pkg/files/.github/workflows/build-extension-charts.yml +0 -22
- package/creators/pkg/files/babel.config.js +0 -1
- package/creators/pkg/files/index.ts +0 -14
- package/creators/pkg/files/tsconfig.json +0 -53
- package/creators/pkg/files/vue.config.js +0 -1
- package/creators/pkg/init +0 -286
- package/creators/pkg/package.json +0 -19
- package/creators/pkg/pkg.package.json +0 -21
- package/creators/pkg/vue-shim.ts +0 -4
- package/creators/update/init +0 -56
- package/creators/update/package.json +0 -20
- package/creators/update/upgrade +0 -56
- package/pages/c/_cluster/backup/index.vue +0 -11
- package/pages/c/_cluster/cis/index.vue +0 -11
- package/plugins/directives.js +0 -8
- package/plugins/vue-js-modal.js +0 -4
- package/rancher-components/components/Accordion/Accordion.test.ts +0 -45
- package/rancher-components/components/Accordion/Accordion.vue +0 -86
- package/rancher-components/components/Accordion/index.ts +0 -1
- package/rancher-components/components/BadgeState/BadgeState.test.ts +0 -12
- package/rancher-components/components/BadgeState/BadgeState.vue +0 -111
- package/rancher-components/components/BadgeState/index.ts +0 -1
- package/rancher-components/components/Banner/Banner.test.ts +0 -59
- package/rancher-components/components/Banner/Banner.vue +0 -244
- package/rancher-components/components/Banner/index.ts +0 -1
- package/rancher-components/components/Card/Card.test.ts +0 -37
- package/rancher-components/components/Card/Card.vue +0 -167
- package/rancher-components/components/Card/index.ts +0 -1
- package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +0 -68
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +0 -421
- package/rancher-components/components/Form/Checkbox/index.ts +0 -1
- package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +0 -40
- package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +0 -402
- package/rancher-components/components/Form/LabeledInput/index.ts +0 -1
- package/rancher-components/components/Form/Radio/RadioButton.test.ts +0 -33
- package/rancher-components/components/Form/Radio/RadioButton.vue +0 -293
- package/rancher-components/components/Form/Radio/RadioGroup.test.ts +0 -30
- package/rancher-components/components/Form/Radio/RadioGroup.vue +0 -259
- package/rancher-components/components/Form/Radio/index.ts +0 -2
- package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +0 -172
- package/rancher-components/components/Form/TextArea/index.ts +0 -1
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +0 -94
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +0 -152
- package/rancher-components/components/Form/ToggleSwitch/index.ts +0 -1
- package/rancher-components/components/Form/index.ts +0 -5
- package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +0 -156
- package/rancher-components/components/LabeledTooltip/index.ts +0 -1
- package/rancher-components/components/StringList/StringList.test.ts +0 -754
- package/rancher-components/components/StringList/StringList.vue +0 -650
- package/rancher-components/components/StringList/index.ts +0 -1
- package/types/shell/index.d.ts +0 -4585
- package/utils/install-redirect.js +0 -55
- /package/utils/{cookie-universal-nuxt.js → cookie-universal.js} +0 -0
package/edit/auth/oidc.vue
CHANGED
|
@@ -174,7 +174,7 @@ export default {
|
|
|
174
174
|
:disable="disable"
|
|
175
175
|
:edit="goToEdit"
|
|
176
176
|
>
|
|
177
|
-
<template
|
|
177
|
+
<template #rows>
|
|
178
178
|
<tr><td>{{ t(`authConfig.oidc.rancherUrl`) }}: </td><td>{{ model.rancherUrl }}</td></tr>
|
|
179
179
|
<tr><td>{{ t(`authConfig.oidc.clientId`) }}: </td><td>{{ model.clientId }}</td></tr>
|
|
180
180
|
<tr><td>{{ t(`authConfig.oidc.issuer`) }}: </td><td>{{ model.issuer }}</td></tr>
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
<div class="row mb-20">
|
|
203
203
|
<div class="col span-6">
|
|
204
204
|
<LabeledInput
|
|
205
|
-
v-model="model.clientId"
|
|
205
|
+
v-model:value="model.clientId"
|
|
206
206
|
:label="t(`authConfig.oidc.clientId`)"
|
|
207
207
|
:mode="mode"
|
|
208
208
|
required
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
211
211
|
</div>
|
|
212
212
|
<div class="col span-6">
|
|
213
213
|
<LabeledInput
|
|
214
|
-
v-model="model.clientSecret"
|
|
214
|
+
v-model:value="model.clientSecret"
|
|
215
215
|
:label="t(`authConfig.oidc.clientSecret`)"
|
|
216
216
|
:mode="mode"
|
|
217
217
|
required
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
<div class="row mb-20">
|
|
224
224
|
<div class="col span-6">
|
|
225
225
|
<LabeledInput
|
|
226
|
-
v-model="model.privateKey"
|
|
226
|
+
v-model:value="model.privateKey"
|
|
227
227
|
:label="t(`authConfig.oidc.key.label`)"
|
|
228
228
|
:placeholder="t(`authConfig.oidc.key.placeholder`)"
|
|
229
229
|
:mode="mode"
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
238
238
|
</div>
|
|
239
239
|
<div class="col span-6">
|
|
240
240
|
<LabeledInput
|
|
241
|
-
v-model="model.certificate"
|
|
241
|
+
v-model:value="model.certificate"
|
|
242
242
|
:label="t(`authConfig.oidc.cert.label`)"
|
|
243
243
|
:placeholder="t(`authConfig.oidc.cert.placeholder`)"
|
|
244
244
|
:mode="mode"
|
|
@@ -256,12 +256,12 @@ export default {
|
|
|
256
256
|
<div class="row mb-20">
|
|
257
257
|
<div class="col span-6">
|
|
258
258
|
<ArrayList
|
|
259
|
-
v-model="oidcScope"
|
|
259
|
+
v-model:value="oidcScope"
|
|
260
260
|
:mode="mode"
|
|
261
261
|
:title="t('authConfig.oidc.scope.label')"
|
|
262
262
|
:value-placeholder="t('authConfig.oidc.scope.placeholder')"
|
|
263
263
|
:protip="t('authConfig.oidc.scope.protip', {}, true)"
|
|
264
|
-
@
|
|
264
|
+
@update:value="updateScope"
|
|
265
265
|
/>
|
|
266
266
|
</div>
|
|
267
267
|
</div>
|
|
@@ -269,7 +269,7 @@ export default {
|
|
|
269
269
|
<div class="row mb-20">
|
|
270
270
|
<div class="col span-6">
|
|
271
271
|
<RadioGroup
|
|
272
|
-
v-model="customEndpoint.value"
|
|
272
|
+
v-model:value="customEndpoint.value"
|
|
273
273
|
name="customEndpoint"
|
|
274
274
|
label-key="authConfig.oidc.customEndpoint.label"
|
|
275
275
|
:labels="customEndpoint.labels"
|
|
@@ -286,7 +286,7 @@ export default {
|
|
|
286
286
|
<div class="row mb-20">
|
|
287
287
|
<div class="col span-6">
|
|
288
288
|
<LabeledInput
|
|
289
|
-
v-model="oidcUrls.url"
|
|
289
|
+
v-model:value="oidcUrls.url"
|
|
290
290
|
:label="t(`authConfig.oidc.url`)"
|
|
291
291
|
:mode="mode"
|
|
292
292
|
:required="!customEndpoint.value"
|
|
@@ -296,7 +296,7 @@ export default {
|
|
|
296
296
|
</div>
|
|
297
297
|
<div class="col span-6">
|
|
298
298
|
<LabeledInput
|
|
299
|
-
v-model="oidcUrls.realm"
|
|
299
|
+
v-model:value="oidcUrls.realm"
|
|
300
300
|
:label="t(`authConfig.oidc.realm`)"
|
|
301
301
|
:mode="mode"
|
|
302
302
|
:required="!customEndpoint.value"
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
309
309
|
<div class="row mb-20">
|
|
310
310
|
<div class="col span-6">
|
|
311
311
|
<LabeledInput
|
|
312
|
-
v-model="model.rancherUrl"
|
|
312
|
+
v-model:value="model.rancherUrl"
|
|
313
313
|
:label="t(`authConfig.oidc.rancherUrl`)"
|
|
314
314
|
:mode="mode"
|
|
315
315
|
required
|
|
@@ -322,7 +322,7 @@ export default {
|
|
|
322
322
|
<div class="row mb-20">
|
|
323
323
|
<div class="col span-6">
|
|
324
324
|
<LabeledInput
|
|
325
|
-
v-model="model.issuer"
|
|
325
|
+
v-model:value="model.issuer"
|
|
326
326
|
:label="t(`authConfig.oidc.issuer`)"
|
|
327
327
|
:mode="mode"
|
|
328
328
|
required
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
332
332
|
</div>
|
|
333
333
|
<div class="col span-6">
|
|
334
334
|
<LabeledInput
|
|
335
|
-
v-model="model.authEndpoint"
|
|
335
|
+
v-model:value="model.authEndpoint"
|
|
336
336
|
:label="t(`authConfig.oidc.authEndpoint`)"
|
|
337
337
|
:mode="mode"
|
|
338
338
|
:disabled="!customEndpoint.value"
|
|
@@ -346,7 +346,7 @@ export default {
|
|
|
346
346
|
<div class="row mb-20">
|
|
347
347
|
<div class="col span-6">
|
|
348
348
|
<LabeledInput
|
|
349
|
-
v-model="model.jwksUrl"
|
|
349
|
+
v-model:value="model.jwksUrl"
|
|
350
350
|
:label="t(`authConfig.oidc.jwksUrl`)"
|
|
351
351
|
:mode="mode"
|
|
352
352
|
:disabled="!customEndpoint.value"
|
|
@@ -354,7 +354,7 @@ export default {
|
|
|
354
354
|
</div>
|
|
355
355
|
<div class="col span-6">
|
|
356
356
|
<LabeledInput
|
|
357
|
-
v-model="model.tokenEndpoint"
|
|
357
|
+
v-model:value="model.tokenEndpoint"
|
|
358
358
|
:label="t(`authConfig.oidc.tokenEndpoint`)"
|
|
359
359
|
:mode="mode"
|
|
360
360
|
:disabled="!customEndpoint.value"
|
|
@@ -365,7 +365,7 @@ export default {
|
|
|
365
365
|
<div class="row mb-20">
|
|
366
366
|
<div class="col span-6">
|
|
367
367
|
<LabeledInput
|
|
368
|
-
v-model="model.userInfoEndpoint"
|
|
368
|
+
v-model:value="model.userInfoEndpoint"
|
|
369
369
|
:label="t(`authConfig.oidc.userInfoEndpoint`)"
|
|
370
370
|
:mode="mode"
|
|
371
371
|
:disabled="!customEndpoint.value"
|
|
@@ -373,7 +373,7 @@ export default {
|
|
|
373
373
|
</div>
|
|
374
374
|
<div class="col span-6">
|
|
375
375
|
<LabeledInput
|
|
376
|
-
v-model="model.acrValue"
|
|
376
|
+
v-model:value="model.acrValue"
|
|
377
377
|
:label="t(`authConfig.oidc.acrValue`)"
|
|
378
378
|
:mode="mode"
|
|
379
379
|
:disabled="!customEndpoint.value"
|
|
@@ -390,7 +390,7 @@ export default {
|
|
|
390
390
|
.banner {
|
|
391
391
|
display: block;
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
&:deep() code {
|
|
394
394
|
padding: 0 3px;
|
|
395
395
|
margin: 0 3px;
|
|
396
396
|
}
|
package/edit/auth/saml.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import Loading from '@shell/components/Loading';
|
|
3
3
|
import CreateEditView from '@shell/mixins/create-edit-view';
|
|
4
|
-
import AuthConfig from '@shell/mixins/auth-config';
|
|
4
|
+
import AuthConfig, { SLO_OPTION_VALUES } from '@shell/mixins/auth-config';
|
|
5
5
|
import CruResource from '@shell/components/CruResource';
|
|
6
6
|
import { LabeledInput } from '@components/Form/LabeledInput';
|
|
7
7
|
import { Checkbox } from '@components/Form/Checkbox';
|
|
@@ -11,6 +11,7 @@ import FileSelector from '@shell/components/form/FileSelector';
|
|
|
11
11
|
import AuthBanner from '@shell/components/auth/AuthBanner';
|
|
12
12
|
import config from '@shell/edit/auth/ldap/config';
|
|
13
13
|
import AuthProviderWarningBanners from '@shell/edit/auth/AuthProviderWarningBanners';
|
|
14
|
+
import RadioGroup from '@components/Form/Radio/RadioGroup.vue';
|
|
14
15
|
|
|
15
16
|
export const SHIBBOLETH = 'shibboleth';
|
|
16
17
|
export const OKTA = 'okta';
|
|
@@ -45,6 +46,7 @@ export default {
|
|
|
45
46
|
Banner,
|
|
46
47
|
AllowedPrincipals,
|
|
47
48
|
Checkbox,
|
|
49
|
+
RadioGroup,
|
|
48
50
|
FileSelector,
|
|
49
51
|
config,
|
|
50
52
|
AuthBanner,
|
|
@@ -55,7 +57,7 @@ export default {
|
|
|
55
57
|
data() {
|
|
56
58
|
return {
|
|
57
59
|
showLdap: false,
|
|
58
|
-
showLdapDetails: false
|
|
60
|
+
showLdapDetails: false
|
|
59
61
|
};
|
|
60
62
|
},
|
|
61
63
|
|
|
@@ -68,6 +70,24 @@ export default {
|
|
|
68
70
|
};
|
|
69
71
|
},
|
|
70
72
|
|
|
73
|
+
isLogoutAllSupported() {
|
|
74
|
+
return this.model?.logoutAllSupported;
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
sloOptions() {
|
|
78
|
+
return [
|
|
79
|
+
{ value: SLO_OPTION_VALUES.rancher, label: this.t('authConfig.saml.sloOptions.onlyRancher', { name: this.model?.nameDisplay }) },
|
|
80
|
+
{ value: SLO_OPTION_VALUES.all, label: this.t('authConfig.saml.sloOptions.logoutAll', { name: this.model?.nameDisplay }) },
|
|
81
|
+
{ value: SLO_OPTION_VALUES.both, label: this.t('authConfig.saml.sloOptions.choose') },
|
|
82
|
+
];
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
sloTypeText() {
|
|
86
|
+
const sloOptionSelected = this.sloOptions.find((item) => item.value === this.sloType);
|
|
87
|
+
|
|
88
|
+
return sloOptionSelected?.label || '';
|
|
89
|
+
},
|
|
90
|
+
|
|
71
91
|
toSave() {
|
|
72
92
|
return { enabled: true, ...this.model };
|
|
73
93
|
},
|
|
@@ -97,10 +117,32 @@ export default {
|
|
|
97
117
|
showLdap(neu, old) {
|
|
98
118
|
if (neu && !this.model.openLdapConfig) {
|
|
99
119
|
// Use a spread of config, so that if don't make changes to the defaults if the user edits them
|
|
100
|
-
this
|
|
120
|
+
this.model['openLdapConfig'] = { ...LDAP_DEFAULTS };
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
// sloType is defined on shell/mixins/auth-config.js
|
|
124
|
+
sloType(neu) {
|
|
125
|
+
switch (neu) {
|
|
126
|
+
case SLO_OPTION_VALUES.rancher:
|
|
127
|
+
this.model.logoutAllEnabled = false;
|
|
128
|
+
this.model.logoutAllForced = false;
|
|
129
|
+
break;
|
|
130
|
+
case SLO_OPTION_VALUES.all:
|
|
131
|
+
this.model.logoutAllEnabled = true;
|
|
132
|
+
this.model.logoutAllForced = true;
|
|
133
|
+
break;
|
|
134
|
+
case SLO_OPTION_VALUES.both:
|
|
135
|
+
this.model.logoutAllEnabled = true;
|
|
136
|
+
this.model.logoutAllForced = false;
|
|
137
|
+
break;
|
|
101
138
|
}
|
|
102
139
|
}
|
|
103
|
-
}
|
|
140
|
+
},
|
|
141
|
+
methods: {
|
|
142
|
+
onSelected(val, key) {
|
|
143
|
+
this.model[key] = val;
|
|
144
|
+
}
|
|
145
|
+
},
|
|
104
146
|
};
|
|
105
147
|
</script>
|
|
106
148
|
|
|
@@ -128,20 +170,21 @@ export default {
|
|
|
128
170
|
:disable="disable"
|
|
129
171
|
:edit="goToEdit"
|
|
130
172
|
>
|
|
131
|
-
<template
|
|
132
|
-
slot="rows"
|
|
133
|
-
>
|
|
173
|
+
<template #rows>
|
|
134
174
|
<tr><td>{{ t(`authConfig.saml.displayName`) }}: </td><td>{{ model.displayNameField }}</td></tr>
|
|
135
175
|
<tr><td>{{ t(`authConfig.saml.userName`) }}: </td><td>{{ model.userNameField }}</td></tr>
|
|
136
176
|
<tr><td>{{ t(`authConfig.saml.UID`) }}: </td><td>{{ model.uidField }}</td></tr>
|
|
137
177
|
<tr><td>{{ t(`authConfig.saml.entityID`) }}: </td><td>{{ model.entityID }}</td></tr>
|
|
138
178
|
<tr><td>{{ t(`authConfig.saml.api`) }}: </td><td>{{ model.rancherApiHost }}</td></tr>
|
|
139
179
|
<tr><td>{{ t(`authConfig.saml.groups`) }}: </td><td>{{ model.groupsField }}</td></tr>
|
|
180
|
+
<tr v-if="isLogoutAllSupported">
|
|
181
|
+
<td>{{ t(`authConfig.saml.sloTitle`) }}: </td><td>{{ sloTypeText }}</td>
|
|
182
|
+
</tr>
|
|
140
183
|
</template>
|
|
141
184
|
|
|
142
185
|
<template
|
|
143
186
|
v-if="supportsLDAPSearch"
|
|
144
|
-
|
|
187
|
+
#footer
|
|
145
188
|
>
|
|
146
189
|
<Banner
|
|
147
190
|
v-if="showLdap"
|
|
@@ -197,10 +240,11 @@ export default {
|
|
|
197
240
|
/>
|
|
198
241
|
|
|
199
242
|
<h3>{{ t(`authConfig.saml.${NAME}`) }}</h3>
|
|
243
|
+
|
|
200
244
|
<div class="row mb-20">
|
|
201
245
|
<div class="col span-6">
|
|
202
246
|
<LabeledInput
|
|
203
|
-
v-model="model.displayNameField"
|
|
247
|
+
v-model:value="model.displayNameField"
|
|
204
248
|
:label="t(`authConfig.saml.displayName`)"
|
|
205
249
|
:mode="mode"
|
|
206
250
|
required
|
|
@@ -208,7 +252,7 @@ export default {
|
|
|
208
252
|
</div>
|
|
209
253
|
<div class="col span-6">
|
|
210
254
|
<LabeledInput
|
|
211
|
-
v-model="model.userNameField"
|
|
255
|
+
v-model:value="model.userNameField"
|
|
212
256
|
:label="t(`authConfig.saml.userName`)"
|
|
213
257
|
:mode="mode"
|
|
214
258
|
required
|
|
@@ -219,7 +263,7 @@ export default {
|
|
|
219
263
|
<div class="row mb-20">
|
|
220
264
|
<div class="col span-6">
|
|
221
265
|
<LabeledInput
|
|
222
|
-
v-model="model.uidField"
|
|
266
|
+
v-model:value="model.uidField"
|
|
223
267
|
:label="t(`authConfig.saml.UID`)"
|
|
224
268
|
:mode="mode"
|
|
225
269
|
required
|
|
@@ -227,27 +271,28 @@ export default {
|
|
|
227
271
|
</div>
|
|
228
272
|
<div class="col span-6">
|
|
229
273
|
<LabeledInput
|
|
230
|
-
v-model="model.groupsField"
|
|
274
|
+
v-model:value="model.groupsField"
|
|
231
275
|
:label="t(`authConfig.saml.groups`)"
|
|
232
276
|
:mode="mode"
|
|
233
277
|
required
|
|
234
278
|
/>
|
|
235
279
|
</div>
|
|
236
280
|
</div>
|
|
281
|
+
|
|
237
282
|
<div class="row mb-20">
|
|
238
283
|
<div
|
|
239
284
|
v-if="NAME === 'keycloak' || NAME === 'ping'"
|
|
240
285
|
class="col span-6"
|
|
241
286
|
>
|
|
242
287
|
<LabeledInput
|
|
243
|
-
v-model="model.entityID"
|
|
288
|
+
v-model:value="model.entityID"
|
|
244
289
|
:label="t(`authConfig.saml.entityID`)"
|
|
245
290
|
:mode="mode"
|
|
246
291
|
/>
|
|
247
292
|
</div>
|
|
248
293
|
<div class="col span-6">
|
|
249
294
|
<LabeledInput
|
|
250
|
-
v-model="model.rancherApiHost"
|
|
295
|
+
v-model:value="model.rancherApiHost"
|
|
251
296
|
:label="t(`authConfig.saml.api`)"
|
|
252
297
|
:mode="mode"
|
|
253
298
|
required
|
|
@@ -258,7 +303,7 @@ export default {
|
|
|
258
303
|
<div class="row mb-20">
|
|
259
304
|
<div class="col span-4">
|
|
260
305
|
<LabeledInput
|
|
261
|
-
v-model="model.spKey"
|
|
306
|
+
v-model:value="model.spKey"
|
|
262
307
|
:label="t(`authConfig.saml.key.label`)"
|
|
263
308
|
:placeholder="t(`authConfig.saml.key.placeholder`)"
|
|
264
309
|
:mode="mode"
|
|
@@ -269,12 +314,12 @@ export default {
|
|
|
269
314
|
class="role-tertiary add mt-5"
|
|
270
315
|
:label="t('generic.readFromFile')"
|
|
271
316
|
:mode="mode"
|
|
272
|
-
@selected="$
|
|
317
|
+
@selected="onSelected($event, 'spKey')"
|
|
273
318
|
/>
|
|
274
319
|
</div>
|
|
275
320
|
<div class="col span-4">
|
|
276
321
|
<LabeledInput
|
|
277
|
-
v-model="model.spCert"
|
|
322
|
+
v-model:value="model.spCert"
|
|
278
323
|
:label="t(`authConfig.saml.cert.label`)"
|
|
279
324
|
:placeholder="t(`authConfig.saml.cert.placeholder`)"
|
|
280
325
|
:mode="mode"
|
|
@@ -285,12 +330,12 @@ export default {
|
|
|
285
330
|
class="role-tertiary add mt-5"
|
|
286
331
|
:label="t('generic.readFromFile')"
|
|
287
332
|
:mode="mode"
|
|
288
|
-
@selected="$
|
|
333
|
+
@selected="onSelected($event, 'spCert')"
|
|
289
334
|
/>
|
|
290
335
|
</div>
|
|
291
336
|
<div class="col span-4">
|
|
292
337
|
<LabeledInput
|
|
293
|
-
v-model="model.idpMetadataContent"
|
|
338
|
+
v-model:value="model.idpMetadataContent"
|
|
294
339
|
:label="t(`authConfig.saml.metadata.label`)"
|
|
295
340
|
:placeholder="t(`authConfig.saml.metadata.placeholder`)"
|
|
296
341
|
:mode="mode"
|
|
@@ -301,13 +346,38 @@ export default {
|
|
|
301
346
|
class="role-tertiary add mt-5"
|
|
302
347
|
:label="t('generic.readFromFile')"
|
|
303
348
|
:mode="mode"
|
|
304
|
-
@selected="$
|
|
349
|
+
@selected="onSelected($event, 'idpMetadataContent')"
|
|
305
350
|
/>
|
|
306
351
|
</div>
|
|
307
352
|
</div>
|
|
353
|
+
|
|
354
|
+
<!-- SLO logout -->
|
|
355
|
+
<div
|
|
356
|
+
v-if="isLogoutAllSupported"
|
|
357
|
+
class="mt-10 mb-30"
|
|
358
|
+
>
|
|
359
|
+
<div class="row">
|
|
360
|
+
<div class="col span-12">
|
|
361
|
+
<h3>{{ t('authConfig.saml.sloTitle') }}</h3>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
<div class="row">
|
|
365
|
+
<div class="col span-4">
|
|
366
|
+
<RadioGroup
|
|
367
|
+
v-model:value="sloType"
|
|
368
|
+
:mode="mode"
|
|
369
|
+
:options="sloOptions"
|
|
370
|
+
:disabled="!model.logoutAllSupported"
|
|
371
|
+
name="sloTypeRadio"
|
|
372
|
+
/>
|
|
373
|
+
</div>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
|
|
377
|
+
<!-- LDAP search -->
|
|
308
378
|
<div v-if="supportsLDAPSearch">
|
|
309
379
|
<div class="row">
|
|
310
|
-
<
|
|
380
|
+
<h3>{{ t('authConfig.saml.search.title') }}</h3>
|
|
311
381
|
</div>
|
|
312
382
|
<div class="row">
|
|
313
383
|
<Banner
|
|
@@ -317,7 +387,7 @@ export default {
|
|
|
317
387
|
</div>
|
|
318
388
|
<div class="row">
|
|
319
389
|
<Checkbox
|
|
320
|
-
v-model="showLdap"
|
|
390
|
+
v-model:value="showLdap"
|
|
321
391
|
:mode="mode"
|
|
322
392
|
:label="t('authConfig.saml.showLdap')"
|
|
323
393
|
/>
|
|
@@ -325,7 +395,7 @@ export default {
|
|
|
325
395
|
<div class="row mt-20 mb-20">
|
|
326
396
|
<config
|
|
327
397
|
v-if="showLdap && model.openLdapConfig"
|
|
328
|
-
v-model="model.openLdapConfig"
|
|
398
|
+
v-model:value="model.openLdapConfig"
|
|
329
399
|
:type="NAME"
|
|
330
400
|
:mode="mode"
|
|
331
401
|
:is-create="!model.enabled"
|
|
@@ -340,7 +410,7 @@ export default {
|
|
|
340
410
|
.banner {
|
|
341
411
|
display: block;
|
|
342
412
|
|
|
343
|
-
|
|
413
|
+
&:deep() code {
|
|
344
414
|
padding: 0 3px;
|
|
345
415
|
margin: 0 3px;
|
|
346
416
|
}
|
|
@@ -43,14 +43,14 @@ export default {
|
|
|
43
43
|
<div>
|
|
44
44
|
<div class="row mb-20">
|
|
45
45
|
<MetricTarget
|
|
46
|
-
v-model="value.target"
|
|
46
|
+
v-model:value="value.target"
|
|
47
47
|
:mode="mode"
|
|
48
48
|
metric-resource="external"
|
|
49
49
|
/>
|
|
50
50
|
</div>
|
|
51
51
|
<div class="row">
|
|
52
52
|
<MetricIdentifier
|
|
53
|
-
v-model="value.metric"
|
|
53
|
+
v-model:value="value.metric"
|
|
54
54
|
:mode="mode"
|
|
55
55
|
/>
|
|
56
56
|
</div>
|
|
@@ -28,17 +28,17 @@ export default {
|
|
|
28
28
|
},
|
|
29
29
|
data() {
|
|
30
30
|
if (!this.value.spec.behavior[this.type].policies) {
|
|
31
|
-
this
|
|
31
|
+
this.value.spec.behavior[this.type]['policies'] = [];
|
|
32
32
|
}
|
|
33
33
|
if (!this.value.spec.behavior[this.type].selectPolicy) {
|
|
34
|
-
this
|
|
34
|
+
this.value.spec.behavior[this.type]['selectPolicy'] = 'Max';
|
|
35
35
|
}
|
|
36
36
|
if (this.value.spec.behavior[this.type].stabilizationWindowSeconds === null || typeof this.value.spec.behavior[this.type].stabilizationWindowSeconds === 'undefined') {
|
|
37
37
|
if (this.type === 'scaleUp') {
|
|
38
|
-
this
|
|
38
|
+
this.value.spec.behavior[this.type]['stabilizationWindowSeconds'] = 0;
|
|
39
39
|
}
|
|
40
40
|
if (this.type === 'scaleDown') {
|
|
41
|
-
this
|
|
41
|
+
this.value.spec.behavior[this.type]['stabilizationWindowSeconds'] = 300;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
<div class="row mb-20">
|
|
53
53
|
<div class="col span-12">
|
|
54
54
|
<ArrayListGrouped
|
|
55
|
-
v-model="value.spec.behavior[type].policies"
|
|
55
|
+
v-model:value="value.spec.behavior[type].policies"
|
|
56
56
|
:add-label="t('hpa.scalingRule.addPolicy')"
|
|
57
57
|
:default-add-value="{}"
|
|
58
58
|
:mode="mode"
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
<div class="row">
|
|
62
62
|
<div class="col span-4">
|
|
63
63
|
<LabeledSelect
|
|
64
|
-
v-model="props.row.value.type"
|
|
64
|
+
v-model:value="props.row.value.type"
|
|
65
65
|
:mode="mode"
|
|
66
66
|
:options="policyTypeOptions"
|
|
67
67
|
:multiple="false"
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
<div class="row">
|
|
104
104
|
<div class="col span-6">
|
|
105
105
|
<LabeledSelect
|
|
106
|
-
v-model="value.spec.behavior[type].selectPolicy"
|
|
106
|
+
v-model:value="value.spec.behavior[type].selectPolicy"
|
|
107
107
|
:mode="mode"
|
|
108
108
|
:options="selectPolicyOptions"
|
|
109
109
|
:multiple="false"
|
|
@@ -118,13 +118,13 @@ export default {
|
|
|
118
118
|
set(hasScaleDownRules) {
|
|
119
119
|
if (hasScaleDownRules) {
|
|
120
120
|
if (!this.value.spec.behavior) {
|
|
121
|
-
this
|
|
121
|
+
this.value.spec['behavior'] = {};
|
|
122
122
|
}
|
|
123
123
|
if (!this.value.spec.behavior?.scaleDown) {
|
|
124
|
-
this
|
|
124
|
+
this.value.spec.behavior['scaleDown'] = {};
|
|
125
125
|
}
|
|
126
126
|
} else {
|
|
127
|
-
|
|
127
|
+
delete this.value.spec.behavior['scaleDown'];
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
},
|
|
@@ -135,13 +135,13 @@ export default {
|
|
|
135
135
|
set(hasScaleUpRules) {
|
|
136
136
|
if (hasScaleUpRules) {
|
|
137
137
|
if (!this.value.spec.behavior) {
|
|
138
|
-
this
|
|
138
|
+
this.value.spec['behavior'] = {};
|
|
139
139
|
}
|
|
140
140
|
if (!this.value.spec.behavior?.scaleUp) {
|
|
141
|
-
this
|
|
141
|
+
this.value.spec.behavior['scaleUp'] = {};
|
|
142
142
|
}
|
|
143
143
|
} else {
|
|
144
|
-
|
|
144
|
+
delete this.value.spec.behavior['scaleUp'];
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
},
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
|
|
158
158
|
methods: {
|
|
159
159
|
initSpec() {
|
|
160
|
-
this
|
|
160
|
+
this.value['spec'] = {
|
|
161
161
|
type: 'io.k8s.api.autoscaling.v1.horizontalpodautoscalerspec',
|
|
162
162
|
minReplicas: 1,
|
|
163
163
|
maxReplicas: 10,
|
|
@@ -166,8 +166,8 @@ export default {
|
|
|
166
166
|
kind: '',
|
|
167
167
|
name: '',
|
|
168
168
|
},
|
|
169
|
-
metrics: [{ ...this.defaultResourceMetric }]
|
|
170
|
-
}
|
|
169
|
+
metrics: [{ ...this.defaultResourceMetric }]
|
|
170
|
+
};
|
|
171
171
|
},
|
|
172
172
|
async loadWorkloads() {
|
|
173
173
|
await Promise.all(
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
213
213
|
<div class="row mb-20">
|
|
214
214
|
<div class="col span-6">
|
|
215
215
|
<LabeledSelect
|
|
216
|
-
v-model="value.spec.scaleTargetRef"
|
|
216
|
+
v-model:value="value.spec.scaleTargetRef"
|
|
217
217
|
:get-option-label="(opt) => opt.name"
|
|
218
218
|
:mode="mode"
|
|
219
219
|
:label="t('hpa.workloadTab.targetReference')"
|
|
@@ -254,7 +254,7 @@ export default {
|
|
|
254
254
|
:label="t('hpa.tabs.metrics')"
|
|
255
255
|
>
|
|
256
256
|
<ArrayListGrouped
|
|
257
|
-
v-model="value.spec.metrics"
|
|
257
|
+
v-model:value="value.spec.metrics"
|
|
258
258
|
:default-add-value="{ ...defaultResourceMetric }"
|
|
259
259
|
:mode="mode"
|
|
260
260
|
:initial-empty-row="true"
|
|
@@ -272,7 +272,7 @@ export default {
|
|
|
272
272
|
</template>
|
|
273
273
|
<template #default="props">
|
|
274
274
|
<MetricsRow
|
|
275
|
-
v-model="props.row.value"
|
|
275
|
+
v-model:value="props.row.value"
|
|
276
276
|
:mode="mode"
|
|
277
277
|
:metrics-available="resourceMetricsAvailable"
|
|
278
278
|
:referent="selectedTargetRef"
|
|
@@ -290,16 +290,17 @@ export default {
|
|
|
290
290
|
</h3>
|
|
291
291
|
<div class="row mb-10">
|
|
292
292
|
<Checkbox
|
|
293
|
-
v-model="hasScaleDownRules"
|
|
293
|
+
v-model:value="hasScaleDownRules"
|
|
294
294
|
:mode="mode"
|
|
295
295
|
:label="t('hpa.scaleDownRules.enable')"
|
|
296
296
|
/>
|
|
297
297
|
</div>
|
|
298
298
|
<HpaScalingRule
|
|
299
299
|
v-if="hasScaleDownRules"
|
|
300
|
-
|
|
300
|
+
:value="value"
|
|
301
301
|
type="scaleDown"
|
|
302
302
|
:mode="mode"
|
|
303
|
+
@update:value="$emit('input', $event)"
|
|
303
304
|
/>
|
|
304
305
|
</div>
|
|
305
306
|
<div class="col span-12">
|
|
@@ -308,16 +309,17 @@ export default {
|
|
|
308
309
|
</h3>
|
|
309
310
|
<div class="row mb-10">
|
|
310
311
|
<Checkbox
|
|
311
|
-
v-model="hasScaleUpRules"
|
|
312
|
+
v-model:value="hasScaleUpRules"
|
|
312
313
|
:mode="mode"
|
|
313
314
|
:label="t('hpa.scaleUpRules.enable')"
|
|
314
315
|
/>
|
|
315
316
|
</div>
|
|
316
317
|
<HpaScalingRule
|
|
317
318
|
v-if="hasScaleUpRules"
|
|
318
|
-
|
|
319
|
+
:value="value"
|
|
319
320
|
type="scaleUp"
|
|
320
321
|
:mode="mode"
|
|
322
|
+
@update:value="$emit('input', $event)"
|
|
321
323
|
/>
|
|
322
324
|
</div>
|
|
323
325
|
</Tab>
|
|
@@ -42,8 +42,8 @@ export default {
|
|
|
42
42
|
matchChanged(expressions) {
|
|
43
43
|
const { matchLabels, matchExpressions } = simplify(expressions);
|
|
44
44
|
|
|
45
|
-
this
|
|
46
|
-
this
|
|
45
|
+
this.value.selector['matchLabels'] = matchLabels;
|
|
46
|
+
this.value.selector['matchExpressions'] = matchExpressions;
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
};
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
<div class="row mb-20">
|
|
55
55
|
<div class="col span-6">
|
|
56
56
|
<LabeledInput
|
|
57
|
-
v-model="value.name"
|
|
57
|
+
v-model:value="value.name"
|
|
58
58
|
:mode="mode"
|
|
59
59
|
:label="t('hpa.metricIdentifier.name.label')"
|
|
60
60
|
:required="true"
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
<div class="row mb-20">
|
|
26
26
|
<div class="col span-6">
|
|
27
27
|
<LabeledInput
|
|
28
|
-
v-model="value.apiVersion"
|
|
28
|
+
v-model:value="value.apiVersion"
|
|
29
29
|
:mode="mode"
|
|
30
30
|
:label="t('hpa.objectReference.api.label')"
|
|
31
31
|
:required="true"
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
</div>
|
|
36
36
|
<div class="col span-6">
|
|
37
37
|
<LabeledInput
|
|
38
|
-
v-model="value.kind"
|
|
38
|
+
v-model:value="value.kind"
|
|
39
39
|
:mode="mode"
|
|
40
40
|
:label="t('hpa.objectReference.kind.label')"
|
|
41
41
|
:required="true"
|
|
@@ -47,7 +47,7 @@ export default {
|
|
|
47
47
|
<div class="row">
|
|
48
48
|
<div class="col span-6">
|
|
49
49
|
<LabeledInput
|
|
50
|
-
v-model="value.name"
|
|
50
|
+
v-model:value="value.name"
|
|
51
51
|
:mode="mode"
|
|
52
52
|
:label="t('hpa.objectReference.name.label')"
|
|
53
53
|
:required="true"
|