diff --git a/apis/v1alpha1/ack-generate-metadata.yaml b/apis/v1alpha1/ack-generate-metadata.yaml index 38674e6..8f0cd0e 100755 --- a/apis/v1alpha1/ack-generate-metadata.yaml +++ b/apis/v1alpha1/ack-generate-metadata.yaml @@ -1,9 +1,9 @@ ack_generate_info: - build_date: "2025-05-13T05:08:46Z" - build_hash: 55bf57b2806c33a7fcd074be403f26ce3f8e58db + build_date: "2025-05-24T00:31:31Z" + build_hash: 66a58d259146834e61b211a9a01609beaa58ef77 go_version: go1.24.2 - version: v0.46.2 -api_directory_checksum: e0465b8e0cf7076ab51e30604f13a32cdf4957ae + version: v0.47.1 +api_directory_checksum: f450e33f8433d18a9b5ac9dbecc6d2652d4f8513 api_version: v1alpha1 aws_sdk_go_version: v1.32.6 generator_config_info: diff --git a/apis/v1alpha1/alias.go b/apis/v1alpha1/alias.go index 4f887bc..891ff5b 100644 --- a/apis/v1alpha1/alias.go +++ b/apis/v1alpha1/alias.go @@ -56,12 +56,18 @@ type AliasSpec struct { // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` FunctionName *string `json:"functionName,omitempty"` FunctionRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"functionRef,omitempty"` // The function version that the alias invokes. + // + // Regex Pattern: `^(\$LATEST|[0-9]+)$` // +kubebuilder:validation:Required FunctionVersion *string `json:"functionVersion"` // The name of the alias. + // + // Regex Pattern: `^(?!^[0-9]+$)([a-zA-Z0-9-_]+)$` // +kubebuilder:validation:Required Name *string `json:"name"` // Permissions configures a set of Lambda permissions to grant to an alias. diff --git a/apis/v1alpha1/code_signing_config.go b/apis/v1alpha1/code_signing_config.go index 8cd3ffa..562e08a 100644 --- a/apis/v1alpha1/code_signing_config.go +++ b/apis/v1alpha1/code_signing_config.go @@ -49,6 +49,8 @@ type CodeSigningConfigStatus struct { // +kubebuilder:validation:Optional Conditions []*ackv1alpha1.Condition `json:"conditions"` // Unique identifer for the Code signing configuration. + // + // Regex Pattern: `^csc-[a-zA-Z0-9-_\.]{17}$` // +kubebuilder:validation:Optional CodeSigningConfigID *string `json:"codeSigningConfigID,omitempty"` // The date and time that the Code signing configuration was last modified, diff --git a/apis/v1alpha1/event_source_mapping.go b/apis/v1alpha1/event_source_mapping.go index a2a38d3..4607eb9 100644 --- a/apis/v1alpha1/event_source_mapping.go +++ b/apis/v1alpha1/event_source_mapping.go @@ -73,6 +73,8 @@ type EventSourceMappingSpec struct { // - Amazon MQ – The ARN of the broker. // // - Amazon DocumentDB – The ARN of the DocumentDB change stream. + // + // Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` EventSourceARN *string `json:"eventSourceARN,omitempty"` EventSourceRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"eventSourceRef,omitempty"` // An object that defines the filter criteria that determine whether Lambda @@ -93,6 +95,8 @@ type EventSourceMappingSpec struct { // // The length constraint applies only to the full ARN. If you specify only the // function name, it's limited to 64 characters in length. + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` FunctionName *string `json:"functionName,omitempty"` FunctionRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"functionRef,omitempty"` // (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type @@ -168,6 +172,8 @@ type EventSourceMappingStatus struct { // +kubebuilder:validation:Optional Conditions []*ackv1alpha1.Condition `json:"conditions"` // The ARN of the Lambda function. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` // +kubebuilder:validation:Optional FunctionARN *string `json:"functionARN,omitempty"` // The date that the event source mapping was last updated or that its state diff --git a/apis/v1alpha1/function.go b/apis/v1alpha1/function.go index eabe163..b4e740f 100644 --- a/apis/v1alpha1/function.go +++ b/apis/v1alpha1/function.go @@ -33,6 +33,8 @@ type FunctionSpec struct { // To enable code signing for this function, specify the ARN of a code-signing // configuration. A code-signing configurationincludes a set of signing profiles, // which define the trusted publishers for this function. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:code-signing-config:csc-[a-z0-9]{17}$` CodeSigningConfigARN *string `json:"codeSigningConfigARN,omitempty"` // A dead-letter queue configuration that specifies the queue or topic where // Lambda sends asynchronous events when they fail processing. For more information, @@ -70,6 +72,8 @@ type FunctionSpec struct { // format includes the file name. It can also include namespaces and other qualifiers, // depending on the runtime. For more information, see Lambda programming model // (https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). + // + // Regex Pattern: `^[^\s]+$` Handler *string `json:"handler,omitempty"` // Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) // that override the values in the container image Dockerfile. @@ -94,6 +98,8 @@ type FunctionSpec struct { // If you don't provide a customer managed key, Lambda uses an Amazon Web Services // owned key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) // or an Amazon Web Services managed key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$` KMSKeyARN *string `json:"kmsKeyARN,omitempty"` KMSKeyRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"kmsKeyRef,omitempty"` // A list of function layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) @@ -118,6 +124,8 @@ type FunctionSpec struct { // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` // +kubebuilder:validation:Required Name *string `json:"name"` // The type of deployment package. Set to Image for container image and set @@ -128,6 +136,8 @@ type FunctionSpec struct { // The number of simultaneous executions to reserve for the function. ReservedConcurrentExecutions *int64 `json:"reservedConcurrentExecutions,omitempty"` // The Amazon Resource Name (ARN) of the function's execution role. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$` Role *string `json:"role,omitempty"` RoleRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"roleRef,omitempty"` // The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). @@ -202,15 +212,21 @@ type FunctionStatus struct { // +kubebuilder:validation:Optional LayerStatuses []*Layer `json:"layerStatuses,omitempty"` // For Lambda@Edge functions, the ARN of the main function. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` // +kubebuilder:validation:Optional MasterARN *string `json:"masterARN,omitempty"` // The latest updated revision of the function or alias. // +kubebuilder:validation:Optional RevisionID *string `json:"revisionID,omitempty"` // The ARN of the signing job. + // + // Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` // +kubebuilder:validation:Optional SigningJobARN *string `json:"signingJobARN,omitempty"` // The ARN of the signing profile version. + // + // Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` // +kubebuilder:validation:Optional SigningProfileVersionARN *string `json:"signingProfileVersionARN,omitempty"` // The current state of the function. When the state is Inactive, you can reactivate @@ -225,6 +241,8 @@ type FunctionStatus struct { // +kubebuilder:validation:Optional StateReasonCode *string `json:"stateReasonCode,omitempty"` // The version of the Lambda function. + // + // Regex Pattern: `^(\$LATEST|[0-9]+)$` // +kubebuilder:validation:Optional Version *string `json:"version,omitempty"` } diff --git a/apis/v1alpha1/function_url_config.go b/apis/v1alpha1/function_url_config.go index df540c5..82bbb66 100644 --- a/apis/v1alpha1/function_url_config.go +++ b/apis/v1alpha1/function_url_config.go @@ -46,9 +46,13 @@ type FunctionURLConfigSpec struct { // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` FunctionName *string `json:"functionName,omitempty"` FunctionRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"functionRef,omitempty"` // The alias name. + // + // Regex Pattern: `^(^\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))$` Qualifier *string `json:"qualifier,omitempty"` } @@ -70,6 +74,8 @@ type FunctionURLConfigStatus struct { // +kubebuilder:validation:Optional CreationTime *string `json:"creationTime,omitempty"` // The Amazon Resource Name (ARN) of your function. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` // +kubebuilder:validation:Optional FunctionARN *string `json:"functionARN,omitempty"` // The HTTP URL endpoint for your function. diff --git a/apis/v1alpha1/layer_version.go b/apis/v1alpha1/layer_version.go index 1f8865e..11f81c9 100644 --- a/apis/v1alpha1/layer_version.go +++ b/apis/v1alpha1/layer_version.go @@ -37,6 +37,8 @@ type LayerVersionSpec struct { // The description of the version. Description *string `json:"description,omitempty"` // The name or Amazon Resource Name (ARN) of the layer. + // + // Regex Pattern: `^(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+$` // +kubebuilder:validation:Required LayerName *string `json:"layerName"` // The layer's software license. It can be any of the following: @@ -68,6 +70,8 @@ type LayerVersionStatus struct { // +kubebuilder:validation:Optional CreatedDate *string `json:"createdDate,omitempty"` // The ARN of the layer. + // + // Regex Pattern: `^arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+$` // +kubebuilder:validation:Optional LayerARN *string `json:"layerARN,omitempty"` // The version number. diff --git a/apis/v1alpha1/version.go b/apis/v1alpha1/version.go index 852247c..84ce37c 100644 --- a/apis/v1alpha1/version.go +++ b/apis/v1alpha1/version.go @@ -46,6 +46,8 @@ type VersionSpec struct { // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` FunctionName *string `json:"functionName,omitempty"` FunctionRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"functionRef,omitempty"` ProvisionedConcurrencyConfig *PutProvisionedConcurrencyConfigInput `json:"provisionedConcurrencyConfig,omitempty"` @@ -92,9 +94,13 @@ type VersionStatus struct { // +kubebuilder:validation:Optional FileSystemConfigs []*FileSystemConfig `json:"fileSystemConfigs,omitempty"` // The function's Amazon Resource Name (ARN). + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` // +kubebuilder:validation:Optional FunctionARN *string `json:"functionARN,omitempty"` // The function that Lambda calls to begin running your function. + // + // Regex Pattern: `^[^\s]+$` // +kubebuilder:validation:Optional Handler *string `json:"handler,omitempty"` // The function's image configuration values. @@ -120,6 +126,8 @@ type VersionStatus struct { // If you don't provide a customer managed key, Lambda uses an Amazon Web Services // owned key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) // or an Amazon Web Services managed key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + // + // Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$` // +kubebuilder:validation:Optional KMSKeyARN *string `json:"kmsKeyARN,omitempty"` // The date and time that the function was last updated, in ISO-8601 format @@ -140,6 +148,8 @@ type VersionStatus struct { // +kubebuilder:validation:Optional Layers []*Layer `json:"layers,omitempty"` // For Lambda@Edge functions, the ARN of the main function. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` // +kubebuilder:validation:Optional MasterARN *string `json:"masterARN,omitempty"` // The amount of memory available to the function at runtime. @@ -150,9 +160,13 @@ type VersionStatus struct { // +kubebuilder:validation:Optional PackageType *string `json:"packageType,omitempty"` // The version of the Lambda function. + // + // Regex Pattern: `^(\$LATEST|[0-9]+)$` // +kubebuilder:validation:Optional Qualifier *string `json:"qualifier,omitempty"` // The function's execution role. + // + // Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$` // +kubebuilder:validation:Optional Role *string `json:"role,omitempty"` // The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). @@ -168,9 +182,13 @@ type VersionStatus struct { // +kubebuilder:validation:Optional Runtime *string `json:"runtime,omitempty"` // The ARN of the signing job. + // + // Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` // +kubebuilder:validation:Optional SigningJobARN *string `json:"signingJobARN,omitempty"` // The ARN of the signing profile version. + // + // Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` // +kubebuilder:validation:Optional SigningProfileVersionARN *string `json:"signingProfileVersionARN,omitempty"` // Set ApplyOn to PublishedVersions to create a snapshot of the initialized @@ -197,6 +215,8 @@ type VersionStatus struct { // +kubebuilder:validation:Optional TracingConfig *TracingConfigResponse `json:"tracingConfig,omitempty"` // The version of the Lambda function. + // + // Regex Pattern: `^(\$LATEST|[0-9]+)$` // +kubebuilder:validation:Optional Version *string `json:"version,omitempty"` // The function's networking configuration. diff --git a/config/controller/kustomization.yaml b/config/controller/kustomization.yaml index 0e774ac..130a0dc 100644 --- a/config/controller/kustomization.yaml +++ b/config/controller/kustomization.yaml @@ -6,4 +6,4 @@ kind: Kustomization images: - name: controller newName: public.ecr.aws/aws-controllers-k8s/lambda-controller - newTag: 1.7.1 + newTag: 1.7.2 diff --git a/config/crd/bases/lambda.services.k8s.aws_aliases.yaml b/config/crd/bases/lambda.services.k8s.aws_aliases.yaml index b961288..4ef24d5 100644 --- a/config/crd/bases/lambda.services.k8s.aws_aliases.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_aliases.yaml @@ -108,6 +108,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -127,10 +129,16 @@ spec: type: object type: object functionVersion: - description: The function version that the alias invokes. + description: |- + The function version that the alias invokes. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string name: - description: The name of the alias. + description: |- + The name of the alias. + + Regex Pattern: `^(?!^[0-9]+$)([a-zA-Z0-9-_]+)$` type: string permissions: description: Permissions configures a set of Lambda permissions to diff --git a/config/crd/bases/lambda.services.k8s.aws_codesigningconfigs.yaml b/config/crd/bases/lambda.services.k8s.aws_codesigningconfigs.yaml index b62feea..3736ddf 100644 --- a/config/crd/bases/lambda.services.k8s.aws_codesigningconfigs.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_codesigningconfigs.yaml @@ -97,7 +97,10 @@ spec: - region type: object codeSigningConfigID: - description: Unique identifer for the Code signing configuration. + description: |- + Unique identifer for the Code signing configuration. + + Regex Pattern: `^csc-[a-zA-Z0-9-_\.]{17}$` type: string conditions: description: |- diff --git a/config/crd/bases/lambda.services.k8s.aws_eventsourcemappings.yaml b/config/crd/bases/lambda.services.k8s.aws_eventsourcemappings.yaml index 4c83f82..67cd967 100644 --- a/config/crd/bases/lambda.services.k8s.aws_eventsourcemappings.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_eventsourcemappings.yaml @@ -124,6 +124,8 @@ spec: * Amazon MQ – The ARN of the broker. * Amazon DocumentDB – The ARN of the DocumentDB change stream. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string eventSourceRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -175,6 +177,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -400,7 +404,10 @@ spec: type: object type: array functionARN: - description: The ARN of the Lambda function. + description: |- + The ARN of the Lambda function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string lastModified: description: |- diff --git a/config/crd/bases/lambda.services.k8s.aws_functions.yaml b/config/crd/bases/lambda.services.k8s.aws_functions.yaml index 36b5263..e0e215f 100644 --- a/config/crd/bases/lambda.services.k8s.aws_functions.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_functions.yaml @@ -83,6 +83,8 @@ spec: To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configurationincludes a set of signing profiles, which define the trusted publishers for this function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:code-signing-config:csc-[a-z0-9]{17}$` type: string deadLetterConfig: description: |- @@ -188,6 +190,8 @@ spec: format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model (https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). + + Regex Pattern: `^[^\s]+$` type: string imageConfig: description: |- @@ -227,6 +231,8 @@ spec: If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an Amazon Web Services managed key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$` type: string kmsKeyRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -286,6 +292,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string packageType: description: |- @@ -302,8 +310,10 @@ spec: format: int64 type: integer role: - description: The Amazon Resource Name (ARN) of the function's execution - role. + description: |- + The Amazon Resource Name (ARN) of the function's execution role. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$` type: string roleRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -563,16 +573,25 @@ spec: type: object type: array masterARN: - description: For Lambda@Edge functions, the ARN of the main function. + description: |- + For Lambda@Edge functions, the ARN of the main function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string revisionID: description: The latest updated revision of the function or alias. type: string signingJobARN: - description: The ARN of the signing job. + description: |- + The ARN of the signing job. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string signingProfileVersionARN: - description: The ARN of the signing profile version. + description: |- + The ARN of the signing profile version. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string state: description: |- @@ -588,7 +607,10 @@ spec: you can't invoke or modify the function. type: string version: - description: The version of the Lambda function. + description: |- + The version of the Lambda function. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string type: object type: object diff --git a/config/crd/bases/lambda.services.k8s.aws_functionurlconfigs.yaml b/config/crd/bases/lambda.services.k8s.aws_functionurlconfigs.yaml index a6d3a7b..85d10d2 100644 --- a/config/crd/bases/lambda.services.k8s.aws_functionurlconfigs.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_functionurlconfigs.yaml @@ -90,6 +90,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -109,7 +111,10 @@ spec: type: object type: object qualifier: - description: The alias name. + description: |- + The alias name. + + Regex Pattern: `^(^\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))$` type: string required: - authType @@ -187,7 +192,10 @@ spec: (YYYY-MM-DDThh:mm:ss.sTZD). type: string functionARN: - description: The Amazon Resource Name (ARN) of your function. + description: |- + The Amazon Resource Name (ARN) of your function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionURL: description: The HTTP URL endpoint for your function. diff --git a/config/crd/bases/lambda.services.k8s.aws_layerversions.yaml b/config/crd/bases/lambda.services.k8s.aws_layerversions.yaml index 7322788..5e95596 100644 --- a/config/crd/bases/lambda.services.k8s.aws_layerversions.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_layerversions.yaml @@ -71,7 +71,10 @@ spec: description: The description of the version. type: string layerName: - description: The name or Amazon Resource Name (ARN) of the layer. + description: |- + The name or Amazon Resource Name (ARN) of the layer. + + Regex Pattern: `^(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+$` type: string licenseInfo: description: |- @@ -161,7 +164,10 @@ spec: (YYYY-MM-DDThh:mm:ss.sTZD). type: string layerARN: - description: The ARN of the layer. + description: |- + The ARN of the layer. + + Regex Pattern: `^arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+$` type: string versionNumber: description: The version number. diff --git a/config/crd/bases/lambda.services.k8s.aws_versions.yaml b/config/crd/bases/lambda.services.k8s.aws_versions.yaml index 4a3e6ad..42b3223 100644 --- a/config/crd/bases/lambda.services.k8s.aws_versions.yaml +++ b/config/crd/bases/lambda.services.k8s.aws_versions.yaml @@ -100,6 +100,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -263,11 +265,16 @@ spec: type: object type: array functionARN: - description: The function's Amazon Resource Name (ARN). + description: |- + The function's Amazon Resource Name (ARN). + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string handler: - description: The function that Lambda calls to begin running your - function. + description: |- + The function that Lambda calls to begin running your function. + + Regex Pattern: `^[^\s]+$` type: string imageConfigResponse: description: The function's image configuration values. @@ -319,6 +326,8 @@ spec: If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an Amazon Web Services managed key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$` type: string lastModified: description: |- @@ -355,7 +364,10 @@ spec: type: object type: array masterARN: - description: For Lambda@Edge functions, the ARN of the main function. + description: |- + For Lambda@Edge functions, the ARN of the main function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string memorySize: description: The amount of memory available to the function at runtime. @@ -367,10 +379,16 @@ spec: Zip for .zip file archive. type: string qualifier: - description: The version of the Lambda function. + description: |- + The version of the Lambda function. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string role: - description: The function's execution role. + description: |- + The function's execution role. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$` type: string runtime: description: |- @@ -386,10 +404,16 @@ spec: For a list of all currently supported runtimes, see Supported runtimes (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). type: string signingJobARN: - description: The ARN of the signing job. + description: |- + The ARN of the signing job. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string signingProfileVersionARN: - description: The ARN of the signing profile version. + description: |- + The ARN of the signing profile version. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string snapStart: description: |- @@ -428,7 +452,10 @@ spec: type: string type: object version: - description: The version of the Lambda function. + description: |- + The version of the Lambda function. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string vpcConfig: description: The function's networking configuration. diff --git a/go.mod b/go.mod index 1179e4b..d80ff4d 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/aws-controllers-k8s/kafka-controller v0.0.0-20230615185632-102279061de1 github.com/aws-controllers-k8s/kms-controller v0.1.2 github.com/aws-controllers-k8s/mq-controller v0.0.22 - github.com/aws-controllers-k8s/runtime v0.46.1 + github.com/aws-controllers-k8s/runtime v0.47.0 github.com/aws-controllers-k8s/s3-controller v0.1.5 github.com/aws/aws-sdk-go v1.49.0 github.com/aws/aws-sdk-go-v2 v1.34.0 diff --git a/go.sum b/go.sum index 198e2df..d4ceb28 100644 --- a/go.sum +++ b/go.sum @@ -8,8 +8,8 @@ github.com/aws-controllers-k8s/kms-controller v0.1.2 h1:9lb98jspqOpFpmIFHOJ6pRnO github.com/aws-controllers-k8s/kms-controller v0.1.2/go.mod h1:6CoV0UMFd03EUF9dXgOTTScGdBhJzsWn9W0dw2n0kA4= github.com/aws-controllers-k8s/mq-controller v0.0.22 h1:XxFSQL9yaaiiuZ6E/fh/+Y9C+3DG2c5oXWG/4ZNwd1w= github.com/aws-controllers-k8s/mq-controller v0.0.22/go.mod h1:p+YVFjpwlgRC+1cPeCabk1xTB1hTCU+RwYtFzrTnJmE= -github.com/aws-controllers-k8s/runtime v0.46.1 h1:61RU6uYiFSp0cDhv52vAmaPzrebzoudtsp1fGkk6iLk= -github.com/aws-controllers-k8s/runtime v0.46.1/go.mod h1:G2UMBKA7qgXG4JV16NTIUp715uqvUEvWaa7TG1I527U= +github.com/aws-controllers-k8s/runtime v0.47.0 h1:pWzMLrwAFrAmMuSukYDLrQp5Yw594w1ke6XWGmI3uyo= +github.com/aws-controllers-k8s/runtime v0.47.0/go.mod h1:G2UMBKA7qgXG4JV16NTIUp715uqvUEvWaa7TG1I527U= github.com/aws-controllers-k8s/s3-controller v0.1.5 h1:5zb7jsh0fgbPM8cIvcsuH1dta1dKzaAnlwgvb6u3hOc= github.com/aws-controllers-k8s/s3-controller v0.1.5/go.mod h1:8Z8JlO5Hc1dZX2YELu94+lnOgKM0FioAHJBsyaWvtx8= github.com/aws/aws-sdk-go v1.49.0 h1:g9BkW1fo9GqKfwg2+zCD+TW/D36Ux+vtfJ8guF4AYmY= diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 9327fac..af86239 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 name: lambda-chart description: A Helm chart for the ACK service controller for AWS Lambda (Lambda) -version: 1.7.1 -appVersion: 1.7.1 +version: 1.7.2 +appVersion: 1.7.2 home: https://github.com/aws-controllers-k8s/lambda-controller icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png sources: diff --git a/helm/crds/lambda.services.k8s.aws_aliases.yaml b/helm/crds/lambda.services.k8s.aws_aliases.yaml index 1ba5958..49e14c1 100644 --- a/helm/crds/lambda.services.k8s.aws_aliases.yaml +++ b/helm/crds/lambda.services.k8s.aws_aliases.yaml @@ -108,6 +108,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -127,10 +129,16 @@ spec: type: object type: object functionVersion: - description: The function version that the alias invokes. + description: |- + The function version that the alias invokes. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string name: - description: The name of the alias. + description: |- + The name of the alias. + + Regex Pattern: `^(?!^[0-9]+$)([a-zA-Z0-9-_]+)$` type: string permissions: description: Permissions configures a set of Lambda permissions to diff --git a/helm/crds/lambda.services.k8s.aws_codesigningconfigs.yaml b/helm/crds/lambda.services.k8s.aws_codesigningconfigs.yaml index b62feea..3736ddf 100644 --- a/helm/crds/lambda.services.k8s.aws_codesigningconfigs.yaml +++ b/helm/crds/lambda.services.k8s.aws_codesigningconfigs.yaml @@ -97,7 +97,10 @@ spec: - region type: object codeSigningConfigID: - description: Unique identifer for the Code signing configuration. + description: |- + Unique identifer for the Code signing configuration. + + Regex Pattern: `^csc-[a-zA-Z0-9-_\.]{17}$` type: string conditions: description: |- diff --git a/helm/crds/lambda.services.k8s.aws_eventsourcemappings.yaml b/helm/crds/lambda.services.k8s.aws_eventsourcemappings.yaml index b099ad5..2db9b09 100644 --- a/helm/crds/lambda.services.k8s.aws_eventsourcemappings.yaml +++ b/helm/crds/lambda.services.k8s.aws_eventsourcemappings.yaml @@ -124,6 +124,8 @@ spec: - Amazon MQ – The ARN of the broker. - Amazon DocumentDB – The ARN of the DocumentDB change stream. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string eventSourceRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -175,6 +177,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -400,7 +404,10 @@ spec: type: object type: array functionARN: - description: The ARN of the Lambda function. + description: |- + The ARN of the Lambda function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string lastModified: description: |- diff --git a/helm/crds/lambda.services.k8s.aws_functions.yaml b/helm/crds/lambda.services.k8s.aws_functions.yaml index 4b97863..1e1cf5c 100644 --- a/helm/crds/lambda.services.k8s.aws_functions.yaml +++ b/helm/crds/lambda.services.k8s.aws_functions.yaml @@ -83,6 +83,8 @@ spec: To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configurationincludes a set of signing profiles, which define the trusted publishers for this function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:code-signing-config:csc-[a-z0-9]{17}$` type: string deadLetterConfig: description: |- @@ -188,6 +190,8 @@ spec: format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model (https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). + + Regex Pattern: `^[^\s]+$` type: string imageConfig: description: |- @@ -227,6 +231,8 @@ spec: If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an Amazon Web Services managed key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$` type: string kmsKeyRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -286,6 +292,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string packageType: description: |- @@ -302,8 +310,10 @@ spec: format: int64 type: integer role: - description: The Amazon Resource Name (ARN) of the function's execution - role. + description: |- + The Amazon Resource Name (ARN) of the function's execution role. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$` type: string roleRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -563,16 +573,25 @@ spec: type: object type: array masterARN: - description: For Lambda@Edge functions, the ARN of the main function. + description: |- + For Lambda@Edge functions, the ARN of the main function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string revisionID: description: The latest updated revision of the function or alias. type: string signingJobARN: - description: The ARN of the signing job. + description: |- + The ARN of the signing job. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string signingProfileVersionARN: - description: The ARN of the signing profile version. + description: |- + The ARN of the signing profile version. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string state: description: |- @@ -588,7 +607,10 @@ spec: you can't invoke or modify the function. type: string version: - description: The version of the Lambda function. + description: |- + The version of the Lambda function. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string type: object type: object diff --git a/helm/crds/lambda.services.k8s.aws_functionurlconfigs.yaml b/helm/crds/lambda.services.k8s.aws_functionurlconfigs.yaml index 1211584..f48d957 100644 --- a/helm/crds/lambda.services.k8s.aws_functionurlconfigs.yaml +++ b/helm/crds/lambda.services.k8s.aws_functionurlconfigs.yaml @@ -90,6 +90,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -109,7 +111,10 @@ spec: type: object type: object qualifier: - description: The alias name. + description: |- + The alias name. + + Regex Pattern: `^(^\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))$` type: string required: - authType @@ -187,7 +192,10 @@ spec: (YYYY-MM-DDThh:mm:ss.sTZD). type: string functionARN: - description: The Amazon Resource Name (ARN) of your function. + description: |- + The Amazon Resource Name (ARN) of your function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionURL: description: The HTTP URL endpoint for your function. diff --git a/helm/crds/lambda.services.k8s.aws_layerversions.yaml b/helm/crds/lambda.services.k8s.aws_layerversions.yaml index d56db37..86ad7cf 100644 --- a/helm/crds/lambda.services.k8s.aws_layerversions.yaml +++ b/helm/crds/lambda.services.k8s.aws_layerversions.yaml @@ -71,7 +71,10 @@ spec: description: The description of the version. type: string layerName: - description: The name or Amazon Resource Name (ARN) of the layer. + description: |- + The name or Amazon Resource Name (ARN) of the layer. + + Regex Pattern: `^(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+$` type: string licenseInfo: description: |- @@ -161,7 +164,10 @@ spec: (YYYY-MM-DDThh:mm:ss.sTZD). type: string layerARN: - description: The ARN of the layer. + description: |- + The ARN of the layer. + + Regex Pattern: `^arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+$` type: string versionNumber: description: The version number. diff --git a/helm/crds/lambda.services.k8s.aws_versions.yaml b/helm/crds/lambda.services.k8s.aws_versions.yaml index c84d3b7..f67dfb5 100644 --- a/helm/crds/lambda.services.k8s.aws_versions.yaml +++ b/helm/crds/lambda.services.k8s.aws_versions.yaml @@ -100,6 +100,8 @@ spec: The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string functionRef: description: "AWSResourceReferenceWrapper provides a wrapper around @@ -263,11 +265,16 @@ spec: type: object type: array functionARN: - description: The function's Amazon Resource Name (ARN). + description: |- + The function's Amazon Resource Name (ARN). + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string handler: - description: The function that Lambda calls to begin running your - function. + description: |- + The function that Lambda calls to begin running your function. + + Regex Pattern: `^[^\s]+$` type: string imageConfigResponse: description: The function's image configuration values. @@ -319,6 +326,8 @@ spec: If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an Amazon Web Services managed key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + + Regex Pattern: `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$` type: string lastModified: description: |- @@ -355,7 +364,10 @@ spec: type: object type: array masterARN: - description: For Lambda@Edge functions, the ARN of the main function. + description: |- + For Lambda@Edge functions, the ARN of the main function. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$` type: string memorySize: description: The amount of memory available to the function at runtime. @@ -367,10 +379,16 @@ spec: Zip for .zip file archive. type: string qualifier: - description: The version of the Lambda function. + description: |- + The version of the Lambda function. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string role: - description: The function's execution role. + description: |- + The function's execution role. + + Regex Pattern: `^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$` type: string runtime: description: |- @@ -386,10 +404,16 @@ spec: For a list of all currently supported runtimes, see Supported runtimes (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). type: string signingJobARN: - description: The ARN of the signing job. + description: |- + The ARN of the signing job. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string signingProfileVersionARN: - description: The ARN of the signing profile version. + description: |- + The ARN of the signing profile version. + + Regex Pattern: `^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)$` type: string snapStart: description: |- @@ -428,7 +452,10 @@ spec: type: string type: object version: - description: The version of the Lambda function. + description: |- + The version of the Lambda function. + + Regex Pattern: `^(\$LATEST|[0-9]+)$` type: string vpcConfig: description: The function's networking configuration. diff --git a/helm/templates/NOTES.txt b/helm/templates/NOTES.txt index 376327c..4d7e8f0 100644 --- a/helm/templates/NOTES.txt +++ b/helm/templates/NOTES.txt @@ -1,5 +1,5 @@ {{ .Chart.Name }} has been installed. -This chart deploys "public.ecr.aws/aws-controllers-k8s/lambda-controller:1.7.1". +This chart deploys "public.ecr.aws/aws-controllers-k8s/lambda-controller:1.7.2". Check its status by running: kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}" diff --git a/helm/values.yaml b/helm/values.yaml index f74999f..79aef01 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,7 +4,7 @@ image: repository: public.ecr.aws/aws-controllers-k8s/lambda-controller - tag: 1.7.1 + tag: 1.7.2 pullPolicy: IfNotPresent pullSecrets: []