helm-viewer 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -0
- package/package.json +2 -2
- package/binary/index.html +0 -148
- package/binary/index.js +0 -8293
- package/helm-viewer-0.2.0.rc1.tgz +0 -0
- package/helm-viewer-0.2.0.tgz +0 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -26,6 +26,9 @@ helm-viewer
|
|
|
26
26
|
|
|
27
27
|
# To target a specific path
|
|
28
28
|
helm-viewer path/of/the/chart
|
|
29
|
+
|
|
30
|
+
# To compute the chart with an external values file
|
|
31
|
+
helm-viewer path/of/the/chart path/of/the/values/file
|
|
29
32
|
```
|
|
30
33
|
|
|
31
34
|
It will analyze the helm chart and generate a HTML report, automatically opened in your favorite browser.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helm-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Quick tool to easily view your helm charts.",
|
|
5
5
|
"author": "Tchoupinax <corentinfiloche@hotmail.fr> (https://corentinfiloche.xyz)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"pack": "npm pack --dry-run",
|
|
26
26
|
"publish": "npm publish",
|
|
27
27
|
"=== RUN ==============================================": "",
|
|
28
|
-
"run": "NODE_ENV=development npx vite-node src/index.ts -- ~/Downloads/traefik
|
|
28
|
+
"run": "NODE_ENV=development npx vite-node src/index.ts -- ~/Downloads/traefik",
|
|
29
29
|
"=== BUILD ============================================": "",
|
|
30
30
|
"build": "tsc",
|
|
31
31
|
"=== CLEAN ============================================": "",
|
package/binary/index.html
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>Document</title>
|
|
8
|
-
|
|
9
|
-
<script src="https://cdn.tailwindcss.com"></script>
|
|
10
|
-
<script>
|
|
11
|
-
tailwind.config = {
|
|
12
|
-
theme: {
|
|
13
|
-
extend: {
|
|
14
|
-
colors: {
|
|
15
|
-
clifford: '#da373d',
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
|
22
|
-
</head>
|
|
23
|
-
<body>
|
|
24
|
-
<div id="app" class="flex h-screen">
|
|
25
|
-
<div class="w-1/5 bg-blue-50 h-full">
|
|
26
|
-
<div class="p-2">
|
|
27
|
-
<h1 class="italic text-4xl font-thin ml-4 mb-8">>> Computed files</h1>
|
|
28
|
-
|
|
29
|
-
<div
|
|
30
|
-
v-if="data.templated"
|
|
31
|
-
v-for="template of Object.keys(data.templated)"
|
|
32
|
-
class="mb-8"
|
|
33
|
-
>
|
|
34
|
-
<p class="text-3xl font-thin">
|
|
35
|
-
{{ template }}
|
|
36
|
-
</p>
|
|
37
|
-
|
|
38
|
-
<div
|
|
39
|
-
class="ml-6 mt-2"
|
|
40
|
-
v-for="file of Object.keys(data.templated[template])"
|
|
41
|
-
@click="displayTemplatedFile(template, file)"
|
|
42
|
-
>
|
|
43
|
-
{{ file }}
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div
|
|
49
|
-
v-if="data.sources"
|
|
50
|
-
class="bg-green-100"
|
|
51
|
-
>
|
|
52
|
-
<h1 class="italic text-4xl font-thin ml-4 mb-8">>> Sources</h1>
|
|
53
|
-
<div class="mb-1" v-for="file of Object.keys(data.sources).filter(n => n !== 'templates')">
|
|
54
|
-
<p
|
|
55
|
-
class="text-xl ml-8 font-thin"
|
|
56
|
-
@click="displaySourceFile(file)"
|
|
57
|
-
>
|
|
58
|
-
{{ file }}
|
|
59
|
-
</p>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<p v-if="data.sources['templates']" class="text-xl ml-8 font-thin">templates</p>
|
|
63
|
-
|
|
64
|
-
<div
|
|
65
|
-
v-if="data.sources['templates']"
|
|
66
|
-
v-for="file of Object.keys(data.sources['templates'])"
|
|
67
|
-
class="mb-1 ml-6"
|
|
68
|
-
>
|
|
69
|
-
<p
|
|
70
|
-
class="text-xl ml-8 font-thin"
|
|
71
|
-
@click="displaySourceFile(file, true)"
|
|
72
|
-
>
|
|
73
|
-
{{ file }}
|
|
74
|
-
</p>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
<div id="container" class="w-4/5">
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
<script src="assets/global-data.js"></script>
|
|
84
|
-
<script>
|
|
85
|
-
const { createApp, ref } = Vue
|
|
86
|
-
createApp({
|
|
87
|
-
data() {
|
|
88
|
-
return {
|
|
89
|
-
templateFile: undefined,
|
|
90
|
-
fileName: undefined,
|
|
91
|
-
source: undefined,
|
|
92
|
-
isSourceTemplate: false,
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
setup() {
|
|
96
|
-
const message = ref('Hello vue!')
|
|
97
|
-
return {
|
|
98
|
-
message,
|
|
99
|
-
data: DATA,
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
methods: {
|
|
103
|
-
displayTemplatedFile(templateFile, fileName) {
|
|
104
|
-
document.getElementById('container').innerHTML = ""
|
|
105
|
-
require(["vs/editor/editor.main"], () => {
|
|
106
|
-
monaco.editor.create(document.getElementById('container'), {
|
|
107
|
-
value: this.data["templated"][templateFile][fileName],
|
|
108
|
-
language: 'yaml',
|
|
109
|
-
theme: 'vs-dark',
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
},
|
|
113
|
-
displaySourceFile(fileName, isTemplate = false) {
|
|
114
|
-
this.source = "source"
|
|
115
|
-
this.fileName = fileName
|
|
116
|
-
this.isSourceTemplate = isTemplate
|
|
117
|
-
|
|
118
|
-
if (isTemplate) {
|
|
119
|
-
document.getElementById('container').innerHTML = ""
|
|
120
|
-
require(["vs/editor/editor.main"], () => {
|
|
121
|
-
monaco.editor.create(document.getElementById('container'), {
|
|
122
|
-
value: this.data["sources"]["templates"][fileName],
|
|
123
|
-
language: 'yaml',
|
|
124
|
-
theme: 'vs-dark',
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
} else {
|
|
128
|
-
document.getElementById('container').innerHTML = ""
|
|
129
|
-
require(["vs/editor/editor.main"], () => {
|
|
130
|
-
monaco.editor.create(document.getElementById('container'), {
|
|
131
|
-
value: this.data["sources"][fileName],
|
|
132
|
-
language: 'yaml',
|
|
133
|
-
theme: 'vs-dark',
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}).mount('#app')
|
|
140
|
-
</script>
|
|
141
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs/loader.min.js"></script>
|
|
142
|
-
<script>
|
|
143
|
-
// require is provided by loader.min.js.
|
|
144
|
-
require.config({ paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs' }});
|
|
145
|
-
|
|
146
|
-
</script>
|
|
147
|
-
</body>
|
|
148
|
-
</html>
|