@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
|
@@ -6,6 +6,7 @@ import { get, set } from '@shell/utils/object';
|
|
|
6
6
|
import debounce from 'lodash/debounce';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
+
emits: ['update:value', 'remove'],
|
|
9
10
|
components: {
|
|
10
11
|
InputWithSelect, LabeledInput, Select
|
|
11
12
|
},
|
|
@@ -180,36 +181,27 @@ export default {
|
|
|
180
181
|
</div>
|
|
181
182
|
</template>
|
|
182
183
|
<style lang="scss" scoped>
|
|
184
|
+
// TODO #11952: Correct deep statement
|
|
183
185
|
$row-height: 40px;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
height: 100%;
|
|
188
|
-
input.no-label {
|
|
189
|
-
height: calc($row-height - 2px);
|
|
190
|
-
padding: 10px;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
.rule-path :deep() {
|
|
194
|
-
.col, INPUT {
|
|
195
|
-
height: $row-height;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.unlabeled-select {
|
|
186
|
+
.rule-path {
|
|
187
|
+
:deep(.labeled-input) {
|
|
188
|
+
padding: 0 !important;
|
|
199
189
|
height: 100%;
|
|
200
|
-
}
|
|
201
190
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
191
|
+
input.no-label {
|
|
192
|
+
height: calc($row-height - 2px);
|
|
193
|
+
padding: 10px;
|
|
205
194
|
}
|
|
206
195
|
}
|
|
207
196
|
|
|
208
|
-
|
|
197
|
+
:deep(.col), INPUT {
|
|
198
|
+
height: $row-height;
|
|
199
|
+
}
|
|
200
|
+
&, :deep(.input-container) {
|
|
209
201
|
height: $row-height;
|
|
210
202
|
}
|
|
211
203
|
|
|
212
|
-
.input-container .in-input.unlabeled-select {
|
|
204
|
+
:deep(.input-container) :deep(.in-input.unlabeled-select) {
|
|
213
205
|
width: initial;
|
|
214
206
|
}
|
|
215
207
|
|
|
@@ -217,11 +209,16 @@ $row-height: 40px;
|
|
|
217
209
|
line-height: $row-height;
|
|
218
210
|
}
|
|
219
211
|
|
|
220
|
-
.v-select INPUT {
|
|
212
|
+
:deep(.v-select) INPUT {
|
|
221
213
|
height: 50px;
|
|
222
214
|
}
|
|
223
|
-
.labeled-input {
|
|
215
|
+
:deep(.labeled-input) {
|
|
224
216
|
padding-top: 6px;
|
|
225
217
|
}
|
|
218
|
+
|
|
219
|
+
:deep(.unlabeled-select) {
|
|
220
|
+
height: 100%;
|
|
221
|
+
min-width: 200px;
|
|
222
|
+
}
|
|
226
223
|
}
|
|
227
224
|
</style>
|
package/edit/node.vue
CHANGED
|
@@ -11,7 +11,9 @@ import { POD } from '@shell/config/types';
|
|
|
11
11
|
import FormValidation from '@shell/mixins/form-validation';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
name:
|
|
14
|
+
name: 'PodDisruptionBudget',
|
|
15
|
+
emits: ['input'],
|
|
16
|
+
|
|
15
17
|
inheritAttrs: false,
|
|
16
18
|
components: {
|
|
17
19
|
ResourceSelector,
|
|
@@ -11,6 +11,8 @@ import { MANAGEMENT } from '@shell/config/types';
|
|
|
11
11
|
import { sanitizeKey, sanitizeIP, sanitizeValue } from '@shell/utils/string';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
+
emits: ['copied-windows'],
|
|
15
|
+
|
|
14
16
|
components: {
|
|
15
17
|
Banner, Checkbox, CopyCode, InfoBox, KeyValue, LabeledInput, Taints
|
|
16
18
|
},
|
|
@@ -39,6 +39,8 @@ const PROXY_ENDPOINT = '/meta/proxy';
|
|
|
39
39
|
export default {
|
|
40
40
|
name: 'CruCluster',
|
|
41
41
|
|
|
42
|
+
emits: ['update:value', 'set-subtype', 'input'],
|
|
43
|
+
|
|
42
44
|
components: {
|
|
43
45
|
CruResource,
|
|
44
46
|
EmberPage,
|
|
@@ -51,8 +53,6 @@ export default {
|
|
|
51
53
|
|
|
52
54
|
mixins: [CreateEditView],
|
|
53
55
|
|
|
54
|
-
emits: ['set-subtype'],
|
|
55
|
-
|
|
56
56
|
inheritAttrs: false,
|
|
57
57
|
|
|
58
58
|
props: {
|
|
@@ -29,7 +29,7 @@ import { sortBy } from '@shell/utils/sort';
|
|
|
29
29
|
import { vspherePoolConfigMerge } from '@shell/machine-config/vmwarevsphere-pool-config-merge';
|
|
30
30
|
|
|
31
31
|
import { compare, sortable } from '@shell/utils/version';
|
|
32
|
-
import { isHarvesterSatisfiesVersion } from '@shell/utils/cluster';
|
|
32
|
+
import { isHarvesterSatisfiesVersion, labelForAddon } from '@shell/utils/cluster';
|
|
33
33
|
|
|
34
34
|
import { BadgeState } from '@components/BadgeState';
|
|
35
35
|
import { Banner } from '@components/Banner';
|
|
@@ -62,6 +62,7 @@ import Registries from '@shell/edit/provisioning.cattle.io.cluster/tabs/registri
|
|
|
62
62
|
import AddOnConfig from '@shell/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig';
|
|
63
63
|
import Advanced from '@shell/edit/provisioning.cattle.io.cluster/tabs/Advanced';
|
|
64
64
|
import ClusterAppearance from '@shell/components/form/ClusterAppearance';
|
|
65
|
+
import AddOnAdditionalManifest from '@shell/edit/provisioning.cattle.io.cluster/tabs/AddOnAdditionalManifest';
|
|
65
66
|
|
|
66
67
|
const HARVESTER = 'harvester';
|
|
67
68
|
const HARVESTER_CLOUD_PROVIDER = 'harvester-cloud-provider';
|
|
@@ -92,6 +93,8 @@ const FLEET_AGENT_CUSTOMIZATION = 'fleetAgentDeploymentCustomization';
|
|
|
92
93
|
const isAzureK8sUnsupported = (version) => semver.gte(version, '1.30.0');
|
|
93
94
|
|
|
94
95
|
export default {
|
|
96
|
+
emits: ['update:value', 'input'],
|
|
97
|
+
|
|
95
98
|
components: {
|
|
96
99
|
AgentEnv,
|
|
97
100
|
BadgeState,
|
|
@@ -113,7 +116,8 @@ export default {
|
|
|
113
116
|
Registries,
|
|
114
117
|
AddOnConfig,
|
|
115
118
|
Advanced,
|
|
116
|
-
ClusterAppearance
|
|
119
|
+
ClusterAppearance,
|
|
120
|
+
AddOnAdditionalManifest
|
|
117
121
|
},
|
|
118
122
|
|
|
119
123
|
mixins: [CreateEditView, FormValidation],
|
|
@@ -246,6 +250,7 @@ export default {
|
|
|
246
250
|
machinePoolErrors: {},
|
|
247
251
|
allNamespaces: [],
|
|
248
252
|
extensionTabs: getApplicableExtensionEnhancements(this, ExtensionPoint.TAB, TabLocation.CLUSTER_CREATE_RKE2, this.$route, this),
|
|
253
|
+
labelForAddon
|
|
249
254
|
};
|
|
250
255
|
},
|
|
251
256
|
|
|
@@ -1544,7 +1549,7 @@ export default {
|
|
|
1544
1549
|
versionName: entry.version,
|
|
1545
1550
|
});
|
|
1546
1551
|
|
|
1547
|
-
this.versionInfo
|
|
1552
|
+
this.versionInfo[chartName] = res;
|
|
1548
1553
|
const key = this.chartVersionKey(chartName);
|
|
1549
1554
|
|
|
1550
1555
|
if (!this.userChartValues[key]) {
|
|
@@ -1561,14 +1566,16 @@ export default {
|
|
|
1561
1566
|
this.addonNames.forEach((name) => {
|
|
1562
1567
|
const chartValues = this.versionInfo[name]?.questions ? this.initYamlEditor(name) : {};
|
|
1563
1568
|
|
|
1564
|
-
this.userChartValuesTemp
|
|
1569
|
+
this.userChartValuesTemp[name] = chartValues;
|
|
1565
1570
|
});
|
|
1566
1571
|
this.refreshComponentWithYamls(key);
|
|
1567
1572
|
},
|
|
1568
1573
|
refreshComponentWithYamls(key) {
|
|
1569
1574
|
const component = this.$refs[key];
|
|
1570
1575
|
|
|
1571
|
-
if (component) {
|
|
1576
|
+
if (Array.isArray(component) && component.length > 0) {
|
|
1577
|
+
this.refreshYamls(component[0].$refs);
|
|
1578
|
+
} else if (component) {
|
|
1572
1579
|
this.refreshYamls(component.$refs);
|
|
1573
1580
|
}
|
|
1574
1581
|
},
|
|
@@ -1587,7 +1594,7 @@ export default {
|
|
|
1587
1594
|
},
|
|
1588
1595
|
|
|
1589
1596
|
updateValues(name, values) {
|
|
1590
|
-
this.userChartValuesTemp
|
|
1597
|
+
this.userChartValuesTemp[name] = values;
|
|
1591
1598
|
this.syncChartValues(name);
|
|
1592
1599
|
},
|
|
1593
1600
|
|
|
@@ -1871,7 +1878,7 @@ export default {
|
|
|
1871
1878
|
const userValues = this.userChartValues[key];
|
|
1872
1879
|
|
|
1873
1880
|
if (userValues) {
|
|
1874
|
-
rkeConfig.chartValues
|
|
1881
|
+
rkeConfig.chartValues[name] = userValues;
|
|
1875
1882
|
}
|
|
1876
1883
|
});
|
|
1877
1884
|
},
|
|
@@ -2382,24 +2389,42 @@ export default {
|
|
|
2382
2389
|
/>
|
|
2383
2390
|
</Tab>
|
|
2384
2391
|
|
|
2385
|
-
<!-- Add-on
|
|
2392
|
+
<!-- Add-on Configs -->
|
|
2386
2393
|
<Tab
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2394
|
+
v-for="v in addonVersions"
|
|
2395
|
+
:key="v.name"
|
|
2396
|
+
:name="v.name"
|
|
2397
|
+
:label="labelForAddon($store, v.name, false)"
|
|
2398
|
+
:weight="9"
|
|
2399
|
+
:showHeader="false"
|
|
2400
|
+
@active="showAddons(v.name)"
|
|
2390
2401
|
>
|
|
2391
2402
|
<AddOnConfig
|
|
2392
|
-
ref="
|
|
2403
|
+
:ref="v.name"
|
|
2393
2404
|
v-model:value="localValue"
|
|
2394
2405
|
:mode="mode"
|
|
2395
2406
|
:version-info="versionInfo"
|
|
2396
|
-
:addon-
|
|
2407
|
+
:addon-version="v"
|
|
2397
2408
|
:addons-rev="addonsRev"
|
|
2398
2409
|
:user-chart-values-temp="userChartValuesTemp"
|
|
2399
2410
|
:init-yaml-editor="initYamlEditor"
|
|
2400
2411
|
@update:value="$emit('input', $event)"
|
|
2401
2412
|
@update-questions="syncChartValues"
|
|
2402
2413
|
@update-values="updateValues"
|
|
2414
|
+
/>
|
|
2415
|
+
</Tab>
|
|
2416
|
+
|
|
2417
|
+
<!-- Add-on Additional Manifest -->
|
|
2418
|
+
<Tab
|
|
2419
|
+
name="additionalmanifest"
|
|
2420
|
+
label-key="cluster.tabs.addOnAdditionalManifest"
|
|
2421
|
+
:showHeader="false"
|
|
2422
|
+
@active="refreshComponentWithYamls('additionalmanifest')"
|
|
2423
|
+
>
|
|
2424
|
+
<AddOnAdditionalManifest
|
|
2425
|
+
ref="additionalmanifest"
|
|
2426
|
+
:value="value"
|
|
2427
|
+
:mode="mode"
|
|
2403
2428
|
@additional-manifest-changed="updateAdditionalManifest"
|
|
2404
2429
|
/>
|
|
2405
2430
|
</Tab>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import YamlEditor from '@shell/components/YamlEditor';
|
|
3
|
+
export default {
|
|
4
|
+
components: { YamlEditor },
|
|
5
|
+
|
|
6
|
+
emits: ['additional-manifest-changed'],
|
|
7
|
+
|
|
8
|
+
props: {
|
|
9
|
+
mode: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
value: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true,
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
computed: {
|
|
20
|
+
additionalManifest: {
|
|
21
|
+
get() {
|
|
22
|
+
return this.value.spec.rkeConfig.additionalManifest;
|
|
23
|
+
},
|
|
24
|
+
set(neu) {
|
|
25
|
+
this.$emit('additional-manifest-changed', neu);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<div>
|
|
34
|
+
<h3>
|
|
35
|
+
{{ t('cluster.addOns.additionalManifest.title') }}
|
|
36
|
+
<i
|
|
37
|
+
v-clean-tooltip="t('cluster.addOns.additionalManifest.tooltip')"
|
|
38
|
+
class="icon icon-info"
|
|
39
|
+
/>
|
|
40
|
+
</h3>
|
|
41
|
+
<YamlEditor
|
|
42
|
+
ref="yaml-additional"
|
|
43
|
+
v-model:value="additionalManifest"
|
|
44
|
+
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
|
|
45
|
+
initial-yaml-values="# Additional Manifest YAML"
|
|
46
|
+
class="yaml-editor"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
@@ -3,10 +3,12 @@ import { Banner } from '@components/Banner';
|
|
|
3
3
|
|
|
4
4
|
import Questions from '@shell/components/Questions';
|
|
5
5
|
import YamlEditor from '@shell/components/YamlEditor';
|
|
6
|
-
import {
|
|
6
|
+
import { labelForAddon } from '@shell/utils/cluster';
|
|
7
7
|
import { _EDIT } from '@shell/config/query-params';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
|
+
emits: ['additional-manifest-changed', 'update-questions', 'update-values'],
|
|
11
|
+
|
|
10
12
|
components: {
|
|
11
13
|
Banner,
|
|
12
14
|
Questions,
|
|
@@ -29,8 +31,8 @@ export default {
|
|
|
29
31
|
required: true,
|
|
30
32
|
},
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
type:
|
|
34
|
+
addonVersion: {
|
|
35
|
+
type: Object,
|
|
34
36
|
required: false,
|
|
35
37
|
default: null
|
|
36
38
|
},
|
|
@@ -50,28 +52,15 @@ export default {
|
|
|
50
52
|
|
|
51
53
|
},
|
|
52
54
|
|
|
55
|
+
data() {
|
|
56
|
+
return { labelForAddon };
|
|
57
|
+
},
|
|
58
|
+
|
|
53
59
|
computed: {
|
|
54
|
-
additionalManifest: {
|
|
55
|
-
get() {
|
|
56
|
-
return this.value.spec.rkeConfig.additionalManifest;
|
|
57
|
-
},
|
|
58
|
-
set(neu) {
|
|
59
|
-
this.$emit('additional-manifest-changed', neu);
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
60
|
isEdit() {
|
|
63
61
|
return this.mode === _EDIT;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
methods: {
|
|
68
|
-
|
|
69
|
-
labelForAddon(name) {
|
|
70
|
-
const fallback = `${ camelToTitle(name.replace(/^(rke|rke2|rancher)-/, '')) } Configuration`;
|
|
71
|
-
|
|
72
|
-
return this.$store.getters['i18n/withFallback'](`cluster.addonChart."${ name }"`, null, fallback);
|
|
73
|
-
},
|
|
74
|
-
},
|
|
62
|
+
}
|
|
63
|
+
}
|
|
75
64
|
};
|
|
76
65
|
</script>
|
|
77
66
|
|
|
@@ -84,54 +73,32 @@ export default {
|
|
|
84
73
|
{{ t('cluster.addOns.dependencyBanner') }}
|
|
85
74
|
</Banner>
|
|
86
75
|
<div
|
|
87
|
-
v-if="versionInfo &&
|
|
76
|
+
v-if="versionInfo && addonVersion"
|
|
88
77
|
:key="addonsRev"
|
|
89
78
|
>
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
:source="versionInfo[v.name]"
|
|
103
|
-
:target-namespace="value.metadata.namespace"
|
|
104
|
-
@updated="$emit('update-questions', v.name)"
|
|
105
|
-
/>
|
|
106
|
-
<YamlEditor
|
|
107
|
-
v-else
|
|
108
|
-
ref="yaml-values"
|
|
109
|
-
:value="initYamlEditor(v.name)"
|
|
110
|
-
:scrolling="true"
|
|
111
|
-
:as-object="true"
|
|
112
|
-
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
|
|
113
|
-
:hide-preview-buttons="true"
|
|
114
|
-
@update:value="data => $emit('update-values', v.name, data)"
|
|
115
|
-
/>
|
|
116
|
-
<div class="spacer" />
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
<div>
|
|
121
|
-
<h3>
|
|
122
|
-
{{ t('cluster.addOns.additionalManifest.title') }}
|
|
123
|
-
<i
|
|
124
|
-
v-clean-tooltip="t('cluster.addOns.additionalManifest.tooltip')"
|
|
125
|
-
class="icon icon-info"
|
|
126
|
-
/>
|
|
127
|
-
</h3>
|
|
79
|
+
<h3>{{ labelForAddon($store, addonVersion.name) }}</h3>
|
|
80
|
+
<Questions
|
|
81
|
+
v-if="versionInfo[addonVersion.name] && versionInfo[addonVersion.name].questions && addonVersion.name && userChartValuesTemp[addonVersion.name]"
|
|
82
|
+
v-model:value="userChartValuesTemp[addonVersion.name]"
|
|
83
|
+
:emit="true"
|
|
84
|
+
in-store="management"
|
|
85
|
+
:mode="mode"
|
|
86
|
+
:tabbed="false"
|
|
87
|
+
:source="versionInfo[addonVersion.name]"
|
|
88
|
+
:target-namespace="value.metadata.namespace"
|
|
89
|
+
@updated="$emit('update-questions', addonVersion.name)"
|
|
90
|
+
/>
|
|
128
91
|
<YamlEditor
|
|
129
|
-
|
|
130
|
-
|
|
92
|
+
v-else
|
|
93
|
+
ref="yaml-values"
|
|
94
|
+
:value="initYamlEditor(addonVersion.name)"
|
|
95
|
+
:scrolling="true"
|
|
96
|
+
:as-object="true"
|
|
131
97
|
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
|
|
132
|
-
|
|
133
|
-
|
|
98
|
+
:hide-preview-buttons="true"
|
|
99
|
+
@input="data => $emit('update-values', addonVersion.name, data)"
|
|
134
100
|
/>
|
|
101
|
+
<div class="spacer" />
|
|
135
102
|
</div>
|
|
136
103
|
</div>
|
|
137
104
|
</template>
|
|
@@ -16,6 +16,8 @@ import { _CREATE, _EDIT } from '@shell/config/query-params';
|
|
|
16
16
|
const HARVESTER = 'harvester';
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
|
+
emits: ['enabled-system-services-changed', 'cilium-values-changed', 'kubernetes-changed', 'show-deprecated-patch-versions-changed', 'cis-changed', 'psa-default-changed'],
|
|
20
|
+
|
|
19
21
|
components: {
|
|
20
22
|
Banner,
|
|
21
23
|
Checkbox,
|
|
@@ -7,6 +7,8 @@ import S3Config from '@shell/edit/provisioning.cattle.io.cluster/tabs/etcd/S3Con
|
|
|
7
7
|
import UnitInput from '@shell/components/form/UnitInput';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
|
+
emits: ['s3-backup-changed', 'config-etcd-expose-metrics-changed'],
|
|
11
|
+
|
|
10
12
|
components: {
|
|
11
13
|
LabeledInput,
|
|
12
14
|
RadioGroup,
|
|
@@ -8,6 +8,7 @@ import RegistryConfigs from '@shell/edit/provisioning.cattle.io.cluster/tabs/reg
|
|
|
8
8
|
import RegistryMirrors from '@shell/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryMirrors';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
+
emits: ['custom-registry-changed', 'registry-host-changed', 'registry-secret-changed', 'input', 'update-configs-changed'],
|
|
11
12
|
components: {
|
|
12
13
|
LabeledInput,
|
|
13
14
|
Banner,
|
|
@@ -13,7 +13,7 @@ import S3 from '@shell/chart/rancher-backup/S3';
|
|
|
13
13
|
import { mapGetters } from 'vuex';
|
|
14
14
|
import { SECRET, BACKUP_RESTORE, CATALOG } from '@shell/config/types';
|
|
15
15
|
import { allHash } from '@shell/utils/promise';
|
|
16
|
-
import { NAMESPACE, _VIEW } from '@shell/config/query-params';
|
|
16
|
+
import { NAMESPACE, _VIEW, _CREATE } from '@shell/config/query-params';
|
|
17
17
|
import { sortBy } from '@shell/utils/sort';
|
|
18
18
|
import { get } from '@shell/utils/object';
|
|
19
19
|
import { formatEncryptionSecretNames } from '@shell/utils/formatter';
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
this.value['spec'] = { retentionCount: 10 };
|
|
89
89
|
}
|
|
90
90
|
let s3 = {};
|
|
91
|
-
let useEncryption =
|
|
91
|
+
let useEncryption = this.mode === _CREATE;
|
|
92
92
|
let setSchedule = false;
|
|
93
93
|
let storageSource = 'useDefault';
|
|
94
94
|
|
package/edit/secret/index.vue
CHANGED
package/edit/service.vue
CHANGED
|
@@ -41,6 +41,7 @@ const SESSION_AFFINITY_ACTION_LABELS = {
|
|
|
41
41
|
const SESSION_STICKY_TIME_DEFAULT = 10800;
|
|
42
42
|
|
|
43
43
|
export default {
|
|
44
|
+
emits: ['set-subtype'],
|
|
44
45
|
// Props are found in CreateEditView
|
|
45
46
|
// props: {},
|
|
46
47
|
inheritAttrs: false,
|
|
@@ -377,7 +378,7 @@ export default {
|
|
|
377
378
|
<LabeledInput
|
|
378
379
|
v-else
|
|
379
380
|
ref="external-name"
|
|
380
|
-
v-model.number="value.spec.externalName"
|
|
381
|
+
v-model:value.number="value.spec.externalName"
|
|
381
382
|
:mode="mode"
|
|
382
383
|
:label="t('servicesPage.externalName.input.label')"
|
|
383
384
|
:placeholder="t('servicesPage.externalName.placeholder')"
|