util

package
v3.6.137-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Associate

func Associate(kubeClient internalclientset.Interface, namespace *kapi.Namespace) (*kapi.Namespace, error)

Associate adds the origin finalizer to spec.finalizers if its not there already

func Associated

func Associated(namespace *kapi.Namespace) bool

Associated returns true if the spec.finalizers contains the origin finalizer

func ConvertNamespace added in v1.3.0

func ConvertNamespace(namespace *kapi.Namespace) *projectapi.Project

ConvertNamespace transforms a Namespace into a Project

func ConvertNamespaceList added in v1.3.0

func ConvertNamespaceList(namespaceList *kapi.NamespaceList) *projectapi.ProjectList

ConvertNamespaceList transforms a NamespaceList into a ProjectList

func ConvertProject added in v1.3.0

func ConvertProject(project *projectapi.Project) *kapi.Namespace

convertProject transforms a Project into a Namespace

func Finalize

func Finalize(kubeClient clientset.Interface, namespace *v1.Namespace) (result *v1.Namespace, err error)

Finalize will remove the origin finalizer from the namespace

func Finalized

func Finalized(namespace *v1.Namespace) bool

Finalized returns true if the spec.finalizers does not contain the origin finalizer

Types

This section is empty.

Jump to

Keyboard shortcuts

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