@rancher/shell 3.0.0-rc.3 → 3.0.0-rc.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/styles/base/_variables.scss +12 -4
- package/assets/styles/global/_layout.scss +1 -1
- package/assets/translations/en-us.yaml +61 -26
- package/assets/translations/zh-hans.yaml +6 -5
- package/chart/istio.vue +2 -0
- package/chart/monitoring/ClusterSelector.vue +2 -0
- package/chart/monitoring/StorageClassSelector.vue +4 -1
- package/chart/monitoring/index.vue +2 -0
- package/chart/rancher-backup/S3.vue +2 -0
- package/chart/rancher-backup/index.vue +2 -0
- package/cloud-credential/aws.vue +2 -0
- package/cloud-credential/azure.vue +2 -0
- package/cloud-credential/digitalocean.vue +2 -0
- package/cloud-credential/gcp.vue +2 -0
- package/cloud-credential/generic.vue +2 -0
- package/cloud-credential/harvester.vue +2 -0
- package/cloud-credential/linode.vue +2 -0
- package/cloud-credential/pnap.vue +2 -0
- package/cloud-credential/s3.vue +2 -0
- package/cloud-credential/vmwarevsphere.vue +2 -0
- package/components/ActionMenu.vue +4 -1
- package/components/AppModal.vue +4 -1
- package/components/ButtonDropdown.vue +3 -0
- package/components/ButtonGroup.vue +2 -0
- package/components/ButtonMultiAction.vue +41 -0
- package/components/Carousel.vue +3 -0
- package/components/CodeMirror.vue +6 -4
- package/components/Collapse.vue +4 -1
- package/components/CollapsibleCard.vue +4 -1
- package/components/ContainerResourceLimit.vue +2 -0
- package/components/CopyCode.vue +8 -4
- package/components/CopyToClipboardText.vue +2 -0
- package/components/CruResource.vue +2 -0
- package/components/CruResourceFooter.vue +2 -0
- package/components/Dialog.vue +2 -0
- package/components/DisableAuthProviderModal.vue +4 -1
- package/components/EmberPage.vue +2 -0
- package/components/ExplorerProjectsNamespaces.vue +11 -8
- package/components/GlobalRoleBindings.vue +2 -0
- package/components/Import.vue +2 -0
- package/components/InputOrDisplay.vue +23 -18
- package/components/Loading.vue +4 -1
- package/components/Markdown.vue +2 -0
- package/components/ModalWithCard.vue +2 -0
- package/components/MoveModal.vue +2 -0
- package/components/PodSecurityAdmission.vue +2 -0
- package/components/Questions/Array.vue +2 -0
- package/components/Questions/Boolean.vue +2 -0
- package/components/Questions/CloudCredential.vue +2 -0
- package/components/Questions/Enum.vue +2 -0
- package/components/Questions/Float.vue +2 -0
- package/components/Questions/Int.vue +2 -0
- package/components/Questions/QuestionMap.vue +4 -1
- package/components/Questions/Radio.vue +2 -0
- package/components/Questions/Reference.vue +2 -0
- package/components/Questions/String.vue +2 -0
- package/components/Questions/Yaml.vue +2 -0
- package/components/Questions/index.vue +2 -0
- package/components/ResourceCancelModal.vue +2 -0
- package/components/ResourceDetail/Masthead.vue +4 -3
- package/components/ResourceDetail/index.vue +17 -15
- package/components/ResourceTable.vue +2 -0
- package/components/ResourceYaml.vue +2 -0
- package/components/SelectIconGrid.vue +2 -0
- package/components/SimpleBox.vue +2 -0
- package/components/SortableTable/THead.vue +2 -0
- package/components/SortableTable/index.vue +15 -19
- package/components/StatusTable.vue +2 -0
- package/components/Tabbed/Tab.vue +2 -0
- package/components/Tabbed/index.vue +2 -0
- package/components/Wizard.vue +2 -0
- package/components/YamlEditor.vue +2 -0
- package/components/__tests__/ButtonMultiAction.test.ts +31 -0
- package/components/auth/RoleDetailEdit.vue +2 -0
- package/components/auth/SelectPrincipal.vue +2 -0
- package/components/auth/login/ldap.vue +2 -0
- package/components/form/ArrayList.vue +16 -1
- package/components/form/ArrayListSelect.vue +2 -0
- package/components/form/ChangePassword.vue +2 -0
- package/components/form/ColorInput.vue +2 -0
- package/components/form/Command.vue +2 -0
- package/components/form/FileImageSelector.vue +2 -0
- package/components/form/FileSelector.vue +2 -0
- package/components/form/Footer.vue +2 -0
- package/components/form/GitPicker.vue +1 -0
- package/components/form/HealthCheck.vue +5 -3
- package/components/form/HookOption.vue +22 -18
- package/components/form/InputWithSelect.vue +3 -1
- package/components/form/KeyValue.vue +2 -0
- package/components/form/LabeledSelect.vue +13 -3
- package/components/form/LifecycleHooks.vue +2 -0
- package/components/form/MatchExpressions.vue +2 -0
- package/components/form/Members/ClusterPermissionsEditor.vue +2 -0
- package/components/form/Members/MembershipEditor.vue +2 -0
- package/components/form/NameNsDescription.vue +4 -1
- package/components/form/Networking.vue +2 -0
- package/components/form/NodeAffinity.vue +4 -1
- package/components/form/Password.vue +2 -0
- package/components/form/PlusMinus.vue +2 -0
- package/components/form/PodAffinity.vue +4 -1
- package/components/form/Ports.vue +2 -0
- package/components/form/Probe.vue +8 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +2 -0
- package/components/form/ResourceQuota/Project.vue +2 -0
- package/components/form/ResourceQuota/ProjectRow.vue +2 -0
- package/components/form/RuleSelector.vue +2 -0
- package/components/form/SecretSelector.vue +1 -0
- package/components/form/Security.vue +5 -2
- package/components/form/Select.vue +2 -1
- package/components/form/SelectOrCreateAuthSecret.vue +2 -0
- package/components/form/ServiceNameSelect.vue +2 -0
- package/components/form/ServicePorts.vue +2 -0
- package/components/form/ShellInput.vue +2 -0
- package/components/form/SimpleSecretSelector.vue +2 -0
- package/components/form/Taints.vue +2 -0
- package/components/form/Tolerations.vue +2 -0
- package/components/form/ValueFromResource.vue +2 -0
- package/components/form/WorkloadPorts.vue +5 -3
- package/components/form/__tests__/HookOption.test.ts +28 -0
- package/components/form/__tests__/LabeledSelect.test.ts +42 -0
- package/components/form/__tests__/Probe.test.ts +12 -0
- package/components/nav/Header.vue +17 -141
- package/components/nav/HeaderPageActionMenu.vue +173 -0
- package/components/nav/Jump.vue +2 -0
- package/components/nav/NamespaceFilter.vue +5 -1
- package/components/nav/Type.vue +28 -2
- package/components/nav/WindowManager/ContainerShell.vue +6 -12
- package/components/nav/WindowManager/index.vue +2 -0
- package/components/nav/__tests__/Type.test.ts +68 -24
- package/composables/useClickOutside.ts +81 -0
- package/config/product/cis.js +4 -3
- package/config/product/manager.js +1 -0
- package/config/router/routes.js +1 -1
- package/config/table-headers.js +0 -10
- package/config/uiplugins.js +186 -143
- package/config/version.js +10 -0
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +2 -0
- package/detail/configmap.vue +2 -0
- package/detail/fleet.cattle.io.cluster.vue +2 -0
- package/detail/fleet.cattle.io.clustergroup.vue +2 -0
- package/detail/fleet.cattle.io.gitrepo.vue +2 -0
- package/detail/harvesterhci.io.management.cluster.vue +2 -0
- package/detail/management.cattle.io.roletemplate.vue +4 -4
- package/detail/management.cattle.io.user.vue +2 -0
- package/detail/namespace.vue +2 -0
- package/detail/networking.k8s.io.ingress.vue +1 -0
- package/detail/node.vue +2 -0
- package/detail/provisioning.cattle.io.cluster.vue +2 -0
- package/detail/secret.vue +2 -0
- package/detail/service.vue +2 -0
- package/detail/workload/index.vue +1 -1
- package/dialog/AddClusterMemberDialog.vue +2 -0
- package/dialog/AddCustomBadgeDialog.vue +3 -1
- package/dialog/AddProjectMemberDialog.vue +2 -0
- package/dialog/AddonConfigConfirmationDialog.vue +2 -0
- package/dialog/DeactivateDriverDialog.vue +2 -0
- package/dialog/DiagnosticTimingsDialog.vue +2 -0
- package/dialog/DrainNode.vue +2 -0
- package/dialog/ForceMachineRemoveDialog.vue +2 -0
- package/dialog/GenericPrompt.vue +2 -0
- package/dialog/RollbackWorkloadDialog.vue +2 -0
- package/dialog/RotateCertificatesDialog.vue +2 -0
- package/dialog/RotateEncryptionKeyDialog.vue +2 -0
- package/dialog/SaveAsRKETemplateDialog.vue +2 -0
- package/dialog/ScaleMachineDownDialog.vue +2 -0
- package/dialog/ScalePoolDownDialog.vue +2 -0
- package/dialog/SloDialog.vue +2 -0
- package/edit/auth/ldap/config.vue +2 -0
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +4 -2
- package/edit/catalog.cattle.io.clusterrepo.vue +2 -0
- package/edit/cis.cattle.io.clusterscan.vue +38 -18
- package/edit/cloudcredential.vue +2 -0
- package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +2 -0
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +2 -0
- package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +2 -0
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +2 -0
- package/edit/fleet.cattle.io.cluster.vue +2 -0
- package/edit/fleet.cattle.io.clustergroup.vue +4 -1
- package/edit/fleet.cattle.io.gitrepo.vue +2 -0
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +2 -0
- package/edit/logging-flow/Match.vue +2 -0
- package/edit/logging-flow/index.vue +10 -8
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +3 -3
- package/edit/management.cattle.io.fleetworkspace.vue +4 -1
- package/edit/management.cattle.io.project.vue +2 -0
- package/edit/management.cattle.io.roletemplate.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +1 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +2 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +1 -0
- package/edit/namespace.vue +1 -0
- package/edit/networking.k8s.io.ingress/Certificate.vue +2 -0
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -1
- package/edit/networking.k8s.io.ingress/Rule.vue +1 -0
- package/edit/networking.k8s.io.ingress/RulePath.vue +20 -23
- package/edit/networking.k8s.io.ingress/index.vue +1 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +1 -1
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -0
- package/edit/node.vue +2 -0
- package/edit/persistentvolumeclaim.vue +1 -0
- package/edit/policy.poddisruptionbudget.vue +3 -1
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/Labels.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/import.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/index.vue +2 -2
- package/edit/provisioning.cattle.io.cluster/rke2.vue +38 -13
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnAdditionalManifest.vue +49 -0
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig.vue +32 -65
- package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/S3Config.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/networking/index.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/index.vue +1 -0
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/DrainOptions.vue +2 -0
- package/edit/resources.cattle.io.backup.vue +2 -2
- package/edit/secret/index.vue +2 -0
- package/edit/service.vue +2 -1
- package/edit/ui.cattle.io.navlink.vue +1 -0
- package/edit/workload/Job.vue +3 -2
- package/edit/workload/Upgrading.vue +1 -0
- package/edit/workload/index.vue +18 -7
- package/edit/workload/storage/ContainerMountPaths.vue +37 -97
- package/edit/workload/storage/awsElasticBlockStore.vue +1 -1
- package/edit/workload/storage/azureDisk.vue +1 -1
- package/edit/workload/storage/csi/driver.longhorn.io.vue +2 -0
- package/edit/workload/storage/ephemeralVolume/index.vue +2 -0
- package/edit/workload/storage/gcePersistentDisk.vue +1 -1
- package/edit/workload/storage/index.vue +38 -22
- package/edit/workload/storage/persistentVolumeClaim/index.vue +2 -0
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +1 -0
- package/edit/workload/storage/vsphereVolume.vue +1 -1
- package/initialize/install-components.js +0 -12
- package/initialize/install-plugins.js +4 -5
- package/machine-config/azure.vue +2 -0
- package/machine-config/generic.vue +2 -0
- package/machine-config/vmwarevsphere.vue +2 -0
- package/mixins/resource-manager.js +1 -1
- package/models/cis.cattle.io.clusterscan.js +17 -16
- package/models/cis.cattle.io.clusterscanprofile.js +17 -0
- package/models/management.cattle.io.user.js +3 -3
- package/models/provisioning.cattle.io.cluster.js +2 -1
- package/models/steve-schema.ts +1 -1
- package/models/workload.js +2 -1
- package/package.json +4 -6
- package/pages/c/_cluster/apps/charts/chart.vue +3 -1
- package/pages/c/_cluster/apps/charts/install.vue +5 -56
- package/pages/c/_cluster/fleet/index.vue +0 -1
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +1 -0
- package/pages/c/_cluster/settings/DefaultLinksEditor.vue +2 -0
- package/pages/c/_cluster/settings/performance.vue +2 -2
- package/pages/c/_cluster/uiplugins/AddExtensionRepos.vue +11 -16
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogLoadDialog.vue +2 -0
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogUninstallDialog.vue +2 -0
- package/pages/c/_cluster/uiplugins/CatalogList/index.vue +2 -0
- package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +6 -3
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +2 -0
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +7 -17
- package/pages/c/_cluster/uiplugins/UninstallDialog.vue +2 -0
- package/pages/c/_cluster/uiplugins/__tests__/AddExtensionRepos.test.ts +3 -6
- package/pages/c/_cluster/uiplugins/index.vue +93 -92
- package/pkg/vue.config.js +2 -0
- package/plugins/plugin.js +27 -19
- package/plugins/version.js +3 -13
- package/promptRemove/pod.vue +2 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +14 -8
- package/rancher-components/Form/Radio/RadioButton.vue +0 -1
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +17 -9
- package/rancher-components/StringList/StringList.vue +6 -15
- package/scripts/extension/bundle +1 -1
- package/scripts/extension/publish +174 -99
- package/store/catalog.js +0 -26
- package/store/growl.js +8 -5
- package/utils/cluster.js +9 -0
- package/utils/versions.ts +39 -0
- package/vue.config.js +5 -0
- package/components/form/PodSecurity.vue +0 -168
- package/components/formatter/Weight.vue +0 -147
- package/components/nuxt/nuxt-build-indicator.vue +0 -170
- package/components/nuxt/nuxt-child.js +0 -52
- package/components/nuxt/nuxt-error.vue +0 -128
- package/components/nuxt/nuxt-link.client.js +0 -17
- package/components/nuxt/nuxt-loading.vue +0 -165
|
@@ -22,6 +22,7 @@ import AdvancedFiltering from './advanced-filtering';
|
|
|
22
22
|
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
23
23
|
import { getParent } from '@shell/utils/dom';
|
|
24
24
|
import { FORMATTERS } from '@shell/components/SortableTable/sortable-config';
|
|
25
|
+
import ButtonMultiAction from '@shell/components/ButtonMultiAction.vue';
|
|
25
26
|
|
|
26
27
|
// Uncomment for table performance debugging
|
|
27
28
|
// import tableDebug from './debug';
|
|
@@ -39,9 +40,17 @@ import { FORMATTERS } from '@shell/components/SortableTable/sortable-config';
|
|
|
39
40
|
// --> index.vue displayedRows
|
|
40
41
|
|
|
41
42
|
export default {
|
|
42
|
-
name:
|
|
43
|
+
name: 'SortableTable',
|
|
44
|
+
|
|
45
|
+
emits: ['clickedActionButton', 'pagination-changed', 'group-value-change', 'selection', 'rowClick'],
|
|
46
|
+
|
|
43
47
|
components: {
|
|
44
|
-
THead,
|
|
48
|
+
THead,
|
|
49
|
+
Checkbox,
|
|
50
|
+
AsyncButton,
|
|
51
|
+
ActionDropdown,
|
|
52
|
+
LabeledSelect,
|
|
53
|
+
ButtonMultiAction,
|
|
45
54
|
},
|
|
46
55
|
mixins: [
|
|
47
56
|
filtering,
|
|
@@ -1412,18 +1421,15 @@ export default {
|
|
|
1412
1421
|
name="row-actions"
|
|
1413
1422
|
:row="row.row"
|
|
1414
1423
|
>
|
|
1415
|
-
<
|
|
1424
|
+
<ButtonMultiAction
|
|
1416
1425
|
:id="`actionButton+${i}+${(row.row && row.row.name) ? row.row.name : ''}`"
|
|
1417
1426
|
:ref="`actionButton${i}`"
|
|
1418
|
-
:data-testid="componentTestid + '-' + i + '-action-button'"
|
|
1419
1427
|
aria-haspopup="true"
|
|
1420
1428
|
aria-expanded="false"
|
|
1421
|
-
|
|
1422
|
-
|
|
1429
|
+
:data-testid="componentTestid + '-' + i + '-action-button'"
|
|
1430
|
+
:borderless="true"
|
|
1423
1431
|
@click="handleActionButtonClick(i, $event)"
|
|
1424
|
-
|
|
1425
|
-
<i class="icon icon-actions" />
|
|
1426
|
-
</button>
|
|
1432
|
+
/>
|
|
1427
1433
|
</slot>
|
|
1428
1434
|
</td>
|
|
1429
1435
|
</tr>
|
|
@@ -1658,17 +1664,7 @@ export default {
|
|
|
1658
1664
|
}
|
|
1659
1665
|
}
|
|
1660
1666
|
|
|
1661
|
-
// Remove colors from multi-action buttons in the table
|
|
1662
1667
|
td {
|
|
1663
|
-
.actions.role-multi-action {
|
|
1664
|
-
background-color: transparent;
|
|
1665
|
-
border: none;
|
|
1666
|
-
&:hover, &:focus {
|
|
1667
|
-
background-color: var(--accent-btn);
|
|
1668
|
-
box-shadow: none;
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
1668
|
// Aligns with COLUMN_BREAKPOINTS
|
|
1673
1669
|
@media only screen and (max-width: map-get($breakpoints, '--viewport-4')) {
|
|
1674
1670
|
// HIDE column on sizes below 480px
|
|
@@ -6,6 +6,8 @@ import SortableTable from '@shell/components/SortableTable';
|
|
|
6
6
|
import { copyTextToClipboard } from '@shell/utils/clipboard';
|
|
7
7
|
import { exceptionToErrorsArray } from '@shell/utils/error';
|
|
8
8
|
export default {
|
|
9
|
+
emits: ['error'],
|
|
10
|
+
|
|
9
11
|
components: { SortableTable },
|
|
10
12
|
props: {
|
|
11
13
|
resource: {
|
package/components/Wizard.vue
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import ButtonMultiAction from '@shell/components/ButtonMultiAction.vue';
|
|
3
|
+
|
|
4
|
+
describe('buttonMultiAction.vue', () => {
|
|
5
|
+
it('renders correct classes when props are provided', () => {
|
|
6
|
+
const wrapper = shallowMount(ButtonMultiAction, {
|
|
7
|
+
props: {
|
|
8
|
+
borderless: true,
|
|
9
|
+
invisible: true,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
expect(wrapper.find('button').classes()).toContain('borderless');
|
|
14
|
+
expect(wrapper.find('button').classes()).toContain('invisible');
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('renders correct classes when props are absent', () => {
|
|
18
|
+
const wrapper = shallowMount(ButtonMultiAction);
|
|
19
|
+
|
|
20
|
+
expect(wrapper.find('button').classes()).not.toContain('borderless');
|
|
21
|
+
expect(wrapper.find('button').classes()).not.toContain('invisible');
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('emits click event when button is clicked', () => {
|
|
25
|
+
const wrapper = shallowMount(ButtonMultiAction);
|
|
26
|
+
|
|
27
|
+
wrapper.find('button').trigger('click');
|
|
28
|
+
|
|
29
|
+
expect(wrapper.emitted('click')).toBeTruthy();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -8,6 +8,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
|
|
8
8
|
const DEFAULT_PROTIP = 'Tip: Paste lines into any list field for easy bulk entry';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
+
emits: ['add', 'remove', 'update:value'],
|
|
12
|
+
|
|
11
13
|
components: { TextAreaAutoGrow, LabeledInput },
|
|
12
14
|
props: {
|
|
13
15
|
value: {
|
|
@@ -78,6 +80,10 @@ export default {
|
|
|
78
80
|
type: Boolean,
|
|
79
81
|
default: false,
|
|
80
82
|
},
|
|
83
|
+
required: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
81
87
|
rules: {
|
|
82
88
|
default: () => [],
|
|
83
89
|
type: Array,
|
|
@@ -228,6 +234,10 @@ export default {
|
|
|
228
234
|
<slot name="title">
|
|
229
235
|
<h3>
|
|
230
236
|
{{ title }}
|
|
237
|
+
<span
|
|
238
|
+
v-if="required"
|
|
239
|
+
class="required"
|
|
240
|
+
>*</span>
|
|
231
241
|
<i
|
|
232
242
|
v-if="showProtip"
|
|
233
243
|
v-clean-tooltip="protip"
|
|
@@ -367,6 +377,11 @@ export default {
|
|
|
367
377
|
.title {
|
|
368
378
|
margin-bottom: 10px;
|
|
369
379
|
}
|
|
380
|
+
|
|
381
|
+
.required {
|
|
382
|
+
color: var(--error);
|
|
383
|
+
}
|
|
384
|
+
|
|
370
385
|
.box {
|
|
371
386
|
display: grid;
|
|
372
387
|
grid-template-columns: auto $array-list-remove-margin;
|
|
@@ -375,7 +390,7 @@ export default {
|
|
|
375
390
|
.value {
|
|
376
391
|
flex: 1;
|
|
377
392
|
INPUT {
|
|
378
|
-
height: $input-height;
|
|
393
|
+
height: $unlabeled-input-height;
|
|
379
394
|
}
|
|
380
395
|
}
|
|
381
396
|
}
|
|
@@ -11,6 +11,8 @@ import { _CREATE, _EDIT } from '@shell/config/query-params';
|
|
|
11
11
|
// 2) isCreate - New password is for a new user
|
|
12
12
|
// 3) isEdit - New password is for an existing user
|
|
13
13
|
export default {
|
|
14
|
+
emits: ['valid', 'update:value'],
|
|
15
|
+
|
|
14
16
|
components: {
|
|
15
17
|
Checkbox, Banner, Password
|
|
16
18
|
},
|
|
@@ -3,6 +3,8 @@ import Probe from '@shell/components/form/Probe';
|
|
|
3
3
|
import { _VIEW } from '@shell/config/query-params';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
+
emits: ['update:value'],
|
|
7
|
+
|
|
6
8
|
components: { Probe },
|
|
7
9
|
props: {
|
|
8
10
|
value: {
|
|
@@ -50,7 +52,7 @@ export default {
|
|
|
50
52
|
:mode="mode"
|
|
51
53
|
:label="t('workload.container.healthCheck.readinessProbe')"
|
|
52
54
|
:description="t('workload.container.healthCheck.readinessTip')"
|
|
53
|
-
@
|
|
55
|
+
@update:value="update"
|
|
54
56
|
/>
|
|
55
57
|
</div>
|
|
56
58
|
</div>
|
|
@@ -64,7 +66,7 @@ export default {
|
|
|
64
66
|
:mode="mode"
|
|
65
67
|
:label="t('workload.container.healthCheck.livenessProbe')"
|
|
66
68
|
:description="t('workload.container.healthCheck.livenessTip')"
|
|
67
|
-
@
|
|
69
|
+
@update:value="update"
|
|
68
70
|
/>
|
|
69
71
|
</div>
|
|
70
72
|
</div>
|
|
@@ -77,7 +79,7 @@ export default {
|
|
|
77
79
|
:mode="mode"
|
|
78
80
|
:label="t('workload.container.healthCheck.startupProbe')"
|
|
79
81
|
:description="t('workload.container.healthCheck.startupTip')"
|
|
80
|
-
@
|
|
82
|
+
@update:value="update"
|
|
81
83
|
/>
|
|
82
84
|
</div>
|
|
83
85
|
</div>
|
|
@@ -8,6 +8,8 @@ import { _VIEW } from '@shell/config/query-params';
|
|
|
8
8
|
import { isEmpty } from '@shell/utils/object';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
+
emits: ['update:value'],
|
|
12
|
+
|
|
11
13
|
props: {
|
|
12
14
|
mode: {
|
|
13
15
|
type: String,
|
|
@@ -162,7 +164,7 @@ export default {
|
|
|
162
164
|
:mode="mode"
|
|
163
165
|
/>
|
|
164
166
|
<LabeledInput
|
|
165
|
-
v-model.number="value.httpGet.port"
|
|
167
|
+
v-model:value.number="value.httpGet.port"
|
|
166
168
|
type="number"
|
|
167
169
|
:label="t('workload.container.lifecycleHook.httpGet.port.label')"
|
|
168
170
|
:placeholder="t('workload.container.lifecycleHook.httpGet.port.placeholder')"
|
|
@@ -184,24 +186,25 @@ export default {
|
|
|
184
186
|
v-for="(header, index) in value.httpGet.httpHeaders"
|
|
185
187
|
:key="index"
|
|
186
188
|
class="var-row"
|
|
189
|
+
data-testid="hookoption-header-row"
|
|
187
190
|
>
|
|
188
|
-
<
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
191
|
+
<LabeledInput
|
|
192
|
+
v-model:value="value.httpGet.httpHeaders[index].name"
|
|
193
|
+
:label="t('workload.container.lifecycleHook.httpHeaders.name.label')"
|
|
194
|
+
:placeholder="t('workload.container.lifecycleHook.httpHeaders.name.placeholder')"
|
|
195
|
+
class="single-value"
|
|
196
|
+
:mode="mode"
|
|
197
|
+
required
|
|
198
|
+
@update:value="update"
|
|
199
|
+
/>
|
|
200
|
+
<LabeledInput
|
|
201
|
+
v-model:value="value.httpGet.httpHeaders[index].value"
|
|
202
|
+
:label="t('workload.container.lifecycleHook.httpHeaders.value.label')"
|
|
203
|
+
:placeholder="t('workload.container.lifecycleHook.httpHeaders.value.placeholder')"
|
|
204
|
+
class="single-value"
|
|
205
|
+
:mode="mode"
|
|
206
|
+
@update:value="update"
|
|
207
|
+
/>
|
|
205
208
|
<div class="remove">
|
|
206
209
|
<button
|
|
207
210
|
v-if="!isView"
|
|
@@ -221,6 +224,7 @@ export default {
|
|
|
221
224
|
type="button"
|
|
222
225
|
class="btn role-link mb-20"
|
|
223
226
|
:disabled="mode === 'view'"
|
|
227
|
+
data-testid="hookoption-add-header-button"
|
|
224
228
|
@click.stop="addHeader"
|
|
225
229
|
>
|
|
226
230
|
Add Header
|
|
@@ -5,6 +5,7 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
|
5
5
|
import Select from '@shell/components/form/Select';
|
|
6
6
|
export default {
|
|
7
7
|
name: 'InputWithSelect',
|
|
8
|
+
emits: ['update:value'],
|
|
8
9
|
components: {
|
|
9
10
|
LabeledInput,
|
|
10
11
|
LabeledSelect,
|
|
@@ -126,7 +127,6 @@ export default {
|
|
|
126
127
|
<div
|
|
127
128
|
:class="{ 'select-after': !selectBeforeText }"
|
|
128
129
|
class="input-container row"
|
|
129
|
-
@update:value="change"
|
|
130
130
|
>
|
|
131
131
|
<LabeledSelect
|
|
132
132
|
v-if="selectLabel"
|
|
@@ -176,6 +176,7 @@ export default {
|
|
|
176
176
|
:mode="mode"
|
|
177
177
|
:rules="textRules"
|
|
178
178
|
v-bind="$attrs"
|
|
179
|
+
@update:value="change"
|
|
179
180
|
>
|
|
180
181
|
<template #label>
|
|
181
182
|
<slot name="label" />
|
|
@@ -192,6 +193,7 @@ export default {
|
|
|
192
193
|
:disabled="isView"
|
|
193
194
|
:placeholder="placeholder"
|
|
194
195
|
autocomplete="off"
|
|
196
|
+
@input="change"
|
|
195
197
|
>
|
|
196
198
|
</div>
|
|
197
199
|
</template>
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
LabeledSelectPagination
|
|
24
24
|
],
|
|
25
25
|
|
|
26
|
-
emits: ['on-open', 'on-close', 'selecting', 'update:validation'],
|
|
26
|
+
emits: ['on-open', 'on-close', 'selecting', 'update:validation', 'update:value'],
|
|
27
27
|
|
|
28
28
|
props: {
|
|
29
29
|
appendToBody: {
|
|
@@ -134,7 +134,17 @@ export default {
|
|
|
134
134
|
_options() {
|
|
135
135
|
// If we're paginated show the page as provided by `paginate`. See label-select-pagination mixin
|
|
136
136
|
return this.canPaginate ? this.page : this.options;
|
|
137
|
-
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
filteredAttrs() {
|
|
140
|
+
const {
|
|
141
|
+
class: _class,
|
|
142
|
+
taggable,
|
|
143
|
+
...rest
|
|
144
|
+
} = this.$attrs;
|
|
145
|
+
|
|
146
|
+
return rest;
|
|
147
|
+
},
|
|
138
148
|
},
|
|
139
149
|
|
|
140
150
|
methods: {
|
|
@@ -285,7 +295,7 @@ export default {
|
|
|
285
295
|
</div>
|
|
286
296
|
<v-select
|
|
287
297
|
ref="select-input"
|
|
288
|
-
v-bind="
|
|
298
|
+
v-bind="filteredAttrs"
|
|
289
299
|
class="inline"
|
|
290
300
|
:append-to-body="appendToBody"
|
|
291
301
|
:calculate-position="positionDropdown"
|
|
@@ -8,6 +8,8 @@ import { convert, simplify } from '@shell/utils/selector';
|
|
|
8
8
|
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
+
emits: ['update:value', 'remove'],
|
|
12
|
+
|
|
11
13
|
components: { Select, LabeledSelect },
|
|
12
14
|
props: {
|
|
13
15
|
// Array of actual match expressions
|
|
@@ -10,7 +10,10 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
|
|
|
10
10
|
import { normalizeName } from '@shell/utils/kube';
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
|
-
name:
|
|
13
|
+
name: 'NameNsDescription',
|
|
14
|
+
|
|
15
|
+
emits: ['update:value', 'isNamespaceNew'],
|
|
16
|
+
|
|
14
17
|
components: {
|
|
15
18
|
LabeledInput,
|
|
16
19
|
LabeledSelect,
|
|
@@ -11,6 +11,8 @@ import { randomStr } from '@shell/utils/string';
|
|
|
11
11
|
import ArrayListGrouped from '@shell/components/form/ArrayListGrouped';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
+
emits: ['update:value'],
|
|
15
|
+
|
|
14
16
|
components: {
|
|
15
17
|
ArrayListGrouped, MatchExpressions, LabeledSelect, LabeledInput
|
|
16
18
|
},
|
|
@@ -216,7 +218,7 @@ export default {
|
|
|
216
218
|
class="col span-3"
|
|
217
219
|
>
|
|
218
220
|
<LabeledInput
|
|
219
|
-
v-model.number="props.row.value.weight"
|
|
221
|
+
v-model:value.number="props.row.value.weight"
|
|
220
222
|
:mode="mode"
|
|
221
223
|
type="number"
|
|
222
224
|
min="1"
|
|
@@ -224,6 +226,7 @@ export default {
|
|
|
224
226
|
:label="t('workload.scheduling.affinity.weight.label')"
|
|
225
227
|
:placeholder="t('workload.scheduling.affinity.weight.placeholder')"
|
|
226
228
|
:data-testid="`node-affinity-weight-index${props.i}`"
|
|
229
|
+
@update:value="update"
|
|
227
230
|
/>
|
|
228
231
|
</div>
|
|
229
232
|
</div>
|
|
@@ -20,6 +20,8 @@ const NAMESPACE_SELECTION_OPTION_VALUES = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
|
+
emits: ['update'],
|
|
24
|
+
|
|
23
25
|
components: {
|
|
24
26
|
ArrayListGrouped, MatchExpressions, LabeledSelect, RadioGroup, LabeledInput
|
|
25
27
|
},
|
|
@@ -470,7 +472,7 @@ export default {
|
|
|
470
472
|
class="col span-3"
|
|
471
473
|
>
|
|
472
474
|
<LabeledInput
|
|
473
|
-
v-model.number="props.row.value.weight"
|
|
475
|
+
v-model:value.number="props.row.value.weight"
|
|
474
476
|
:mode="mode"
|
|
475
477
|
type="number"
|
|
476
478
|
min="1"
|
|
@@ -478,6 +480,7 @@ export default {
|
|
|
478
480
|
:label="t('workload.scheduling.affinity.weight.label')"
|
|
479
481
|
:placeholder="t('workload.scheduling.affinity.weight.placeholder')"
|
|
480
482
|
:data-testid="`pod-affinity-weight-index${props.i}`"
|
|
483
|
+
@update:value="update"
|
|
481
484
|
/>
|
|
482
485
|
</div>
|
|
483
486
|
</div>
|