Giter Site home page Giter Site logo

pullcharts's Introduction

pullcharts

This script automates the process of downloading and decompressing Helm charts based on specifications from a values.yaml file. It ensures that the specified versions of Helm charts are pulled from their repositories, downloaded to a compressed directory, and then extracted into a charts directory within the current working directory.

Use case

kuberise is an application that deploys several helm charts to kubernetes cluster. pullcharts pulls all those helm chart source code into a folder and makes it easier to check the source codes or search for a specific word among all of them.

Prerequisites

Before running this script, ensure you have the following installed:

  • Helm 3: The script uses helm pull to download chart archives.
  • yq (version 4 or above): Used for parsing the values.yaml file.
  • Bash environment: The script is a Bash script, requiring a Unix-like environment to run.

Getting Started

  1. Clone the repository or download the script to your local machine where you intend to manage Helm charts.

  2. Ensure helm and yq are installed and accessible from your command line. You can verify their installation by running helm version and yq --version.

  3. Prepare your values.yaml file according to your Helm chart requirements. The file should follow the structure outlined below:

    helmCharts:
      keycloak:
        repoURL: https://charts.bitnami.com/bitnami
        chart: keycloak
        targetRevision: 18.4.0
      airflow:
        repoURL: https://airflow.apache.org
        chart: airflow
        targetRevision: 1.12.0

    Ensure the file is located at ../kuberise/app-of-apps/values.yaml relative to the script or adjust the valuesFile variable in the script to match your file's location.

Usage

To run the script, navigate to the directory containing the script and execute it from the terminal:

./pullcharts.sh

Notes

  • The script checks if a chart is already downloaded and up-to-date before proceeding with the download and extraction. This behavior minimizes unnecessary network usage and disk operations.
  • If you encounter permissions issues, ensure the script is executable by running chmod +x pullcharts.sh.
  • The script assumes connectivity to the Helm chart repositories specified in your values.yaml file.

Contributing

Feel free to fork the repository and submit pull requests to improve the script or extend its capabilities.

pullcharts's People

Contributors

mojtabaimani avatar

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.