Skip to content

helm client-go example to add helm repo, fetch charts and install chart

License

Notifications You must be signed in to change notification settings

PrasadG193/helm-clientgo-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helm-clientgo-example

This example program demonstrates helm operations for managing helm charts, such as adding helm repo, fetching helm charts and installing a helm chart

Running this example does the following operations:

  • Adds helm chart repo with name stable and url https://kubernetes-charts.storage.googleapis.com (equivalent to helm repo add stable https://kubernetes-charts.storage.googleapis.com)

  • Fetches latest helm charts from stable helm repo (equivalent to helm repo update)

  • Installs mysql helm chart into mysql-test namespace with values (equivalent to helm install -n mysql --namespace mysql-test stable/mysql --set mysqlRootPassword=admin@123,persistence.enabled=false,imagePullPolicy=Always)

Running the example

  • Create namespace mysql-test
    kubectl create ns mysql-test
    
  • Run the program with go run main.go

About

helm client-go example to add helm repo, fetch charts and install chart

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages