Skip to content

isaaguilar/kedge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kedge

Install or update a kubernetes manifest by passing in the a Kubernetes manifest. The manifest can be a go-templates file. For example, a resource can specify namespace: "{{ .namespace }}" which will be filled in by the namespace value.

The main usage of this is to apply manifest files to your go-project without having to worry about the clientset used to do so. By using the dynamic client, your go project can just call kedge.Apply with minimal info to deploy any manifest.

Example:

package main

import (
	"github.com/isaaguilar/kedge"
	"os"
)

func main() {
	manifest := os.Args[1]
	kedge.Apply(kedge.KubernetesConfig(os.Getenv("KUBECONFIG")), manifest, "default", []string{})
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages