Skip to content

Commit c40ba8f

Browse files
committed
Add update operations for VolumeSize, InstanceType, and BrokerCount
Also added reconcile before deletion attempt if cluster is not active. Before, if we tried deleting a cluster that was not active, the controller would set it to terminal, and does not reconcile.
1 parent acdc0c7 commit c40ba8f

17 files changed

+235
-22
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-02-20T18:10:11Z"
2+
build_date: "2025-02-27T21:18:28Z"
33
build_hash: a326346bd3a6973254d247c9ab2dc76790c36241
44
go_version: go1.24.0
55
version: v0.43.2
6-
api_directory_checksum: eda989f20dde9f1b4331ffa67dc3b9a5ef0d64e4
6+
api_directory_checksum: 36fbfad1e0bff98a14b120ba292a7f6b4e546fb4
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 5ea49df43c7aef08a9ac8b7171e9f50c3ed82e13
10+
file_checksum: c641b5dd9aa81f1f42655f2afe9fcfb9dc7de696
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/cluster.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ resources:
2323
CreateCluster:
2424
input_fields:
2525
ClusterName: Name
26+
DescribeCluster:
27+
input_fields:
28+
ClusterName: Name
2629
hooks:
2730
sdk_read_one_post_set_output:
2831
template_path: hooks/cluster/sdk_read_one_post_set_output.go.tpl
@@ -95,6 +98,11 @@ resources:
9598
BootstrapBrokerStringVpcConnectivityTls:
9699
type: string
97100
is_read_only: true
101+
CurrentVersion:
102+
from:
103+
operation: DescribeCluster
104+
path: ClusterInfo.CurrentVersion
105+
is_read_only: true
98106
tags:
99107
# TODO(jaypipes): Ignore tags for now... we will add support later
100108
ignore: true

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/controller/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/kafka-controller
9-
newTag: 1.0.5
9+
newTag: 1.0.2

config/crd/bases/kafka.services.k8s.aws_clusters.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ spec:
356356
- type
357357
type: object
358358
type: array
359+
currentVersion:
360+
description: The current version of the MSK cluster.
361+
type: string
359362
state:
360363
description: |-
361364
The state of the cluster. The possible states are ACTIVE, CREATING, DELETING,

generator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ resources:
2323
CreateCluster:
2424
input_fields:
2525
ClusterName: Name
26+
DescribeCluster:
27+
input_fields:
28+
ClusterName: Name
2629
hooks:
2730
sdk_read_one_post_set_output:
2831
template_path: hooks/cluster/sdk_read_one_post_set_output.go.tpl
@@ -95,6 +98,11 @@ resources:
9598
BootstrapBrokerStringVpcConnectivityTls:
9699
type: string
97100
is_read_only: true
101+
CurrentVersion:
102+
from:
103+
operation: DescribeCluster
104+
path: ClusterInfo.CurrentVersion
105+
is_read_only: true
98106
tags:
99107
# TODO(jaypipes): Ignore tags for now... we will add support later
100108
ignore: true

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: kafka-chart
33
description: A Helm chart for the ACK service controller for Amazon Managed Streaming for Apache Kafka (MSK)
4-
version: 1.0.5
5-
appVersion: 1.0.5
4+
version: 1.0.2
5+
appVersion: 1.0.2
66
home: https://github.com/aws-controllers-k8s/kafka-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

helm/crds/kafka.services.k8s.aws_clusters.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ spec:
356356
- type
357357
type: object
358358
type: array
359+
currentVersion:
360+
description: The current version of the MSK cluster.
361+
type: string
359362
state:
360363
description: |-
361364
The state of the cluster. The possible states are ACTIVE, CREATING, DELETING,

helm/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ .Chart.Name }} has been installed.
2-
This chart deploys "public.ecr.aws/aws-controllers-k8s/kafka-controller:1.0.5".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/kafka-controller:1.0.2".
33

44
Check its status by running:
55
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"

0 commit comments

Comments
 (0)