api

package
v3.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

View Source
const ActiveDeadlineSecondsLimitAnnotation = "openshift.io/active-deadline-seconds-override"

ActiveDeadlineSecondsLimitAnnotation can be set on a project to limit the number of seconds that a run-once pod can be active in that project TODO: this label needs to change to reflect its function. It's a limit, not an override. It is kept this way for compatibility. Only change it in a new version of the API.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "", Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func DeepCopy_api_RunOnceDurationConfig

func DeepCopy_api_RunOnceDurationConfig(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_api_RunOnceDurationConfig is an autogenerated deepcopy function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func RegisterDeepCopies

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type RunOnceDurationConfig

type RunOnceDurationConfig struct {
	metav1.TypeMeta

	// ActiveDeadlineSecondsLimit is the maximum value to set on containers of run-once pods
	// Only a positive value is valid. Absence of a value means that the plugin
	// won't make any changes to the pod
	ActiveDeadlineSecondsLimit *int64
}

RunOnceDurationConfig is the configuration for the RunOnceDuration plugin. It specifies a maximum value for ActiveDeadlineSeconds for a run-once pod. The project that contains the pod may specify a different setting. That setting will take precedence over the one configured for the plugin here.

func (*RunOnceDurationConfig) GetObjectKind added in v1.1.3

func (obj *RunOnceDurationConfig) GetObjectKind() schema.ObjectKind

Directories

Path Synopsis
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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