steps

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationSecurityContextGroup is an annotation set on the TaskRun and used in a downward volume to project a dynamic group file into a container
	AnnotationSecurityContextGroup = buildapi.BuildRunDomain + "/security-context-group"

	// AnnotationSecurityContextPasswd is an annotation set on the TaskRun and used in a downward volume to project a dynamic passwd file into a container
	AnnotationSecurityContextPasswd = buildapi.BuildRunDomain + "/security-context-passwd"

	// VolumeNameSecurityContext is used as a volume name for a downward volume to project a dynamic passwd file into a container
	VolumeNameSecurityContext = "shp-security-context"
)

Variables

This section is empty.

Functions

func UpdateSecurityContext

func UpdateSecurityContext(taskSpec *pipelineapi.TaskSpec, taskRunAnnotations map[string]string, buildStrategySteps []buildapi.Step, buildStrategySecurityContext *buildapi.BuildStrategySecurityContext)

UpdateSecurityContext updates the security context of a step based on the build strategy steps. If all build strategy steps run as the same user and group, then the step is configured to also run as this user and group. This ensures that the supporting steps run as the same user as the build strategy and file permissions created by source steps match the user that runs the build strategy steps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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