@rancher/shell 0.2.3 → 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/Form/TextArea/TextAreaAutoGrow.vue +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 +5 -38
- 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
|
@@ -68,9 +68,16 @@ export default {
|
|
|
68
68
|
@finish="save"
|
|
69
69
|
@cancel="done"
|
|
70
70
|
>
|
|
71
|
-
<NameNsDescription
|
|
71
|
+
<NameNsDescription
|
|
72
|
+
v-model="value"
|
|
73
|
+
:mode="mode"
|
|
74
|
+
:namespaced="false"
|
|
75
|
+
/>
|
|
72
76
|
|
|
73
|
-
<Tabbed
|
|
77
|
+
<Tabbed
|
|
78
|
+
:side-tabs="true"
|
|
79
|
+
default-tab="members"
|
|
80
|
+
>
|
|
74
81
|
<!-- <Tab name="members" label-key="generic.members" :weight="2">
|
|
75
82
|
<RoleBindings
|
|
76
83
|
ref="rb"
|
|
@@ -84,8 +91,14 @@ export default {
|
|
|
84
91
|
/>
|
|
85
92
|
</Tab> -->
|
|
86
93
|
|
|
87
|
-
<Tab
|
|
88
|
-
|
|
94
|
+
<Tab
|
|
95
|
+
name="labels"
|
|
96
|
+
label-key="generic.labelsAndAnnotations"
|
|
97
|
+
>
|
|
98
|
+
<Labels
|
|
99
|
+
v-model="value"
|
|
100
|
+
:mode="mode"
|
|
101
|
+
/>
|
|
89
102
|
</Tab>
|
|
90
103
|
</Tabbed>
|
|
91
104
|
</CruResource>
|
|
@@ -201,6 +201,7 @@ export default {
|
|
|
201
201
|
>
|
|
202
202
|
<NameNsDescription
|
|
203
203
|
v-model="value"
|
|
204
|
+
:name-editable="true"
|
|
204
205
|
:mode="mode"
|
|
205
206
|
:namespaced="false"
|
|
206
207
|
description-key="spec.description"
|
|
@@ -257,7 +258,12 @@ export default {
|
|
|
257
258
|
:label="resourceQuotaLabel"
|
|
258
259
|
:weight="8"
|
|
259
260
|
>
|
|
260
|
-
<ContainerResourceLimit
|
|
261
|
+
<ContainerResourceLimit
|
|
262
|
+
v-model="value.spec.containerDefaultResourceLimit"
|
|
263
|
+
:mode="canEditTabElements"
|
|
264
|
+
:show-tip="false"
|
|
265
|
+
:register-before-hook="registerBeforeHook"
|
|
266
|
+
/>
|
|
261
267
|
</Tab>
|
|
262
268
|
<Tab
|
|
263
269
|
name="labels-and-annotations"
|
|
@@ -4,5 +4,8 @@ import RoleDetailEdit from '@shell/components/auth/RoleDetailEdit';
|
|
|
4
4
|
export default { components: { RoleDetailEdit } };
|
|
5
5
|
</script>
|
|
6
6
|
<template>
|
|
7
|
-
<RoleDetailEdit
|
|
7
|
+
<RoleDetailEdit
|
|
8
|
+
v-bind="$attrs"
|
|
9
|
+
@set-subtype="$emit('set-subtype', $event)"
|
|
10
|
+
/>
|
|
8
11
|
</template>
|
|
@@ -4,10 +4,13 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
|
|
4
4
|
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
5
5
|
import CreateEditView from '@shell/mixins/create-edit-view';
|
|
6
6
|
import { TextAreaAutoGrow } from '@components/Form/TextArea';
|
|
7
|
+
import formRulesGenerator from '@shell/utils/validators/formRules/index';
|
|
7
8
|
|
|
8
9
|
import { ALLOWED_SETTINGS, SETTING } from '@shell/config/settings';
|
|
9
10
|
import { RadioGroup } from '@components/Form/Radio';
|
|
11
|
+
import FormValidation from '@shell/mixins/form-validation';
|
|
10
12
|
import { setBrand } from '@shell/config/private-label';
|
|
13
|
+
import { keyBy, mapValues } from 'lodash';
|
|
11
14
|
|
|
12
15
|
export default {
|
|
13
16
|
components: {
|
|
@@ -18,39 +21,53 @@ export default {
|
|
|
18
21
|
TextAreaAutoGrow
|
|
19
22
|
},
|
|
20
23
|
|
|
21
|
-
mixins: [CreateEditView],
|
|
24
|
+
mixins: [CreateEditView, FormValidation],
|
|
22
25
|
|
|
23
26
|
data() {
|
|
24
27
|
const t = this.$store.getters['i18n/t'];
|
|
25
|
-
const setting = ALLOWED_SETTINGS[this.value.id];
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
return {
|
|
30
|
+
setting: ALLOWED_SETTINGS[this.value.id],
|
|
31
|
+
description: t(`advancedSettings.descriptions.${ this.value.id }`),
|
|
32
|
+
editHelp: t(`advancedSettings.editHelp.${ this.value.id }`),
|
|
33
|
+
enumOptions: [],
|
|
34
|
+
canReset: false,
|
|
35
|
+
errors: [],
|
|
36
|
+
fvFormRuleSets: [],
|
|
37
|
+
};
|
|
38
|
+
},
|
|
37
39
|
|
|
40
|
+
created() {
|
|
38
41
|
this.value.value = this.value.value || this.value.default;
|
|
42
|
+
this.enumOptions = this.setting?.kind === 'enum' ? this.setting.options.map(id => ({
|
|
43
|
+
label: `advancedSettings.enum.${ this.value.id }.${ id }`,
|
|
44
|
+
value: id,
|
|
45
|
+
})) : [];
|
|
46
|
+
this.canReset = this.setting?.canReset || !!this.value.default;
|
|
47
|
+
this.fvFormRuleSets = this.setting?.ruleSet ? [{
|
|
48
|
+
path: 'value',
|
|
49
|
+
rules: this.setting.ruleSet.map(({ name }) => name)
|
|
50
|
+
}] : [];
|
|
51
|
+
},
|
|
39
52
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
53
|
+
computed: {
|
|
54
|
+
fvExtraRules() {
|
|
55
|
+
const t = this.$store.getters['i18n/t'];
|
|
56
|
+
|
|
57
|
+
// We map the setting rulesets to use values to define validation from factory
|
|
58
|
+
return this.setting?.ruleSet ? mapValues(
|
|
59
|
+
keyBy(this.setting.ruleSet, 'name'),
|
|
60
|
+
({ key, name, arg }) => {
|
|
61
|
+
return formRulesGenerator(t, key ? { key } : {})[name](arg);
|
|
62
|
+
}) : {};
|
|
63
|
+
}
|
|
48
64
|
},
|
|
49
65
|
|
|
50
|
-
methods:
|
|
66
|
+
methods: {
|
|
51
67
|
convertToString(event) {
|
|
52
68
|
this.value.value = `${ event.target.value }`;
|
|
53
69
|
},
|
|
70
|
+
|
|
54
71
|
saveSettings(done) {
|
|
55
72
|
const t = this.$store.getters['i18n/t'];
|
|
56
73
|
|
|
@@ -88,22 +105,32 @@ export default {
|
|
|
88
105
|
<CruResource
|
|
89
106
|
class="route"
|
|
90
107
|
:done-route="'c-cluster-product-resource'"
|
|
91
|
-
:errors="
|
|
108
|
+
:errors="fvUnreportedValidationErrors"
|
|
92
109
|
:mode="mode"
|
|
93
110
|
:resource="value"
|
|
94
111
|
:subtypes="[]"
|
|
95
112
|
:can-yaml="false"
|
|
113
|
+
:validation-passed="fvFormIsValid"
|
|
96
114
|
@error="e=>errors = e"
|
|
97
115
|
@finish="saveSettings"
|
|
98
116
|
@cancel="done"
|
|
99
117
|
>
|
|
100
118
|
<h4>{{ description }}</h4>
|
|
101
119
|
|
|
102
|
-
<h5
|
|
120
|
+
<h5
|
|
121
|
+
v-if="editHelp"
|
|
122
|
+
class="edit-help"
|
|
123
|
+
v-html="editHelp"
|
|
124
|
+
/>
|
|
103
125
|
|
|
104
126
|
<div class="edit-change mt-20">
|
|
105
127
|
<h5 v-t="'advancedSettings.edit.changeSetting'" />
|
|
106
|
-
<button
|
|
128
|
+
<button
|
|
129
|
+
:disabled="!canReset"
|
|
130
|
+
type="button"
|
|
131
|
+
class="btn role-primary"
|
|
132
|
+
@click="useDefault"
|
|
133
|
+
>
|
|
107
134
|
{{ t('advancedSettings.edit.useDefault') }}
|
|
108
135
|
</button>
|
|
109
136
|
</div>
|
|
@@ -112,16 +139,21 @@ export default {
|
|
|
112
139
|
<div v-if="setting.kind === 'enum'">
|
|
113
140
|
<LabeledSelect
|
|
114
141
|
v-model="value.value"
|
|
142
|
+
data-testid="input-setting-enum"
|
|
115
143
|
:label="t('advancedSettings.edit.value')"
|
|
144
|
+
:rules="fvGetAndReportPathRules('value')"
|
|
116
145
|
:localized-label="true"
|
|
117
146
|
:mode="mode"
|
|
147
|
+
:required="true"
|
|
118
148
|
:options="enumOptions"
|
|
119
149
|
/>
|
|
120
150
|
</div>
|
|
121
151
|
<div v-else-if="setting.kind === 'boolean'">
|
|
122
152
|
<RadioGroup
|
|
123
153
|
v-model="value.value"
|
|
154
|
+
data-testid="input-setting-boolean"
|
|
124
155
|
name="settings_value"
|
|
156
|
+
:rules="fvGetAndReportPathRules('value')"
|
|
125
157
|
:labels="[t('advancedSettings.edit.trueOption'), t('advancedSettings.edit.falseOption')]"
|
|
126
158
|
:options="['true', 'false']"
|
|
127
159
|
/>
|
|
@@ -129,22 +161,31 @@ export default {
|
|
|
129
161
|
<div v-else-if="setting.kind === 'multiline' || setting.kind === 'json'">
|
|
130
162
|
<TextAreaAutoGrow
|
|
131
163
|
v-model="value.value"
|
|
132
|
-
|
|
164
|
+
data-testid="input-setting-json"
|
|
165
|
+
:required="true"
|
|
166
|
+
:rules="fvGetAndReportPathRules('value')"
|
|
133
167
|
:min-height="254"
|
|
134
168
|
/>
|
|
135
169
|
</div>
|
|
136
170
|
<div v-else-if="setting.kind === 'integer'">
|
|
137
|
-
<
|
|
138
|
-
|
|
171
|
+
<LabeledInput
|
|
172
|
+
v-model="value.value"
|
|
173
|
+
data-testid="input-setting-integer"
|
|
174
|
+
:label="t('advancedSettings.edit.value')"
|
|
175
|
+
:mode="mode"
|
|
139
176
|
type="number"
|
|
140
|
-
|
|
141
|
-
|
|
177
|
+
:rules="fvGetAndReportPathRules('value')"
|
|
178
|
+
:required="true"
|
|
142
179
|
/>
|
|
143
180
|
</div>
|
|
144
181
|
<div v-else>
|
|
145
182
|
<LabeledInput
|
|
146
183
|
v-model="value.value"
|
|
147
|
-
|
|
184
|
+
data-testid="input-setting-generic"
|
|
185
|
+
:localized-label="true"
|
|
186
|
+
:required="true"
|
|
187
|
+
:mode="mode"
|
|
188
|
+
:rules="fvGetAndReportPathRules('value')"
|
|
148
189
|
:label="t('advancedSettings.edit.value')"
|
|
149
190
|
/>
|
|
150
191
|
</div>
|
|
@@ -236,7 +236,10 @@ export default {
|
|
|
236
236
|
@valid="validation.password = $event"
|
|
237
237
|
/>
|
|
238
238
|
</div>
|
|
239
|
-
<div
|
|
239
|
+
<div
|
|
240
|
+
v-if="showGlobalRoles"
|
|
241
|
+
class="global-permissions"
|
|
242
|
+
>
|
|
240
243
|
<GlobalRoleBindings
|
|
241
244
|
ref="grb"
|
|
242
245
|
:user-id="value.id || liveValue.id"
|
|
@@ -252,7 +252,10 @@ export default {
|
|
|
252
252
|
/>
|
|
253
253
|
</div>
|
|
254
254
|
</div>
|
|
255
|
-
<div
|
|
255
|
+
<div
|
|
256
|
+
v-if="authType === 'basicAuth'"
|
|
257
|
+
class="row mb-20"
|
|
258
|
+
>
|
|
256
259
|
<SimpleSecretSelector
|
|
257
260
|
v-if="namespace"
|
|
258
261
|
:initial-key="initialBasicAuthUsernameSecretKey"
|
|
@@ -266,11 +269,17 @@ export default {
|
|
|
266
269
|
@updateSecretName="updateBasicAuthUsernameSecretName"
|
|
267
270
|
@updateSecretKey="updateBasicAuthUsernameSecretKey"
|
|
268
271
|
/>
|
|
269
|
-
<Banner
|
|
272
|
+
<Banner
|
|
273
|
+
v-else
|
|
274
|
+
color="error"
|
|
275
|
+
>
|
|
270
276
|
{{ t("alertmanagerConfigReceiver.namespaceWarning") }}
|
|
271
277
|
</Banner>
|
|
272
278
|
</div>
|
|
273
|
-
<div
|
|
279
|
+
<div
|
|
280
|
+
v-if="authType === 'basicAuth'"
|
|
281
|
+
class="row mb-20"
|
|
282
|
+
>
|
|
274
283
|
<SimpleSecretSelector
|
|
275
284
|
v-if="namespace"
|
|
276
285
|
:initial-key="initialBasicAuthPasswordSecretKey"
|
|
@@ -284,11 +293,17 @@ export default {
|
|
|
284
293
|
@updateSecretName="updateBasicAuthPasswordSecretName"
|
|
285
294
|
@updateSecretKey="updateBasicAuthPasswordSecretKey"
|
|
286
295
|
/>
|
|
287
|
-
<Banner
|
|
296
|
+
<Banner
|
|
297
|
+
v-else
|
|
298
|
+
color="error"
|
|
299
|
+
>
|
|
288
300
|
{{ t("alertmanagerConfigReceiver.namespaceWarning") }}
|
|
289
301
|
</Banner>
|
|
290
302
|
</div>
|
|
291
|
-
<div
|
|
303
|
+
<div
|
|
304
|
+
v-if="authType === 'bearerTokenSecret'"
|
|
305
|
+
class="row mb-20"
|
|
306
|
+
>
|
|
292
307
|
<SimpleSecretSelector
|
|
293
308
|
v-if="namespace"
|
|
294
309
|
:initial-key="initialBearerTokenSecretKey"
|
|
@@ -302,7 +317,10 @@ export default {
|
|
|
302
317
|
@updateSecretName="updateBearerTokenSecretName"
|
|
303
318
|
@updateSecretKey="updateBearerTokenSecretKey"
|
|
304
319
|
/>
|
|
305
|
-
<Banner
|
|
320
|
+
<Banner
|
|
321
|
+
v-else
|
|
322
|
+
color="error"
|
|
323
|
+
>
|
|
306
324
|
{{ t("alertmanagerConfigReceiver.namespaceWarning") }}
|
|
307
325
|
</Banner>
|
|
308
326
|
</div>
|
|
@@ -191,13 +191,29 @@ export default {
|
|
|
191
191
|
@finish="save"
|
|
192
192
|
@cancel="done"
|
|
193
193
|
>
|
|
194
|
-
<NameNsDescription
|
|
194
|
+
<NameNsDescription
|
|
195
|
+
v-model="value"
|
|
196
|
+
:mode="mode"
|
|
197
|
+
:namespaced="isNamespaced"
|
|
198
|
+
/>
|
|
195
199
|
|
|
196
200
|
<Tabbed>
|
|
197
|
-
<Tab
|
|
198
|
-
|
|
201
|
+
<Tab
|
|
202
|
+
:label="t('monitoring.route.label')"
|
|
203
|
+
:weight="1"
|
|
204
|
+
name="route"
|
|
205
|
+
>
|
|
206
|
+
<RouteConfig
|
|
207
|
+
:value="value.spec.route"
|
|
208
|
+
:mode="mode"
|
|
209
|
+
:receiver-options="receiverOptions"
|
|
210
|
+
/>
|
|
199
211
|
</Tab>
|
|
200
|
-
<Tab
|
|
212
|
+
<Tab
|
|
213
|
+
:label="t('alertmanagerConfigReceiver.receivers')"
|
|
214
|
+
:weight="2"
|
|
215
|
+
name="receivers"
|
|
216
|
+
>
|
|
201
217
|
<ResourceTable
|
|
202
218
|
:headers="receiverTableHeaders"
|
|
203
219
|
:schema="receiverSchema"
|
|
@@ -208,7 +224,10 @@ export default {
|
|
|
208
224
|
@clickedActionButton="setActionMenuState"
|
|
209
225
|
>
|
|
210
226
|
<template #header-button>
|
|
211
|
-
<nuxt-link
|
|
227
|
+
<nuxt-link
|
|
228
|
+
v-if="createReceiverLink && createReceiverLink.name"
|
|
229
|
+
:to="mode !== create ? createReceiverLink : {}"
|
|
230
|
+
>
|
|
212
231
|
<button
|
|
213
232
|
class="btn role-primary"
|
|
214
233
|
:disabled="mode === create"
|
|
@@ -255,22 +255,45 @@ export default {
|
|
|
255
255
|
>
|
|
256
256
|
<div class="row mb-10">
|
|
257
257
|
<div class="col span-6">
|
|
258
|
-
<LabeledInput
|
|
258
|
+
<LabeledInput
|
|
259
|
+
v-model="value.name"
|
|
260
|
+
:is-disabled="receiverNameDisabled"
|
|
261
|
+
:label="t('generic.name')"
|
|
262
|
+
:mode="mode"
|
|
263
|
+
/>
|
|
259
264
|
</div>
|
|
260
265
|
</div>
|
|
261
|
-
<Tabbed
|
|
262
|
-
|
|
266
|
+
<Tabbed
|
|
267
|
+
ref="tabbed"
|
|
268
|
+
:side-tabs="true"
|
|
269
|
+
default-tab="overview"
|
|
270
|
+
@changed="tabChanged"
|
|
271
|
+
>
|
|
272
|
+
<Tab
|
|
273
|
+
:label="t('generic.overview')"
|
|
274
|
+
:weight="receiverTypes.length"
|
|
275
|
+
name="overview"
|
|
276
|
+
>
|
|
263
277
|
<div class="box-container create-resource-container ">
|
|
264
|
-
<div
|
|
278
|
+
<div
|
|
279
|
+
v-for="(receiverType, i) in receiverTypes"
|
|
280
|
+
:key="i"
|
|
281
|
+
class="mb-10 subtype-banner"
|
|
282
|
+
primary-color-var="--primary-color"
|
|
283
|
+
@click="navigateTo(receiverType)"
|
|
284
|
+
>
|
|
265
285
|
<div class="left">
|
|
266
286
|
<div class="logo">
|
|
267
|
-
<img :src="receiverType.logo"
|
|
287
|
+
<img :src="receiverType.logo">
|
|
268
288
|
</div>
|
|
269
289
|
<h4 class="name ml-10">
|
|
270
290
|
<t :k="receiverType.label" />
|
|
271
291
|
</h4>
|
|
272
292
|
</div>
|
|
273
|
-
<div
|
|
293
|
+
<div
|
|
294
|
+
v-if="receiverType.name !== 'custom'"
|
|
295
|
+
class="right"
|
|
296
|
+
>
|
|
274
297
|
{{ getCount(receiverType) }}
|
|
275
298
|
</div>
|
|
276
299
|
</div>
|
|
@@ -206,7 +206,10 @@ export default {
|
|
|
206
206
|
@updateSecretName="updateCaSecretName"
|
|
207
207
|
@updateSecretKey="updateCaSecretKey"
|
|
208
208
|
/>
|
|
209
|
-
<Banner
|
|
209
|
+
<Banner
|
|
210
|
+
v-else
|
|
211
|
+
color="error"
|
|
212
|
+
>
|
|
210
213
|
{{ t("alertmanagerConfigReceiver.namespaceWarning") }}
|
|
211
214
|
</Banner>
|
|
212
215
|
</div>
|
|
@@ -225,7 +228,10 @@ export default {
|
|
|
225
228
|
@updateSecretName="updateClientCertSecretName"
|
|
226
229
|
@updateSecretKey="updateClientCertSecretKey"
|
|
227
230
|
/>
|
|
228
|
-
<Banner
|
|
231
|
+
<Banner
|
|
232
|
+
v-else
|
|
233
|
+
color="error"
|
|
234
|
+
>
|
|
229
235
|
{{ t("alertmanagerConfigReceiver.namespaceWarning") }}
|
|
230
236
|
</Banner>
|
|
231
237
|
</div>
|
|
@@ -244,7 +250,10 @@ export default {
|
|
|
244
250
|
@updateSecretName="updateClientKeySecretName"
|
|
245
251
|
@updateSecretKey="updateClientKeySecretKey"
|
|
246
252
|
/>
|
|
247
|
-
<Banner
|
|
253
|
+
<Banner
|
|
254
|
+
v-else
|
|
255
|
+
color="error"
|
|
256
|
+
>
|
|
248
257
|
{{ t("alertmanagerConfigReceiver.namespaceWarning") }}
|
|
249
258
|
</Banner>
|
|
250
259
|
</div>
|
|
@@ -83,10 +83,20 @@ export default {
|
|
|
83
83
|
</div>
|
|
84
84
|
<div class="row mb-20">
|
|
85
85
|
<div class="col span-6">
|
|
86
|
-
<LabeledInput
|
|
86
|
+
<LabeledInput
|
|
87
|
+
v-model="value.to"
|
|
88
|
+
:mode="mode"
|
|
89
|
+
label="Default Recipient Address"
|
|
90
|
+
placeholder="e.g. admin@example.com"
|
|
91
|
+
/>
|
|
87
92
|
</div>
|
|
88
93
|
<div class="col span-6">
|
|
89
|
-
<Checkbox
|
|
94
|
+
<Checkbox
|
|
95
|
+
v-model="value.sendResolved"
|
|
96
|
+
:mode="mode"
|
|
97
|
+
class="mt-20"
|
|
98
|
+
label="Enable send resolved alerts"
|
|
99
|
+
/>
|
|
90
100
|
</div>
|
|
91
101
|
</div>
|
|
92
102
|
<h2 class="mb-10">
|
|
@@ -94,20 +104,43 @@ export default {
|
|
|
94
104
|
</h2>
|
|
95
105
|
<div class="row mb-20">
|
|
96
106
|
<div class="col span-12">
|
|
97
|
-
<LabeledInput
|
|
107
|
+
<LabeledInput
|
|
108
|
+
v-model="value.from"
|
|
109
|
+
:mode="mode"
|
|
110
|
+
label="Sender"
|
|
111
|
+
placeholder="e.g. admin@example.com"
|
|
112
|
+
/>
|
|
98
113
|
</div>
|
|
99
114
|
</div>
|
|
100
115
|
<div class="row mb-20">
|
|
101
116
|
<div class="col span-6">
|
|
102
|
-
<LabeledInput
|
|
117
|
+
<LabeledInput
|
|
118
|
+
v-model="value.smarthost"
|
|
119
|
+
:mode="mode"
|
|
120
|
+
label="Host"
|
|
121
|
+
placeholder="e.g. 192.168.1.121:587"
|
|
122
|
+
/>
|
|
103
123
|
</div>
|
|
104
124
|
<div class="col span-6">
|
|
105
|
-
<Checkbox
|
|
125
|
+
<Checkbox
|
|
126
|
+
v-model="value.requireTls"
|
|
127
|
+
:mode="mode"
|
|
128
|
+
class="mt-20"
|
|
129
|
+
label="Use TLS"
|
|
130
|
+
/>
|
|
106
131
|
</div>
|
|
107
132
|
</div>
|
|
108
|
-
<div
|
|
133
|
+
<div
|
|
134
|
+
v-if="namespace"
|
|
135
|
+
class="row mb-20"
|
|
136
|
+
>
|
|
109
137
|
<div class="col span-6">
|
|
110
|
-
<LabeledInput
|
|
138
|
+
<LabeledInput
|
|
139
|
+
v-model="value.authUsername"
|
|
140
|
+
:mode="mode"
|
|
141
|
+
:label="t('monitoring.alertmanagerConfig.email.username')"
|
|
142
|
+
placeholder="e.g. John"
|
|
143
|
+
/>
|
|
111
144
|
</div>
|
|
112
145
|
</div>
|
|
113
146
|
<div class="row mb-20">
|
|
@@ -122,10 +155,18 @@ export default {
|
|
|
122
155
|
@updateSecretName="updateAuthPasswordSecretName"
|
|
123
156
|
@updateSecretKey="updateAuthPasswordSecretKey"
|
|
124
157
|
/>
|
|
125
|
-
<Banner
|
|
158
|
+
<Banner
|
|
159
|
+
v-else
|
|
160
|
+
color="error"
|
|
161
|
+
>
|
|
126
162
|
{{ t('alertmanagerConfigReceiver.namespaceWarning') }}
|
|
127
163
|
</Banner>
|
|
128
164
|
</div>
|
|
129
|
-
<TLS
|
|
165
|
+
<TLS
|
|
166
|
+
v-model="value"
|
|
167
|
+
class="mb-20"
|
|
168
|
+
:mode="mode"
|
|
169
|
+
:namespace="namespace"
|
|
170
|
+
/>
|
|
130
171
|
</div>
|
|
131
172
|
</template>
|
|
@@ -180,25 +180,45 @@ export default {
|
|
|
180
180
|
@updateSecretName="updateApiKeySecretName"
|
|
181
181
|
@updateSecretKey="updateApiKeySecretKey"
|
|
182
182
|
/>
|
|
183
|
-
<Banner
|
|
183
|
+
<Banner
|
|
184
|
+
v-else
|
|
185
|
+
color="error"
|
|
186
|
+
>
|
|
184
187
|
{{ t('alertmanagerConfigReceiver.namespaceWarning') }}
|
|
185
188
|
</Banner>
|
|
186
189
|
</div>
|
|
187
190
|
<div class="row mb-20">
|
|
188
191
|
<div class="col span-12">
|
|
189
|
-
<LabeledInput
|
|
192
|
+
<LabeledInput
|
|
193
|
+
v-model="value.httpConfig.proxyUrl"
|
|
194
|
+
:mode="mode"
|
|
195
|
+
label="Proxy URL"
|
|
196
|
+
placeholder="e.g. http://my-proxy/"
|
|
197
|
+
/>
|
|
190
198
|
</div>
|
|
191
199
|
</div>
|
|
192
200
|
<div class="row mb-20">
|
|
193
|
-
<Checkbox
|
|
201
|
+
<Checkbox
|
|
202
|
+
v-model="value.sendResolved"
|
|
203
|
+
:mode="mode"
|
|
204
|
+
label="Enable send resolved alerts"
|
|
205
|
+
/>
|
|
194
206
|
</div>
|
|
195
207
|
<div class="row">
|
|
196
208
|
<div class="col span-12">
|
|
197
209
|
<h3>Responders</h3>
|
|
198
|
-
<ArrayList
|
|
210
|
+
<ArrayList
|
|
211
|
+
v-model="responders"
|
|
212
|
+
:mode="mode"
|
|
213
|
+
:default-add-value="defaultResponder"
|
|
214
|
+
:show-header="true"
|
|
215
|
+
>
|
|
199
216
|
<template v-slot:column-headers>
|
|
200
217
|
<div class="responders-heading">
|
|
201
|
-
<div
|
|
218
|
+
<div
|
|
219
|
+
class="row"
|
|
220
|
+
:class="{'mb-15': isView, 'mb-10': !isView}"
|
|
221
|
+
>
|
|
202
222
|
<div class="col span-6">
|
|
203
223
|
<span class="text-label">Type</span>
|
|
204
224
|
</div>
|
|
@@ -212,7 +232,12 @@ export default {
|
|
|
212
232
|
<div class="row responder">
|
|
213
233
|
<div class="col span-6">
|
|
214
234
|
<span v-if="isView">{{ typeLabel(scope.row.value.type) }}</span>
|
|
215
|
-
<Select
|
|
235
|
+
<Select
|
|
236
|
+
v-else
|
|
237
|
+
v-model="scope.row.value.type"
|
|
238
|
+
:mode="mode"
|
|
239
|
+
:options="TYPES"
|
|
240
|
+
/>
|
|
216
241
|
</div>
|
|
217
242
|
<div class="col-span-6 target-container">
|
|
218
243
|
<span v-if="isView">{{ targetLabel(scope.row.value.target) }}: {{ scope.row.value.value }}</span>
|