mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
@@ -2,8 +2,8 @@ import SteveModel from '@shell/plugins/steve/steve-class';
|
||||
import { escapeHtml } from '@shell/utils/string';
|
||||
import { colorForState } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { NODE } from '@shell/config/types';
|
||||
import { HCI } from '../types';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import { HCI } from '../types';
|
||||
|
||||
/**
|
||||
* Class representing SR-IOV Device resource.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import SteveModel from '@shell/plugins/steve/steve-class';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import { VIEW_IN_API, DEV } from '@shell/store/prefs';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
|
||||
export default class HarvesterResource extends SteveModel {
|
||||
get listLocation() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { HCI } from '../../types';
|
||||
import NetworkAttachmentDef from '@pkg/harvester/models/k8s.cni.cncf.io.networkattachmentdefinition';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
|
||||
const NOT_READY = 'Not Ready';
|
||||
@@ -56,7 +56,7 @@ export default class HarvesterNetworkAttachmentDef extends NetworkAttachmentDef
|
||||
get clusterNetworkResource() {
|
||||
const clusterNetworks = this.$rootGetters[`${ this.inStore }/all`](HCI.CLUSTER_NETWORK);
|
||||
|
||||
return clusterNetworks.find((c) => c.id === this.clusterNetwork);
|
||||
return clusterNetworks.find(c => c.id === this.clusterNetwork);
|
||||
}
|
||||
|
||||
get clusterNetworkErrorMessage() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { LOGGING } from '@shell/config/types';
|
||||
import { HCI } from '../../types';
|
||||
import HarvesterFlow from './logging.banzaicloud.io.flow';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import HarvesterFlow from './logging.banzaicloud.io.flow';
|
||||
|
||||
export default class HciClusterflow extends HarvesterFlow {
|
||||
get allOutputs() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { HCI } from '../../types';
|
||||
import LogOutput from './logging.banzaicloud.io.output';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import LogOutput from './logging.banzaicloud.io.output';
|
||||
|
||||
export default class HciClusteroutput extends LogOutput {
|
||||
get _detailLocation() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { LOGGING } from '@shell/config/types';
|
||||
import { HCI } from '../../types';
|
||||
import { clone } from '@shell/utils/object';
|
||||
import Flow from '@shell/models/logging.banzaicloud.io.flow';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import { FLOW_TYPE } from '../../config/harvester-map';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { HCI } from '../../types';
|
||||
import LogOutput from '@shell/models/logging.banzaicloud.io.output';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import { FLOW_TYPE } from '../../config/harvester-map';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { HCI } from '../../types';
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import ManagementSetting from '@shell/models/management.cattle.io.setting';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
|
||||
export default class HCIManagementSetting extends ManagementSetting {
|
||||
get detailLocation() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { clone, set } from '@shell/utils/object';
|
||||
import { _YAML, _CREATE, _VIEW, _CONFIG } from '@shell/config/query-params';
|
||||
import { HCI } from '../../types';
|
||||
import SteveModel from '@shell/plugins/steve/steve-class';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
|
||||
export default class HciAlertmanagerConfig extends SteveModel {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import pickBy from 'lodash/pickBy';
|
||||
import { CAPI, LONGHORN, POD, NODE } from '@shell/config/types';
|
||||
import { HCI } from '../../types';
|
||||
import { CAPI as CAPI_ANNOTATIONS } from '@shell/config/labels-annotations.js';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import { clone } from '@shell/utils/object';
|
||||
@@ -11,11 +10,12 @@ import {
|
||||
STATES_ENUM,
|
||||
} from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { parseSi } from '@shell/utils/units';
|
||||
import { findBy, isArray } from '@shell/utils/array';
|
||||
import { ucFirst } from '@shell/utils/string';
|
||||
import HarvesterResource from '../harvester';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import { findBy, isArray } from '@shell/utils/array';
|
||||
|
||||
import { ucFirst } from '@shell/utils/string';
|
||||
import { HCI } from '../../types';
|
||||
|
||||
const ALLOW_SYSTEM_LABEL_KEYS = [
|
||||
'topology.kubernetes.io/zone',
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import Vue from 'vue';
|
||||
import { _CLONE } from '@shell/config/query-params';
|
||||
import pick from 'lodash/pick';
|
||||
import { HCI, VOLUME_SNAPSHOT } from '../../types';
|
||||
import { PV, LONGHORN } from '@shell/config/types';
|
||||
import { DESCRIPTION } from '@shell/config/labels-annotations';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import { findBy } from '@shell/utils/array';
|
||||
import { get, clone } from '@shell/utils/object';
|
||||
import { colorForState } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { HCI, VOLUME_SNAPSHOT } from '../../types';
|
||||
import HarvesterResource from '../harvester';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import Secret from '@shell/models/secret';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import Secret from '@shell/models/secret';
|
||||
|
||||
export default class HciSecret extends Secret {
|
||||
get _detailLocation() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { PVC } from '@shell/config/types';
|
||||
import { HCI } from '../../types';
|
||||
import HarvesterResource from '../harvester';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import { PVC } from '@shell/config/types';
|
||||
|
||||
export default class HciSnapshot extends HarvesterResource {
|
||||
get availableActions() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { clone } from '@shell/utils/object';
|
||||
import { HCI } from '../../types';
|
||||
import StorageClass from '@shell/models/storage.k8s.io.storageclass';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
|
||||
export default class HciStorageClass extends StorageClass {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import HarvesterResource from './harvester';
|
||||
import { HCI as HCI_ANNOTATIONS } from '../config/labels-annotations';
|
||||
import jsyaml from 'js-yaml';
|
||||
import startCase from 'lodash/startCase';
|
||||
import { HCI as HCI_ANNOTATIONS } from '../config/labels-annotations';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciAddonConfig extends HarvesterResource {
|
||||
get availableActions() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { findBy } from '@shell/utils/array';
|
||||
import { HCI } from '../types';
|
||||
import { HCI_ALLOWED_SETTINGS, HCI_SETTING } from '../config/settings';
|
||||
import HarvesterResource from './harvester';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciSetting extends HarvesterResource {
|
||||
get _availableActions() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { get } from '@shell/utils/object';
|
||||
import { HCI } from '../types';
|
||||
import Parse from 'url-parse';
|
||||
import { findBy } from '@shell/utils/array';
|
||||
import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciUpgradeLog extends HarvesterResource {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Vue from 'vue';
|
||||
import { HCI } from '../types';
|
||||
import {
|
||||
DESCRIPTION,
|
||||
ANNOTATIONS_TO_IGNORE_REGEX,
|
||||
@@ -10,8 +9,9 @@ import { formatSi } from '@shell/utils/units';
|
||||
import { ucFirst } from '@shell/utils/string';
|
||||
import { stateDisplay, colorForState } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { _CLONE } from '@shell/config/query-params';
|
||||
import HarvesterResource from './harvester';
|
||||
import { HCI } from '../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
function isReady() {
|
||||
function getStatusConditionOfType(type, defaultValue = []) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { HCI } from '../types';
|
||||
import { MODE, _CREATE } from '@shell/config/query-params';
|
||||
import HarvesterResource from './harvester';
|
||||
import { HCI } from '../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciVmTemplate extends HarvesterResource {
|
||||
get availableActions() {
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import Vue from 'vue';
|
||||
import { find, pickBy, omitBy } from 'lodash';
|
||||
import { HCI } from '../types';
|
||||
import {
|
||||
AS, MODE, _VIEW, _CONFIG, _UNFLAG, _EDIT
|
||||
} from '@shell/config/query-params';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import HarvesterResource from './harvester';
|
||||
import { findBy } from '@shell/utils/array';
|
||||
import { get, set } from '@shell/utils/object';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import { colorForState } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { LABELS_TO_IGNORE_REGEX } from '@shell/config/labels-annotations';
|
||||
import { matchesSomeRegex } from '@shell/utils/string';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciVmTemplateVersion extends HarvesterResource {
|
||||
get availableActions() {
|
||||
|
||||
@@ -4,17 +4,17 @@ import { omitBy, pickBy } from 'lodash';
|
||||
|
||||
import { colorForState } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { POD, NODE, PVC } from '@shell/config/types';
|
||||
import { HCI } from '../types';
|
||||
import { findBy } from '@shell/utils/array';
|
||||
import { parseSi } from '@shell/utils/units';
|
||||
import { get, set } from '@shell/utils/object';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import { _CLONE } from '@shell/config/query-params';
|
||||
import HarvesterResource from './harvester';
|
||||
import { matchesSomeRegex } from '@shell/utils/string';
|
||||
import { LABELS_TO_IGNORE_REGEX } from '@shell/config/labels-annotations';
|
||||
import { BACKUP_TYPE } from '../config/types';
|
||||
import { parseVolumeClaimTemplates } from '@pkg/utils/vm';
|
||||
import { BACKUP_TYPE } from '../config/types';
|
||||
import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export const OFF = 'Off';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { colorForState } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { NODE } from '@shell/config/types';
|
||||
import { HCI } from '../types';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
const PAUSED = 'Paused';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import HarvesterResource from './harvester';
|
||||
import { set } from '@shell/utils/object';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciInventory extends HarvesterResource {
|
||||
applyDefaults() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { HCI } from '../types';
|
||||
import { clone } from '@shell/utils/object';
|
||||
import HarvesterResource from './harvester';
|
||||
import { NODE } from '@shell/config/types';
|
||||
import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
export default class HciClusterNetwork extends HarvesterResource {
|
||||
get doneOverride() {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { isEmpty } from 'lodash';
|
||||
|
||||
import { set, clone } from '@shell/utils/object';
|
||||
import HarvesterResource from './harvester';
|
||||
import { HCI } from '../types';
|
||||
import { insertAt } from '@shell/utils/array';
|
||||
import { HOSTNAME } from '@shell/config/labels-annotations';
|
||||
import { matching } from '@shell/utils/selector';
|
||||
import { NODE } from '@shell/config/types';
|
||||
import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
const NOT_READY = 'Not Ready';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user