diff --git a/apis/v1alpha1/ack-generate-metadata.yaml b/apis/v1alpha1/ack-generate-metadata.yaml index cf63d1c..4c31832 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-02-18T00:02:41Z" - build_hash: 66c0f840b0bcf6f552be46cf5ee0fb95ad57053e - go_version: go1.23.6 - version: v0.43.0 -api_directory_checksum: dce3b3d892f7d14bb0c6346e782b1a284bd92856 + build_date: "2025-02-19T23:17:53Z" + build_hash: 8b426c490ff1984d8ce5577e11d6dabe1b6373b8 + go_version: go1.24.0 + version: v0.43.1 +api_directory_checksum: 973116c1251721e6ae7639c74b5603f6a0e09e27 api_version: v1alpha1 aws_sdk_go_version: v1.32.6 generator_config_info: diff --git a/apis/v1alpha1/repository.go b/apis/v1alpha1/repository.go index 8b51306..9a3772f 100644 --- a/apis/v1alpha1/repository.go +++ b/apis/v1alpha1/repository.go @@ -29,12 +29,15 @@ type RepositorySpec struct { // Public Gallery. The repository name can be specified on its own (for example // nginx-web-app) or prepended with a namespace to group the repository into // a category (for example project-a/nginx-web-app). + // +kubebuilder:validation:Required + Name *string `json:"name"` // The metadata that you apply to each repository to help categorize and organize // your repositories. Each tag consists of a key and an optional value. You // define both of them. Tag keys can have a maximum character length of 128 // characters, and tag values can have a maximum length of 256 characters. + Tags []*Tag `json:"tags,omitempty"` } @@ -45,7 +48,7 @@ type RepositoryStatus struct { // constructed ARN for the resource // +kubebuilder:validation:Optional ACKResourceMetadata *ackv1alpha1.ResourceMetadata `json:"ackResourceMetadata"` - // All CRS managed by ACK have a common `Status.Conditions` member that + // All CRs managed by ACK have a common `Status.Conditions` member that // contains a collection of `ackv1alpha1.Condition` objects that describe // the various terminal states of the CR and its backend AWS service API // resource diff --git a/config/controller/kustomization.yaml b/config/controller/kustomization.yaml index 6a15c91..39c9c1c 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/ecrpublic-controller - newTag: 1.0.5 + newTag: 1.0.6 diff --git a/config/crd/bases/ecrpublic.services.k8s.aws_repositories.yaml b/config/crd/bases/ecrpublic.services.k8s.aws_repositories.yaml index 6607381..bd9dca7 100644 --- a/config/crd/bases/ecrpublic.services.k8s.aws_repositories.yaml +++ b/config/crd/bases/ecrpublic.services.k8s.aws_repositories.yaml @@ -43,18 +43,8 @@ spec: An object representing a repository. properties: name: - description: |- - The name to use for the repository. This appears publicly in the Amazon ECR - Public Gallery. The repository name can be specified on its own (for example - nginx-web-app) or prepended with a namespace to group the repository into - a category (for example project-a/nginx-web-app). type: string tags: - description: |- - The metadata that you apply to each repository to help categorize and organize - your repositories. Each tag consists of a key and an optional value. You - define both of them. Tag keys can have a maximum character length of 128 - characters, and tag values can have a maximum length of 256 characters. items: description: |- The metadata that you apply to a resource to help you categorize and organize @@ -105,7 +95,7 @@ spec: type: object conditions: description: |- - All CRS managed by ACK have a common `Status.Conditions` member that + All CRs managed by ACK have a common `Status.Conditions` member that contains a collection of `ackv1alpha1.Condition` objects that describe the various terminal states of the CR and its backend AWS service API resource diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 61dca6e..7a73987 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 name: ecrpublic-chart description: A Helm chart for the ACK service controller for Amazon Elastic Container Registry Public (ECR Public) -version: 1.0.5 -appVersion: 1.0.5 +version: 1.0.6 +appVersion: 1.0.6 home: https://github.com/aws-controllers-k8s/ecrpublic-controller icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png sources: diff --git a/helm/crds/ecrpublic.services.k8s.aws_repositories.yaml b/helm/crds/ecrpublic.services.k8s.aws_repositories.yaml index 6607381..bd9dca7 100644 --- a/helm/crds/ecrpublic.services.k8s.aws_repositories.yaml +++ b/helm/crds/ecrpublic.services.k8s.aws_repositories.yaml @@ -43,18 +43,8 @@ spec: An object representing a repository. properties: name: - description: |- - The name to use for the repository. This appears publicly in the Amazon ECR - Public Gallery. The repository name can be specified on its own (for example - nginx-web-app) or prepended with a namespace to group the repository into - a category (for example project-a/nginx-web-app). type: string tags: - description: |- - The metadata that you apply to each repository to help categorize and organize - your repositories. Each tag consists of a key and an optional value. You - define both of them. Tag keys can have a maximum character length of 128 - characters, and tag values can have a maximum length of 256 characters. items: description: |- The metadata that you apply to a resource to help you categorize and organize @@ -105,7 +95,7 @@ spec: type: object conditions: description: |- - All CRS managed by ACK have a common `Status.Conditions` member that + All CRs managed by ACK have a common `Status.Conditions` member that contains a collection of `ackv1alpha1.Condition` objects that describe the various terminal states of the CR and its backend AWS service API resource diff --git a/helm/templates/NOTES.txt b/helm/templates/NOTES.txt index 3368c06..4e9a805 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/ecrpublic-controller:1.0.5". +This chart deploys "public.ecr.aws/aws-controllers-k8s/ecrpublic-controller:1.0.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 8698de6..1b0e22b 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,7 +4,7 @@ image: repository: public.ecr.aws/aws-controllers-k8s/ecrpublic-controller - tag: 1.0.5 + tag: 1.0.6 pullPolicy: IfNotPresent pullSecrets: [] diff --git a/pkg/resource/repository/sdk.go b/pkg/resource/repository/sdk.go index f088f59..bf57b2b 100644 --- a/pkg/resource/repository/sdk.go +++ b/pkg/resource/repository/sdk.go @@ -400,15 +400,3 @@ func (rm *resourceManager) terminalAWSError(err error) bool { // No terminal_errors specified for this resource in generator config return false } - -// getImmutableFieldChanges returns list of immutable fields from the -func (rm *resourceManager) getImmutableFieldChanges( - delta *ackcompare.Delta, -) []string { - var fields []string - if delta.DifferentAt("Spec.CreatedAt") { - fields = append(fields, "CreatedAt") - } - - return fields -}