@rancher/shell 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/brand/csp/dark/rancher-logo.svg +148 -0
- package/assets/brand/csp/favicon.png +0 -0
- package/assets/brand/csp/metadata.json +3 -0
- package/assets/brand/csp/rancher-logo.svg +130 -0
- package/assets/styles/app.scss +2 -1
- package/assets/styles/global/_layout.scss +53 -0
- package/assets/styles/themes/_csp.scss +25 -0
- package/assets/styles/themes/_dark.scss +2 -1
- package/assets/styles/themes/_light.scss +2 -1
- package/assets/styles/vendor/vue-select.scss +0 -5
- package/assets/translations/en-us.yaml +45 -28
- package/chart/istio.vue +81 -22
- package/chart/logging/index.vue +20 -6
- package/chart/monitoring/alerting/index.vue +4 -1
- package/chart/monitoring/index.vue +41 -9
- package/chart/monitoring/prometheus/index.vue +33 -29
- package/chart/monitoring/steps/uninstall-v1.vue +8 -4
- package/chart/rancher-backup/S3.vue +43 -8
- package/chart/rancher-backup/index.vue +23 -5
- package/chart/rancher-gatekeeper.vue +10 -2
- package/cloud-credential/aws.vue +8 -2
- package/cloud-credential/digitalocean.vue +4 -1
- package/cloud-credential/gcp.vue +9 -2
- package/cloud-credential/generic.vue +6 -1
- package/cloud-credential/harvester.vue +4 -1
- package/cloud-credential/linode.vue +4 -1
- package/cloud-credential/s3.vue +4 -1
- package/components/.DS_Store +0 -0
- package/components/ActionDropdown.vue +4 -1
- package/components/ActionMenu.vue +17 -4
- package/components/AdvancedSection.vue +6 -1
- package/components/Alert.vue +5 -1
- package/components/AssignTo.vue +24 -6
- package/components/AsyncButton.vue +10 -0
- package/components/AwsComplianceBanner.vue +4 -1
- package/components/BackLink.vue +5 -1
- package/components/BannerGraphic.vue +16 -4
- package/components/BrandImage.vue +4 -1
- package/components/ButtonDropdown.vue +10 -3
- package/components/ButtonGroup.vue +17 -4
- package/components/Carousel.vue +26 -8
- package/components/ChartHeading.vue +5 -1
- package/components/ChartReadme.vue +17 -5
- package/components/ClusterBadge.vue +5 -1
- package/components/ClusterProviderIcon.vue +15 -3
- package/components/Collapse.vue +17 -5
- package/components/CollapsibleCard.vue +10 -4
- package/components/CommunityLinks.vue +32 -9
- package/components/CompoundStatusBadge.vue +4 -1
- package/components/ContainerResourceLimit.vue +12 -3
- package/components/CopyToClipboardText.vue +10 -2
- package/components/CountBox.vue +13 -3
- package/components/CountGauge.vue +28 -5
- package/components/CruResource.vue +88 -23
- package/components/CruResourceFooter.vue +1 -1
- package/components/DashboardMetrics.vue +12 -3
- package/components/DashboardOptions.vue +14 -3
- package/components/DetailText.vue +28 -6
- package/components/DetailTop.vue +57 -12
- package/components/Dialog.vue +17 -5
- package/components/EmberPage.vue +23 -5
- package/components/EmberPageView.vue +4 -1
- package/components/EtcdInfoBanner.vue +5 -1
- package/components/ExplorerMembers.vue +7 -9
- package/components/ExplorerProjectsNamespaces.vue +42 -10
- package/components/FileDiff.vue +5 -1
- package/components/FixedBanner.vue +27 -7
- package/components/Flag.vue +8 -2
- package/components/Glance.vue +11 -2
- package/components/GlobalRoleBindings.vue +24 -5
- package/components/GradientBox.vue +5 -1
- package/components/GrafanaDashboard.vue +19 -5
- package/components/GrowlManager.vue +27 -6
- package/components/HardwareResourceGauge.vue +8 -2
- package/components/HarvesterServiceAddOnConfig.vue +4 -1
- package/components/IconMessage.vue +8 -2
- package/components/Import.vue +37 -8
- package/components/IndentedPanel.vue +4 -1
- package/components/InfoBox.vue +8 -2
- package/components/KeyValueView.vue +29 -7
- package/components/LandingPagePreference.vue +13 -2
- package/components/LazyImage.vue +5 -1
- package/components/Loading.vue +13 -3
- package/components/LocaleSelector.vue +10 -2
- package/components/Markdown.vue +5 -1
- package/components/MessageLink.vue +19 -4
- package/components/ModalWithCard.vue +24 -8
- package/components/MoveModal.vue +35 -7
- package/components/PercentageBar.vue +9 -2
- package/components/ProgressBarMulti.vue +4 -1
- package/components/PromptChangePassword.vue +17 -4
- package/components/PromptModal.vue +7 -1
- package/components/PromptRemove.vue +31 -10
- package/components/PromptRestore.vue +35 -10
- package/components/Questions/Array.vue +4 -1
- package/components/Questions/Boolean.vue +4 -1
- package/components/Questions/Enum.vue +4 -1
- package/components/Questions/Float.vue +4 -1
- package/components/Questions/Int.vue +4 -1
- package/components/Questions/QuestionMap.vue +4 -1
- package/components/Questions/Reference.vue +8 -2
- package/components/Questions/String.vue +4 -1
- package/components/Questions/index.vue +10 -2
- package/components/Random.vue +11 -3
- package/components/RelatedResources.vue +8 -2
- package/components/RelatedWorkloadsTable.vue +5 -1
- package/components/ResourceCancelModal.vue +15 -3
- package/components/ResourceDetail/Masthead.vue +31 -7
- package/components/ResourceList/Masthead.vue +6 -4
- package/components/ResourceList/ResourceLoadingIndicator.vue +8 -2
- package/components/ResourceList/index.vue +11 -8
- package/components/ResourceSummary.vue +13 -3
- package/components/ResourceTable.vue +59 -11
- package/components/ResourceYaml.vue +8 -2
- package/components/RoleBindings.vue +20 -3
- package/components/SelectIconGrid.vue +29 -7
- package/components/SimpleBox.vue +14 -3
- package/components/SingleClusterInfo.vue +40 -9
- package/components/SortableTable/THead.vue +29 -8
- package/components/SortableTable/filtering.js +7 -0
- package/components/SortableTable/index.vue +204 -45
- package/components/Tabbed/Tab.vue +9 -2
- package/components/Tabbed/index.vue +32 -7
- package/components/TableSparkLine.vue +4 -1
- package/components/Tip.vue +4 -1
- package/components/Wizard.vue +105 -23
- package/components/YamlEditor.vue +5 -1
- package/components/__tests__/.DS_Store +0 -0
- package/components/auth/AllowedPrincipals.vue +21 -5
- package/components/auth/AuthBanner.vue +21 -5
- package/components/auth/AzureWarning.vue +5 -1
- package/components/auth/Principal.vue +37 -9
- package/components/auth/RoleDetailEdit.vue +34 -10
- package/components/auth/SelectPrincipal.vue +20 -3
- package/components/auth/login/github.vue +5 -1
- package/components/auth/login/ldap.vue +10 -2
- package/components/auth/login/oauth.vue +6 -1
- package/components/auth/login/oidc.vue +6 -1
- package/components/auth/login/saml.vue +6 -1
- package/components/fleet/FleetBundles.vue +9 -2
- package/components/fleet/FleetClusters.vue +29 -6
- package/components/fleet/FleetIntro.vue +5 -2
- package/components/fleet/FleetRepos.vue +23 -4
- package/components/fleet/FleetStatus.vue +16 -4
- package/components/fleet/FleetSummary.vue +10 -2
- package/components/fleet/ForceDirectedTreeChart/index.vue +5 -3
- package/components/fleet/ResourcesSummary.vue +5 -1
- package/components/form/ArrayList.vue +31 -8
- package/components/form/ArrayListGrouped.vue +9 -3
- package/components/form/ArrayListSelect.vue +6 -1
- package/components/form/BannerSettings.vue +8 -2
- package/components/form/ChangePassword.vue +50 -10
- package/components/form/ColorInput.vue +28 -5
- package/components/form/Command.vue +5 -2
- package/components/form/EnvVars.vue +4 -1
- package/components/form/Error.vue +10 -2
- package/components/form/FileImageSelector.vue +1 -1
- package/components/form/FileSelector.vue +8 -2
- package/components/form/Footer.vue +14 -4
- package/components/form/GithubPicker.vue +16 -9
- package/components/form/HookOption.vue +5 -1
- package/components/form/InputWithSelect.vue +1 -1
- package/components/form/KeyValue.vue +81 -19
- package/components/form/LabeledSelect.vue +55 -8
- package/components/form/Labels.vue +1 -1
- package/components/form/LifecycleHooks.vue +10 -2
- package/components/form/MatchExpressions.vue +11 -3
- package/components/form/Members/ClusterPermissionsEditor.vue +21 -4
- package/components/form/Members/MembershipEditor.vue +11 -2
- package/components/form/NameNsDescription.vue +16 -10
- package/components/form/Networking.vue +3 -3
- package/components/form/NodeAffinity.vue +4 -1
- package/components/form/NodeScheduling.vue +5 -1
- package/components/form/Password.vue +32 -7
- package/components/form/PlusMinus.vue +18 -3
- package/components/form/PodAffinity.vue +12 -5
- package/components/form/PodSecurity.vue +20 -4
- package/components/form/Ports.vue +37 -11
- package/components/form/Probe.vue +18 -4
- package/components/form/ProjectMemberEditor.vue +24 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +4 -1
- package/components/form/ResourceQuota/Project.vue +7 -1
- package/components/form/ResourceQuota/ProjectRow.vue +11 -2
- package/components/form/ResourceSelector.vue +145 -0
- package/components/form/ResourceTabs/index.vue +38 -7
- package/components/form/RuleSelector.vue +15 -4
- package/components/form/SecretSelector.vue +4 -1
- package/components/form/Security.vue +2 -2
- package/components/form/Select.vue +8 -3
- package/components/form/SelectOrCreateAuthSecret.vue +43 -9
- package/components/form/ServiceNameSelect.vue +2 -2
- package/components/form/ServicePorts.vue +58 -17
- package/components/form/Tolerations.vue +34 -7
- package/components/form/ValueFromResource.vue +10 -2
- package/components/form/WorkloadPorts.vue +36 -8
- package/components/form/__tests__/MatchExpressions.test.ts +1 -2
- package/components/formatter/AppSummaryGraph.vue +24 -6
- package/components/formatter/BadgeStateFormatter.vue +4 -1
- package/components/formatter/Checked.vue +4 -1
- package/components/formatter/ClusterLink.vue +4 -1
- package/components/formatter/Date.vue +1 -1
- package/components/formatter/DelayedValue.vue +4 -1
- package/components/formatter/Endpoints.vue +5 -1
- package/components/formatter/ExternalLink.vue +5 -1
- package/components/formatter/FleetSummaryGraph.vue +20 -5
- package/components/formatter/IconText.vue +4 -1
- package/components/formatter/ImagePercentageBar.vue +5 -1
- package/components/formatter/IngressFullPath.vue +6 -1
- package/components/formatter/IngressTarget.vue +22 -5
- package/components/formatter/InternalExternalIP.vue +12 -2
- package/components/formatter/KeyValue.vue +5 -1
- package/components/formatter/Link.vue +30 -6
- package/components/formatter/LinkDetail.vue +4 -1
- package/components/formatter/LinkDetailImage.vue +1 -1
- package/components/formatter/ListLink.vue +10 -2
- package/components/formatter/ListLinkDetail.vue +6 -1
- package/components/formatter/LiveDate.vue +13 -3
- package/components/formatter/LiveExpiryDate.vue +18 -4
- package/components/formatter/LivePodRestarts.vue +4 -1
- package/components/formatter/MachineSummaryGraph.vue +25 -6
- package/components/formatter/Number.vue +4 -1
- package/components/formatter/PodsUsage.vue +4 -1
- package/components/formatter/Principal.vue +5 -1
- package/components/formatter/PrincipalGroupBindings.vue +4 -1
- package/components/formatter/ReceiverIcons.vue +9 -3
- package/components/formatter/RunBookLink.vue +6 -1
- package/components/formatter/Scale.vue +45 -10
- package/components/formatter/ScanResult.vue +4 -1
- package/components/formatter/SecretData.vue +5 -2
- package/components/formatter/SecretType.vue +4 -1
- package/components/formatter/ServiceTargets.vue +16 -4
- package/components/formatter/Shortened.vue +8 -2
- package/components/formatter/VirtualServiceGateways.vue +8 -2
- package/components/formatter/Weight.vue +19 -4
- package/components/formatter/WorkloadDetailEndpoints.vue +5 -1
- package/components/formatter/WorkloadHealthScale.vue +42 -8
- package/components/graph/AspectPreserver.vue +14 -3
- package/components/graph/Bar.vue +14 -3
- package/components/graph/Circle.vue +36 -7
- package/components/graph/HalfCircle.vue +6 -1
- package/components/graph/LinePlot.vue +3 -6
- package/components/graph/ProgressArc.vue +8 -2
- package/components/nav/GlobalLoading.vue +4 -1
- package/components/nav/Group.vue +39 -9
- package/components/nav/Header.vue +154 -37
- package/components/nav/Jump.vue +6 -2
- package/components/nav/NamespaceFilter.vue +112 -24
- package/components/nav/TopLevelMenu.vue +108 -24
- package/components/nav/Type.vue +18 -4
- package/components/nav/WindowManager/ChartReadme.vue +4 -1
- package/components/nav/WindowManager/ContainerLogs.vue +92 -19
- package/components/nav/WindowManager/ContainerShell.vue +26 -6
- package/components/nav/WindowManager/Window.vue +8 -2
- package/components/nav/WindowManager/index.vue +17 -4
- package/config/labels-annotations.js +5 -42
- package/config/private-label.js +5 -2
- package/config/product/explorer.js +8 -2
- package/config/roles.ts +2 -1
- package/config/{settings.js → settings.ts} +33 -50
- package/config/types.js +2 -0
- package/content/docs/en-us/getting-started.md +3 -3
- package/content/docs/en-us/whats-new.md +9 -123
- package/core/plugins.js +11 -8
- package/creators/app/{files/.eslintignore → .eslintignore} +0 -0
- package/creators/app/{files/.eslintrc.js → .eslintrc.js} +0 -0
- package/creators/app/{files/.vscode → .vscode}/settings.json +0 -0
- package/creators/app/{files/babel.config.js → babel.config.js} +0 -0
- package/creators/app/init +17 -16
- package/creators/app/{files/nuxt.config.js → nuxt.config.js} +0 -0
- package/creators/app/package.json +1 -7
- package/creators/app/{files/tsconfig.json → tsconfig.json} +1 -2
- package/creators/pkg/{files/babel.config.js → babel.config.js} +0 -0
- package/creators/pkg/{files/index.ts → index.ts} +0 -0
- package/creators/pkg/init +1 -1
- package/creators/pkg/nuxt.config.js +6 -0
- package/creators/pkg/package-lock.json +37 -0
- package/creators/pkg/package.json +1 -1
- package/creators/pkg/{files/tsconfig.json → tsconfig.json} +12 -13
- package/creators/pkg/{files/vue.config.js → vue.config.js} +0 -0
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +12 -3
- package/detail/catalog.cattle.io.app.vue +41 -8
- package/detail/catalog.cattle.io.clusterrepo.vue +4 -1
- package/detail/cis.cattle.io.clusterscan.vue +23 -5
- package/detail/configmap.vue +18 -4
- package/detail/constraints.gatekeeper.sh.constraint.vue +4 -1
- package/detail/fleet.cattle.io.cluster.vue +14 -3
- package/detail/fleet.cattle.io.clustergroup.vue +9 -2
- package/detail/fleet.cattle.io.gitrepo.vue +16 -3
- package/detail/harvesterhci.io.management.cluster.vue +5 -1
- package/detail/helm.cattle.io.projecthelmchart.vue +49 -13
- package/detail/management.cattle.io.fleetworkspace.vue +19 -4
- package/detail/management.cattle.io.roletemplate.vue +4 -1
- package/detail/management.cattle.io.user.vue +26 -5
- package/detail/namespace.vue +6 -4
- package/detail/networking.k8s.io.ingress.vue +16 -3
- package/detail/node.vue +83 -18
- package/detail/pod.vue +27 -5
- package/detail/provisioning.cattle.io.cluster.vue +195 -43
- package/detail/secret.vue +78 -19
- package/detail/service.vue +9 -2
- package/detail/workload/index.vue +81 -17
- package/dialog/AddClusterMemberDialog.vue +25 -6
- package/dialog/AddCustomBadgeDialog.vue +43 -10
- package/dialog/AddProjectMemberDialog.vue +27 -7
- package/dialog/AddonConfigConfirmationDialog.vue +17 -4
- package/dialog/DiagnosticTimingsDialog.vue +27 -6
- package/dialog/DrainNode.vue +46 -11
- package/dialog/ForceMachineRemoveDialog.vue +35 -8
- package/dialog/GenericPrompt.vue +28 -7
- package/dialog/RollbackWorkloadDialog.vue +45 -11
- package/dialog/RotateCertificatesDialog.vue +31 -6
- package/dialog/RotateEncryptionKeyDialog.vue +41 -10
- package/dialog/SaveAsRKETemplateDialog.vue +31 -7
- package/dialog/ScaleMachineDownDialog.vue +13 -3
- package/edit/__tests__/management.cattle.io.setting.test.ts +87 -0
- package/edit/auth/azuread.vue +20 -6
- package/edit/auth/github.vue +52 -11
- package/edit/auth/googleoauth.vue +81 -17
- package/edit/auth/ldap/config.vue +164 -31
- package/edit/auth/ldap/index.vue +29 -7
- package/edit/auth/oidc.vue +36 -8
- package/edit/auth/saml.vue +57 -12
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +9 -2
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +23 -6
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +8 -2
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +16 -4
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +13 -3
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +9 -2
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +6 -1
- package/edit/catalog.cattle.io.clusterrepo.vue +15 -3
- package/edit/cis.cattle.io.clusterscan.vue +53 -11
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +15 -3
- package/edit/cis.cattle.io.clusterscanprofile.vue +13 -3
- package/edit/configmap.vue +5 -1
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +40 -9
- package/edit/fleet.cattle.io.cluster.vue +6 -2
- package/edit/fleet.cattle.io.clustergroup.vue +12 -3
- package/edit/fleet.cattle.io.gitrepo.vue +25 -5
- package/edit/group.principal.vue +6 -1
- package/edit/harvesterhci.io.management.cluster.vue +22 -5
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +11 -2
- package/edit/logging-flow/Match.vue +2 -2
- package/edit/logging-flow/index.vue +67 -14
- package/edit/logging.banzaicloud.io.output/index.vue +37 -8
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +7 -2
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -4
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +24 -4
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +20 -5
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +21 -5
- package/edit/logging.banzaicloud.io.output/providers/file.vue +6 -1
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +8 -3
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +25 -5
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +46 -8
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +26 -6
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +7 -2
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +20 -4
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +8 -3
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +34 -8
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +25 -5
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +33 -7
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +57 -12
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +10 -2
- package/edit/management.cattle.io.fleetworkspace.vue +17 -4
- package/edit/management.cattle.io.project.vue +7 -1
- package/edit/management.cattle.io.roletemplate.vue +4 -1
- package/edit/management.cattle.io.setting.vue +71 -30
- package/edit/management.cattle.io.user.vue +4 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +24 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +24 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +29 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +12 -3
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +50 -9
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +31 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +29 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +8 -2
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +36 -7
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +24 -6
- package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +16 -6
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +10 -2
- package/edit/monitoring.coreos.com.receiver/auth.vue +36 -7
- package/edit/monitoring.coreos.com.receiver/index.vue +53 -11
- package/edit/monitoring.coreos.com.receiver/tls.vue +22 -4
- package/edit/monitoring.coreos.com.receiver/types/email.vue +48 -8
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +32 -6
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +22 -4
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -1
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +5 -1
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +31 -6
- package/edit/monitoring.coreos.com.route.vue +71 -15
- package/edit/namespace.vue +35 -7
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +12 -3
- package/edit/networking.istio.io.destinationrule/index.vue +5 -3
- package/edit/networking.k8s.io.ingress/Certificate.vue +10 -2
- package/edit/networking.k8s.io.ingress/Certificates.vue +6 -1
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +16 -4
- package/edit/networking.k8s.io.ingress/Rule.vue +21 -5
- package/edit/networking.k8s.io.ingress/RulePath.vue +27 -6
- package/edit/networking.k8s.io.ingress/Rules.vue +7 -1
- package/edit/networking.k8s.io.ingress/index.vue +52 -9
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +20 -4
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +8 -2
- package/edit/networking.k8s.io.networkpolicy/index.vue +36 -8
- package/edit/node.vue +13 -3
- package/edit/persistentvolume/index.vue +48 -8
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +19 -3
- package/edit/persistentvolume/plugins/azureDisk.vue +20 -3
- package/edit/persistentvolume/plugins/azureFile.vue +18 -3
- package/edit/persistentvolume/plugins/cephfs.vue +35 -6
- package/edit/persistentvolume/plugins/cinder.vue +24 -4
- package/edit/persistentvolume/plugins/csi.vue +72 -12
- package/edit/persistentvolume/plugins/fc.vue +23 -4
- package/edit/persistentvolume/plugins/flexVolume.vue +30 -5
- package/edit/persistentvolume/plugins/flocker.vue +12 -2
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +19 -3
- package/edit/persistentvolume/plugins/glusterfs.vue +12 -2
- package/edit/persistentvolume/plugins/hostPath.vue +12 -2
- package/edit/persistentvolume/plugins/iscsi.vue +54 -9
- package/edit/persistentvolume/plugins/local.vue +6 -1
- package/edit/persistentvolume/plugins/longhorn.vue +13 -2
- package/edit/persistentvolume/plugins/nfs.vue +12 -2
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +12 -2
- package/edit/persistentvolume/plugins/portworxVolume.vue +12 -2
- package/edit/persistentvolume/plugins/quobyte.vue +24 -4
- package/edit/persistentvolume/plugins/rbd.vue +47 -8
- package/edit/persistentvolume/plugins/scaleIO.vue +54 -9
- package/edit/persistentvolume/plugins/storageos.vue +30 -5
- package/edit/persistentvolume/plugins/vsphereVolume.vue +24 -4
- package/edit/persistentvolumeclaim.vue +69 -15
- package/edit/policy.poddisruptionbudget.vue +149 -0
- package/edit/provisioning.cattle.io.cluster/ACE.vue +6 -1
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +61 -15
- package/edit/provisioning.cattle.io.cluster/DrainOptions.vue +24 -4
- package/edit/provisioning.cattle.io.cluster/Labels.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +31 -8
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +16 -3
- package/edit/provisioning.cattle.io.cluster/RegistryMirrors.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/S3Config.vue +35 -6
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +21 -5
- package/edit/provisioning.cattle.io.cluster/import.vue +23 -5
- package/edit/provisioning.cattle.io.cluster/index.vue +9 -0
- package/edit/provisioning.cattle.io.cluster/rke2.vue +203 -64
- package/edit/resources.cattle.io.backup.vue +42 -8
- package/edit/resources.cattle.io.restore.vue +53 -11
- package/edit/secret/basic.vue +12 -2
- package/edit/secret/index.vue +29 -7
- package/edit/secret/registry.vue +22 -4
- package/edit/secret/ssh.vue +10 -2
- package/edit/secret/tls.vue +10 -2
- package/edit/service.vue +12 -3
- package/edit/serviceaccount.vue +6 -3
- package/edit/storage.k8s.io.storageclass/index.vue +15 -3
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +6 -1
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +6 -1
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +20 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +12 -2
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +18 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +13 -2
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +14 -2
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +54 -9
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +42 -7
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +48 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +66 -11
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +48 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +30 -5
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +36 -6
- package/edit/token.vue +48 -10
- package/edit/workload/Job.vue +20 -5
- package/edit/workload/Upgrading.vue +28 -7
- package/edit/workload/index.vue +244 -48
- package/edit/workload/storage/azureDisk.vue +5 -1
- package/edit/workload/storage/azureFile.vue +5 -1
- package/edit/workload/storage/csi/driver.longhorn.io.vue +6 -1
- package/edit/workload/storage/csi/index.vue +9 -2
- package/edit/workload/storage/ephemeralVolume/index.vue +38 -8
- package/edit/workload/storage/gcePersistentDisk.vue +10 -2
- package/edit/workload/storage/hostPath.vue +18 -3
- package/edit/workload/storage/persistentVolumeClaim/index.vue +4 -1
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +26 -5
- package/edit/workload/storage/vsphereVolume.vue +10 -2
- package/layouts/blank.vue +1 -1
- package/layouts/default.vue +60 -65
- package/layouts/error.vue +25 -5
- package/layouts/home.vue +17 -4
- package/layouts/plain.vue +13 -3
- package/layouts/unauthenticated.vue +1 -1
- package/list/catalog.cattle.io.app.vue +15 -2
- package/list/catalog.cattle.io.clusterrepo.vue +5 -0
- package/list/cis.cattle.io.clusterscan.vue +6 -0
- package/list/fleet.cattle.io.bundle.vue +14 -2
- package/list/fleet.cattle.io.cluster.vue +10 -1
- package/list/fleet.cattle.io.clustergroup.vue +14 -2
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +11 -3
- package/list/fleet.cattle.io.gitrepo.vue +6 -0
- package/list/group.principal.vue +11 -1
- package/list/harvesterhci.io.management.cluster.vue +25 -6
- package/list/helm.cattle.io.projecthelmchart.vue +23 -5
- package/list/logging.banzaicloud.io.clusterflow.vue +11 -1
- package/list/logging.banzaicloud.io.flow.vue +11 -1
- package/list/management.cattle.io.cluster.vue +12 -1
- package/list/management.cattle.io.feature.vue +71 -15
- package/list/management.cattle.io.setting.vue +44 -10
- package/list/management.cattle.io.user.vue +12 -1
- package/list/monitoring.coreos.com.alertmanagerconfig.vue +6 -0
- package/list/namespace.vue +8 -0
- package/list/node.vue +14 -2
- package/list/persistentvolume.vue +13 -1
- package/list/persistentvolumeclaim.vue +6 -0
- package/list/provisioning.cattle.io.cluster.vue +23 -4
- package/list/service.vue +6 -0
- package/list/ui.cattle.io.navlink.vue +20 -3
- package/list/workload.vue +15 -2
- package/machine-config/amazonec2.vue +12 -3
- package/machine-config/azure.vue +16 -7
- package/machine-config/digitalocean.vue +4 -1
- package/machine-config/generic.vue +4 -1
- package/machine-config/harvester.vue +23 -6
- package/machine-config/linode.vue +4 -1
- package/machine-config/vmwarevsphere.vue +91 -21
- package/mixins/__tests__/create-edit-view.test.ts +19 -0
- package/mixins/brand.js +12 -3
- package/mixins/form-validation.js +108 -33
- package/models/clusterroletemplatebinding.js +2 -5
- package/models/management.cattle.io.cluster.js +7 -1
- package/models/secret.js +9 -1
- package/models/workload.js +3 -3
- package/nuxt.config.js +28 -10
- package/package.json +2 -2
- package/pages/about.vue +41 -9
- package/pages/account/index.vue +20 -5
- package/pages/auth/login.vue +83 -22
- package/pages/auth/logout.vue +1 -1
- package/pages/auth/setup.vue +48 -12
- package/pages/auth/verify.vue +1 -1
- package/pages/c/_cluster/_product/members/index.vue +3 -1
- package/pages/c/_cluster/_product/namespaces.vue +4 -1
- package/pages/c/_cluster/apps/charts/chart.vue +124 -27
- package/pages/c/_cluster/apps/charts/index.vue +35 -8
- package/pages/c/_cluster/apps/charts/install.vue +200 -48
- package/pages/c/_cluster/auth/config/_id.vue +4 -1
- package/pages/c/_cluster/auth/config/index.vue +6 -2
- package/pages/c/_cluster/auth/group.principal/assign-edit.vue +10 -5
- package/pages/c/_cluster/auth/roles/index.vue +33 -7
- package/pages/c/_cluster/explorer/ConfigBadge.vue +4 -1
- package/pages/c/_cluster/explorer/index.vue +109 -24
- package/pages/c/_cluster/explorer/tools/index.vue +76 -17
- package/pages/c/_cluster/explorer/tools/pages/_page.vue +4 -1
- package/pages/c/_cluster/fleet/index.vue +9 -2
- package/pages/c/_cluster/gatekeeper/index.vue +4 -1
- package/pages/c/_cluster/istio/index.vue +20 -8
- package/pages/c/_cluster/legacy/pages/_page.vue +4 -1
- package/pages/c/_cluster/legacy/project/_page.vue +4 -1
- package/pages/c/_cluster/legacy/project/index.vue +4 -1
- package/pages/c/_cluster/legacy/project/pipelines.vue +27 -5
- package/pages/c/_cluster/logging/index.vue +4 -1
- package/pages/c/_cluster/longhorn/index.vue +16 -5
- package/pages/c/_cluster/manager/cloudCredential/index.vue +15 -3
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +14 -5
- package/pages/c/_cluster/monitoring/monitor/index.vue +24 -6
- package/pages/c/_cluster/monitoring/route-receiver/index.vue +25 -6
- package/pages/c/_cluster/neuvector/index.vue +16 -5
- package/pages/c/_cluster/settings/DefaultLinksEditor.vue +25 -7
- package/pages/c/_cluster/settings/banners.vue +10 -2
- package/pages/c/_cluster/settings/brand.vue +75 -17
- package/pages/c/_cluster/settings/links.vue +16 -4
- package/pages/c/_cluster/settings/performance.vue +22 -5
- package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +19 -4
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +14 -3
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +54 -12
- package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +18 -4
- package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +14 -3
- package/pages/c/_cluster/uiplugins/UninstallDialog.vue +9 -2
- package/pages/c/_cluster/uiplugins/index.vue +149 -34
- package/pages/diagnostic.vue +14 -5
- package/pages/docs/_doc.vue +22 -5
- package/pages/fail-whale.vue +26 -6
- package/pages/home.vue +54 -14
- package/pages/prefs.vue +65 -22
- package/pages/rio/mesh.vue +6 -2
- package/pages/support/index.vue +35 -7
- package/plugins/steve/subscribe.js +1 -1
- package/promptRemove/management.cattle.io.globalrole.vue +9 -3
- package/promptRemove/management.cattle.io.project.vue +14 -5
- package/promptRemove/management.cattle.io.roletemplate.vue +9 -3
- package/promptRemove/pod.vue +15 -3
- package/rancher-components/BadgeState/BadgeState.spec.ts +12 -0
- package/rancher-components/BadgeState/BadgeState.vue +107 -0
- package/rancher-components/BadgeState/index.ts +1 -0
- package/rancher-components/Banner/Banner.test.ts +13 -0
- package/rancher-components/Banner/Banner.vue +163 -0
- package/rancher-components/Banner/index.ts +1 -0
- package/rancher-components/Card/Card.vue +150 -0
- package/rancher-components/Card/index.ts +1 -0
- package/rancher-components/Form/Checkbox/Checkbox.test.ts +77 -0
- package/rancher-components/Form/Checkbox/Checkbox.vue +395 -0
- package/rancher-components/Form/Checkbox/index.ts +1 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +29 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +343 -0
- package/rancher-components/Form/LabeledInput/index.ts +1 -0
- package/rancher-components/Form/Radio/RadioButton.vue +270 -0
- package/rancher-components/Form/Radio/RadioGroup.vue +235 -0
- package/rancher-components/Form/Radio/index.ts +2 -0
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +169 -0
- package/rancher-components/Form/TextArea/index.ts +1 -0
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +107 -0
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +137 -0
- package/rancher-components/Form/ToggleSwitch/index.ts +1 -0
- package/rancher-components/Form/index.ts +5 -0
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +137 -0
- package/rancher-components/LabeledTooltip/index.ts +1 -0
- package/rancher-components/StringList/StringList.test.ts +80 -0
- package/rancher-components/StringList/StringList.vue +593 -0
- package/rancher-components/StringList/index.ts +1 -0
- package/scripts/publish-shell.sh +6 -39
- package/scripts/test-plugins-build.sh +5 -9
- package/store/prefs.js +1 -1
- package/types/form.ts +1 -0
- package/types/generic.ts +2 -0
- package/types/t.ts +1 -0
- package/types/userPreferences.d.ts +14 -0
- package/utils/array.ts +21 -0
- package/utils/favicon.js +2 -0
- package/utils/settings.ts +50 -0
- package/utils/validators/formRules/__tests__/index.test.ts +22 -1
- package/utils/validators/formRules/index.ts +68 -43
- package/creators/update/init +0 -54
- package/creators/update/package.json +0 -20
- package/creators/update/upgrade +0 -56
- package/scripts/record-deps.js +0 -37
- package/scripts/typegen.sh +0 -84
- package/types/shell/index.d.ts +0 -3046
- package/types/vue-shim.d +0 -20
package/components/Wizard.vue
CHANGED
|
@@ -254,18 +254,39 @@ export default {
|
|
|
254
254
|
|
|
255
255
|
<template>
|
|
256
256
|
<div class="outer-container">
|
|
257
|
-
<Loading
|
|
257
|
+
<Loading
|
|
258
|
+
v-if="!stepsLoaded"
|
|
259
|
+
mode="relative"
|
|
260
|
+
/>
|
|
258
261
|
<!-- Note - Don't v-else this.... the steps need to be included in order to update 'stepsLoaded' -->
|
|
259
|
-
<div
|
|
262
|
+
<div
|
|
263
|
+
class="outer-container"
|
|
264
|
+
:class="{'hide': !stepsLoaded}"
|
|
265
|
+
>
|
|
260
266
|
<div class="header">
|
|
261
267
|
<div class="title">
|
|
262
|
-
<div
|
|
263
|
-
|
|
264
|
-
|
|
268
|
+
<div
|
|
269
|
+
v-if="showBanner"
|
|
270
|
+
class="top choice-banner"
|
|
271
|
+
>
|
|
272
|
+
<slot
|
|
273
|
+
v-if="!!bannerImage || !!bannerTitle"
|
|
274
|
+
name="bannerTitle"
|
|
275
|
+
>
|
|
276
|
+
<div
|
|
277
|
+
v-show="initialTitle || activeStepIndex > 0"
|
|
278
|
+
class="title"
|
|
279
|
+
>
|
|
265
280
|
<!-- Logo -->
|
|
266
281
|
<slot name="bannerTitleImage">
|
|
267
|
-
<div
|
|
268
|
-
|
|
282
|
+
<div
|
|
283
|
+
v-if="bannerImage"
|
|
284
|
+
class="round-image"
|
|
285
|
+
>
|
|
286
|
+
<LazyImage
|
|
287
|
+
:src="bannerImage"
|
|
288
|
+
class="logo"
|
|
289
|
+
/>
|
|
269
290
|
</div>
|
|
270
291
|
</slot>
|
|
271
292
|
<!-- Title with subtext -->
|
|
@@ -273,15 +294,24 @@ export default {
|
|
|
273
294
|
<h2 v-if="bannerTitle">
|
|
274
295
|
{{ bannerTitle }}
|
|
275
296
|
</h2>
|
|
276
|
-
<span
|
|
297
|
+
<span
|
|
298
|
+
v-if="bannerTitleSubtext"
|
|
299
|
+
class="subtext"
|
|
300
|
+
>{{ bannerTitleSubtext }}</span>
|
|
277
301
|
</div>
|
|
278
302
|
</div>
|
|
279
303
|
</slot>
|
|
280
304
|
<!-- Step number with subtext -->
|
|
281
|
-
<div
|
|
305
|
+
<div
|
|
306
|
+
v-if="activeStep && showSteps"
|
|
307
|
+
class="subtitle"
|
|
308
|
+
>
|
|
282
309
|
<h2>{{ !!headerMode ? t(`wizard.${headerMode}`) : t(`asyncButton.${finishMode}.action`) }}: {{ t('wizard.step', {number:activeStepIndex+1}) }}</h2>
|
|
283
310
|
<slot name="bannerSubtext">
|
|
284
|
-
<span
|
|
311
|
+
<span
|
|
312
|
+
v-if="activeStep.subtext !== null"
|
|
313
|
+
class="subtext"
|
|
314
|
+
>{{ activeStep.subtext || activeStep.label }}</span>
|
|
285
315
|
</slot>
|
|
286
316
|
</div>
|
|
287
317
|
</div>
|
|
@@ -308,13 +338,20 @@ export default {
|
|
|
308
338
|
class="controls"
|
|
309
339
|
@click.prevent="goToStep(idx+1, true)"
|
|
310
340
|
>
|
|
311
|
-
<span
|
|
341
|
+
<span
|
|
342
|
+
class="icon icon-lg"
|
|
343
|
+
:class="{'icon-dot': step.name === activeStep.name, 'icon-dot-open':step.name !== activeStep.name}"
|
|
344
|
+
/>
|
|
312
345
|
<span>
|
|
313
346
|
{{ step.label }}
|
|
314
347
|
</span>
|
|
315
348
|
</span>
|
|
316
349
|
</li>
|
|
317
|
-
<div
|
|
350
|
+
<div
|
|
351
|
+
v-if="idx!==visibleSteps.length-1"
|
|
352
|
+
:key="step.name"
|
|
353
|
+
class="divider"
|
|
354
|
+
/>
|
|
318
355
|
</template>
|
|
319
356
|
</ul>
|
|
320
357
|
</div>
|
|
@@ -326,8 +363,16 @@ export default {
|
|
|
326
363
|
:activeStep="activeStep"
|
|
327
364
|
>
|
|
328
365
|
<template v-for="step in steps">
|
|
329
|
-
<div
|
|
330
|
-
|
|
366
|
+
<div
|
|
367
|
+
v-if="step.name === activeStep.name || step.hidden"
|
|
368
|
+
:key="step.name"
|
|
369
|
+
class="step-container__step"
|
|
370
|
+
:class="{'hide': step.name !== activeStep.name && step.hidden}"
|
|
371
|
+
>
|
|
372
|
+
<slot
|
|
373
|
+
:step="step"
|
|
374
|
+
:name="step.name"
|
|
375
|
+
/>
|
|
331
376
|
</div>
|
|
332
377
|
</template>
|
|
333
378
|
</slot>
|
|
@@ -344,30 +389,67 @@ export default {
|
|
|
344
389
|
:cancel="cancel"
|
|
345
390
|
:activeStep="activeStep"
|
|
346
391
|
>
|
|
347
|
-
<div
|
|
348
|
-
|
|
392
|
+
<div
|
|
393
|
+
v-for="(err,idx) in errorStrings"
|
|
394
|
+
:key="idx"
|
|
395
|
+
>
|
|
396
|
+
<Banner
|
|
397
|
+
color="error"
|
|
398
|
+
:label="err"
|
|
399
|
+
:closable="true"
|
|
400
|
+
@close="errors.splice(idx, 1)"
|
|
401
|
+
/>
|
|
349
402
|
</div>
|
|
350
403
|
<div class="controls-row pt-20">
|
|
351
|
-
<slot
|
|
352
|
-
|
|
404
|
+
<slot
|
|
405
|
+
name="cancel"
|
|
406
|
+
:cancel="cancel"
|
|
407
|
+
>
|
|
408
|
+
<button
|
|
409
|
+
type="button"
|
|
410
|
+
class="btn role-secondary"
|
|
411
|
+
@click="cancel"
|
|
412
|
+
>
|
|
353
413
|
<t k="generic.cancel" />
|
|
354
414
|
</button>
|
|
355
415
|
</slot>
|
|
356
416
|
<div class="controls-steps">
|
|
357
|
-
<slot
|
|
358
|
-
|
|
417
|
+
<slot
|
|
418
|
+
v-if="showPrevious"
|
|
419
|
+
name="back"
|
|
420
|
+
:back="back"
|
|
421
|
+
>
|
|
422
|
+
<button
|
|
423
|
+
:disabled="!canPrevious || (!editFirstStep && activeStepIndex===1)"
|
|
424
|
+
type="button"
|
|
425
|
+
class="btn role-secondary"
|
|
426
|
+
@click="back()"
|
|
427
|
+
>
|
|
359
428
|
<t k="wizard.previous" />
|
|
360
429
|
</button>
|
|
361
430
|
</slot>
|
|
362
|
-
<slot
|
|
431
|
+
<slot
|
|
432
|
+
v-if="activeStepIndex === visibleSteps.length-1"
|
|
433
|
+
name="finish"
|
|
434
|
+
:finish="finish"
|
|
435
|
+
>
|
|
363
436
|
<AsyncButton
|
|
364
437
|
:disabled="!activeStep.ready"
|
|
365
438
|
:mode="finishMode"
|
|
366
439
|
@click="finish"
|
|
367
440
|
/>
|
|
368
441
|
</slot>
|
|
369
|
-
<slot
|
|
370
|
-
|
|
442
|
+
<slot
|
|
443
|
+
v-else
|
|
444
|
+
name="next"
|
|
445
|
+
:next="next"
|
|
446
|
+
>
|
|
447
|
+
<button
|
|
448
|
+
:disabled="!canNext"
|
|
449
|
+
type="button"
|
|
450
|
+
:class="nextButtonStyle"
|
|
451
|
+
@click="next()"
|
|
452
|
+
>
|
|
371
453
|
<t :k="nextButtonLabel" />
|
|
372
454
|
</button>
|
|
373
455
|
</slot>
|
|
@@ -204,7 +204,11 @@ export default {
|
|
|
204
204
|
<template>
|
|
205
205
|
<div class="yaml-editor">
|
|
206
206
|
<div class="text-right">
|
|
207
|
-
<span
|
|
207
|
+
<span
|
|
208
|
+
v-if="isPreview && !hidePreviewButtons"
|
|
209
|
+
v-trim-whitespace
|
|
210
|
+
class="btn-group btn-sm diff-mode"
|
|
211
|
+
>
|
|
208
212
|
<button
|
|
209
213
|
type="button"
|
|
210
214
|
class="btn btn-sm bg-default"
|
|
Binary file
|
|
@@ -77,7 +77,10 @@ export default {
|
|
|
77
77
|
</div>
|
|
78
78
|
<div class="col span-6">
|
|
79
79
|
<h4 v-if="accessMode!=='unrestricted'">
|
|
80
|
-
<t
|
|
80
|
+
<t
|
|
81
|
+
k="authConfig.allowedPrincipalIds.title"
|
|
82
|
+
:raw="true"
|
|
83
|
+
/>
|
|
81
84
|
</h4>
|
|
82
85
|
<ArrayList
|
|
83
86
|
v-if="accessMode!=='unrestricted'"
|
|
@@ -88,17 +91,30 @@ export default {
|
|
|
88
91
|
:protip="false"
|
|
89
92
|
>
|
|
90
93
|
<template #value="{row}">
|
|
91
|
-
<Principal
|
|
94
|
+
<Principal
|
|
95
|
+
:key="row.value"
|
|
96
|
+
:value="row.value"
|
|
97
|
+
/>
|
|
92
98
|
</template>
|
|
93
99
|
|
|
94
|
-
<template
|
|
95
|
-
|
|
100
|
+
<template
|
|
101
|
+
v-if="authConfig.allowedPrincipalIds.length <= 1"
|
|
102
|
+
#remove-button
|
|
103
|
+
>
|
|
104
|
+
<button
|
|
105
|
+
type="button"
|
|
106
|
+
disabled
|
|
107
|
+
class="btn role-link bg-transparent"
|
|
108
|
+
>
|
|
96
109
|
{{ t('generic.remove') }}
|
|
97
110
|
</button>
|
|
98
111
|
</template>
|
|
99
112
|
|
|
100
113
|
<template #add>
|
|
101
|
-
<SelectPrincipal
|
|
114
|
+
<SelectPrincipal
|
|
115
|
+
:mode="mode"
|
|
116
|
+
@add="addPrincipal"
|
|
117
|
+
/>
|
|
102
118
|
</template>
|
|
103
119
|
</ArrayList>
|
|
104
120
|
</div>
|
|
@@ -37,19 +37,35 @@ export default {
|
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
39
|
<div>
|
|
40
|
-
<Banner
|
|
40
|
+
<Banner
|
|
41
|
+
color="success clearfix"
|
|
42
|
+
class="banner"
|
|
43
|
+
>
|
|
41
44
|
<div class="text">
|
|
42
45
|
{{ t('authConfig.stateBanner.enabled', tArgs) }}
|
|
43
46
|
</div>
|
|
44
47
|
<slot name="actions" />
|
|
45
|
-
<button
|
|
48
|
+
<button
|
|
49
|
+
type="button"
|
|
50
|
+
class="btn-sm role-primary"
|
|
51
|
+
@click="edit"
|
|
52
|
+
>
|
|
46
53
|
{{ t('action.edit') }}
|
|
47
54
|
</button>
|
|
48
|
-
<AsyncButton
|
|
55
|
+
<AsyncButton
|
|
56
|
+
class="ml-10"
|
|
57
|
+
mode="disable"
|
|
58
|
+
size="sm"
|
|
59
|
+
action-color="bg-error"
|
|
60
|
+
@click="disable"
|
|
61
|
+
/>
|
|
49
62
|
</Banner>
|
|
50
63
|
|
|
51
|
-
<table
|
|
52
|
-
|
|
64
|
+
<table
|
|
65
|
+
v-if="!!$slots.rows"
|
|
66
|
+
class="values"
|
|
67
|
+
>
|
|
68
|
+
<slot name="rows" />
|
|
53
69
|
</table>
|
|
54
70
|
</div>
|
|
55
71
|
</template>
|
|
@@ -49,7 +49,11 @@ export default {
|
|
|
49
49
|
</script>
|
|
50
50
|
|
|
51
51
|
<template>
|
|
52
|
-
<div
|
|
52
|
+
<div
|
|
53
|
+
v-if="showWarning"
|
|
54
|
+
id="azure-warn"
|
|
55
|
+
class="banner"
|
|
56
|
+
>
|
|
53
57
|
<p>
|
|
54
58
|
{{ t('authConfig.azuread.updateEndpoint.banner.message') }}
|
|
55
59
|
<n-link :to="authConfigRoute">
|
|
@@ -55,22 +55,35 @@ export default {
|
|
|
55
55
|
</script>
|
|
56
56
|
|
|
57
57
|
<template>
|
|
58
|
-
<div
|
|
58
|
+
<div
|
|
59
|
+
class="principal"
|
|
60
|
+
:class="{'showLabels': showLabels}"
|
|
61
|
+
>
|
|
59
62
|
<template v-if="!principal && $fetchState.pending">
|
|
60
63
|
<div class="avatar">
|
|
61
64
|
<div class="empty">
|
|
62
65
|
<i class="icon icon-spinner icon-lg" />
|
|
63
66
|
</div>
|
|
64
67
|
</div>
|
|
65
|
-
<div
|
|
68
|
+
<div
|
|
69
|
+
class="name"
|
|
70
|
+
:class="{'text-muted': useMuted}"
|
|
71
|
+
v-html="t('principal.loading', null, true)"
|
|
72
|
+
/>
|
|
66
73
|
<div class="description" />
|
|
67
74
|
</template>
|
|
68
75
|
|
|
69
76
|
<template v-else-if="principal">
|
|
70
77
|
<div class="avatar">
|
|
71
|
-
<img
|
|
78
|
+
<img
|
|
79
|
+
:src="principal.avatarSrc"
|
|
80
|
+
:class="{'round': principal.roundAvatar}"
|
|
81
|
+
>
|
|
72
82
|
</div>
|
|
73
|
-
<div
|
|
83
|
+
<div
|
|
84
|
+
v-if="showLabels"
|
|
85
|
+
class="name"
|
|
86
|
+
>
|
|
74
87
|
<table>
|
|
75
88
|
<tr><td>{{ t('principal.name') }}: </td><td>{{ principal.name || principal.loginName }}</td></tr>
|
|
76
89
|
<tr><td>{{ t('principal.loginName') }}: </td><td>{{ principal.loginName }}</td></tr>
|
|
@@ -81,7 +94,10 @@ export default {
|
|
|
81
94
|
<div class="name">
|
|
82
95
|
<template v-if="showBoth">
|
|
83
96
|
{{ principal.name }}
|
|
84
|
-
<span
|
|
97
|
+
<span
|
|
98
|
+
v-if="principal.loginName"
|
|
99
|
+
:class="{'text-muted': useMuted}"
|
|
100
|
+
>({{ principal.loginName }})</span>
|
|
85
101
|
</template>
|
|
86
102
|
<template v-else-if="principal.name">
|
|
87
103
|
{{ principal.name }}
|
|
@@ -90,7 +106,10 @@ export default {
|
|
|
90
106
|
{{ principal.loginName }}
|
|
91
107
|
</template>
|
|
92
108
|
</div>
|
|
93
|
-
<div
|
|
109
|
+
<div
|
|
110
|
+
class="description"
|
|
111
|
+
:class="{'text-muted': useMuted}"
|
|
112
|
+
>
|
|
94
113
|
{{ principal.displayType }}
|
|
95
114
|
</div>
|
|
96
115
|
</template>
|
|
@@ -98,12 +117,21 @@ export default {
|
|
|
98
117
|
|
|
99
118
|
<template v-else>
|
|
100
119
|
<div class="avatar">
|
|
101
|
-
<div
|
|
120
|
+
<div
|
|
121
|
+
class="empty"
|
|
122
|
+
:class="{'text-muted': useMuted}"
|
|
123
|
+
>
|
|
102
124
|
<i class="icon icon-warning icon-lg" />
|
|
103
125
|
</div>
|
|
104
126
|
</div>
|
|
105
|
-
<div
|
|
106
|
-
|
|
127
|
+
<div
|
|
128
|
+
v-t="'principal.error'"
|
|
129
|
+
class="name text-error"
|
|
130
|
+
/>
|
|
131
|
+
<div
|
|
132
|
+
class="description"
|
|
133
|
+
:class="{'text-muted': useMuted}"
|
|
134
|
+
>
|
|
107
135
|
{{ value }}
|
|
108
136
|
</div>
|
|
109
137
|
</template>
|
|
@@ -524,8 +524,11 @@ export default {
|
|
|
524
524
|
:row-actions="false"
|
|
525
525
|
:search="false"
|
|
526
526
|
/>
|
|
527
|
-
<div
|
|
528
|
-
|
|
527
|
+
<div
|
|
528
|
+
v-for="(inherited, index) of inheritedRules"
|
|
529
|
+
:key="index"
|
|
530
|
+
>
|
|
531
|
+
<div class="spacer" />
|
|
529
532
|
<h3>
|
|
530
533
|
Inherited from {{ inherited.template.nameDisplay }}
|
|
531
534
|
<template v-if="inherited.showParent">
|
|
@@ -551,7 +554,10 @@ export default {
|
|
|
551
554
|
description-key="description"
|
|
552
555
|
label="Name"
|
|
553
556
|
/>
|
|
554
|
-
<div
|
|
557
|
+
<div
|
|
558
|
+
v-if="isRancherType"
|
|
559
|
+
class="row"
|
|
560
|
+
>
|
|
555
561
|
<div class="col span-6">
|
|
556
562
|
<RadioGroup
|
|
557
563
|
v-model="defaultValue"
|
|
@@ -562,7 +568,10 @@ export default {
|
|
|
562
568
|
:mode="mode"
|
|
563
569
|
/>
|
|
564
570
|
</div>
|
|
565
|
-
<div
|
|
571
|
+
<div
|
|
572
|
+
v-if="isRancherRoleTemplate"
|
|
573
|
+
class="col span-6"
|
|
574
|
+
>
|
|
566
575
|
<RadioGroup
|
|
567
576
|
v-model="value.locked"
|
|
568
577
|
name="storageSource"
|
|
@@ -573,7 +582,7 @@ export default {
|
|
|
573
582
|
/>
|
|
574
583
|
</div>
|
|
575
584
|
</div>
|
|
576
|
-
<div class="spacer"
|
|
585
|
+
<div class="spacer" />
|
|
577
586
|
<Tabbed :side-tabs="true">
|
|
578
587
|
<Tab
|
|
579
588
|
name="grant-resources"
|
|
@@ -602,16 +611,28 @@ export default {
|
|
|
602
611
|
<div :class="ruleClass">
|
|
603
612
|
<label class="text-label">
|
|
604
613
|
{{ t('rbac.roletemplate.tabs.grantResources.tableHeaders.resources') }}
|
|
605
|
-
<i
|
|
606
|
-
|
|
614
|
+
<i
|
|
615
|
+
v-tooltip="t('rbac.roletemplate.tabs.grantResources.resourceOptionInfo')"
|
|
616
|
+
class="icon icon-info"
|
|
617
|
+
/>
|
|
618
|
+
<span
|
|
619
|
+
v-if="isNamespaced"
|
|
620
|
+
class="required"
|
|
621
|
+
>*</span>
|
|
607
622
|
</label>
|
|
608
623
|
</div>
|
|
609
624
|
<div :class="ruleClass">
|
|
610
625
|
<label class="text-label">{{ t('rbac.roletemplate.tabs.grantResources.tableHeaders.apiGroups') }}
|
|
611
|
-
<span
|
|
626
|
+
<span
|
|
627
|
+
v-if="isNamespaced"
|
|
628
|
+
class="required"
|
|
629
|
+
>*</span>
|
|
612
630
|
</label>
|
|
613
631
|
</div>
|
|
614
|
-
<div
|
|
632
|
+
<div
|
|
633
|
+
v-if="!isNamespaced"
|
|
634
|
+
:class="ruleClass"
|
|
635
|
+
>
|
|
615
636
|
<label class="text-label">{{ t('rbac.roletemplate.tabs.grantResources.tableHeaders.nonResourceUrls') }}</label>
|
|
616
637
|
</div>
|
|
617
638
|
</div>
|
|
@@ -651,7 +672,10 @@ export default {
|
|
|
651
672
|
@input="setRule('apiGroups', props.row.value, $event)"
|
|
652
673
|
/>
|
|
653
674
|
</div>
|
|
654
|
-
<div
|
|
675
|
+
<div
|
|
676
|
+
v-if="!isNamespaced"
|
|
677
|
+
:class="ruleClass"
|
|
678
|
+
>
|
|
655
679
|
<LabeledInput
|
|
656
680
|
:value="getRule('nonResourceURLs', props.row.value)"
|
|
657
681
|
:disabled="isBuiltin"
|
|
@@ -95,6 +95,11 @@ export default {
|
|
|
95
95
|
|
|
96
96
|
methods: {
|
|
97
97
|
add(id) {
|
|
98
|
+
if (!id) {
|
|
99
|
+
// Ignore attempts to select an invalid principal
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
this.$emit('add', id);
|
|
99
104
|
if (!this.retainSelection) {
|
|
100
105
|
this.newValue = '';
|
|
@@ -176,11 +181,23 @@ export default {
|
|
|
176
181
|
</template>
|
|
177
182
|
|
|
178
183
|
<template #option="option">
|
|
179
|
-
<Principal
|
|
184
|
+
<Principal
|
|
185
|
+
:key="option.label"
|
|
186
|
+
:value="option.label"
|
|
187
|
+
:use-muted="false"
|
|
188
|
+
/>
|
|
180
189
|
</template>
|
|
181
190
|
|
|
182
|
-
<template
|
|
183
|
-
|
|
191
|
+
<template
|
|
192
|
+
v-if="retainSelection"
|
|
193
|
+
#selected-option="option"
|
|
194
|
+
>
|
|
195
|
+
<Principal
|
|
196
|
+
:key="option.label"
|
|
197
|
+
:value="option.label"
|
|
198
|
+
:use-muted="false"
|
|
199
|
+
class="mt-10 mb-10"
|
|
200
|
+
/>
|
|
184
201
|
</template>
|
|
185
202
|
</LabeledSelect>
|
|
186
203
|
</template>
|
|
@@ -77,8 +77,16 @@ export default {
|
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
</template>
|
|
80
|
-
<div
|
|
81
|
-
|
|
80
|
+
<div
|
|
81
|
+
v-else
|
|
82
|
+
class="text-center"
|
|
83
|
+
>
|
|
84
|
+
<button
|
|
85
|
+
style="font-size: 18px;"
|
|
86
|
+
type="button"
|
|
87
|
+
class="btn bg-primary"
|
|
88
|
+
@click="$emit('showInputs')"
|
|
89
|
+
>
|
|
82
90
|
{{ t('login.loginWithProvider', {provider: displayName}) }}
|
|
83
91
|
</button>
|
|
84
92
|
</div>
|
|
@@ -14,7 +14,12 @@ export default {
|
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
16
|
<div class="text-center">
|
|
17
|
-
<button
|
|
17
|
+
<button
|
|
18
|
+
ref="btn"
|
|
19
|
+
class="btn bg-primary"
|
|
20
|
+
style="font-size: 18px;"
|
|
21
|
+
@click="login"
|
|
22
|
+
>
|
|
18
23
|
{{ t('login.loginWithProvider', {provider: displayName}) }}
|
|
19
24
|
</button>
|
|
20
25
|
</div>
|
|
@@ -14,7 +14,12 @@ export default {
|
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
16
|
<div class="text-center">
|
|
17
|
-
<button
|
|
17
|
+
<button
|
|
18
|
+
ref="btn"
|
|
19
|
+
class="btn bg-primary"
|
|
20
|
+
style="font-size: 18px;"
|
|
21
|
+
@click="login"
|
|
22
|
+
>
|
|
18
23
|
{{ t('login.loginWithProvider', {provider: displayName}) }}
|
|
19
24
|
</button>
|
|
20
25
|
</div>
|
|
@@ -16,7 +16,12 @@ export default {
|
|
|
16
16
|
|
|
17
17
|
<template>
|
|
18
18
|
<div class="text-center">
|
|
19
|
-
<button
|
|
19
|
+
<button
|
|
20
|
+
ref="btn"
|
|
21
|
+
class="btn bg-primary"
|
|
22
|
+
style="font-size: 18px;"
|
|
23
|
+
@click="login"
|
|
24
|
+
>
|
|
20
25
|
{{ t('login.loginWithProvider', {provider: displayName}) }}
|
|
21
26
|
</button>
|
|
22
27
|
</div>
|
|
@@ -115,14 +115,21 @@ export default {
|
|
|
115
115
|
<div>
|
|
116
116
|
<Loading v-if="$fetchState.pending" />
|
|
117
117
|
<div v-else>
|
|
118
|
-
<Banner
|
|
118
|
+
<Banner
|
|
119
|
+
v-if="hidden"
|
|
120
|
+
color="info"
|
|
121
|
+
:label="t('fleet.bundles.harvester', {count: hidden} )"
|
|
122
|
+
/>
|
|
119
123
|
<ResourceTable
|
|
120
124
|
:schema="schema"
|
|
121
125
|
:headers="headers"
|
|
122
126
|
:rows="bundles"
|
|
123
127
|
>
|
|
124
128
|
<template #cell:deploymentsReady="{row}">
|
|
125
|
-
<span
|
|
129
|
+
<span
|
|
130
|
+
v-if="displayWarning(row)"
|
|
131
|
+
class="text-warning"
|
|
132
|
+
>
|
|
126
133
|
{{ row.status.summary.ready }}/{{ row.status.summary.desiredReady }}</span>
|
|
127
134
|
<span v-else-if="row.status">{{ row.status.summary.desiredReady }}</span>
|
|
128
135
|
</template>
|