If you're a developer working with Go and need to fetch values from a YAML or TOML file, you might be wondering how to use the "helm get values" command effectively. This guide will walk you through the process, ensuring you get the most out of your Helm values files.

Before we dive into the specifics, let's ensure we're on the same page. Helm is a package manager for Kubernetes that makes it easy to find, share, and use software built for Kubernetes. Helm packages are called charts, and they often come with default values files in the form of YAML or TOML.

Understanding Helm Values Files
Helm values files are used to customize the behavior of a Helm chart. They often contain default values that can be overridden by the user. Understanding how to use these files efficiently is crucial for streamlining your workflow with Helm.

There are two main types of values files: those that are included with the chart (default values) and those that you provide (user values). In this guide, we'll focus on fetching and examining values from user-provided files.
Basic Syntax for helm get values

The basic syntax for the "helm get values" command is as follows:
helm get values [CHART] [flags]
The command fetches and displays the values from the specified chart's user-provided values file, if available. If no user-provided values file exists, it will display the default values from the chart.

Using helm get values -f
The "-f" or "--values" flag allows you to specify a custom values file to fetch values from. Here's the syntax:
helm get values [CHART] -f [VALUES_FILE]

For example, if you have a custom values file named "my-values.yaml", you can fetch its values using the following command:
helm get values my-chart -f my-values.yaml









Advanced Usage of helm get values
In some cases, you might need to fetch values from multiple files or from the Kubernetes cluster itself. Helm provides commands to handle these scenarios as well.
Fetching values from multiple files
To fetch values from multiple files, you can use the "-f" flag multiple times.
helm get values my-chart -f values1.yaml -f values2.toml
In this example, Helm will merge the values from both "values1.yaml" and "values2.toml" and display them.
Fetching values from a running release
If you have a release of a chart installed in your Kubernetes cluster, you can fetch its current values using the "helm get values" command with the "--from:- ```