kab

package
v0.0.0-...-203e7e7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NODE_PORT_ENV_VAR              = "NODE_PORT"
	CNAB_INSTALLATION_NAME_ENV_VAR = "CNAB_INSTALLATION_NAME"
	LABEL_KEY_NAME                 = "cnab-k8s-installer-installation-name"
)
View Source
const NAME = "manifests"

Variables

This section is empty.

Functions

func CreateCRD

func CreateCRD(clientset extClientset.Interface) error

func GetInstallationName

func GetInstallationName() string

func NewResourceManager

func NewResourceManager(kubectl kubectl.KubeCtl, coreClient kubernetes.Interface) *rm

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewKnbClient

func NewKnbClient(core kubernetes.Interface, ext apiext.Interface, kab versioned.Interface, kustomizer kustomize.Kustomizer, kubectl kubectl.KubeCtl) *Client

func (*Client) CreateCRDObject

func (c *Client) CreateCRDObject(manifest *v1alpha1.Manifest, backOffSettings wait.Backoff) (*v1alpha1.Manifest, error)

func (*Client) Install

func (c *Client) Install(manifest *v1alpha1.Manifest) error

func (*Client) LookupManifest

func (c *Client) LookupManifest(name string) (*v1alpha1.Manifest, error)

func (*Client) MaybeRelocate

func (c *Client) MaybeRelocate(manifest *v1alpha1.Manifest) error

MaybeRelocate relocates the given manifest if a relocation mapping is present and otherwise does not modify the manifest.

func (*Client) PatchManifest

func (c *Client) PatchManifest(manifest *v1alpha1.Manifest) error

func (*Client) Uninstall

func (c *Client) Uninstall(name string) error

type ResourceManager

type ResourceManager interface {
	Install(resource v1alpha1.KabResource, backOffSettings wait.Backoff) error
	Check(resource v1alpha1.KabResource, backOffSettings wait.Backoff) error
}

Directories

Path Synopsis
ext

Jump to

Keyboard shortcuts

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