mirror of https://github.com/rancher/dashboard.git
Node role labels, typos
This commit is contained in:
parent
05329a9f1b
commit
abfa67416f
|
|
@ -510,9 +510,9 @@ asyncButton:
|
||||||
waiting: Restoring…
|
waiting: Restoring…
|
||||||
success: Restored
|
success: Restored
|
||||||
snapshot:
|
snapshot:
|
||||||
action: Snapshow Now
|
action: Snapshot Now
|
||||||
waiting: Snapshotting…
|
waiting: Snapshotting…
|
||||||
success: Shapshot Creating
|
success: Snapshot Creating
|
||||||
update:
|
update:
|
||||||
action: Update
|
action: Update
|
||||||
success: Updated
|
success: Updated
|
||||||
|
|
@ -961,7 +961,7 @@ cluster:
|
||||||
googlegke: Google GKE
|
googlegke: Google GKE
|
||||||
gke: Google GKE
|
gke: Google GKE
|
||||||
huaweicce: Huawei CCE
|
huaweicce: Huawei CCE
|
||||||
import: Import
|
import: Generic
|
||||||
imported: Imported
|
imported: Imported
|
||||||
k3s: K3s
|
k3s: K3s
|
||||||
kubeAdmin: KubeADM
|
kubeAdmin: KubeADM
|
||||||
|
|
@ -979,7 +979,7 @@ cluster:
|
||||||
rackspace: RackSpace
|
rackspace: RackSpace
|
||||||
rancherkubernetesengine: RKE
|
rancherkubernetesengine: RKE
|
||||||
rke2: RKE2
|
rke2: RKE2
|
||||||
rke: RKE
|
rke: RKE1
|
||||||
rkeWindows: Windows
|
rkeWindows: Windows
|
||||||
softlayer: SoftLayer
|
softlayer: SoftLayer
|
||||||
tencenttke: Tencent TKE
|
tencenttke: Tencent TKE
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,10 @@ export const STORAGE = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const NODE_ROLES = {
|
export const NODE_ROLES = {
|
||||||
CONTROL_PLANE: 'node-role.kubernetes.io/controlplane',
|
CONTROL_PLANE_OLD: 'node-role.kubernetes.io/controlplane',
|
||||||
WORKER: 'node-role.kubernetes.io/worker',
|
CONTROL_PLANE: 'node-role.kubernetes.io/control-plane',
|
||||||
ETCD: 'node-role.kubernetes.io/etcd',
|
WORKER: 'node-role.kubernetes.io/worker',
|
||||||
|
ETCD: 'node-role.kubernetes.io/etcd',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CAPI = {
|
export const CAPI = {
|
||||||
|
|
|
||||||
|
|
@ -835,20 +835,6 @@ export default {
|
||||||
:mode="mode"
|
:mode="mode"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="serverArgs['etcd-s3'] && serverConfig['etcd-s3'] !== false">
|
|
||||||
<pre><code>
|
|
||||||
--etcd-s3 (db) Enable backup to S3
|
|
||||||
--etcd-s3-endpoint value (db) S3 endpoint url (default: "s3.amazonaws.com")
|
|
||||||
--etcd-s3-endpoint-ca value (db) S3 custom CA cert to connect to S3 endpoint
|
|
||||||
--etcd-s3-skip-ssl-verify (db) Disables S3 SSL certificate validation
|
|
||||||
--etcd-s3-access-key value (db) S3 access key [$AWS_ACCESS_KEY_ID]
|
|
||||||
--etcd-s3-secret-key value (db) S3 secret key [$AWS_SECRET_ACCESS_KEY]
|
|
||||||
--etcd-s3-bucket value (db) S3 bucket name
|
|
||||||
--etcd-s3-region value (db) S3 region / bucket location (optional) (default: "us-east-1")
|
|
||||||
--etcd-s3-folder value (db) S3 folder
|
|
||||||
</code></pre>
|
|
||||||
</template>
|
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab v-if="haveArgInfo" name="networking" label-key="cluster.tabs.networking" :weight="8">
|
<Tab v-if="haveArgInfo" name="networking" label-key="cluster.tabs.networking" :weight="8">
|
||||||
|
|
|
||||||
|
|
@ -90,15 +90,18 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
isWorker() {
|
isWorker() {
|
||||||
const { WORKER: worker } = NODE_ROLES;
|
return `${ this.labels[NODE_ROLES.WORKER] }` === 'true';
|
||||||
|
|
||||||
return `${ this.labels[worker] }` === 'true';
|
|
||||||
},
|
},
|
||||||
|
|
||||||
isControlPlane() {
|
isControlPlane() {
|
||||||
const { CONTROL_PLANE: controlPlane } = NODE_ROLES;
|
if (
|
||||||
|
`${ this.labels[NODE_ROLES.CONTROL_PLANE] }` === 'true' ||
|
||||||
|
`${ this.labels[NODE_ROLES.CONTROL_PLANE_OLD] }` === 'true'
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return `${ this.labels[controlPlane] }` === 'true';
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
isEtcd() {
|
isEtcd() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue