### Update Chart Examples (Operator) Source: https://github.com/arttor/helmify/blob/main/README.md This command updates chart examples using operator kustomize output. Ensure you have the latest kustomize output in test_data. ```shell cat test_data/k8s-operator-kustomize.output | go run ./cmd/helmify examples/operator ``` -------------------------------- ### Update Chart Examples (Sample App) Source: https://github.com/arttor/helmify/blob/main/README.md This command updates chart examples using sample application YAML. Ensure you have the latest sample app YAML in test_data. ```shell cat test_data/sample-app.yaml | go run ./cmd/helmify examples/app ``` -------------------------------- ### Helmify Cert-Manager Subchart Flag Source: https://github.com/arttor/helmify/blob/main/README.md Install cert-manager as a subchart by using the -cert-manager-as-subchart flag. ```bash helmify -cert-manager-as-subchart ``` -------------------------------- ### Helmify Optional CRDs Flag Source: https://github.com/arttor/helmify/blob/main/README.md Enable optional CRD installation through values using the -optional-crds flag. ```bash helmify -optional-crds ``` -------------------------------- ### Helmify Add Webhook Option Flag Source: https://github.com/arttor/helmify/blob/main/README.md Adds an option to enable or disable webhook installation using the -add-webhook-option flag. ```bash helmify -add-webhook-option ``` -------------------------------- ### Helmify Cert-Manager CRD Installation Flag Source: https://github.com/arttor/helmify/blob/main/README.md Control whether cert-manager CRDs are installed as part of the cert-manager subchart using the -cert-manager-install-crd flag. The default is 'true'. ```bash helmify -cert-manager-install-crd ``` -------------------------------- ### Create Helm Chart from Kustomize Output Source: https://github.com/arttor/helmify/blob/main/README.md Pipe the output of 'kustomize build' into Helmify to generate a Helm chart from Kustomize resources. The chart will be created in the 'mychart' directory. ```shell kustomize build | helmify mychart ``` -------------------------------- ### Helmify Help Flag Source: https://github.com/arttor/helmify/blob/main/README.md Use the -h or --help flag to display help information for Helmify. ```bash helmify -h ``` -------------------------------- ### Generate Helm Chart from Kustomize Output Source: https://github.com/arttor/helmify/blob/main/README.md Use this command to generate a Helm chart from a kustomize output file. The output will be saved in the specified directory. ```shell cat test_data/k8s-operator-kustomize.output | go run ./cmd/helmify mychart ``` -------------------------------- ### Run All Tests Source: https://github.com/arttor/helmify/blob/main/README.md Execute all unit and end-to-end tests for the project. ```shell go test ./... ``` -------------------------------- ### Create Helm Chart from Directory Source: https://github.com/arttor/helmify/blob/main/README.md Use the -f flag with a directory path to generate a Helm chart from all YAML files within that directory. The chart will be created in the 'mychart' directory. ```shell helmify -f /my_directory mychart ``` -------------------------------- ### Helmify Input Source Flag Source: https://github.com/arttor/helmify/blob/main/README.md Specify a file or directory as the source for Kubernetes manifests using the -f flag. Multiple sources are supported. ```bash helmify -f ./test_data ``` -------------------------------- ### Add Helmify to Makefile (Operator-SDK >= v1.23.0) Source: https://github.com/arttor/helmify/blob/main/README.md Integrate Helmify into your Makefile for newer versions of Operator-SDK. This defines HELMIFY using a local binary path and provides a target to download helmify if it's not present. The 'helm' target uses kustomize output piped to Helmify. ```makefile HELMIFY ?= $(LOCALBIN)/helmify .PHONY: helmify helmify: $(HELMIFY) ## Download helmify locally if necessary. $(HELMIFY): $(LOCALBIN) test -s $(LOCALBIN)/helmify || GOBIN=$(LOCALBIN) go install github.com/arttor/helmify/cmd/helmify@latest helm: manifests kustomize helmify $(KUSTOMIZE) build config/default | $(HELMIFY) ``` -------------------------------- ### Create Helm Chart Recursively from Directory Source: https://github.com/arttor/helmify/blob/main/README.md Employ the -r flag along with the -f flag to recursively scan a directory for YAML files and generate a Helm chart. The chart will be created in the 'mychart' directory. ```shell helmify -f /my_directory -r mychart ``` -------------------------------- ### Add Helmify to Makefile (Operator-SDK < v1.23.0) Source: https://github.com/arttor/helmify/blob/main/README.md Integrate Helmify into your Makefile for older versions of Operator-SDK. This involves defining the HELMIFY path and adding a 'helmify' target that depends on 'go-get-tool'. The 'helm' target then uses kustomize output piped to Helmify. ```makefile HELMIFY = $(shell pwd)/bin/helmify helmify: $(call go-get-tool,$(HELMIFY),github.com/arttor/helmify/cmd/helmify@v0.3.7) helm: manifests kustomize helmify $(KUSTOMIZE) build config/default | $(HELMIFY) ``` -------------------------------- ### Create Helm Chart from Multiple Sources Source: https://github.com/arttor/helmify/blob/main/README.md Combine multiple file and directory paths using the -f flag to generate a Helm chart. This allows for flexible input selection. The chart will be created in the 'mychart' directory. ```shell helmify -f ./first_dir -f ./second_dir/my_deployment.yaml -f ./third_dir mychart ``` -------------------------------- ### Create Helm Chart from Single File Source: https://github.com/arttor/helmify/blob/main/README.md Specify a single YAML file using the -f flag to generate a Helm chart. The chart will be created in the 'mychart' directory. ```shell helmify -f /my_directory/my-app.yaml mychart ``` -------------------------------- ### Helmify Version Flag Source: https://github.com/arttor/helmify/blob/main/README.md Print the current version of Helmify using the -version flag. ```bash helmify -version ``` -------------------------------- ### Generate Helm Chart with Debug Output Source: https://github.com/arttor/helmify/blob/main/README.md Run Helmify with the -vv flag for verbose debug output, useful for inspecting logs and the generated chart. ```shell cat test_data/k8s-operator-kustomize.output | go run ./cmd/helmify -vv mychart ``` -------------------------------- ### Create Helm Chart from Single YAML via Pipe Source: https://github.com/arttor/helmify/blob/main/README.md Use this command to pipe a single Kubernetes manifest file into Helmify to generate a Helm chart. The chart will be created in a directory named 'mychart'. ```shell cat my-app.yaml | helmify mychart ``` -------------------------------- ### Helmify Verbose Output Flag Source: https://github.com/arttor/helmify/blob/main/README.md Enable verbose output, including WARN and INFO messages, by using the -v flag. ```bash helmify -v ``` -------------------------------- ### Helmify Usage with Chart Name Source: https://github.com/arttor/helmify/blob/main/README.md Basic usage of Helmify, specifying the chart name as an argument. The chart name is optional and defaults to 'chart'. It can be a directory path. ```bash helmify [flags] CHART_NAME ``` -------------------------------- ### Helmify Original Name Flag Source: https://github.com/arttor/helmify/blob/main/README.md Use the object's original name instead of prefixing it with the chart's release name by using the -original-name flag. ```bash helmify -original-name ``` -------------------------------- ### Create Helm Chart from Multiple YAMLs via Pipe Source: https://github.com/arttor/helmify/blob/main/README.md Concatenate multiple YAML files from a directory using awk and pipe the output to Helmify to create a Helm chart. The chart will be generated in the 'mychart' directory. ```shell awk 'FNR==1 && NR!=1 {print "---"}{print}' //*.yaml | helmify mychart ``` -------------------------------- ### Helmify Cert-Manager Version Flag Source: https://github.com/arttor/helmify/blob/main/README.md Specify the cert-manager subchart version using the -cert-manager-version flag. This is only useful when -cert-manager-as-subchart is also used. The default version is 'v1.12.2'. ```bash helmify -cert-manager-version=v1.12.2 ``` -------------------------------- ### Helmify Very Verbose Output Flag Source: https://github.com/arttor/helmify/blob/main/README.md Enable very verbose output, including DEBUG messages, by using the -vv flag. ```bash helmify -vv ``` -------------------------------- ### Helmify Recursive Scan Flag Source: https://github.com/arttor/helmify/blob/main/README.md Enable recursive scanning of a file directory when the -f flag is provided, using the -r flag. ```bash helmify -f ./test_data -r ``` -------------------------------- ### Helmify Preserve Namespace Flag Source: https://github.com/arttor/helmify/blob/main/README.md Allow resources to retain their original namespaces instead of being placed in a common namespace by using the -preserve-ns flag. The default is 'false'. ```bash helmify -preserve-ns ``` -------------------------------- ### Helmify Image Pull Secrets Flag Source: https://github.com/arttor/helmify/blob/main/README.md Allow the use of existing secrets as imagePullSecrets with the -image-pull-secrets flag. ```bash helmify -image-pull-secrets ``` -------------------------------- ### Helmify CRD Directory Flag Source: https://github.com/arttor/helmify/blob/main/README.md Place custom resource definitions (CRDs) in their own folder according to Helm 3 best practices using the -crd-dir flag. Note that CRD templating is not supported by Helm. ```bash helmify -crd-dir ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.