provisioner

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provisioner

type Provisioner interface {
	//EnsureCluster checks if the cluster exists and is configured correctly. Otherwise, it prompts the user
	//with instructions on how to set up the cluster.
	EnsureCluster() error

	//KubectlCommand constructs a new exec.Cmd object which represents [ "kubectl" (args ...) ]
	KubectlCommand(args ...string) (*exec.Cmd, error)

	//Registry returns:
	// - registryAddr: the registry to push to, e.g., registry.example.com:3000, or "" if none is defined
	// - registryInsecure: whether the registry uses HTTP (currently only used in localdev)
	Registry() (registryAddr string, registryInsecure bool, err error)

	//EnsureRegistryInsecureOK ensures that if the registry for this provisioner is insecure, that the user can push to it
	CheckRegistryInsecureOK() error

	//InClusterDir is the primary mechanism for live mounting:
	//It returns where the specified host folder is synchronized in all of the kubernetes nodes
	//If a provisioner does not support live mounting, or has an error, it should return a descriptive error string
	//I.e., if your sanic project is at /home/user/project, and provisioner is localdev, this returns /hosthome/project
	InClusterDir(hostDir string) string
}

Provisioner is an interface which represents a way to deploy kubernetes services.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL