Skip to content

Commit

Permalink
Merge pull request #1595 from vincent99/master
Browse files Browse the repository at this point in the history
Fleet bugs
  • Loading branch information
vincent99 committed Oct 2, 2020
2 parents 4de777f + 94a09a9 commit 691dcab
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
10 changes: 8 additions & 2 deletions components/nav/WorkspaceSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ export default {
.filter ::v-deep .v-select .vs__actions:after {
fill: white !important;
color: white !important;
}
}
.filter ::v-deep .vs__search {
width: 0;
padding: 0;
margin: 0;
opacity: 0;
}
</style>

<template>
Expand All @@ -80,7 +87,6 @@ export default {
v-model="value"
label="label"
:options="options"
:searchable="false"
:clearable="false"
:reduce="opt=>opt.value"
/>
Expand Down
2 changes: 1 addition & 1 deletion config/labels-annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const CATALOG = {

const CATTLE_REGEX = /cattle\.io\//;

export const FLEET = { CLUSTER_NAME: 'management.cattle.io/cluster-display-name' };
export const FLEET = { CLUSTER_NAME: 'management.cattle.io/cluster-name' };

export const RKE = { EXTERNAL_IP: 'rke.cattle.io/external-ip' };

Expand Down
10 changes: 5 additions & 5 deletions edit/fleet.cattle.io.gitrepo.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import { exceptionToErrorsArray } from '@/utils/error';
import { mapGetters } from 'vuex';
import { FLEET, MANAGEMENT, SECRET } from '@/config/types';
import { FLEET, SECRET } from '@/config/types';
import { FLEET as FLEET_LABELS } from '@/config/labels-annotations';
import { set } from '@/utils/object';
import ArrayList from '@/components/form/ArrayList';
Expand Down Expand Up @@ -283,11 +283,11 @@ export default {
} else if ( kind === 'none' ) {
spec.targets = [];
} else if ( kind === 'cluster' ) {
const mgmt = this.$store.getters['management/byId'](MANAGEMENT.CLUSTER, value);
// const mgmt = this.$store.getters['management/byId'](MANAGEMENT.CLUSTER, value);
if ( mgmt ) {
mgmt.setClusterNameLabel(true);
}
// if ( mgmt ) {
// mgmt.setClusterNameLabel(true);
// }
spec.targets = [
{ clusterSelector: { matchLabels: { [FLEET_LABELS.CLUSTER_NAME]: value } } }
Expand Down
2 changes: 1 addition & 1 deletion edit/service.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
<div class="spacer"></div>
<Tabbed>
<Tabbed :side-tabs="true">
<Tab
v-if="checkTypeIs('ExternalName')"
name="define-external-name"
Expand Down

0 comments on commit 691dcab

Please sign in to comment.