Comments (2)
As nicely suggested by @Moep90 in the Kapitan Slack channel I good alternative is to use output_file
:
So config:
kapitan:
compile:
- output_path: my_dir
input_type: helm
input_paths:
- .charts/<CHART_NAME>
output_file: my-file.yaml
Will create a single multi doc YAML compiled/<TARGET_NAME>/my_dir/my-file.yaml
with all of the expanded manifests from the helm chart.
from kapitan.
I will close this issue because the suggestion I made in the first comment works for simple Helm Charts. But more complex helm charts that use subcharts have a much more complex folder structure.
example:
# helmv3 template --repo https://prometheus-community.github.io/helm-charts kube-prometheus-stack --output-dir /tmp
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/charts/kube-state-metrics/templates/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/charts/prometheus-node-exporter/templates/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/templates/alertmanager/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/secret.yaml
wrote /tmp/kube-prometheus-stack/templates/alertmanager/secret.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/configmap-dashboard-provider.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/configmap.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/configmaps-datasources.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/alertmanager-overview.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/apiserver.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/cluster-total.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/controller-manager.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/etcd.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/grafana-overview.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-coredns.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-cluster.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-namespace.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-node.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-pod.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-workload.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-workloads-namespace.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/kubelet.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/namespace-by-pod.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/namespace-by-workload.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/node-cluster-rsrc-use.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/node-rsrc-use.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/nodes-darwin.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/nodes.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/persistentvolumesusage.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/pod-total.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/prometheus.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/proxy.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/scheduler.yaml
wrote /tmp/kube-prometheus-stack/templates/grafana/dashboards-1.14/workload-total.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/clusterrole.yaml
wrote /tmp/kube-prometheus-stack/charts/kube-state-metrics/templates/role.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/clusterrole.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/clusterrole.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/clusterrolebinding.yaml
wrote /tmp/kube-prometheus-stack/charts/kube-state-metrics/templates/clusterrolebinding.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/clusterrolebinding.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/clusterrolebinding.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/role.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/rolebinding.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/service.yaml
wrote /tmp/kube-prometheus-stack/charts/kube-state-metrics/templates/service.yaml
wrote /tmp/kube-prometheus-stack/charts/prometheus-node-exporter/templates/service.yaml
wrote /tmp/kube-prometheus-stack/templates/alertmanager/service.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/core-dns/service.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-controller-manager/service.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-etcd/service.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-proxy/service.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-scheduler/service.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/service.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/service.yaml
wrote /tmp/kube-prometheus-stack/charts/prometheus-node-exporter/templates/daemonset.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/deployment.yaml
wrote /tmp/kube-prometheus-stack/charts/kube-state-metrics/templates/deployment.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml
wrote /tmp/kube-prometheus-stack/templates/alertmanager/alertmanager.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/mutatingWebhookConfiguration.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/prometheus.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/alertmanager.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/config-reloaders.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/etcd.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/general.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/k8s.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-apiserver-availability.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-apiserver-burnrate.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-apiserver-histogram.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-apiserver-slos.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-prometheus-general.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-prometheus-node-recording.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-scheduler.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kube-state-metrics.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubelet.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-apps.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-resources.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-storage.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-system-apiserver.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-system-controller-manager.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-system-kube-proxy.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-system-kubelet.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-system-scheduler.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/kubernetes-system.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/node-exporter.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/node-exporter.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/node-network.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/node.rules.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/prometheus-operator.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/rules-1.14/prometheus.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/charts/kube-state-metrics/templates/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/charts/prometheus-node-exporter/templates/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/alertmanager/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/core-dns/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-api-server/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-controller-manager/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-etcd/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-proxy/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kube-scheduler/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/exporters/kubelet/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus/servicemonitor.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/validatingWebhookConfiguration.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/tests/test-serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/serviceaccount.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/tests/test-configmap.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/clusterrole.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/clusterrolebinding.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/role.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/rolebinding.yaml
wrote /tmp/kube-prometheus-stack/charts/grafana/templates/tests/test.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/job-createSecret.yaml
wrote /tmp/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/job-patchWebhook.yaml
from kapitan.
Related Issues (20)
- deps: jsonnet version are unaligned and outdated
- Compilation fails with compose-node-name option HOT 1
- Not able to specify custom helm values file location to HelmChart kadet component HOT 5
- Performance measurements report
- Ability to import arbitrary python package HOT 1
- Add generator-(function) for existing secrets HOT 1
- Non funcational local documention server HOT 4
- [bug]: ImportError: failed to find libmagic. Check your installation HOT 2
- [feat]: add default value for env ref backend
- [feat]: add option to disable sorting of keys
- [feat]: load classes generically according to a given pattern
- [docs]: kapitan compile help , click to expand output is mangled HOT 1
- Simplify input type Helm HOT 1
- Simplify kapitan/inputs/base.py HOT 2
- Issue when compiling kube-prometheus-stack HOT 3
- Provide an alternative backend for the inventory
- Refactoring documentation HOT 7
- bug: poetry cannot install gojsonnet HOT 2
- kapitan lint incorrectly reports no usage for classes with variables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kapitan.