RepositoryCreationTemplate
ecr.services.k8s.aws/v1alpha1
| Type | Link |
|---|---|
| GoDoc | ecr-controller/apis/v1alpha1#RepositoryCreationTemplate |
Metadata
| Property | Value |
|---|---|
| Scope | Namespaced |
| Kind | RepositoryCreationTemplate |
| ListKind | RepositoryCreationTemplateList |
| Plural | repositorycreationtemplates |
| Singular | repositorycreationtemplate |
The details of the repository creation template associated with the request.
Spec
appliedFor:
- string
customRoleARN: string
customRoleRef:
from:
name: string
namespace: string
description: string
encryptionConfiguration:
encryptionType: string
kmsKey: string
imageTagMutability: string
imageTagMutabilityExclusionFilters:
- filter: string
filterType: string
lifecyclePolicy: string
prefix: string
repositoryPolicy: string
resourceTags:
- key: string
value: string
| Field | Description |
|---|---|
| appliedFor Required | array A list of enumerable strings representing the Amazon ECR repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION |
| appliedFor.[] Required | string |
| customRoleRef Optional | object AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax for references using ‘from’ field Ex: APIIDRef: from: name: my-api |
| customRoleRef.from Optional | object AWSResourceReference provides all the values necessary to reference another k8s resource for finding the identifier(Id/ARN/Name) |
| customRoleRef.from.name Optional | string |
| customRoleRef.from.namespace Optional | string |
| description Optional | string A description for the repository creation template. |
| encryptionConfiguration Optional | object The encryption configuration to use for repositories created using the template. |
| encryptionConfiguration.encryptionType Optional | string |
| encryptionConfiguration.kmsKey Optional | string |
| imageTagMutability Optional | string The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten. |
| imageTagMutabilityExclusionFilters Optional | array A list of filters that specify which image tags should be excluded from the repository creation template’s image tag mutability setting. |
| imageTagMutabilityExclusionFilters.[] Required | object A filter that specifies which image tags should be excluded from the repository’s |
| image tag mutability setting. | |
| imageTagMutabilityExclusionFilters.[].filterType Optional | string |
| lifecyclePolicy Optional | string The lifecycle policy to use for repositories created using the template. |
| prefix Required | string The repository namespace prefix to associate with the template. All repositories created using this namespace prefix will have the settings defined in this template applied. For example, a prefix of prod would apply to all repositories beginning with prod/. Similarly, a prefix of prod/team would apply to all repositories beginning with prod/team/. To apply a template to all repositories in your registry that don’t have an associated creation template, you can use ROOT as the prefix. There is always an assumed / applied to the end of the prefix. If you specify ecr-public as the prefix, Amazon ECR treats that as ecr-public/. When using a pull through cache rule, the repository prefix you specify during rule creation is what you should specify as your repository creation template prefix as well. Regex Pattern: `^((?:[a-z0-9]+(?:[.-][a-z0-9]+)/)[a-z0-9]+(?:[.-][a-z0-9]+)*/? |
| repositoryPolicy Optional | string The repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions. |
| resourceTags Optional | array The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. |
| resourceTags.[] Required | object The metadata to apply to a resource to help you categorize and organize them. |
| Each tag consists of a key and a value, both of which you define. Tag keys | |
| can have a maximum character length of 128 characters, and tag values can | |
| have a maximum length of 256 characters. | |
| resourceTags.[].value Optional | string |
Status
ackResourceMetadata:
arn: string
ownerAccountID: string
partition: string
region: string
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
createdAt: string
updatedAt: string
| Field | Description |
|---|---|
| ackResourceMetadata Optional | object All CRs managed by ACK have a common Status.ACKResourceMetadata memberthat is used to contain resource sync state, account ownership, constructed ARN for the resource |
| ackResourceMetadata.arn Optional | string ARN is the Amazon Resource Name for the resource. This is a globally-unique identifier and is set only by the ACK service controller once the controller has orchestrated the creation of the resource OR when it has verified that an “adopted” resource (a resource where the ARN annotation was set by the Kubernetes user on the CR) exists and matches the supplied CR’s Spec field values. https://github.com/aws/aws-controllers-k8s/issues/270 |
| ackResourceMetadata.ownerAccountID Required | string OwnerAccountID is the AWS Account ID of the account that owns the backend AWS service API resource. |
| ackResourceMetadata.partition Optional | string Partition is the AWS partition in which the resource exists or will exist |
| ackResourceMetadata.region Required | string Region is the AWS region in which the resource exists or will exist. |
| conditions Optional | array All CRs managed by ACK have a common Status.Conditions member thatcontains a collection of ackv1alpha1.Condition objects that describethe various terminal states of the CR and its backend AWS service API resource |
| conditions.[] Required | object Condition is the common struct used by all CRDs managed by ACK service |
| controllers to indicate terminal states of the CR and its backend AWS | |
| service API resource | |
| conditions.[].message Optional | string A human readable message indicating details about the transition. |
| conditions.[].reason Optional | string The reason for the condition’s last transition. |
| conditions.[].status Optional | string Status of the condition, one of True, False, Unknown. |
| conditions.[].type Optional | string Type is the type of the Condition |
| createdAt Optional | string The date and time, in JavaScript date format, when the repository creation template was created. |
| updatedAt Optional | string The date and time, in JavaScript date format, when the repository creation template was last updated. |