cfg

package
Version: v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineRunsConfigStruct

type PipelineRunsConfigStruct struct {
	// Timeout is the maximum execution time of a pipeline run.
	// If `nil`, a default timeout should be used.
	Timeout *metav1.Duration

	// The manifest (in YAML format) of a Kubernetes LimitRange object to be
	// applied to each pipeline run sandbox namespace.
	// If empty, no limit range will be defined.
	LimitRange string

	// The manifest (in YAML format) of a Kubernetes ResourceQuota object to be
	// applied to each pipeline run sandbox namespace.
	// If empty, no resource quota will be defined.
	ResourceQuota string

	// JenkinsfileRunnerImage is the Jenkinsfile Runner container image to be
	// used for pipeline runs.
	// If empty, a default image will be used.
	JenkinsfileRunnerImage string

	// JenkinsfileRunnerImagePullPolicy is the pull policy for the container
	// image defined by `JenkinsfileRunnerImage`.
	// It defaults to `IfNotPresent`.
	// If `JenkinsfileRunnerImage` is not set, this value is not used (it does
	// not apply to the default image).
	JenkinsfileRunnerImagePullPolicy string

	// JenkinsfileRunnerPodSecurityContextRunAsUser is the numerical user id
	// the Jenkinsfile Runner process is started as.
	JenkinsfileRunnerPodSecurityContextRunAsUser *int64

	// JenkinsfileRunnerPodSecurityContextRunAsGroup is the numerical group id
	// the Jenkinsfile Runner process is started as.
	JenkinsfileRunnerPodSecurityContextRunAsGroup *int64

	// JenkinsfileRunnerPodSecurityContextFSGroup is the numerical filesystem
	// group id the Jenkinsfile Runner pod will use.
	JenkinsfileRunnerPodSecurityContextFSGroup *int64

	// DefaultNetworkProfile is the name of the network profile that should
	// be used in case the user has not explicitly chosen one.
	DefaultNetworkProfile string

	// NetworkPolicies maps network profile names to network policies.
	// Each value is a Kubernetes network policy manifest in YAML format.
	NetworkPolicies map[string]string
}

PipelineRunsConfigStruct is a struct holding the pipeline runs configuration.

func LoadPipelineRunsConfig

func LoadPipelineRunsConfig(ctx context.Context, clientFactory k8s.ClientFactory) (*PipelineRunsConfigStruct, error)

LoadPipelineRunsConfig loads the pipelineruns configuration and returns it.

Source Files

Jump to

Keyboard shortcuts

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