repository

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationPrefix is the prefix for all annotations specifically for
	// the ECR service.
	AnnotationPrefix = "ecr.services.k8s.aws/"
	// AnnotationDeleteForce is an annotation whose value indicates whether
	// the repository should be removed if it contains images.
	AnnotationDeleteForce = AnnotationPrefix + "force-delete"

	DefaultDeleteForce = false
)

Variables

View Source
var (
	GroupVersionResource = svcapitypes.GroupVersion.WithResource("repositories")
	GroupKind            = metav1.GroupKind{
		Group: "ecr.services.k8s.aws",
		Kind:  "Repository",
	}
)

Functions

func FromACKTags added in v0.1.3

func FromACKTags(tags acktags.Tags) []*svcapitypes.Tag

FromACKTags converts the tags parameter into []*svcapitypes.Tag shape. This method helps in setting the tags back inside AWSResource after merging default controller tags with existing resource tags.

func GetDeleteForce added in v1.0.8

func GetDeleteForce(
	m *metav1.ObjectMeta,
) bool

GetDeleteForce returns whether the repository should be deleted if it contains images as determined by the annotation on the object, or the default value otherwise.

func ToACKTags added in v0.1.3

func ToACKTags(tags []*svcapitypes.Tag) acktags.Tags

ToACKTags converts the tags parameter into 'acktags.Tags' shape. This method helps in creating the hub(acktags.Tags) for merging default controller tags with existing resource tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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