Dependencies Parser is a Go program designed to parse YAML files containing dependency information for Kubernetes projects. It can read from a local file or fetch the YAML file directly from GitHub based on the specified Kubernetes version.
- Parse dependency information from a local YAML file or fetch from GitHub.
- Supports specifying the Kubernetes version to fetch the appropriate YAML file.
- Print the name and version of each component specified in the YAML file.
-
Make sure you have Go installed on your system. You can download it from here.
-
Clone the repository:
git clone https://github.com/humblec/k8s-utils/dependencies-parser.git
Dependencies Parser is a Go program designed to parse YAML files containing dependency information for Kubernetes projects. It can read from a local file or fetch the YAML file directly from GitHub based on the specified Kubernetes version.
- Parse dependency information from a local YAML file or fetch from GitHub.
- Supports specifying the Kubernetes version to fetch the appropriate YAML file.
- Print the name and version of each component specified in the YAML file.
-
Make sure you have Go installed on your system. You can download it from here.
-
Clone the repository:
git clone https://github.com/humblec/k8s-utils/dependencies-parser.git
- Navigate to the project directory:
cd dependencies-parser
- Build the program:
go build
Run the program using the following command:
./dependencies-parser [options]
Replace [options]
with the desired command-line options.
- `-input`: Specifies the path to the local YAML file containing dependency information. If not provided, the program fetches the YAML file from GitHub based on the Kubernetes version.
- `-k8s-ver`: Specifies the Kubernetes version. If provided, the program fetches the YAML file from GitHub based on this version.
- Parse dependency information from a local YAML file:
./dependencies-parser -input dependencies.yaml
- Fetch dependency information from GitHub for Kubernetes version 1.28:
./dependencies-parser -k8s-ver 1.28
- Fetch dependency information from GitHub for Kubernetes version v1.29:
./dependencies-parser -k8s-ver v1.29