config

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the PipelineRun controller depends.

Index

Constants

View Source
const (
	// EntrypointConfigName is the name of the configmap containing all
	// customizations for entrypoint.
	EntrypointConfigName = "config-entrypoint"

	// ImageKey is the name of the configuration entry that specifies
	// entrypoint image.
	ImageKey = "image"

	// DefaultEntrypointImage is the default value of the ImageKey.
	DefaultEntrypointImage = "gcr.io/k8s-prow/entrypoint@sha256:7c7cd8906ce4982ffee326218e9fc75da2d4896d53cabc9833b9cc8d2d6b2b8f"
)

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, c *Config) context.Context

Types

type Config

type Config struct {
	Entrypoint *Entrypoint
}

+k8s:deepcopy-gen=false

func FromContext

func FromContext(ctx context.Context) *Config

type Entrypoint

type Entrypoint struct {
	// Image specifies the entrypoint image which will used by taskrun
	// to capture logs.
	Image string
}

Entrypoint contains the entrypoint configuration defined in the entrypoint config map.

func NewEntrypointConfigFromConfigMap

func NewEntrypointConfigFromConfigMap(configMap *corev1.ConfigMap) (*Entrypoint, error)

NewEntrypointConfigFromConfigMap creates a Entrypoint from the supplied ConfigMap

func (*Entrypoint) DeepCopy

func (in *Entrypoint) DeepCopy() *Entrypoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Entrypoint.

func (*Entrypoint) DeepCopyInto

func (in *Entrypoint) DeepCopyInto(out *Entrypoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Store

type Store struct {
	*configmap.UntypedStore
}

+k8s:deepcopy-gen=false

func NewStore

func NewStore(logger configmap.Logger) *Store

func (*Store) Load

func (s *Store) Load() *Config

func (*Store) ToContext

func (s *Store) ToContext(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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