Giter Club home page Giter Club logo

Comments (2)

gburiola avatar gburiola commented on June 16, 2024

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.

gburiola avatar gburiola commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.