Remove ksonnet from ksonnet-example.jsonnet

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
This commit is contained in:
Kemal Akkoyun
2020-11-06 14:08:44 +01:00
parent 6d641706de
commit 9d051b2c63
2 changed files with 10 additions and 10 deletions

View File

@@ -517,13 +517,13 @@ Standard Kubernetes manifests are all written using [ksonnet-lib](https://github
[embedmd]:# (examples/ksonnet-example.jsonnet) [embedmd]:# (examples/ksonnet-example.jsonnet)
```jsonnet ```jsonnet
local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
local daemonset = k.apps.v1beta2.daemonSet;
((import 'kube-prometheus/kube-prometheus.libsonnet') + { ((import 'kube-prometheus/kube-prometheus.libsonnet') + {
nodeExporter+: { nodeExporter+: {
daemonset+: daemonset+: {
daemonset.mixin.metadata.withNamespace('my-custom-namespace'), metadata+: {
namespace: 'my-custom-namespace',
},
},
}, },
}).nodeExporter.daemonset }).nodeExporter.daemonset
``` ```

View File

@@ -1,9 +1,9 @@
local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
local daemonset = k.apps.v1beta2.daemonSet;
((import 'kube-prometheus/kube-prometheus.libsonnet') + { ((import 'kube-prometheus/kube-prometheus.libsonnet') + {
nodeExporter+: { nodeExporter+: {
daemonset+: daemonset+: {
daemonset.mixin.metadata.withNamespace('my-custom-namespace'), metadata+: {
namespace: 'my-custom-namespace',
},
},
}, },
}).nodeExporter.daemonset }).nodeExporter.daemonset