diff --git a/apis/v1alpha1/ack-generate-metadata.yaml b/apis/v1alpha1/ack-generate-metadata.yaml index fcd5d51..53a42cd 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-13T18:00:29Z" - build_hash: 55bf57b2806c33a7fcd074be403f26ce3f8e58db + build_date: "2025-05-24T00:36:15Z" + build_hash: 66a58d259146834e61b211a9a01609beaa58ef77 go_version: go1.24.2 - version: v0.46.2 -api_directory_checksum: 2f94829f12ad90f9c36c48823459c161c1670093 + version: v0.47.1 +api_directory_checksum: bcdceff2d7ddf7c98141572260ef2e6cee8bf23f api_version: v1alpha1 aws_sdk_go_version: v1.32.6 generator_config_info: diff --git a/apis/v1alpha1/backup.go b/apis/v1alpha1/backup.go index 0edbb18..58b6b54 100644 --- a/apis/v1alpha1/backup.go +++ b/apis/v1alpha1/backup.go @@ -24,6 +24,8 @@ import ( type BackupSpec struct { // Specified name for the backup. + // + // Regex Pattern: `^[a-zA-Z0-9_.-]+$` // +kubebuilder:validation:Required BackupName *string `json:"backupName"` // The name of the table. You can also provide the Amazon Resource Name (ARN) diff --git a/apis/v1alpha1/global_table.go b/apis/v1alpha1/global_table.go index f3bcd19..70c54a9 100644 --- a/apis/v1alpha1/global_table.go +++ b/apis/v1alpha1/global_table.go @@ -26,6 +26,8 @@ import ( type GlobalTableSpec struct { // The global table name. + // + // Regex Pattern: `^[a-zA-Z0-9_.-]+$` // +kubebuilder:validation:Required GlobalTableName *string `json:"globalTableName"` // The Regions where the global table needs to be created. diff --git a/apis/v1alpha1/table.go b/apis/v1alpha1/table.go index ae40556..5c10191 100644 --- a/apis/v1alpha1/table.go +++ b/apis/v1alpha1/table.go @@ -230,6 +230,8 @@ type TableStatus struct { // +kubebuilder:validation:Optional RestoreSummary *RestoreSummary `json:"restoreSummary,omitempty"` // Unique identifier for the table for which the backup was created. + // + // Regex Pattern: `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$` // +kubebuilder:validation:Optional TableID *string `json:"tableID,omitempty"` // The total size of the specified table, in bytes. DynamoDB updates this value diff --git a/config/controller/kustomization.yaml b/config/controller/kustomization.yaml index f1cabee..9b1af1b 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/dynamodb-controller - newTag: 1.4.5 + newTag: 1.4.6 diff --git a/config/crd/bases/dynamodb.services.k8s.aws_backups.yaml b/config/crd/bases/dynamodb.services.k8s.aws_backups.yaml index 317d2dc..ba3c07b 100644 --- a/config/crd/bases/dynamodb.services.k8s.aws_backups.yaml +++ b/config/crd/bases/dynamodb.services.k8s.aws_backups.yaml @@ -63,7 +63,10 @@ spec: description: BackupSpec defines the desired state of Backup. properties: backupName: - description: Specified name for the backup. + description: |- + Specified name for the backup. + + Regex Pattern: `^[a-zA-Z0-9_.-]+$` type: string tableName: description: |- diff --git a/config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml b/config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml index 1be5526..9a65ccc 100644 --- a/config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml +++ b/config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml @@ -43,7 +43,10 @@ spec: Represents the properties of a global table. properties: globalTableName: - description: The global table name. + description: |- + The global table name. + + Regex Pattern: `^[a-zA-Z0-9_.-]+$` type: string replicationGroup: description: The Regions where the global table needs to be created. diff --git a/config/crd/bases/dynamodb.services.k8s.aws_tables.yaml b/config/crd/bases/dynamodb.services.k8s.aws_tables.yaml index 634bac7..5cb696d 100644 --- a/config/crd/bases/dynamodb.services.k8s.aws_tables.yaml +++ b/config/crd/bases/dynamodb.services.k8s.aws_tables.yaml @@ -717,8 +717,10 @@ spec: type: string type: object tableID: - description: Unique identifier for the table for which the backup - was created. + description: |- + Unique identifier for the table for which the backup was created. + + Regex Pattern: `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$` type: string tableSizeBytes: description: |- diff --git a/go.mod b/go.mod index e036dcf..a833d51 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.24.1 require ( github.com/aws-controllers-k8s/kms-controller v1.0.21 - github.com/aws-controllers-k8s/runtime v0.46.1 + github.com/aws-controllers-k8s/runtime v0.47.0 github.com/aws/aws-sdk-go v1.49.0 github.com/aws/aws-sdk-go-v2 v1.36.0 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.39.8 diff --git a/go.sum b/go.sum index 831e865..a0a4e24 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/aws-controllers-k8s/kms-controller v1.0.21 h1:ar8gCdl/l7qbXzr48YN5tNq4vJbB5UqnRH7pAIkP3tI= github.com/aws-controllers-k8s/kms-controller v1.0.21/go.mod h1:tHFXV8lkrzautPPvQtPUJABPlJ9MXPRj8GB1UublGHQ= -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/aws-sdk-go v1.49.0 h1:g9BkW1fo9GqKfwg2+zCD+TW/D36Ux+vtfJ8guF4AYmY= github.com/aws/aws-sdk-go v1.49.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go-v2 v1.36.0 h1:b1wM5CcE65Ujwn565qcwgtOTT1aT4ADOHHgglKjG7fk= diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 54c3ece..d45d9fa 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 name: dynamodb-chart description: A Helm chart for the ACK service controller for Amazon DynamoDB (DynamoDB) -version: 1.4.5 -appVersion: 1.4.5 +version: 1.4.6 +appVersion: 1.4.6 home: https://github.com/aws-controllers-k8s/dynamodb-controller icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png sources: diff --git a/helm/crds/dynamodb.services.k8s.aws_backups.yaml b/helm/crds/dynamodb.services.k8s.aws_backups.yaml index 317d2dc..ba3c07b 100644 --- a/helm/crds/dynamodb.services.k8s.aws_backups.yaml +++ b/helm/crds/dynamodb.services.k8s.aws_backups.yaml @@ -63,7 +63,10 @@ spec: description: BackupSpec defines the desired state of Backup. properties: backupName: - description: Specified name for the backup. + description: |- + Specified name for the backup. + + Regex Pattern: `^[a-zA-Z0-9_.-]+$` type: string tableName: description: |- diff --git a/helm/crds/dynamodb.services.k8s.aws_globaltables.yaml b/helm/crds/dynamodb.services.k8s.aws_globaltables.yaml index 1be5526..9a65ccc 100644 --- a/helm/crds/dynamodb.services.k8s.aws_globaltables.yaml +++ b/helm/crds/dynamodb.services.k8s.aws_globaltables.yaml @@ -43,7 +43,10 @@ spec: Represents the properties of a global table. properties: globalTableName: - description: The global table name. + description: |- + The global table name. + + Regex Pattern: `^[a-zA-Z0-9_.-]+$` type: string replicationGroup: description: The Regions where the global table needs to be created. diff --git a/helm/crds/dynamodb.services.k8s.aws_tables.yaml b/helm/crds/dynamodb.services.k8s.aws_tables.yaml index cd2c243..951d6b8 100644 --- a/helm/crds/dynamodb.services.k8s.aws_tables.yaml +++ b/helm/crds/dynamodb.services.k8s.aws_tables.yaml @@ -721,8 +721,10 @@ spec: type: string type: object tableID: - description: Unique identifier for the table for which the backup - was created. + description: |- + Unique identifier for the table for which the backup was created. + + Regex Pattern: `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$` type: string tableSizeBytes: description: |- diff --git a/helm/templates/NOTES.txt b/helm/templates/NOTES.txt index c293cbb..3fe51cb 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/dynamodb-controller:1.4.5". +This chart deploys "public.ecr.aws/aws-controllers-k8s/dynamodb-controller:1.4.6". 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 b392e88..376240f 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,7 +4,7 @@ image: repository: public.ecr.aws/aws-controllers-k8s/dynamodb-controller - tag: 1.4.5 + tag: 1.4.6 pullPolicy: IfNotPresent pullSecrets: []