Skip to content

Commit

Permalink
Update to ACK runtime v0.36.0, code-generator v0.36.0 (#191)
Browse files Browse the repository at this point in the history
### Update to ACK runtime `v0.36.0`, code-generator `v0.36.0`

----------

* ACK code-generator `v0.36.0` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.36.0)
* ACK runtime `v0.36.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.36.0)

----------

NOTE:
This PR increments the release version of service controller from `v1.4.2` to `v1.4.3`

Once this PR is merged, release `v1.4.3` will be automatically created for `rds-controller`

**Please close this PR, if you do not want the new patch release for `rds-controller`**

----------

#### stdout for `make build-controller`:

```
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
Updating additional GitHub repository maintenance files
==== building rds-controller release artifacts ====
Building release artifacts for rds-v1.4.3
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds
```

----------

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
ack-bot authored Aug 6, 2024
1 parent e7d9e4c commit 93a52ca
Show file tree
Hide file tree
Showing 25 changed files with 160 additions and 43 deletions.
6 changes: 3 additions & 3 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ack_generate_info:
build_date: "2024-07-19T23:02:13Z"
build_hash: f0a0f42d507c550c2b063a192b3b43e4522bdd9c
build_date: "2024-08-06T02:47:49Z"
build_hash: 587b90dc860e91ee9a763e9e3bc4d3f1b2fbddb7
go_version: go1.22.5
version: v0.35.0
version: v0.36.0
api_directory_checksum: 721d07f7f5c29de8a1c65268e497be355ee1b3fd
api_version: v1alpha1
aws_sdk_go_version: v1.44.232
Expand Down
2 changes: 1 addition & 1 deletion config/controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ kind: Kustomization
images:
- name: controller
newName: public.ecr.aws/aws-controllers-k8s/rds-controller
newTag: 1.4.2
newTag: 1.4.3
10 changes: 10 additions & 0 deletions config/crd/bases/rds.services.k8s.aws_dbclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSubnetGroupName:
Expand Down Expand Up @@ -261,6 +263,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSystemID:
Expand Down Expand Up @@ -598,6 +602,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
manageMasterUserPassword:
Expand Down Expand Up @@ -695,6 +701,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
masterUsername:
Expand Down Expand Up @@ -1153,6 +1161,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/rds.services.k8s.aws_dbclustersnapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbClusterSnapshotIdentifier:
Expand Down
10 changes: 10 additions & 0 deletions config/crd/bases/rds.services.k8s.aws_dbinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSnapshotIdentifier:
Expand Down Expand Up @@ -617,6 +619,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
deletionProtection:
Expand Down Expand Up @@ -963,6 +967,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
licenseModel:
Expand Down Expand Up @@ -1095,6 +1101,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
masterUsername:
Expand Down Expand Up @@ -1850,6 +1858,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/rds.services.k8s.aws_dbsnapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSnapshotIdentifier:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/rds.services.k8s.aws_dbsubnetgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.22.5
require (
github.com/aws-controllers-k8s/ec2-controller v1.1.2
github.com/aws-controllers-k8s/kms-controller v1.0.8
github.com/aws-controllers-k8s/runtime v0.35.0
github.com/aws-controllers-k8s/runtime v0.36.0
github.com/aws/aws-sdk-go v1.49.0
github.com/go-logr/logr v1.4.1
github.com/samber/lo v1.37.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/aws-controllers-k8s/ec2-controller v1.1.2 h1:Bry62L279S7mJofk0sS4o7T7
github.com/aws-controllers-k8s/ec2-controller v1.1.2/go.mod h1:XZOZcSk0tzplY+A0dADqD4NK4a8g8Jqwf/Ouv2Sz/eQ=
github.com/aws-controllers-k8s/kms-controller v1.0.8 h1:nDPYQhsgD2s14rEMNmGCwkm+e0Emjo/Usl3is7e9EFk=
github.com/aws-controllers-k8s/kms-controller v1.0.8/go.mod h1:HjSBjtiljNL1yFzrOizxeQe2+88tW3mHD5fnEGwVYGE=
github.com/aws-controllers-k8s/runtime v0.35.0 h1:kLRLFOAcaFJRv/aEiWtb0qhlxFpwvmx6shCWNc1Tuas=
github.com/aws-controllers-k8s/runtime v0.35.0/go.mod h1:gI2pWb20UGLP2SnHf1a1VzTd7iVVy+/I9VAzT0Y+Dew=
github.com/aws-controllers-k8s/runtime v0.36.0 h1:XEMVGfUwsT9QMShihuCLHlape+daJWyYtXj45s/iJiU=
github.com/aws-controllers-k8s/runtime v0.36.0/go.mod h1:gI2pWb20UGLP2SnHf1a1VzTd7iVVy+/I9VAzT0Y+Dew=
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/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
Expand Down
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
name: rds-chart
description: A Helm chart for the ACK service controller for Amazon Relational Database Service (RDS)
version: 1.4.2
appVersion: 1.4.2
version: 1.4.3
appVersion: 1.4.3
home: https://github.com/aws-controllers-k8s/rds-controller
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
sources:
Expand Down
10 changes: 10 additions & 0 deletions helm/crds/rds.services.k8s.aws_dbclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSubnetGroupName:
Expand Down Expand Up @@ -261,6 +263,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSystemID:
Expand Down Expand Up @@ -598,6 +602,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
manageMasterUserPassword:
Expand Down Expand Up @@ -695,6 +701,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
masterUsername:
Expand Down Expand Up @@ -1153,6 +1161,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
Expand Down
2 changes: 2 additions & 0 deletions helm/crds/rds.services.k8s.aws_dbclustersnapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbClusterSnapshotIdentifier:
Expand Down
10 changes: 10 additions & 0 deletions helm/crds/rds.services.k8s.aws_dbinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSnapshotIdentifier:
Expand Down Expand Up @@ -617,6 +619,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
deletionProtection:
Expand Down Expand Up @@ -963,6 +967,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
licenseModel:
Expand Down Expand Up @@ -1095,6 +1101,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
masterUsername:
Expand Down Expand Up @@ -1850,6 +1858,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
Expand Down
2 changes: 2 additions & 0 deletions helm/crds/rds.services.k8s.aws_dbsnapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
dbSnapshotIdentifier:
Expand Down
2 changes: 2 additions & 0 deletions helm/crds/rds.services.k8s.aws_dbsubnetgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ spec:
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ .Chart.Name }} has been installed.
This chart deploys "public.ecr.aws/aws-controllers-k8s/rds-controller:1.4.2".
This chart deploys "public.ecr.aws/aws-controllers-k8s/rds-controller:1.4.3".

Check its status by running:
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"
Expand Down
11 changes: 10 additions & 1 deletion helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,13 @@ rules:
- get
- patch
- update
{{- end }}
{{- end }}

{{/* Convert k/v map to string like: "key1=value1,key2=value2,..." */}}
{{- define "ack-rds-controller.feature-gates" -}}
{{- $list := list -}}
{{- range $k, $v := .Values.featureGates -}}
{{- $list = append $list (printf "%s=%s" $k ( $v | toString)) -}}
{{- end -}}
{{ join "," $list }}
{{- end -}}
8 changes: 8 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ spec:
{{- range $key, $value := .Values.reconcile.resourceMaxConcurrentSyncs }}
- --reconcile-resource-max-concurrent-syncs
- "$(RECONCILE_RESOURCE_MAX_CONCURRENT_SYNCS_{{ $key | upper }})"
{{- end }}
{{- if .Values.featureGates}}
- --feature-gates
- "$(FEATURE_GATES)"
{{- end }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down Expand Up @@ -122,6 +126,10 @@ spec:
{{- range $key, $value := .Values.reconcile.resourceMaxConcurrentSyncs }}
- name: RECONCILE_RESOURCE_MAX_CONCURRENT_SYNCS_{{ $key | upper }}
value: {{ $key }}={{ $value }}
{{- end }}
{{- if .Values.featureGates}}
- name: FEATURE_GATES
value: {{ include "ack-rds-controller.feature-gates" . }}
{{- end }}
{{- if .Values.aws.credentials.secretName }}
- name: AWS_SHARED_CREDENTIALS_FILE
Expand Down
7 changes: 7 additions & 0 deletions helm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@
"type": "object"
}
},
"featureGates": {
"description": "Feature gates settings",
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"required": [
"image",
"deployment",
Expand Down
9 changes: 8 additions & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

image:
repository: public.ecr.aws/aws-controllers-k8s/rds-controller
tag: 1.4.2
tag: 1.4.3
pullPolicy: IfNotPresent
pullSecrets: []

Expand Down Expand Up @@ -153,3 +153,10 @@ leaderElection:
# will attempt to use the namespace of the service account mounted to the Controller
# pod.
namespace: ""

# Configuration for feature gates. These are optional controller features that
# can be individually enabled ("true") or disabled ("false") by adding key/value
# pairs below.
featureGates: {}
# featureGate1: true
# featureGate2: false
Loading

0 comments on commit 93a52ca

Please sign in to comment.