@rancher/shell 0.3.4 → 0.3.6
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/images/providers/outscale.svg +19 -0
- package/assets/styles/app.scss +1 -1
- package/assets/styles/base/_basic.scss +18 -0
- package/assets/styles/base/_mixins.scss +0 -11
- package/assets/styles/base/_variables.scss +2 -4
- package/assets/styles/fonts/_fontstack.scss +11 -11
- package/assets/styles/global/_button.scss +12 -2
- package/assets/styles/vendor/vue-js-modal.scss +3 -3
- package/assets/translations/en-us.yaml +113 -22
- package/assets/translations/zh-hans.yaml +113 -24
- package/babel.config.js +13 -0
- package/chart/gatekeeper.vue +78 -0
- package/chart/istio.vue +135 -112
- package/chart/logging/index.vue +13 -4
- package/chart/monitoring/index.vue +15 -5
- package/chart/monitoring/steps/uninstall-v1.vue +2 -2
- package/chart/rancher-backup/index.vue +10 -3
- package/cloud-credential/aws.vue +1 -1
- package/cloud-credential/digitalocean.vue +1 -1
- package/cloud-credential/gcp.vue +1 -1
- package/cloud-credential/generic.vue +2 -2
- package/cloud-credential/linode.vue +1 -1
- package/cloud-credential/pnap.vue +1 -1
- package/components/ActionMenu.vue +3 -4
- package/components/AssignTo.vue +1 -1
- package/components/AsyncButton.vue +1 -1
- package/components/BannerGraphic.vue +1 -1
- package/components/BrandImage.vue +1 -4
- package/components/ButtonDropdown.vue +2 -3
- package/components/Carousel.vue +85 -37
- package/components/ChartPsp.vue +76 -0
- package/components/CruResource.vue +6 -2
- package/components/DashboardMetrics.vue +12 -10
- package/components/DetailText.vue +1 -1
- package/components/DisableAuthProviderModal.vue +1 -1
- package/components/EmberPage.vue +1 -1
- package/components/EtcdInfoBanner.vue +12 -7
- package/components/ExplorerMembers.vue +101 -6
- package/components/ExplorerProjectsNamespaces.vue +46 -3
- package/components/FileDiff.vue +6 -7
- package/components/GrafanaDashboard.vue +27 -23
- package/components/LazyImage.vue +10 -12
- package/components/LogItem.vue +1 -1
- package/components/Markdown.vue +1 -1
- package/components/PromptRemove.vue +2 -2
- package/components/PromptRestore.vue +1 -1
- package/components/ResourceDetail/Masthead.vue +16 -0
- package/components/ResourceDetail/index.vue +21 -4
- package/components/ResourceList/index.vue +1 -1
- package/components/ResourceTable.vue +4 -1
- package/components/SingleClusterInfo.vue +2 -2
- package/components/SortableTable/THead.vue +1 -1
- package/components/SortableTable/index.vue +28 -13
- package/components/SortableTable/selection.js +58 -50
- package/components/Wizard.vue +4 -2
- package/components/__tests__/AsyncButton.test.ts +3 -1
- package/components/__tests__/ChartPsp.test.ts +75 -0
- package/components/__tests__/CruResource.test.ts +3 -1
- package/components/auth/Principal.vue +1 -1
- package/components/auth/RoleDetailEdit.vue +2 -2
- package/components/fleet/FleetBundles.vue +3 -1
- package/components/fleet/FleetClusters.vue +1 -2
- package/components/fleet/FleetIntro.vue +9 -1
- package/components/fleet/FleetNoWorkspaces.vue +62 -0
- package/components/fleet/FleetSummary.vue +7 -1
- package/components/form/HookOption.vue +14 -10
- package/components/form/LabeledSelect.vue +14 -11
- package/components/form/Labels.vue +32 -27
- package/components/form/MatchExpressions.vue +19 -4
- package/components/form/Members/ClusterPermissionsEditor.vue +32 -7
- package/components/form/NameNsDescription.vue +32 -46
- package/components/form/ProjectMemberEditor.vue +46 -21
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/SecretSelector.vue +5 -1
- package/components/form/ServiceNameSelect.vue +1 -1
- package/components/form/SimpleSecretSelector.vue +9 -9
- package/components/form/Tolerations.vue +4 -1
- package/components/form/ValueFromResource.vue +14 -9
- package/components/form/WorkloadPorts.vue +2 -2
- package/components/form/__tests__/LabeledSelect.test.ts +138 -0
- package/components/form/__tests__/NameNsDescription.ts +59 -0
- package/components/formatter/InternalExternalIP.vue +6 -0
- package/components/formatter/InvolvedObjectLink.vue +54 -0
- package/components/formatter/Link.vue +20 -4
- package/components/formatter/LinkName.vue +6 -1
- package/components/formatter/ServiceTargets.vue +1 -1
- package/components/formatter/WorkloadHealthScale.vue +8 -2
- package/components/nav/Group.vue +2 -2
- package/components/nav/NamespaceFilter.vue +23 -11
- package/components/nav/TopLevelMenu.vue +2 -4
- package/components/nav/Type.vue +1 -1
- package/components/nav/WorkspaceSwitcher.vue +46 -5
- package/components/nuxt/nuxt-build-indicator.vue +143 -0
- package/components/nuxt/nuxt-child.js +122 -0
- package/components/nuxt/nuxt-error.vue +98 -0
- package/components/nuxt/nuxt-link.client.js +98 -0
- package/components/nuxt/nuxt-link.server.js +16 -0
- package/components/nuxt/nuxt-loading.vue +154 -0
- package/components/nuxt/nuxt.js +101 -0
- package/config/labels-annotations.js +17 -0
- package/config/middleware.js +12 -0
- package/config/product/auth.js +3 -2
- package/config/product/explorer.js +34 -6
- package/config/product/fleet.js +2 -0
- package/config/query-params.js +1 -0
- package/config/router.js +414 -0
- package/config/store.js +181 -0
- package/config/table-headers.js +54 -12
- package/config/types.js +18 -8
- package/config/uiplugins.js +30 -0
- package/content/docs/en-us/whats-new.md +10 -0
- package/content/docs/zh-hans/whats-new.md +11 -1
- package/core/plugin-routes.ts +23 -0
- package/core/plugin.ts +4 -2
- package/core/types.ts +258 -1
- package/creators/app/app.package.json +2 -1
- package/creators/app/files/.eslintrc.js +1 -1
- package/creators/app/files/babel.config.js +1 -18
- package/creators/app/files/tsconfig.json +0 -1
- package/creators/app/files/vue.config.js +6 -0
- package/creators/app/init +5 -5
- package/creators/pkg/files/.github/workflows/build-extension.yml +110 -0
- package/creators/pkg/files/tsconfig.json +0 -1
- package/creators/pkg/init +35 -4
- package/creators/pkg/pkg.package.json +3 -3
- package/creators/update/init +1 -1
- package/detail/constraints.gatekeeper.sh.constraint.vue +34 -17
- package/detail/fleet.cattle.io.clustergroup.vue +7 -1
- package/detail/fleet.cattle.io.gitrepo.vue +19 -11
- package/detail/harvesterhci.io.management.cluster.vue +3 -3
- package/detail/provisioning.cattle.io.cluster.vue +54 -12
- package/detail/workload/index.vue +3 -3
- package/dialog/AddClusterMemberDialog.vue +1 -1
- package/dialog/AddProjectMemberDialog.vue +2 -2
- package/dialog/AddonConfigConfirmationDialog.vue +27 -15
- package/dialog/DiagnosticTimingsDialog.vue +1 -1
- package/dialog/ForceMachineRemoveDialog.vue +1 -1
- package/dialog/GenericPrompt.vue +18 -6
- package/dialog/RotateEncryptionKeyDialog.vue +1 -1
- package/dialog/SaveAsRKETemplateDialog.vue +1 -1
- package/dialog/ScaleMachineDownDialog.vue +1 -1
- package/edit/auth/github.vue +8 -8
- package/edit/auth/googleoauth.vue +5 -5
- package/edit/auth/ldap/index.vue +1 -1
- package/edit/auth/oidc.vue +1 -1
- package/edit/auth/saml.vue +1 -1
- package/edit/cis.cattle.io.clusterscan.vue +1 -1
- package/edit/fleet.cattle.io.clustergroup.vue +6 -4
- package/edit/fleet.cattle.io.gitrepo.vue +32 -4
- package/edit/helm.cattle.io.projecthelmchart.vue +5 -1
- package/edit/logging.banzaicloud.io.output/index.vue +18 -5
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +1 -0
- package/edit/management.cattle.io.fleetworkspace.vue +141 -6
- package/edit/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +4 -1
- package/edit/management.cattle.io.setting.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +2 -2
- package/edit/monitoring.coreos.com.receiver/tls.vue +18 -18
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +4 -4
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +1 -1
- package/edit/namespace.vue +14 -10
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +126 -45
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +21 -4
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +1 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +202 -2
- package/edit/provisioning.cattle.io.cluster/import.vue +23 -25
- package/edit/provisioning.cattle.io.cluster/rke2.vue +344 -102
- package/edit/resources.cattle.io.backup.vue +1 -1
- package/edit/service.vue +1 -1
- package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +2 -2
- package/edit/workload/__tests__/Job.test.ts +3 -1
- package/edit/workload/index.vue +8 -3
- package/edit/workload/mixins/workload.js +22 -7
- package/edit/workload/storage/Mount.vue +3 -3
- package/initialize/App.js +206 -0
- package/initialize/client.js +863 -0
- package/initialize/index.js +364 -0
- package/layouts/default.vue +7 -3
- package/layouts/standalone.vue +13 -0
- package/list/catalog.cattle.io.clusterrepo.vue +1 -0
- package/list/fleet.cattle.io.bundle.vue +6 -3
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +3 -1
- package/list/fleet.cattle.io.gitrepo.vue +44 -5
- package/list/management.cattle.io.fleetworkspace.vue +45 -0
- package/list/node.vue +69 -16
- package/list/provisioning.cattle.io.cluster.vue +30 -1
- package/list/rbac.authorization.k8s.io.clusterrolebinding.vue +48 -0
- package/list/workload.vue +6 -4
- package/machine-config/azure.vue +97 -38
- package/middleware/authenticated.js +34 -0
- package/mixins/chart.js +101 -2
- package/mixins/fetch.client.js +95 -0
- package/mixins/fetch.server.js +73 -0
- package/mixins/labeled-form-element.ts +2 -2
- package/mixins/resource-fetch.js +2 -2
- package/models/apps.statefulset.js +28 -0
- package/models/cluster/node.js +23 -2
- package/models/cluster.x-k8s.io.machine.js +4 -2
- package/models/clusterroletemplatebinding.js +7 -0
- package/models/constraints.gatekeeper.sh.constraint.js +46 -0
- package/models/fleet.cattle.io.cluster.js +19 -10
- package/models/fleet.cattle.io.gitrepo.js +7 -2
- package/models/management.cattle.io.cluster.js +1 -1
- package/models/management.cattle.io.fleetworkspace.js +12 -0
- package/models/management.cattle.io.gitreporestriction.js +5 -0
- package/models/management.cattle.io.podsecurityadmissionconfigurationtemplate.js +3 -0
- package/models/pod.js +4 -0
- package/models/provisioning.cattle.io.cluster.js +7 -5
- package/models/rbac.authorization.k8s.io.clusterrolebinding.js +16 -0
- package/models/rbac.authorization.k8s.io.rolebinding.js +16 -0
- package/package.json +13 -21
- package/pages/auth/setup.vue +2 -2
- package/pages/c/_cluster/apps/charts/__tests__/install.helper.test.ts +33 -0
- package/pages/c/_cluster/apps/charts/chart.vue +4 -4
- package/pages/c/_cluster/apps/charts/install.helpers.js +26 -0
- package/pages/c/_cluster/apps/charts/install.vue +98 -102
- package/pages/c/_cluster/explorer/EventsTable.vue +5 -19
- package/pages/c/_cluster/explorer/index.vue +29 -25
- package/pages/c/_cluster/explorer/tools/index.vue +8 -8
- package/pages/c/_cluster/fleet/index.vue +95 -34
- package/pages/c/_cluster/gatekeeper/index.vue +1 -1
- package/pages/c/_cluster/istio/index.vue +5 -5
- package/pages/c/_cluster/manager/cloudCredential/index.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +7 -0
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +8 -8
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +20 -7
- package/pages/c/_cluster/uiplugins/index.vue +49 -17
- package/pages/diagnostic.vue +32 -25
- package/pages/home.vue +9 -4
- package/pages/index.vue +10 -1
- package/pages/rio/mesh.vue +1 -2
- package/pkg/tsconfig.json +0 -1
- package/plugins/clean-html-directive.js +34 -0
- package/plugins/dashboard-store/actions.js +32 -9
- package/plugins/dashboard-store/index.js +1 -1
- package/plugins/dashboard-store/mutations.js +5 -2
- package/plugins/dashboard-store/resource-class.js +8 -1
- package/plugins/plugin.js +0 -14
- package/plugins/portal-vue.js +4 -0
- package/plugins/steve/mutations.js +3 -2
- package/plugins/steve/steve-description-class.js +5 -1
- package/plugins/steve/subscribe.js +63 -54
- package/plugins/steve-create-worker.js +14 -0
- package/promptRemove/management.cattle.io.globalrole.vue +2 -2
- package/promptRemove/management.cattle.io.project.vue +2 -2
- package/promptRemove/management.cattle.io.roletemplate.vue +2 -2
- package/promptRemove/pod.vue +1 -1
- package/public/index.html +65 -0
- package/rancher-components/components/Banner/Banner.test.ts +7 -1
- package/rancher-components/components/Banner/Banner.vue +2 -1
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +2 -0
- package/rancher-components/components/Form/Radio/RadioButton.test.ts +31 -0
- package/rancher-components/components/Form/Radio/RadioButton.vue +14 -3
- package/scripts/build-pkg.sh +1 -0
- package/scripts/clean +6 -0
- package/scripts/extension/bundle +58 -0
- package/scripts/extension/helmpatch +89 -0
- package/scripts/extension/publish +333 -0
- package/scripts/serve-pkgs +6 -2
- package/scripts/test-plugins-build.sh +4 -0
- package/store/__tests__/index.test.ts +110 -0
- package/store/index.js +145 -58
- package/store/type-map.js +6 -2
- package/tsconfig.default.json +36 -0
- package/tsconfig.json +23 -0
- package/types/rancher/index.d.ts +2 -0
- package/types/shell/index.d.ts +466 -320
- package/utils/__tests__/grafana.test.ts +44 -0
- package/utils/__tests__/string.test.ts +12 -0
- package/utils/auth.js +65 -0
- package/utils/axios.js +190 -0
- package/utils/cookie-universal-nuxt.js +10 -0
- package/utils/dom.js +15 -0
- package/utils/grafana.js +35 -16
- package/utils/monitoring.js +2 -1
- package/utils/nuxt.js +659 -0
- package/utils/position.js +5 -8
- package/utils/router.scrollBehavior.js +80 -0
- package/utils/select.js +1 -3
- package/utils/socket.js +1 -0
- package/utils/string.js +13 -0
- package/utils/time.js +9 -0
- package/vue.config.js +690 -0
- package/chart/rancher-alerting-drivers.vue +0 -53
- package/chart/rancher-gatekeeper.vue +0 -37
- package/creators/app/files/nuxt.config.js +0 -6
- package/models/management.cattle.io.podsecurityadmissionconfigurationtemplate.ts +0 -4
- package/nuxt.config.js +0 -798
- package/plugins/dashboard-store/extensions.js +0 -22
package/chart/istio.vue
CHANGED
|
@@ -5,8 +5,8 @@ import { Checkbox } from '@components/Form/Checkbox';
|
|
|
5
5
|
import YamlEditor from '@shell/components/YamlEditor';
|
|
6
6
|
import { mapGetters } from 'vuex';
|
|
7
7
|
import FileSelector from '@shell/components/form/FileSelector';
|
|
8
|
-
import Tab from '@shell/components/Tabbed/Tab';
|
|
9
8
|
import { Banner } from '@components/Banner';
|
|
9
|
+
import ChartPsp from '@shell/components/ChartPsp';
|
|
10
10
|
|
|
11
11
|
const defaultOverlayFile = `#apiVersion: install.istio.io/v1alpha1
|
|
12
12
|
#kind: IstioOperator
|
|
@@ -54,12 +54,10 @@ export default {
|
|
|
54
54
|
Checkbox,
|
|
55
55
|
FileSelector,
|
|
56
56
|
YamlEditor,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Banner,
|
|
58
|
+
ChartPsp
|
|
59
59
|
},
|
|
60
60
|
|
|
61
|
-
hasTabs: true,
|
|
62
|
-
|
|
63
61
|
props: {
|
|
64
62
|
value: {
|
|
65
63
|
type: Object,
|
|
@@ -76,10 +74,14 @@ export default {
|
|
|
76
74
|
overlayFile = defaultOverlayFile;
|
|
77
75
|
}
|
|
78
76
|
|
|
79
|
-
return {
|
|
77
|
+
return {
|
|
78
|
+
overlayFile,
|
|
79
|
+
showKialiBanner: this.value.kiali?.enabled
|
|
80
|
+
};
|
|
80
81
|
},
|
|
81
82
|
|
|
82
83
|
computed: {
|
|
84
|
+
...mapGetters(['currentCluster'], { t: 'i18n/t' }),
|
|
83
85
|
valuesYaml: {
|
|
84
86
|
get() {
|
|
85
87
|
try {
|
|
@@ -100,8 +102,6 @@ export default {
|
|
|
100
102
|
}
|
|
101
103
|
}, 500)
|
|
102
104
|
},
|
|
103
|
-
|
|
104
|
-
...mapGetters({ t: 'i18n/t' })
|
|
105
105
|
},
|
|
106
106
|
|
|
107
107
|
methods: {
|
|
@@ -124,6 +124,15 @@ export default {
|
|
|
124
124
|
|
|
125
125
|
onFileSelected(value) {
|
|
126
126
|
this.$refs['yaml-editor'].updateValue(value);
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
changeKiali(value) {
|
|
130
|
+
if (value && this.value.pilot) {
|
|
131
|
+
this.value.pilot.enabled = true;
|
|
132
|
+
this.showKialiBanner = true;
|
|
133
|
+
} else if (!value) {
|
|
134
|
+
this.showKialiBanner = false;
|
|
135
|
+
}
|
|
127
136
|
}
|
|
128
137
|
}
|
|
129
138
|
};
|
|
@@ -131,116 +140,130 @@ export default {
|
|
|
131
140
|
|
|
132
141
|
<template>
|
|
133
142
|
<div>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
<
|
|
150
|
-
v-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
v-model="value.ingressGateways.enabled"
|
|
155
|
-
:label="t('istio.ingressGateway')"
|
|
156
|
-
/>
|
|
157
|
-
</div>
|
|
158
|
-
<div
|
|
159
|
-
v-if="value.egressGateways"
|
|
160
|
-
class="col span-4"
|
|
161
|
-
>
|
|
162
|
-
<Checkbox
|
|
163
|
-
v-model="value.egressGateways.enabled"
|
|
164
|
-
:label="t('istio.egressGateway')"
|
|
165
|
-
/>
|
|
166
|
-
</div>
|
|
143
|
+
<!-- Conditionally display PSP checkbox -->
|
|
144
|
+
<ChartPsp
|
|
145
|
+
:value="value"
|
|
146
|
+
:title="t('catalog.chart.global')"
|
|
147
|
+
:cluster="currentCluster"
|
|
148
|
+
/>
|
|
149
|
+
|
|
150
|
+
<h3>
|
|
151
|
+
{{ t('istio.titles.components') }}
|
|
152
|
+
</h3>
|
|
153
|
+
<div class="row mb-10">
|
|
154
|
+
<div
|
|
155
|
+
v-if="value.cni"
|
|
156
|
+
class="col span-4"
|
|
157
|
+
>
|
|
158
|
+
<Checkbox
|
|
159
|
+
v-model="value.cni.enabled"
|
|
160
|
+
:label="t('istio.cni')"
|
|
161
|
+
@input="update"
|
|
162
|
+
/>
|
|
167
163
|
</div>
|
|
168
|
-
<div
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/>
|
|
177
|
-
</div>
|
|
178
|
-
<div
|
|
179
|
-
v-if="value.policy"
|
|
180
|
-
class="col span-4"
|
|
181
|
-
>
|
|
182
|
-
<Checkbox
|
|
183
|
-
v-model="value.policy.enabled"
|
|
184
|
-
:label="t('istio.policy')"
|
|
185
|
-
/>
|
|
186
|
-
</div>
|
|
187
|
-
<div
|
|
188
|
-
v-if="value.telemetry"
|
|
189
|
-
class="col span-4"
|
|
190
|
-
>
|
|
191
|
-
<Checkbox
|
|
192
|
-
v-model="value.telemetry.enabled"
|
|
193
|
-
:label="t('istio.telemetry')"
|
|
194
|
-
/>
|
|
195
|
-
</div>
|
|
164
|
+
<div
|
|
165
|
+
v-if="value.ingressGateways"
|
|
166
|
+
class="col span-4"
|
|
167
|
+
>
|
|
168
|
+
<Checkbox
|
|
169
|
+
v-model="value.ingressGateways.enabled"
|
|
170
|
+
:label="t('istio.ingressGateway')"
|
|
171
|
+
/>
|
|
196
172
|
</div>
|
|
197
|
-
<div
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
/>
|
|
206
|
-
</div>
|
|
207
|
-
<div
|
|
208
|
-
v-if="value.tracing"
|
|
209
|
-
class="col span-4"
|
|
210
|
-
>
|
|
211
|
-
<Checkbox
|
|
212
|
-
v-model="value.tracing.enabled"
|
|
213
|
-
:label="t('istio.tracing')"
|
|
214
|
-
/>
|
|
215
|
-
</div>
|
|
216
|
-
<div class="col span-4" />
|
|
173
|
+
<div
|
|
174
|
+
v-if="value.egressGateways"
|
|
175
|
+
class="col span-4"
|
|
176
|
+
>
|
|
177
|
+
<Checkbox
|
|
178
|
+
v-model="value.egressGateways.enabled"
|
|
179
|
+
:label="t('istio.egressGateway')"
|
|
180
|
+
/>
|
|
217
181
|
</div>
|
|
218
|
-
</
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
182
|
+
</div>
|
|
183
|
+
<div class="row mb-10">
|
|
184
|
+
<div
|
|
185
|
+
v-if="value.pilot"
|
|
186
|
+
class="col span-4"
|
|
187
|
+
>
|
|
188
|
+
<Checkbox
|
|
189
|
+
v-model="value.pilot.enabled"
|
|
190
|
+
:label="t('istio.pilot')"
|
|
191
|
+
:disabled="value.kiali && value.kiali.enabled"
|
|
192
|
+
/>
|
|
193
|
+
</div>
|
|
194
|
+
<div
|
|
195
|
+
v-if="value.policy"
|
|
196
|
+
class="col span-4"
|
|
197
|
+
>
|
|
198
|
+
<Checkbox
|
|
199
|
+
v-model="value.policy.enabled"
|
|
200
|
+
:label="t('istio.policy')"
|
|
201
|
+
/>
|
|
202
|
+
</div>
|
|
203
|
+
<div
|
|
204
|
+
v-if="value.telemetry"
|
|
205
|
+
class="col span-4"
|
|
206
|
+
>
|
|
207
|
+
<Checkbox
|
|
208
|
+
v-model="value.telemetry.enabled"
|
|
209
|
+
:label="t('istio.telemetry')"
|
|
236
210
|
/>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="row mb-20">
|
|
214
|
+
<div
|
|
215
|
+
v-if="value.kiali"
|
|
216
|
+
class="col span-4"
|
|
217
|
+
>
|
|
218
|
+
<Checkbox
|
|
219
|
+
v-model="value.kiali.enabled"
|
|
220
|
+
:label="t('istio.kiali')"
|
|
221
|
+
@input="changeKiali"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
<div
|
|
225
|
+
v-if="value.tracing"
|
|
226
|
+
class="col span-4"
|
|
227
|
+
>
|
|
228
|
+
<Checkbox
|
|
229
|
+
v-model="value.tracing.enabled"
|
|
230
|
+
:label="t('istio.tracing')"
|
|
241
231
|
/>
|
|
242
232
|
</div>
|
|
243
|
-
|
|
233
|
+
<div class="col span-4" />
|
|
234
|
+
<div
|
|
235
|
+
v-if="showKialiBanner"
|
|
236
|
+
class="row"
|
|
237
|
+
>
|
|
238
|
+
<div class="col span-12">
|
|
239
|
+
<Banner color="info">
|
|
240
|
+
<span
|
|
241
|
+
v-clean-html="t('istio.pilotRequired', {}, true)"
|
|
242
|
+
/>
|
|
243
|
+
</Banner>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<h3>{{ t('istio.customOverlayFile.label') }}</h3>
|
|
249
|
+
<div class="custom-overlay">
|
|
250
|
+
<Banner color="info">
|
|
251
|
+
<span
|
|
252
|
+
v-clean-html="t('istio.customOverlayFile.tip', {}, true)"
|
|
253
|
+
/>
|
|
254
|
+
</Banner>
|
|
255
|
+
<YamlEditor
|
|
256
|
+
ref="yaml-editor"
|
|
257
|
+
class="yaml-editor mb-10"
|
|
258
|
+
:value="overlayFile"
|
|
259
|
+
@onInput="valuesChanged"
|
|
260
|
+
/>
|
|
261
|
+
<FileSelector
|
|
262
|
+
class="role-primary btn-sm"
|
|
263
|
+
:label="t('generic.readFromFile')"
|
|
264
|
+
@selected="onFileSelected"
|
|
265
|
+
/>
|
|
266
|
+
</div>
|
|
244
267
|
</div>
|
|
245
268
|
</template>
|
|
246
269
|
|
package/chart/logging/index.vue
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
import { mapGetters } from 'vuex';
|
|
3
3
|
import { LabeledInput } from '@components/Form/LabeledInput';
|
|
4
4
|
import { Checkbox } from '@components/Form/Checkbox';
|
|
5
|
+
import ChartPsp from '@shell/components/ChartPsp';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
components: {
|
|
8
|
-
|
|
8
|
+
components: {
|
|
9
|
+
Checkbox, LabeledInput, ChartPsp
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
9
12
|
value: {
|
|
10
13
|
type: Object,
|
|
11
14
|
default: () => {
|
|
@@ -67,12 +70,12 @@ export default {
|
|
|
67
70
|
:tooltip="t('logging.install.tooltip', {}, true)"
|
|
68
71
|
/>
|
|
69
72
|
<p
|
|
73
|
+
v-clean-html="t('logging.install.url', {}, true)"
|
|
70
74
|
class="mt-6"
|
|
71
|
-
v-html="t('logging.install.url', {}, true)"
|
|
72
75
|
/>
|
|
73
76
|
</div>
|
|
74
77
|
</div>
|
|
75
|
-
<div class="row">
|
|
78
|
+
<div class="row mb-20">
|
|
76
79
|
<div class="col span-6">
|
|
77
80
|
<Checkbox
|
|
78
81
|
v-model="value.additionalLoggingSources[provider].enabled"
|
|
@@ -80,5 +83,11 @@ export default {
|
|
|
80
83
|
/>
|
|
81
84
|
</div>
|
|
82
85
|
</div>
|
|
86
|
+
|
|
87
|
+
<!-- Conditionally display PSP checkbox -->
|
|
88
|
+
<ChartPsp
|
|
89
|
+
:value="value"
|
|
90
|
+
:cluster="currentCluster"
|
|
91
|
+
/>
|
|
83
92
|
</div>
|
|
84
93
|
</template>
|
|
@@ -12,6 +12,7 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
|
|
12
12
|
import Loading from '@shell/components/Loading';
|
|
13
13
|
import Prometheus from '@shell/chart/monitoring/prometheus';
|
|
14
14
|
import Tab from '@shell/components/Tabbed/Tab';
|
|
15
|
+
import ChartPsp from '@shell/components/ChartPsp';
|
|
15
16
|
|
|
16
17
|
import { allHash } from '@shell/utils/promise';
|
|
17
18
|
import { STORAGE_CLASS, PVC, SECRET, WORKLOAD_TYPES } from '@shell/config/types';
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
Loading,
|
|
27
28
|
Prometheus,
|
|
28
29
|
Tab,
|
|
30
|
+
ChartPsp
|
|
29
31
|
},
|
|
30
32
|
|
|
31
33
|
hasTabs: true,
|
|
@@ -207,11 +209,13 @@ export default {
|
|
|
207
209
|
>
|
|
208
210
|
<div>
|
|
209
211
|
<div class="row mb-20">
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
<div class="col span-6">
|
|
213
|
+
<ClusterSelector
|
|
214
|
+
:value="value"
|
|
215
|
+
:mode="mode"
|
|
216
|
+
@onClusterTypeChanged="clusterType = $event"
|
|
217
|
+
/>
|
|
218
|
+
</div>
|
|
215
219
|
</div>
|
|
216
220
|
<div
|
|
217
221
|
v-if="clusterType.group === 'managed'"
|
|
@@ -257,6 +261,12 @@ export default {
|
|
|
257
261
|
/>
|
|
258
262
|
</div>
|
|
259
263
|
</div>
|
|
264
|
+
|
|
265
|
+
<!-- Conditionally display PSP checkbox -->
|
|
266
|
+
<ChartPsp
|
|
267
|
+
:value="value"
|
|
268
|
+
:cluster="currentCluster"
|
|
269
|
+
/>
|
|
260
270
|
</div>
|
|
261
271
|
</Tab>
|
|
262
272
|
<Tab
|
|
@@ -88,8 +88,8 @@ export default {
|
|
|
88
88
|
{{ t('monitoring.installSteps.uninstallV1.warning1') }}
|
|
89
89
|
</p>
|
|
90
90
|
<p
|
|
91
|
+
v-clean-html="t('monitoring.installSteps.uninstallV1.warning2', {}, true)"
|
|
91
92
|
class="mt-10"
|
|
92
|
-
v-html="t('monitoring.installSteps.uninstallV1.warning2', {}, true)"
|
|
93
93
|
/>
|
|
94
94
|
</template>
|
|
95
95
|
</IconMessage>
|
|
@@ -111,8 +111,8 @@ export default {
|
|
|
111
111
|
{{ t('monitoring.installSteps.uninstallV1.success1') }}
|
|
112
112
|
</p>
|
|
113
113
|
<p
|
|
114
|
+
v-clean-html="t('monitoring.installSteps.uninstallV1.success2')"
|
|
114
115
|
class="mt-10"
|
|
115
|
-
v-html="t('monitoring.installSteps.uninstallV1.success2')"
|
|
116
116
|
/>
|
|
117
117
|
</template>
|
|
118
118
|
</IconMessage>
|
|
@@ -10,6 +10,7 @@ import { allHash } from '@shell/utils/promise';
|
|
|
10
10
|
import { STORAGE_CLASS, SECRET, PV } from '@shell/config/types';
|
|
11
11
|
import { mapGetters } from 'vuex';
|
|
12
12
|
import { STORAGE } from '@shell/config/labels-annotations';
|
|
13
|
+
import ChartPsp from '@shell/components/ChartPsp';
|
|
13
14
|
|
|
14
15
|
export default {
|
|
15
16
|
components: {
|
|
@@ -18,7 +19,8 @@ export default {
|
|
|
18
19
|
S3,
|
|
19
20
|
LabeledInput,
|
|
20
21
|
LabeledSelect,
|
|
21
|
-
Banner
|
|
22
|
+
Banner,
|
|
23
|
+
ChartPsp
|
|
22
24
|
},
|
|
23
25
|
|
|
24
26
|
hasTabs: true,
|
|
@@ -84,8 +86,7 @@ export default {
|
|
|
84
86
|
return { options, labels };
|
|
85
87
|
},
|
|
86
88
|
|
|
87
|
-
...mapGetters({ t: 'i18n/t' })
|
|
88
|
-
|
|
89
|
+
...mapGetters(['currentCluster'], { t: 'i18n/t' }),
|
|
89
90
|
},
|
|
90
91
|
|
|
91
92
|
watch: {
|
|
@@ -165,6 +166,12 @@ export default {
|
|
|
165
166
|
label="Chart Options"
|
|
166
167
|
name="chartOptions"
|
|
167
168
|
>
|
|
169
|
+
<!-- Conditionally display PSP checkbox -->
|
|
170
|
+
<ChartPsp
|
|
171
|
+
:value="value"
|
|
172
|
+
:cluster="currentCluster"
|
|
173
|
+
/>
|
|
174
|
+
|
|
168
175
|
<Banner
|
|
169
176
|
color="info"
|
|
170
177
|
:label="t('backupRestoreOperator.deployment.storage.tip')"
|
package/cloud-credential/aws.vue
CHANGED
|
@@ -97,8 +97,8 @@ export default {
|
|
|
97
97
|
@input="value.setData('defaultRegion', $event);"
|
|
98
98
|
/>
|
|
99
99
|
<p
|
|
100
|
+
v-clean-html="t('cluster.credential.aws.defaultRegion.help', {}, true)"
|
|
100
101
|
class="text-muted mt-5"
|
|
101
|
-
v-html="t('cluster.credential.aws.defaultRegion.help', {}, true)"
|
|
102
102
|
/>
|
|
103
103
|
</div>
|
|
104
104
|
</template>
|
|
@@ -40,8 +40,8 @@ export default {
|
|
|
40
40
|
@input="value.setData('accessToken', $event);"
|
|
41
41
|
/>
|
|
42
42
|
<p
|
|
43
|
+
v-clean-html="t('cluster.credential.digitalocean.accessToken.help', {}, true)"
|
|
43
44
|
class="text-muted mt-10"
|
|
44
|
-
v-html="t('cluster.credential.digitalocean.accessToken.help', {}, true)"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
47
|
</template>
|
package/cloud-credential/gcp.vue
CHANGED
|
@@ -64,8 +64,8 @@ export default {
|
|
|
64
64
|
@selected="onFileSelected"
|
|
65
65
|
/>
|
|
66
66
|
<p
|
|
67
|
+
v-clean-html="t('cluster.credential.gcp.authEncodedJson.help', {}, true)"
|
|
67
68
|
class="text-muted"
|
|
68
|
-
v-html="t('cluster.credential.gcp.authEncodedJson.help', {}, true)"
|
|
69
69
|
/>
|
|
70
70
|
</div>
|
|
71
71
|
</template>
|
|
@@ -21,8 +21,8 @@ export default {
|
|
|
21
21
|
const normanType = this.$store.getters['plugins/credentialFieldForDriver'](this.driverName);
|
|
22
22
|
const normanSchema = this.$store.getters['rancher/schemaFor'](`${ normanType }credentialconfig`);
|
|
23
23
|
|
|
24
|
-
if ( normanSchema ) {
|
|
25
|
-
keyOptions = Object.keys(normanSchema.resourceFields
|
|
24
|
+
if ( normanSchema?.resourceFields ) {
|
|
25
|
+
keyOptions = Object.keys(normanSchema.resourceFields);
|
|
26
26
|
} else {
|
|
27
27
|
keyOptions = this.$store.getters['plugins/fieldNamesForDriver'](this.driverName);
|
|
28
28
|
}
|
|
@@ -40,8 +40,8 @@ export default {
|
|
|
40
40
|
@input="value.setData('token', $event);"
|
|
41
41
|
/>
|
|
42
42
|
<p
|
|
43
|
+
v-clean-html="t('cluster.credential.linode.accessToken.help', {}, true)"
|
|
43
44
|
class="text-muted mt-10"
|
|
44
|
-
v-html="t('cluster.credential.linode.accessToken.help', {}, true)"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
47
|
</template>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { mapGetters } from 'vuex';
|
|
3
|
-
import $ from 'jquery';
|
|
4
3
|
import { AUTO, CENTER, fitOnScreen } from '@shell/utils/position';
|
|
5
4
|
import { isAlternate } from '@shell/utils/platform';
|
|
6
5
|
import IconOrSvg from '@shell/components/IconOrSvg';
|
|
@@ -149,7 +148,7 @@ export default {
|
|
|
149
148
|
|
|
150
149
|
updateStyle() {
|
|
151
150
|
if ( this.phase === SHOW && !this.useCustomTargetElement) {
|
|
152
|
-
const menu =
|
|
151
|
+
const menu = this.$el?.querySelector && this.$el.querySelector('.menu');
|
|
153
152
|
const event = this.targetEvent;
|
|
154
153
|
const elem = this.targetElem;
|
|
155
154
|
|
|
@@ -169,7 +168,7 @@ export default {
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
if ( this.open && this.useCustomTargetElement) {
|
|
172
|
-
const menu =
|
|
171
|
+
const menu = this.$el?.querySelector && this.$el.querySelector('.menu');
|
|
173
172
|
const elem = this.customTargetElement;
|
|
174
173
|
|
|
175
174
|
// If the action menu state is controlled with
|
|
@@ -271,7 +270,7 @@ export default {
|
|
|
271
270
|
class="icon"
|
|
272
271
|
color="header"
|
|
273
272
|
/>
|
|
274
|
-
<span v-html="opt.label" />
|
|
273
|
+
<span v-clean-html="opt.label" />
|
|
275
274
|
</li>
|
|
276
275
|
|
|
277
276
|
<li
|
package/components/AssignTo.vue
CHANGED
|
@@ -14,11 +14,8 @@ export default {
|
|
|
14
14
|
default: false
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
async fetch() {
|
|
18
|
-
this.managementSettings = await this.$store.getters['management/all'](MANAGEMENT.SETTING);
|
|
19
|
-
},
|
|
20
17
|
data() {
|
|
21
|
-
return { managementSettings: [] };
|
|
18
|
+
return { managementSettings: this.$store.getters['management/all'](MANAGEMENT.SETTING) };
|
|
22
19
|
},
|
|
23
20
|
computed: {
|
|
24
21
|
...mapGetters({ theme: 'prefs/theme' }),
|
|
@@ -3,7 +3,6 @@ import { createPopper } from '@popperjs/core';
|
|
|
3
3
|
import { get } from '@shell/utils/object';
|
|
4
4
|
import isString from 'lodash/isString';
|
|
5
5
|
import VueSelectOverrides from '@shell/mixins/vue-select-overrides';
|
|
6
|
-
import $ from 'jquery';
|
|
7
6
|
|
|
8
7
|
export default {
|
|
9
8
|
mixins: [VueSelectOverrides],
|
|
@@ -70,8 +69,8 @@ export default {
|
|
|
70
69
|
* We need to explicitly define the dropdown width since
|
|
71
70
|
* it is usually inherited from the parent with CSS.
|
|
72
71
|
*/
|
|
73
|
-
const componentWidth =
|
|
74
|
-
const dropWidth =
|
|
72
|
+
const componentWidth = component.$refs.search.clientWidth;
|
|
73
|
+
const dropWidth = dropdownList.clientWidth;
|
|
75
74
|
|
|
76
75
|
if (dropWidth < componentWidth) {
|
|
77
76
|
dropdownList.style.width = `${ componentWidth }px`;
|