@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import { compile } from '../../utils/nuxt'
|
|
3
|
+
|
|
4
|
+
import NuxtError from '../../layouts/error.vue'
|
|
5
|
+
|
|
6
|
+
import NuxtChild from './nuxt-child'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: 'Nuxt',
|
|
10
|
+
components: {
|
|
11
|
+
NuxtChild,
|
|
12
|
+
NuxtError
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
nuxtChildKey: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: undefined
|
|
18
|
+
},
|
|
19
|
+
keepAlive: Boolean,
|
|
20
|
+
keepAliveProps: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: undefined
|
|
23
|
+
},
|
|
24
|
+
name: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'default'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
errorCaptured (error) {
|
|
30
|
+
// if we receive and error while showing the NuxtError component
|
|
31
|
+
// capture the error and force an immediate update so we re-render
|
|
32
|
+
// without the NuxtError component
|
|
33
|
+
if (this.displayingNuxtError) {
|
|
34
|
+
this.errorFromNuxtError = error
|
|
35
|
+
this.$forceUpdate()
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
routerViewKey () {
|
|
40
|
+
// If nuxtChildKey prop is given or current route has children
|
|
41
|
+
if (typeof this.nuxtChildKey !== 'undefined' || this.$route.matched.length > 1) {
|
|
42
|
+
return this.nuxtChildKey || compile(this.$route.matched[0].path)(this.$route.params)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const [matchedRoute] = this.$route.matched
|
|
46
|
+
|
|
47
|
+
if (!matchedRoute) {
|
|
48
|
+
return this.$route.path
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const Component = matchedRoute.components.default
|
|
52
|
+
|
|
53
|
+
if (Component && Component.options) {
|
|
54
|
+
const { options } = Component
|
|
55
|
+
|
|
56
|
+
if (options.key) {
|
|
57
|
+
return (typeof options.key === 'function' ? options.key(this.$route) : options.key)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const strict = /\/$/.test(matchedRoute.path)
|
|
62
|
+
return strict ? this.$route.path : this.$route.path.replace(/\/$/, '')
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
beforeCreate () {
|
|
66
|
+
Vue.util.defineReactive(this, 'nuxt', this.$root.$options.nuxt)
|
|
67
|
+
},
|
|
68
|
+
render (h) {
|
|
69
|
+
// if there is no error
|
|
70
|
+
if (!this.nuxt.err) {
|
|
71
|
+
// Directly return nuxt child
|
|
72
|
+
return h('NuxtChild', {
|
|
73
|
+
key: this.routerViewKey,
|
|
74
|
+
props: this.$props
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// if an error occurred within NuxtError show a simple
|
|
79
|
+
// error message instead to prevent looping
|
|
80
|
+
if (this.errorFromNuxtError) {
|
|
81
|
+
this.$nextTick(() => (this.errorFromNuxtError = false))
|
|
82
|
+
|
|
83
|
+
return h('div', {}, [
|
|
84
|
+
h('h2', 'An error occurred while showing the error page'),
|
|
85
|
+
h('p', 'Unfortunately an error occurred and while showing the error page another error occurred'),
|
|
86
|
+
h('p', `Error details: ${this.errorFromNuxtError.toString()}`),
|
|
87
|
+
h('nuxt-link', { props: { to: '/' } }, 'Go back to home')
|
|
88
|
+
])
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// track if we are showing the NuxtError component
|
|
92
|
+
this.displayingNuxtError = true
|
|
93
|
+
this.$nextTick(() => (this.displayingNuxtError = false))
|
|
94
|
+
|
|
95
|
+
return h(NuxtError, {
|
|
96
|
+
props: {
|
|
97
|
+
error: this.nuxt.err
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -13,6 +13,7 @@ export const UI_MANAGED = 'management.cattle.io/ui-managed';
|
|
|
13
13
|
export const CREATOR_ID = 'field.cattle.io/creatorId';
|
|
14
14
|
export const RESOURCE_QUOTA = 'field.cattle.io/resourceQuota';
|
|
15
15
|
export const AZURE_MIGRATED = 'auth.cattle.io/azuread-endpoint-migrated';
|
|
16
|
+
export const WORKSPACE_ANNOTATION = 'objectset.rio.cattle.io/id';
|
|
16
17
|
|
|
17
18
|
export const KUBERNETES = {
|
|
18
19
|
SERVICE_ACCOUNT_UID: 'kubernetes.io/service-account.uid',
|
|
@@ -146,3 +147,19 @@ export const CLUSTER_BADGE = {
|
|
|
146
147
|
// Custom icon text - max 2 characters
|
|
147
148
|
ICON_TEXT: 'ui.rancher/badge-icon-text',
|
|
148
149
|
};
|
|
150
|
+
|
|
151
|
+
export const SYSTEM_LABELS = [
|
|
152
|
+
'io.cattle.lifecycle.',
|
|
153
|
+
'beta.kubernetes.io',
|
|
154
|
+
'failure-domain.beta.kubernetes.io',
|
|
155
|
+
'node-role.kubernetes.io',
|
|
156
|
+
'kubernetes.io',
|
|
157
|
+
'cattle.io',
|
|
158
|
+
'authz.management.cattle.io',
|
|
159
|
+
'rke.cattle.io',
|
|
160
|
+
'field.cattle.io',
|
|
161
|
+
'workload.user.cattle.io',
|
|
162
|
+
'k3s.io',
|
|
163
|
+
'node.kubernetes.io',
|
|
164
|
+
'egress.rke2.io'
|
|
165
|
+
];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const middleware = {};
|
|
2
|
+
|
|
3
|
+
middleware['authenticated'] = require('../middleware/authenticated.js');
|
|
4
|
+
middleware['authenticated'] = middleware['authenticated'].default || middleware['authenticated'];
|
|
5
|
+
|
|
6
|
+
middleware['i18n'] = require('../middleware/i18n.js');
|
|
7
|
+
middleware['i18n'] = middleware['i18n'].default || middleware['i18n'];
|
|
8
|
+
|
|
9
|
+
middleware['unauthenticated'] = require('../middleware/unauthenticated.js');
|
|
10
|
+
middleware['unauthenticated'] = middleware['unauthenticated'].default || middleware['unauthenticated'];
|
|
11
|
+
|
|
12
|
+
export default middleware;
|
package/config/product/auth.js
CHANGED
|
@@ -27,7 +27,7 @@ export function init(store) {
|
|
|
27
27
|
|
|
28
28
|
product({
|
|
29
29
|
ifHaveType: new RegExp(`${ MANAGEMENT.USER }|${ MANAGEMENT.AUTH_CONFIG }`, 'i'),
|
|
30
|
-
ifHaveVerb: '
|
|
30
|
+
ifHaveVerb: 'GET',
|
|
31
31
|
ifFeature: MULTI_CLUSTER,
|
|
32
32
|
inStore: 'management',
|
|
33
33
|
icon: 'user',
|
|
@@ -43,7 +43,8 @@ export function init(store) {
|
|
|
43
43
|
name: 'config',
|
|
44
44
|
weight: -1,
|
|
45
45
|
route: { name: 'c-cluster-auth-config' },
|
|
46
|
-
ifHaveType: MANAGEMENT.AUTH_CONFIG
|
|
46
|
+
ifHaveType: MANAGEMENT.AUTH_CONFIG,
|
|
47
|
+
ifHaveVerb: 'PUT'
|
|
47
48
|
});
|
|
48
49
|
|
|
49
50
|
virtualType({
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
STORAGE_CLASS_PROVISIONER, PERSISTENT_VOLUME_SOURCE,
|
|
19
19
|
HPA_REFERENCE, MIN_REPLICA, MAX_REPLICA, CURRENT_REPLICA,
|
|
20
20
|
ACCESS_KEY, DESCRIPTION, EXPIRES, EXPIRY_STATE, SUB_TYPE, AGE_NORMAN, SCOPE_NORMAN, PERSISTENT_VOLUME_CLAIM, RECLAIM_POLICY, PV_REASON, WORKLOAD_HEALTH_SCALE, POD_RESTARTS,
|
|
21
|
-
DURATION, LAST_SEEN_TIME,
|
|
21
|
+
DURATION, MESSAGE, REASON, LAST_SEEN_TIME, EVENT_TYPE, OBJECT, RBAC_GROUPS, RBAC_USERS, RBAC_SERVICE_ACCOUNTS, ROLE,
|
|
22
22
|
} from '@shell/config/table-headers';
|
|
23
23
|
|
|
24
24
|
import { DSL } from '@shell/store/type-map';
|
|
@@ -157,9 +157,9 @@ export function init(store) {
|
|
|
157
157
|
listGroups: [
|
|
158
158
|
{
|
|
159
159
|
icon: 'icon-cluster',
|
|
160
|
-
value: '
|
|
160
|
+
value: 'role',
|
|
161
161
|
field: 'groupByNode',
|
|
162
|
-
hideColumn:
|
|
162
|
+
hideColumn: 'groupByNode',
|
|
163
163
|
tooltipKey: 'resourceTable.groupBy.node'
|
|
164
164
|
}
|
|
165
165
|
]
|
|
@@ -175,6 +175,11 @@ export function init(store) {
|
|
|
175
175
|
},
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
+
/** This CRD is installed on provisioned clusters because rancher webhook, used for both local and provisioned clusters, expects it to be there
|
|
179
|
+
* Creating instances of this resource on downstream clusters wont do anything - Only show them for the local cluster
|
|
180
|
+
*/
|
|
181
|
+
configureType(MANAGEMENT.PSA, { localOnly: true });
|
|
182
|
+
|
|
178
183
|
headers(PV, [STATE, NAME_COL, RECLAIM_POLICY, PERSISTENT_VOLUME_CLAIM, PERSISTENT_VOLUME_SOURCE, PV_REASON, AGE]);
|
|
179
184
|
headers(CONFIG_MAP, [NAME_COL, NAMESPACE_COL, KEYS, AGE]);
|
|
180
185
|
headers(SECRET, [
|
|
@@ -192,7 +197,7 @@ export function init(store) {
|
|
|
192
197
|
]);
|
|
193
198
|
headers(INGRESS, [STATE, NAME_COL, NAMESPACE_COL, INGRESS_TARGET, INGRESS_DEFAULT_BACKEND, INGRESS_CLASS, AGE]);
|
|
194
199
|
headers(SERVICE, [STATE, NAME_COL, NAMESPACE_COL, TARGET_PORT, SELECTOR, SPEC_TYPE, AGE]);
|
|
195
|
-
headers(EVENT, [STATE, { ...LAST_SEEN_TIME, defaultSort: true },
|
|
200
|
+
headers(EVENT, [STATE, { ...LAST_SEEN_TIME, defaultSort: true }, EVENT_TYPE, REASON, OBJECT, 'Subobject', 'Source', MESSAGE, 'First Seen', 'Count', NAME_COL, NAMESPACE_COL]);
|
|
196
201
|
headers(HPA, [STATE, NAME_COL, HPA_REFERENCE, MIN_REPLICA, MAX_REPLICA, CURRENT_REPLICA, AGE]);
|
|
197
202
|
headers(WORKLOAD, [STATE, NAME_COL, NAMESPACE_COL, TYPE, WORKLOAD_IMAGES, WORKLOAD_ENDPOINTS, POD_RESTARTS, AGE, WORKLOAD_HEALTH_SCALE]);
|
|
198
203
|
headers(WORKLOAD_TYPES.DEPLOYMENT, [STATE, NAME_COL, NAMESPACE_COL, WORKLOAD_IMAGES, WORKLOAD_ENDPOINTS, 'Ready', 'Up-to-date', 'Available', POD_RESTARTS, AGE, WORKLOAD_HEALTH_SCALE]);
|
|
@@ -203,6 +208,10 @@ export function init(store) {
|
|
|
203
208
|
headers(WORKLOAD_TYPES.CRON_JOB, [STATE, NAME_COL, NAMESPACE_COL, WORKLOAD_IMAGES, WORKLOAD_ENDPOINTS, 'Schedule', 'Last Schedule', POD_RESTARTS, AGE, WORKLOAD_HEALTH_SCALE]);
|
|
204
209
|
headers(WORKLOAD_TYPES.REPLICATION_CONTROLLER, [STATE, NAME_COL, NAMESPACE_COL, WORKLOAD_IMAGES, WORKLOAD_ENDPOINTS, 'Ready', 'Current', 'Desired', POD_RESTARTS, AGE, WORKLOAD_HEALTH_SCALE]);
|
|
205
210
|
headers(POD, [STATE, NAME_COL, NAMESPACE_COL, POD_IMAGES, 'Ready', 'Restarts', 'IP', NODE_COL, AGE]);
|
|
211
|
+
headers(MANAGEMENT.PSA, [STATE, NAME_COL, {
|
|
212
|
+
...DESCRIPTION,
|
|
213
|
+
width: undefined
|
|
214
|
+
}, AGE]);
|
|
206
215
|
headers(STORAGE_CLASS, [STATE, NAME_COL, STORAGE_CLASS_PROVISIONER, STORAGE_CLASS_DEFAULT, AGE]);
|
|
207
216
|
|
|
208
217
|
headers(RBAC.ROLE, [
|
|
@@ -215,9 +224,30 @@ export function init(store) {
|
|
|
215
224
|
headers(RBAC.CLUSTER_ROLE, [
|
|
216
225
|
STATE,
|
|
217
226
|
NAME_COL,
|
|
227
|
+
AGE,
|
|
228
|
+
]);
|
|
229
|
+
|
|
230
|
+
headers(RBAC.CLUSTER_ROLE_BINDING, [
|
|
231
|
+
STATE,
|
|
232
|
+
NAME_COL,
|
|
233
|
+
RBAC_GROUPS,
|
|
234
|
+
RBAC_USERS,
|
|
235
|
+
RBAC_SERVICE_ACCOUNTS, // groupname //roles // users// service accounts
|
|
218
236
|
AGE
|
|
219
237
|
]);
|
|
220
238
|
|
|
239
|
+
configureType(MANAGEMENT.CLUSTER_ROLE_TEMPLATE_BINDING, {
|
|
240
|
+
listGroups: [
|
|
241
|
+
{
|
|
242
|
+
icon: 'icon-role-binding',
|
|
243
|
+
value: 'node',
|
|
244
|
+
field: 'roleDisplay',
|
|
245
|
+
hideColumn: ROLE.name,
|
|
246
|
+
tooltipKey: 'resourceTable.groupBy.role'
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
});
|
|
250
|
+
|
|
221
251
|
headers(MANAGEMENT.USER, [
|
|
222
252
|
STATE,
|
|
223
253
|
USER_ID,
|
|
@@ -311,8 +341,6 @@ export function init(store) {
|
|
|
311
341
|
|
|
312
342
|
// Ignore these types as they are managed through the auth product
|
|
313
343
|
ignoreType(MANAGEMENT.USER);
|
|
314
|
-
|
|
315
|
-
// Ignore these types as they are managed through the auth product
|
|
316
344
|
ignoreType(MANAGEMENT.GLOBAL_ROLE);
|
|
317
345
|
ignoreType(MANAGEMENT.ROLE_TEMPLATE);
|
|
318
346
|
}
|
package/config/product/fleet.js
CHANGED
package/config/query-params.js
CHANGED