@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
package/edit/auth/saml.vue
CHANGED
|
@@ -93,7 +93,11 @@ export default {
|
|
|
93
93
|
@cancel="cancel"
|
|
94
94
|
>
|
|
95
95
|
<template v-if="model.enabled && !isEnabling && !editConfig">
|
|
96
|
-
<AuthBanner
|
|
96
|
+
<AuthBanner
|
|
97
|
+
:t-args="tArgs"
|
|
98
|
+
:disable="disable"
|
|
99
|
+
:edit="goToEdit"
|
|
100
|
+
>
|
|
97
101
|
<template slot="rows">
|
|
98
102
|
<tr><td>{{ t(`authConfig.saml.displayName`) }}: </td><td>{{ model.displayNameField }}</td></tr>
|
|
99
103
|
<tr><td>{{ t(`authConfig.saml.userName`) }}: </td><td>{{ model.userNameField }}</td></tr>
|
|
@@ -104,13 +108,21 @@ export default {
|
|
|
104
108
|
</template>
|
|
105
109
|
</AuthBanner>
|
|
106
110
|
|
|
107
|
-
<hr
|
|
111
|
+
<hr>
|
|
108
112
|
|
|
109
|
-
<AllowedPrincipals
|
|
113
|
+
<AllowedPrincipals
|
|
114
|
+
:provider="NAME"
|
|
115
|
+
:auth-config="model"
|
|
116
|
+
:mode="mode"
|
|
117
|
+
/>
|
|
110
118
|
</template>
|
|
111
119
|
|
|
112
120
|
<template v-else>
|
|
113
|
-
<Banner
|
|
121
|
+
<Banner
|
|
122
|
+
v-if="!model.enabled"
|
|
123
|
+
:label="t('authConfig.stateBanner.disabled', tArgs)"
|
|
124
|
+
color="warning"
|
|
125
|
+
/>
|
|
114
126
|
|
|
115
127
|
<h3>{{ t(`authConfig.saml.${NAME}`) }}</h3>
|
|
116
128
|
<div class="row mb-20">
|
|
@@ -151,7 +163,10 @@ export default {
|
|
|
151
163
|
</div>
|
|
152
164
|
</div>
|
|
153
165
|
<div class="row mb-20">
|
|
154
|
-
<div
|
|
166
|
+
<div
|
|
167
|
+
v-if="NAME === 'keycloak' || NAME === 'ping'"
|
|
168
|
+
class="col span-6"
|
|
169
|
+
>
|
|
155
170
|
<LabeledInput
|
|
156
171
|
v-model="model.entityID"
|
|
157
172
|
:label="t(`authConfig.saml.entityID`)"
|
|
@@ -178,7 +193,12 @@ export default {
|
|
|
178
193
|
required
|
|
179
194
|
type="multiline"
|
|
180
195
|
/>
|
|
181
|
-
<FileSelector
|
|
196
|
+
<FileSelector
|
|
197
|
+
class="role-tertiary add mt-5"
|
|
198
|
+
:label="t('generic.readFromFile')"
|
|
199
|
+
:mode="mode"
|
|
200
|
+
@selected="$set(model, 'spKey', $event)"
|
|
201
|
+
/>
|
|
182
202
|
</div>
|
|
183
203
|
<div class="col span-4">
|
|
184
204
|
<LabeledInput
|
|
@@ -189,7 +209,12 @@ export default {
|
|
|
189
209
|
required
|
|
190
210
|
type="multiline"
|
|
191
211
|
/>
|
|
192
|
-
<FileSelector
|
|
212
|
+
<FileSelector
|
|
213
|
+
class="role-tertiary add mt-5"
|
|
214
|
+
:label="t('generic.readFromFile')"
|
|
215
|
+
:mode="mode"
|
|
216
|
+
@selected="$set(model, 'spCert', $event)"
|
|
217
|
+
/>
|
|
193
218
|
</div>
|
|
194
219
|
<div class="col span-4">
|
|
195
220
|
<LabeledInput
|
|
@@ -200,21 +225,41 @@ export default {
|
|
|
200
225
|
required
|
|
201
226
|
type="multiline"
|
|
202
227
|
/>
|
|
203
|
-
<FileSelector
|
|
228
|
+
<FileSelector
|
|
229
|
+
class="role-tertiary add mt-5"
|
|
230
|
+
:label="t('generic.readFromFile')"
|
|
231
|
+
:mode="mode"
|
|
232
|
+
@selected="$set(model, 'idpMetadataContent', $event)"
|
|
233
|
+
/>
|
|
204
234
|
</div>
|
|
205
235
|
</div>
|
|
206
236
|
<div v-if="NAME === 'shibboleth'">
|
|
207
237
|
<div class="row">
|
|
208
|
-
<Checkbox
|
|
238
|
+
<Checkbox
|
|
239
|
+
v-model="showLdap"
|
|
240
|
+
:mode="mode"
|
|
241
|
+
:label="t('authConfig.saml.showLdap')"
|
|
242
|
+
/>
|
|
209
243
|
</div>
|
|
210
244
|
<div class="row mt-20 mb-20">
|
|
211
|
-
<config
|
|
245
|
+
<config
|
|
246
|
+
v-if="showLdap"
|
|
247
|
+
v-model="model.openLdapConfig"
|
|
248
|
+
:type="NAME"
|
|
249
|
+
:mode="mode"
|
|
250
|
+
/>
|
|
212
251
|
</div>
|
|
213
252
|
</div>
|
|
214
253
|
</template>
|
|
215
|
-
<div
|
|
254
|
+
<div
|
|
255
|
+
v-if="!model.enabled"
|
|
256
|
+
class="row"
|
|
257
|
+
>
|
|
216
258
|
<div class="col span-12">
|
|
217
|
-
<Banner
|
|
259
|
+
<Banner
|
|
260
|
+
color="info"
|
|
261
|
+
v-html="t('authConfig.associatedWarning', tArgs, true)"
|
|
262
|
+
/>
|
|
218
263
|
</div>
|
|
219
264
|
</div>
|
|
220
265
|
</CruResource>
|
|
@@ -42,10 +42,17 @@ export default {
|
|
|
42
42
|
<template>
|
|
43
43
|
<div>
|
|
44
44
|
<div class="row mb-20">
|
|
45
|
-
<MetricTarget
|
|
45
|
+
<MetricTarget
|
|
46
|
+
v-model="value.target"
|
|
47
|
+
:mode="mode"
|
|
48
|
+
metric-resource="external"
|
|
49
|
+
/>
|
|
46
50
|
</div>
|
|
47
51
|
<div class="row">
|
|
48
|
-
<MetricIdentifier
|
|
52
|
+
<MetricIdentifier
|
|
53
|
+
v-model="value.metric"
|
|
54
|
+
:mode="mode"
|
|
55
|
+
/>
|
|
49
56
|
</div>
|
|
50
57
|
</div>
|
|
51
58
|
</template>
|
|
@@ -70,7 +70,10 @@ export default {
|
|
|
70
70
|
Object.values(SCALABLE_WORKLOAD_TYPES)
|
|
71
71
|
.flatMap(type => this.$store.getters['cluster/all'](type))
|
|
72
72
|
.filter(
|
|
73
|
-
|
|
73
|
+
// Filter out anything that has an owner, which should probably be the one with the HPA
|
|
74
|
+
// For example ReplicaSets can be associated with a HPA (https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#replicaset-as-a-horizontal-pod-autoscaler-target)
|
|
75
|
+
// but wouldn't make sense if it's owned by a deployment
|
|
76
|
+
wl => wl.metadata.namespace === this.value.metadata.namespace && !wl.ownedByWorkload
|
|
74
77
|
)
|
|
75
78
|
);
|
|
76
79
|
},
|
|
@@ -143,7 +146,10 @@ export default {
|
|
|
143
146
|
|
|
144
147
|
<template>
|
|
145
148
|
<Loading v-if="$fetchState.pending" />
|
|
146
|
-
<form
|
|
149
|
+
<form
|
|
150
|
+
v-else
|
|
151
|
+
class="filled-height"
|
|
152
|
+
>
|
|
147
153
|
<CruResource
|
|
148
154
|
:done-route="doneRoute"
|
|
149
155
|
:mode="mode"
|
|
@@ -154,10 +160,18 @@ export default {
|
|
|
154
160
|
@finish="save"
|
|
155
161
|
@cancel="done"
|
|
156
162
|
>
|
|
157
|
-
<NameNsDescription
|
|
163
|
+
<NameNsDescription
|
|
164
|
+
v-if="!isView"
|
|
165
|
+
:value="value"
|
|
166
|
+
:mode="mode"
|
|
167
|
+
/>
|
|
158
168
|
|
|
159
169
|
<Tabbed :side-tabs="true">
|
|
160
|
-
<Tab
|
|
170
|
+
<Tab
|
|
171
|
+
name="target"
|
|
172
|
+
:label="t('hpa.tabs.target')"
|
|
173
|
+
:weight="10"
|
|
174
|
+
>
|
|
161
175
|
<div class="row mb-20">
|
|
162
176
|
<div class="col span-6">
|
|
163
177
|
<LabeledSelect
|
|
@@ -197,7 +211,10 @@ export default {
|
|
|
197
211
|
</div>
|
|
198
212
|
</div>
|
|
199
213
|
</Tab>
|
|
200
|
-
<Tab
|
|
214
|
+
<Tab
|
|
215
|
+
name="metrics"
|
|
216
|
+
:label="t('hpa.tabs.metrics')"
|
|
217
|
+
>
|
|
201
218
|
<ArrayListGrouped
|
|
202
219
|
v-model="value.spec.metrics"
|
|
203
220
|
:default-add-value="{ ...defaultResourceMetric }"
|
|
@@ -213,7 +230,7 @@ export default {
|
|
|
213
230
|
>
|
|
214
231
|
<i class="icon icon-2x icon-x" />
|
|
215
232
|
</button>
|
|
216
|
-
<span v-else
|
|
233
|
+
<span v-else />
|
|
217
234
|
</template>
|
|
218
235
|
<template #default="props">
|
|
219
236
|
<MetricsRow
|
|
@@ -159,7 +159,10 @@ export default {
|
|
|
159
159
|
:options="targetTypes"
|
|
160
160
|
/>
|
|
161
161
|
</div>
|
|
162
|
-
<div
|
|
162
|
+
<div
|
|
163
|
+
v-if="isResourceMetricType"
|
|
164
|
+
class="col span-6"
|
|
165
|
+
>
|
|
163
166
|
<UnitInput
|
|
164
167
|
v-if="value.type === 'Utilization'"
|
|
165
168
|
v-model="value.averageUtilization"
|
|
@@ -194,7 +197,10 @@ export default {
|
|
|
194
197
|
@input="updateQuantityValue"
|
|
195
198
|
/>
|
|
196
199
|
</div>
|
|
197
|
-
<div
|
|
200
|
+
<div
|
|
201
|
+
v-else
|
|
202
|
+
class="col span-6"
|
|
203
|
+
>
|
|
198
204
|
<LabeledInput
|
|
199
205
|
v-model="quantity"
|
|
200
206
|
placeholder="1"
|
|
@@ -172,16 +172,28 @@ export default {
|
|
|
172
172
|
</div>
|
|
173
173
|
</div>
|
|
174
174
|
<div v-if="isPodMetric">
|
|
175
|
-
<PodMetric
|
|
175
|
+
<PodMetric
|
|
176
|
+
v-model="value.pods"
|
|
177
|
+
:mode="mode"
|
|
178
|
+
/>
|
|
176
179
|
</div>
|
|
177
180
|
<div v-else-if="isExternalMetric">
|
|
178
|
-
<ExternalMetric
|
|
181
|
+
<ExternalMetric
|
|
182
|
+
v-model="value.external"
|
|
183
|
+
:mode="mode"
|
|
184
|
+
/>
|
|
179
185
|
</div>
|
|
180
186
|
<div v-else-if="isObjectMetric">
|
|
181
|
-
<ObjectMetric
|
|
187
|
+
<ObjectMetric
|
|
188
|
+
v-model="value.object"
|
|
189
|
+
:mode="mode"
|
|
190
|
+
/>
|
|
182
191
|
</div>
|
|
183
192
|
<div v-else-if="isResourceMetric">
|
|
184
|
-
<ResourceMetric
|
|
193
|
+
<ResourceMetric
|
|
194
|
+
v-model="value.resource"
|
|
195
|
+
:mode="mode"
|
|
196
|
+
/>
|
|
185
197
|
</div>
|
|
186
198
|
</div>
|
|
187
199
|
</template>
|
|
@@ -49,13 +49,23 @@ export default {
|
|
|
49
49
|
<template>
|
|
50
50
|
<div>
|
|
51
51
|
<div class="row mb-20">
|
|
52
|
-
<MetricTarget
|
|
52
|
+
<MetricTarget
|
|
53
|
+
v-model="value.target"
|
|
54
|
+
:mode="mode"
|
|
55
|
+
metric-resource="object"
|
|
56
|
+
/>
|
|
53
57
|
</div>
|
|
54
58
|
<div class="row mb-20">
|
|
55
|
-
<MetricObjectReference
|
|
59
|
+
<MetricObjectReference
|
|
60
|
+
v-model="value.describedObject"
|
|
61
|
+
:mode="mode"
|
|
62
|
+
/>
|
|
56
63
|
</div>
|
|
57
64
|
<div class="row">
|
|
58
|
-
<MetricIdentifier
|
|
65
|
+
<MetricIdentifier
|
|
66
|
+
v-model="value.metric"
|
|
67
|
+
:mode="mode"
|
|
68
|
+
/>
|
|
59
69
|
</div>
|
|
60
70
|
</div>
|
|
61
71
|
</template>
|
|
@@ -42,10 +42,17 @@ export default {
|
|
|
42
42
|
<template>
|
|
43
43
|
<div>
|
|
44
44
|
<div class="row mb-20">
|
|
45
|
-
<MetricTarget
|
|
45
|
+
<MetricTarget
|
|
46
|
+
v-model="value.target"
|
|
47
|
+
:mode="mode"
|
|
48
|
+
metric-resource="pods"
|
|
49
|
+
/>
|
|
46
50
|
</div>
|
|
47
51
|
<div class="row">
|
|
48
|
-
<MetricIdentifier
|
|
52
|
+
<MetricIdentifier
|
|
53
|
+
v-model="value.metric"
|
|
54
|
+
:mode="mode"
|
|
55
|
+
/>
|
|
49
56
|
</div>
|
|
50
57
|
</div>
|
|
51
58
|
</template>
|
|
@@ -54,7 +54,12 @@ export default {
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
<div class="row">
|
|
57
|
-
<MetricTarget
|
|
57
|
+
<MetricTarget
|
|
58
|
+
v-model="value.target"
|
|
59
|
+
:mode="mode"
|
|
60
|
+
metric-resource="resource"
|
|
61
|
+
:resource-name="value.name"
|
|
62
|
+
/>
|
|
58
63
|
</div>
|
|
59
64
|
</div>
|
|
60
65
|
</template>
|
|
@@ -44,7 +44,11 @@ export default {
|
|
|
44
44
|
|
|
45
45
|
<template>
|
|
46
46
|
<form>
|
|
47
|
-
<NameNsDescription
|
|
47
|
+
<NameNsDescription
|
|
48
|
+
v-model="value"
|
|
49
|
+
:mode="mode"
|
|
50
|
+
:namespaced="isNamespaced"
|
|
51
|
+
/>
|
|
48
52
|
|
|
49
53
|
<h2>{{ t('catalog.repo.target.label') }}</h2>
|
|
50
54
|
<div class="row mb-10">
|
|
@@ -59,7 +63,10 @@ export default {
|
|
|
59
63
|
</div>
|
|
60
64
|
</div>
|
|
61
65
|
|
|
62
|
-
<div
|
|
66
|
+
<div
|
|
67
|
+
v-if="isGit"
|
|
68
|
+
class="row mb-10"
|
|
69
|
+
>
|
|
63
70
|
<div class="col span-6">
|
|
64
71
|
<LabeledInput
|
|
65
72
|
v-model.trim="value.spec.gitRepo"
|
|
@@ -104,6 +111,11 @@ export default {
|
|
|
104
111
|
:display-side-by-side="false"
|
|
105
112
|
/>
|
|
106
113
|
|
|
107
|
-
<Footer
|
|
114
|
+
<Footer
|
|
115
|
+
:mode="mode"
|
|
116
|
+
:errors="errors"
|
|
117
|
+
@save="save"
|
|
118
|
+
@done="done"
|
|
119
|
+
/>
|
|
108
120
|
</form>
|
|
109
121
|
</template>
|
|
@@ -243,9 +243,16 @@ export default {
|
|
|
243
243
|
@error="e=>errors = e"
|
|
244
244
|
>
|
|
245
245
|
<template>
|
|
246
|
-
<Banner
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
<Banner
|
|
247
|
+
v-if="!validProfiles.length"
|
|
248
|
+
color="warning"
|
|
249
|
+
:label="t('cis.noProfiles')"
|
|
250
|
+
/>
|
|
251
|
+
|
|
252
|
+
<div
|
|
253
|
+
v-else
|
|
254
|
+
class="row mb-20"
|
|
255
|
+
>
|
|
249
256
|
<div class="col span-6">
|
|
250
257
|
<LabeledSelect
|
|
251
258
|
v-model="value.spec.scanProfileName"
|
|
@@ -254,16 +261,33 @@ export default {
|
|
|
254
261
|
:options="validProfiles"
|
|
255
262
|
/>
|
|
256
263
|
</div>
|
|
257
|
-
<div
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
<div
|
|
265
|
+
v-if="canBeScheduled"
|
|
266
|
+
class="col span-6"
|
|
267
|
+
>
|
|
268
|
+
<span>{{ t('cis.scoreWarning.label') }}</span> <i
|
|
269
|
+
v-tooltip="t('cis.scoreWarning.protip')"
|
|
270
|
+
class="icon icon-info"
|
|
271
|
+
/>
|
|
272
|
+
<RadioGroup
|
|
273
|
+
v-model="value.spec.scoreWarning"
|
|
274
|
+
:mode="mode"
|
|
275
|
+
name="scoreWarning"
|
|
276
|
+
:options="['pass', 'fail']"
|
|
277
|
+
:labels="[t('cis.scan.pass'), t('cis.scan.fail')]"
|
|
278
|
+
/>
|
|
260
279
|
</div>
|
|
261
280
|
</div>
|
|
262
281
|
<template v-if="canBeScheduled">
|
|
263
282
|
<h3>Scheduling</h3>
|
|
264
283
|
<div class="row mb-20">
|
|
265
284
|
<div class="col">
|
|
266
|
-
<RadioGroup
|
|
285
|
+
<RadioGroup
|
|
286
|
+
v-model="isScheduled"
|
|
287
|
+
:mode="mode"
|
|
288
|
+
name="scheduling"
|
|
289
|
+
:options="[ {value: false, label: t('cis.scheduling.disable')}, {value: true, label: t('cis.scheduling.enable')}]"
|
|
290
|
+
/>
|
|
267
291
|
</div>
|
|
268
292
|
</div>
|
|
269
293
|
<template v-if="isScheduled">
|
|
@@ -279,7 +303,13 @@ export default {
|
|
|
279
303
|
/>
|
|
280
304
|
</div>
|
|
281
305
|
<div class="col span-6">
|
|
282
|
-
<UnitInput
|
|
306
|
+
<UnitInput
|
|
307
|
+
v-model.number="scheduledScanConfig.retentionCount"
|
|
308
|
+
:suffix="t('cis.reports')"
|
|
309
|
+
type="number"
|
|
310
|
+
:mode="mode"
|
|
311
|
+
:label="t('cis.retention')"
|
|
312
|
+
/>
|
|
283
313
|
</div>
|
|
284
314
|
</div>
|
|
285
315
|
<h3>
|
|
@@ -287,11 +317,23 @@ export default {
|
|
|
287
317
|
</h3>
|
|
288
318
|
<div class="row mb-20">
|
|
289
319
|
<div class="col span-12">
|
|
290
|
-
<Banner
|
|
320
|
+
<Banner
|
|
321
|
+
v-if="scanAlertRule.alertOnFailure || scanAlertRule.alertOnComplete"
|
|
322
|
+
class="mt-0"
|
|
323
|
+
:color="hasAlertManager ? 'info' : 'warning'"
|
|
324
|
+
>
|
|
291
325
|
<span v-html="t('cis.alertNeeded', {link: monitoringUrl}, true)" />
|
|
292
326
|
</banner>
|
|
293
|
-
<Checkbox
|
|
294
|
-
|
|
327
|
+
<Checkbox
|
|
328
|
+
v-model="scanAlertRule.alertOnComplete"
|
|
329
|
+
:mode="mode"
|
|
330
|
+
:label="t('cis.alertOnComplete')"
|
|
331
|
+
/>
|
|
332
|
+
<Checkbox
|
|
333
|
+
v-model="scanAlertRule.alertOnFailure"
|
|
334
|
+
:mode="mode"
|
|
335
|
+
:label="t('cis.alertOnFailure')"
|
|
336
|
+
/>
|
|
295
337
|
</div>
|
|
296
338
|
</div>
|
|
297
339
|
</template>
|
|
@@ -71,7 +71,11 @@ export default {
|
|
|
71
71
|
>
|
|
72
72
|
<div class="row">
|
|
73
73
|
<div class="col span-12">
|
|
74
|
-
<NameNsDescription
|
|
74
|
+
<NameNsDescription
|
|
75
|
+
:mode="mode"
|
|
76
|
+
:value="value"
|
|
77
|
+
:namespaced="false"
|
|
78
|
+
/>
|
|
75
79
|
</div>
|
|
76
80
|
</div>
|
|
77
81
|
<div class="row mb-20">
|
|
@@ -97,10 +101,18 @@ export default {
|
|
|
97
101
|
</div>
|
|
98
102
|
<div class="row mb-20">
|
|
99
103
|
<div class="col span-6">
|
|
100
|
-
<LabeledInput
|
|
104
|
+
<LabeledInput
|
|
105
|
+
v-model="value.spec.minKubernetesVersion"
|
|
106
|
+
:mode="mode"
|
|
107
|
+
:label="t('cis.minKubernetesVersion')"
|
|
108
|
+
/>
|
|
101
109
|
</div>
|
|
102
110
|
<div class="col span-6">
|
|
103
|
-
<LabeledInput
|
|
111
|
+
<LabeledInput
|
|
112
|
+
v-model="value.spec.maxKubernetesVersion"
|
|
113
|
+
:mode="mode"
|
|
114
|
+
:label="t('cis.maxKubernetesVersion')"
|
|
115
|
+
/>
|
|
104
116
|
</div>
|
|
105
117
|
</div>
|
|
106
118
|
</CruResource>
|
|
@@ -114,15 +114,25 @@ export default {
|
|
|
114
114
|
@error="e=>errors = e"
|
|
115
115
|
>
|
|
116
116
|
<template>
|
|
117
|
-
<div class="spacer"
|
|
117
|
+
<div class="spacer" />
|
|
118
118
|
<div class="row">
|
|
119
119
|
<div class="col span-12">
|
|
120
|
-
<NameNsDescription
|
|
120
|
+
<NameNsDescription
|
|
121
|
+
:mode="mode"
|
|
122
|
+
:value="value"
|
|
123
|
+
:namespaced="false"
|
|
124
|
+
@change="name=value.metadata.name"
|
|
125
|
+
/>
|
|
121
126
|
</div>
|
|
122
127
|
</div>
|
|
123
128
|
<div class="row">
|
|
124
129
|
<div class="col span-6">
|
|
125
|
-
<LabeledSelect
|
|
130
|
+
<LabeledSelect
|
|
131
|
+
v-model="value.spec.benchmarkVersion"
|
|
132
|
+
:mode="mode"
|
|
133
|
+
:label="t('cis.benchmarkVersion')"
|
|
134
|
+
:options="compatibleBenchmarkNames"
|
|
135
|
+
/>
|
|
126
136
|
</div>
|
|
127
137
|
</div>
|
|
128
138
|
<div class="spacer" />
|
package/edit/configmap.vue
CHANGED
|
@@ -74,7 +74,11 @@ export default {
|
|
|
74
74
|
/>
|
|
75
75
|
|
|
76
76
|
<Tabbed :side-tabs="true">
|
|
77
|
-
<Tab
|
|
77
|
+
<Tab
|
|
78
|
+
name="data"
|
|
79
|
+
:label="t('configmap.tabs.data.label')"
|
|
80
|
+
:weight="2"
|
|
81
|
+
>
|
|
78
82
|
<KeyValue
|
|
79
83
|
key="data"
|
|
80
84
|
v-model="data"
|
|
@@ -236,7 +236,10 @@ export default {
|
|
|
236
236
|
@finish="save"
|
|
237
237
|
@select-type="selectTemplateSubtype"
|
|
238
238
|
>
|
|
239
|
-
<div
|
|
239
|
+
<div
|
|
240
|
+
v-if="value"
|
|
241
|
+
class="gatekeeper-constraint"
|
|
242
|
+
>
|
|
240
243
|
<div>
|
|
241
244
|
<NameNsDescription
|
|
242
245
|
v-if="!isView"
|
|
@@ -258,14 +261,28 @@ export default {
|
|
|
258
261
|
/>
|
|
259
262
|
</div>
|
|
260
263
|
</div>
|
|
261
|
-
<Tabbed
|
|
262
|
-
|
|
264
|
+
<Tabbed
|
|
265
|
+
:side-tabs="true"
|
|
266
|
+
@changed="onTabChanged"
|
|
267
|
+
>
|
|
268
|
+
<Tab
|
|
269
|
+
name="namespaces"
|
|
270
|
+
:label="t('gatekeeperConstraint.tab.namespaces.title')"
|
|
271
|
+
:weight="3"
|
|
272
|
+
>
|
|
263
273
|
<div class="row">
|
|
264
274
|
<div class="col span-6">
|
|
265
|
-
<Scope
|
|
275
|
+
<Scope
|
|
276
|
+
v-model="value.spec.match.scope"
|
|
277
|
+
:mode="mode"
|
|
278
|
+
@input="onScopeChange($event)"
|
|
279
|
+
/>
|
|
266
280
|
</div>
|
|
267
281
|
</div>
|
|
268
|
-
<div
|
|
282
|
+
<div
|
|
283
|
+
v-if="showNamespaceLists"
|
|
284
|
+
class="row mt-20"
|
|
285
|
+
>
|
|
269
286
|
<div class="col span-12">
|
|
270
287
|
<NamespaceList
|
|
271
288
|
v-model="value.spec.match.namespaces"
|
|
@@ -277,7 +294,10 @@ export default {
|
|
|
277
294
|
/>
|
|
278
295
|
</div>
|
|
279
296
|
</div>
|
|
280
|
-
<div
|
|
297
|
+
<div
|
|
298
|
+
v-if="showNamespaceLists"
|
|
299
|
+
class="row mt-20"
|
|
300
|
+
>
|
|
281
301
|
<div class="col span-12">
|
|
282
302
|
<NamespaceList
|
|
283
303
|
v-model="value.spec.match.excludedNamespaces"
|
|
@@ -299,10 +319,17 @@ export default {
|
|
|
299
319
|
</div>
|
|
300
320
|
</div>
|
|
301
321
|
</Tab>
|
|
302
|
-
<Tab
|
|
322
|
+
<Tab
|
|
323
|
+
name="rules"
|
|
324
|
+
:label="t('gatekeeperConstraint.tab.rules.title')"
|
|
325
|
+
:weight="2"
|
|
326
|
+
>
|
|
303
327
|
<div class="row">
|
|
304
328
|
<div class="col span-12">
|
|
305
|
-
<MatchKinds
|
|
329
|
+
<MatchKinds
|
|
330
|
+
v-model="value.spec.match.kinds"
|
|
331
|
+
:mode="mode"
|
|
332
|
+
/>
|
|
306
333
|
</div>
|
|
307
334
|
</div>
|
|
308
335
|
<div class="row mt-40">
|
|
@@ -316,7 +343,11 @@ export default {
|
|
|
316
343
|
</div>
|
|
317
344
|
</div>
|
|
318
345
|
</Tab>
|
|
319
|
-
<Tab
|
|
346
|
+
<Tab
|
|
347
|
+
name="parameters"
|
|
348
|
+
:label="t('gatekeeperConstraint.tab.parameters.title')"
|
|
349
|
+
:weight="1"
|
|
350
|
+
>
|
|
320
351
|
<YamlEditor
|
|
321
352
|
ref="yamlEditor"
|
|
322
353
|
v-model="parametersYaml"
|
|
@@ -79,9 +79,13 @@ export default {
|
|
|
79
79
|
@finish="save"
|
|
80
80
|
@cancel="done"
|
|
81
81
|
>
|
|
82
|
-
<NameNsDescription
|
|
82
|
+
<NameNsDescription
|
|
83
|
+
v-model="value"
|
|
84
|
+
:mode="mode"
|
|
85
|
+
:namespaced="isNamespaced"
|
|
86
|
+
/>
|
|
83
87
|
|
|
84
|
-
<hr class="mt-20 mb-20"
|
|
88
|
+
<hr class="mt-20 mb-20">
|
|
85
89
|
|
|
86
90
|
<Labels
|
|
87
91
|
default-section-class="mt-20"
|