Categorygithub.com/spirosoik/k8s-commander
modulepackage
1.0.0
Repository: https://github.com/spirosoik/k8s-commander.git
Documentation: pkg.go.dev

# README

k8s-commander

A golang library to create Kubernetes recipes following the command design pattern.

Recipe Example

You can find an example of a k8s recipe here

make run-example

Check here how to run recipe with the k8s commander. Example:

	cm := commander.New()

	// create a recipe with a set of commands
	opts := recipeOpts{
		Name:           "es",
		Namespace:      "default",
		ContainerImage: "elastic/elasticsearch",
		ContainerPort:  9200,
		ContainerTag:   "7.8.1",
	}
	recipe := NewElasticsearchDeployment(opts, clientset, logger)

	// Execute the recipe
	err = cm.Execute(recipe)
	if err != nil {
		logger.WithError(err).Error()
		os.Exit(-1)
	}

# Packages

No description provided by the author

# Functions

New factory method.

# Structs

Commander is a recipe executor.

# Interfaces

Command describes a command.
Executor executes recipes.
Recipe will create the commands for the recipe execution.