Skip to content

Commit a00a7d9

Browse files
committed
support clusterIP and hide managed fields
1 parent b101254 commit a00a7d9

File tree

9 files changed

+42
-31
lines changed

9 files changed

+42
-31
lines changed

charts/example-values.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
#
2-
# If true install in single namespace mode
3-
#
1+
# ==============================================================
2+
# Example YAML values for typical kubeview deployment scenarios
3+
# ==============================================================
4+
5+
# If true the app will function in single namespace mode
46
limitNamespace: false
57

8+
# Networking - expose using an ingress
9+
# Note. If both ingress and loadbalancer are disabled, an internal ClusterIP service will be created
610
ingress:
711
enabled: false
12+
# className: nginx
813
# hosts:
914
# - host: kubeview.example.net
10-
# paths:
11-
# - /
1215
# tls:
1316
# - secretName: my-cert
1417
# hosts:
1518
# - kubeview.example.net
1619

20+
# Networking - expose using simple load balancer
1721
loadBalancer:
1822
enabled: true
19-
20-
IP: '1.2.3.4'
23+
# If you have an existing IP you can set it here
24+
# IP: "1.2.3.4"

charts/kubeview/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: kubeview
22
apiVersion: v2
3-
version: 0.1.30
4-
appVersion: '0.1.30'
3+
version: 0.1.31
4+
appVersion: "0.1.31"
55

66
description: Kubernetes cluster visualiser and visual explorer
77
maintainers:

charts/kubeview/values.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,31 @@ replicaCount: 1
1010

1111
image:
1212
repository: ghcr.io/benc-uk/kubeview
13-
tag: 0.1.30
13+
tag: 0.1.31
1414
pullPolicy: Always
1515

1616
imagePullSecrets: []
17-
nameOverride: ''
18-
fullnameOverride: ''
17+
nameOverride: ""
18+
fullnameOverride: ""
1919

20+
# If you want to expose the kubeview service using an ingress
2021
ingress:
2122
enabled: false
2223
annotations: {}
2324
hosts:
2425
- host: chart-example.local
25-
paths: ['/']
2626
tls: []
27-
className:
27+
className: ""
2828

29+
# If you want to expose the kubeview service directly
2930
loadBalancer:
30-
IP: ''
31-
31+
IP: ""
3232
enabled: true
3333

34+
# Note.
35+
# If both ingress and loadbalancer are disabled, a ClusterIP service will be created
36+
37+
# Mostly never need to change these
3438
resources:
3539
limits:
3640
cpu: 100m

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Variables
33
SERVER_DIR := ./cmd
44
FRONTEND_DIR := ./web/client
5-
VERSION := 0.1.30
5+
VERSION := 0.1.31
66
BUILD_INFO := Manual build from makefile
77
# Things you don't want to change
88
REPO_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))

web/client/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "kubeview",
3-
"version": "0.1.30",
3+
"version": "0.1.31",
44
"author": {
55
"name": "Ben Coleman"
66
},
77
"private": true,
88
"scripts": {
9+
"start": "npm run serve",
910
"serve": "vue-cli-service serve",
1011
"build": "vue-cli-service build",
1112
"lint-fix": "vue-cli-service lint && prettier --write src",

web/client/src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<b-navbar-nav>
3737
<b-dropdown split :text="autoRefreshText" split-variant="light" variant="info">
3838
<b-dropdown-item @click="autoRefresh = 0"> Off </b-dropdown-item>
39-
<!-- <b-dropdown-item @click="autoRefresh=2">2 secs</b-dropdown-item> -->
4039
<b-dropdown-item @click="autoRefresh = 5"> 5 secs </b-dropdown-item>
4140
<b-dropdown-item @click="autoRefresh = 10"> 10 secs </b-dropdown-item>
4241
<b-dropdown-item @click="autoRefresh = 15"> 15 secs </b-dropdown-item>

web/client/src/components/InfoBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</ul>
110110
</div>
111111

112-
<b-button variant="info" @click="$emit('full-info', nodeData)"> Full Object Details </b-button>
112+
<b-button variant="info" @click="$emit('show-full-info', nodeData)"> Full Object Details </b-button>
113113
</b-card>
114114
</div>
115115
</template>

web/client/src/components/Viewer.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<loading v-if="loading" />
66

77
<transition name="slide-fade">
8-
<infobox v-if="infoBoxData" :node-data="infoBoxData" @hide-info-box="infoBoxData = null" @full-info="showFullInfo" />
8+
<infobox v-if="infoBoxData" :node-data="infoBoxData" @hide-info-box="infoBoxData = null" @show-full-info="showFullInfo" />
99
</transition>
1010

1111
<b-modal ref="fullInfoModal" centered :title="fullInfoTitle" ok-only scrollable size="lg" body-class="fullInfoBody">
@@ -145,7 +145,10 @@ export default {
145145
// Display the detail info dialog with YAML version of the selected object
146146
//
147147
showFullInfo() {
148-
this.fullInfoYaml = yaml.safeDump(this.infoBoxData.sourceObj)
148+
let objectCopy = { ...this.infoBoxData.sourceObj }
149+
// Hide managedFields as it is not useful and noisy
150+
objectCopy.metadata.managedFields = {}
151+
this.fullInfoYaml = yaml.safeDump(objectCopy)
149152
this.fullInfoTitle = `${this.infoBoxData.type}: ${this.infoBoxData.sourceObj.metadata.name}`
150153
this.$refs.fullInfoModal.show()
151154
},

0 commit comments

Comments
 (0)