tiller

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListDefaultLimit int64 = 512

ListDefaultLimit is the default limit for number of items returned in a list.

View Source
var ValidName = regexp.MustCompile("^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])+$")

ValidName is a regular expression for names.

According to the Kubernetes help text, the regular expression it uses is:

(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?

We modified that. First, we added start and end delimiters. Second, we changed the final ? to + to require that the pattern match at least once. This modification prevents an empty string from matching.

Functions

func DefaultServerOpts

func DefaultServerOpts() []grpc.ServerOption

DefaultServerOpts returns the set of default grpc ServerOption's that Tiller requires.

func NewServer

func NewServer(opts ...grpc.ServerOption) *grpc.Server

NewServer creates a new grpc server.

Types

type ReleaseServer

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

ReleaseServer implements the server-side gRPC endpoint for the HAPI services.

func NewReleaseServer

func NewReleaseServer(env *environment.Environment, clientset internalclientset.Interface) *ReleaseServer

NewReleaseServer creates a new release server.

func (*ReleaseServer) GetHistory

GetHistory gets the history for a given release.

func (*ReleaseServer) GetReleaseContent

GetReleaseContent gets all of the stored information for the given release.

func (*ReleaseServer) GetReleaseStatus

GetReleaseStatus gets the status information for a named release.

func (*ReleaseServer) GetVersion

GetVersion sends the server version.

func (*ReleaseServer) InstallRelease

InstallRelease installs a release and stores the release record.

func (*ReleaseServer) ListReleases

ListReleases lists the releases found by the server.

func (*ReleaseServer) RollbackRelease

RollbackRelease rolls back to a previous version of the given release.

func (*ReleaseServer) RunReleaseTest

RunReleaseTest runs pre-defined tests stored as hooks on a given release

func (*ReleaseServer) UninstallRelease

UninstallRelease deletes all of the resources associated with this release, and marks the release DELETED.

func (*ReleaseServer) UpdateRelease

UpdateRelease takes an existing release and new information, and upgrades the release.

type SortOrder

type SortOrder []string

SortOrder is an ordering of Kinds.

var InstallOrder SortOrder = []string{
	"Namespace",
	"ResourceQuota",
	"LimitRange",
	"Secret",
	"ConfigMap",
	"PersistentVolume",
	"PersistentVolumeClaim",
	"ServiceAccount",
	"ClusterRole",
	"ClusterRoleBinding",
	"Role",
	"RoleBinding",
	"Service",
	"DaemonSet",
	"Pod",
	"ReplicationController",
	"ReplicaSet",
	"Deployment",
	"StatefulSet",
	"Job",
	"CronJob",
	"Ingress",
}

InstallOrder is the order in which manifests should be installed (by Kind).

Those occurring earlier in the list get installed before those occurring later in the list.

var UninstallOrder SortOrder = []string{
	"Ingress",
	"Service",
	"CronJob",
	"Job",
	"StatefulSet",
	"Deployment",
	"ReplicaSet",
	"ReplicationController",
	"Pod",
	"DaemonSet",
	"RoleBinding",
	"Role",
	"ClusterRoleBinding",
	"ClusterRole",
	"ServiceAccount",
	"PersistentVolumeClaim",
	"PersistentVolume",
	"ConfigMap",
	"Secret",
	"LimitRange",
	"ResourceQuota",
	"Namespace",
}

UninstallOrder is the order in which manifests should be uninstalled (by Kind).

Those occurring earlier in the list get uninstalled before those occurring later in the list.

Source Files

  • hook_sorter.go
  • hooks.go
  • kind_sorter.go
  • release_history.go
  • release_server.go
  • resource_policy.go
  • server.go

Directories

Path Synopsis
Package environment describes the operating environment for Tiller.
Package environment describes the operating environment for Tiller.

Jump to

Keyboard shortcuts

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