controller

package
v0.0.0-...-c377703 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

package controller provides a Kubernetes controller for a TensorFlow job resource.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionOutdated = errors.New("requested version is outdated in apiserver")

	// Workaround for watching CRD resource.
	// client-go has encoding issue and we want something more predictable.
	KubeHttpCli *http.Client
	MasterHost  string
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Namespace   string
	KubeCli     kubernetes.Interface
	ApiCli      apiextensionsclient.Interface
	MxJobClient k8sutil.MxJobClient
	// contains filtered or unexported fields
}

func (*Controller) Run

func (c *Controller) Run() error

type Event

type Event struct {
	Type   kwatch.EventType
	Object *spec.MxJob
}

Jump to

Keyboard shortcuts

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