diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4196f06d4b..c3e50eb5531 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -320,3 +320,4 @@ jobs: flags: simulator-marvin-tests verbose: true name: codecov + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index f7b28fdeecc..4a748c2350a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -53,6 +53,7 @@ jobs: with: files: ./client/target/site/jacoco-aggregate/jacoco.xml fail_ci_if_error: true - flags: unit-tests + flags: unittests verbose: true name: codecov + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 4d89977adf9..b3230eeaca3 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -63,3 +63,4 @@ jobs: flags: uitests verbose: true name: codecov + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/ui/src/views/compute/KubernetesServiceTab.vue b/ui/src/views/compute/KubernetesServiceTab.vue index b3556cb65ce..9632846ef37 100644 --- a/ui/src/views/compute/KubernetesServiceTab.vue +++ b/ui/src/views/compute/KubernetesServiceTab.vue @@ -205,7 +205,7 @@ export default { virtualmachines: [], vmColumns: [], networkLoading: false, - network: {}, + network: null, publicIpAddress: null, currentTab: 'details', cksSshStartingPort: 2222, @@ -386,7 +386,27 @@ export default { this.virtualmachines.map(x => { x.ipaddress = x.nic[0].ipaddress }) this.instanceLoading = false }, - fetchPublicIpAddress () { + fetchNetwork () { + this.networkLoading = true + return new Promise((resolve, reject) => { + api('listNetworks', { + listAll: true, + id: this.resource.networkid + }).then(json => { + const networks = json.listnetworksresponse.network + if (this.arrayHasItems(networks)) { + this.network = networks[0] + } + }) + this.networkLoading = false + }) + }, + async fetchPublicIpAddress () { + await this.fetchNetwork() + if (this.network && this.network.type === 'Shared') { + this.publicIpAddress = null + return + } this.networkLoading = true var params = { listAll: true,