Skip to content

Commit 96899ff

Browse files
committed
feat(rollout): Add support for Strimzi KafkaConnect as a rolloutrestart target
1 parent 2104ea0 commit 96899ff

19 files changed

Lines changed: 161 additions & 13 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Unreleased
2+
3+
Enhancements:
4+
* Support rollout-restart of Strimzi `KafkaConnect` resources: ([#TBD](https://github.com/hashicorp/vault-secrets-operator/pull/TBD))
5+
6+
17
## 1.4.0 (May 5th, 2026)
28

39
Fix:

api/v1beta1/common.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ type Destination struct {
4444
// with a timestamp value of when the trigger was executed.
4545
// E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
4646
//
47-
// Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
47+
// For Strimzi KafkaConnect the annotation is instead applied to
48+
// 'spec.template.pod.metadata.annotations', which is where Strimzi propagates
49+
// pod-level annotations from.
50+
//
51+
// Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
4852
type RolloutRestartTarget struct {
4953
// Kind of the resource
50-
// +kubebuilder:validation:Enum={Deployment,DaemonSet,StatefulSet,argo.Rollout}
54+
// +kubebuilder:validation:Enum={Deployment,DaemonSet,StatefulSet,argo.Rollout,KafkaConnect}
5155
Kind string `json:"kind"`
5256
// Name of the resource
5357
Name string `json:"name"`

chart/crds/secrets.hashicorp.com_hcpvaultsecretsapps.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ spec:
225225
with a timestamp value of when the trigger was executed.
226226
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
227227
228-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
228+
For Strimzi KafkaConnect the annotation is instead applied to
229+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
230+
pod-level annotations from.
231+
232+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
229233
properties:
230234
kind:
231235
description: Kind of the resource
@@ -234,6 +238,7 @@ spec:
234238
- DaemonSet
235239
- StatefulSet
236240
- argo.Rollout
241+
- KafkaConnect
237242
type: string
238243
name:
239244
description: Name of the resource

chart/crds/secrets.hashicorp.com_vaultdynamicsecrets.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,11 @@ spec:
289289
with a timestamp value of when the trigger was executed.
290290
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
291291
292-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
292+
For Strimzi KafkaConnect the annotation is instead applied to
293+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
294+
pod-level annotations from.
295+
296+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
293297
properties:
294298
kind:
295299
description: Kind of the resource
@@ -298,6 +302,7 @@ spec:
298302
- DaemonSet
299303
- StatefulSet
300304
- argo.Rollout
305+
- KafkaConnect
301306
type: string
302307
name:
303308
description: Name of the resource

chart/crds/secrets.hashicorp.com_vaultpkisecrets.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,11 @@ spec:
306306
with a timestamp value of when the trigger was executed.
307307
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
308308
309-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
309+
For Strimzi KafkaConnect the annotation is instead applied to
310+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
311+
pod-level annotations from.
312+
313+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
310314
properties:
311315
kind:
312316
description: Kind of the resource
@@ -315,6 +319,7 @@ spec:
315319
- DaemonSet
316320
- StatefulSet
317321
- argo.Rollout
322+
- KafkaConnect
318323
type: string
319324
name:
320325
description: Name of the resource

chart/crds/secrets.hashicorp.com_vaultstaticsecrets.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ spec:
250250
with a timestamp value of when the trigger was executed.
251251
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
252252
253-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
253+
For Strimzi KafkaConnect the annotation is instead applied to
254+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
255+
pod-level annotations from.
256+
257+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
254258
properties:
255259
kind:
256260
description: Kind of the resource
@@ -259,6 +263,7 @@ spec:
259263
- DaemonSet
260264
- StatefulSet
261265
- argo.Rollout
266+
- KafkaConnect
262267
type: string
263268
name:
264269
description: Name of the resource

chart/templates/role.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ rules:
7474
- list
7575
- patch
7676
- watch
77+
- apiGroups:
78+
- kafka.strimzi.io
79+
resources:
80+
- kafkaconnects
81+
verbs:
82+
- get
83+
- list
84+
- patch
85+
- watch
7786
- apiGroups:
7887
- secrets.hashicorp.com
7988
resources:

config/crd/bases/secrets.hashicorp.com_hcpvaultsecretsapps.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ spec:
225225
with a timestamp value of when the trigger was executed.
226226
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
227227
228-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
228+
For Strimzi KafkaConnect the annotation is instead applied to
229+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
230+
pod-level annotations from.
231+
232+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
229233
properties:
230234
kind:
231235
description: Kind of the resource
@@ -234,6 +238,7 @@ spec:
234238
- DaemonSet
235239
- StatefulSet
236240
- argo.Rollout
241+
- KafkaConnect
237242
type: string
238243
name:
239244
description: Name of the resource

config/crd/bases/secrets.hashicorp.com_vaultdynamicsecrets.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,11 @@ spec:
289289
with a timestamp value of when the trigger was executed.
290290
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
291291
292-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
292+
For Strimzi KafkaConnect the annotation is instead applied to
293+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
294+
pod-level annotations from.
295+
296+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
293297
properties:
294298
kind:
295299
description: Kind of the resource
@@ -298,6 +302,7 @@ spec:
298302
- DaemonSet
299303
- StatefulSet
300304
- argo.Rollout
305+
- KafkaConnect
301306
type: string
302307
name:
303308
description: Name of the resource

config/crd/bases/secrets.hashicorp.com_vaultpkisecrets.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,11 @@ spec:
306306
with a timestamp value of when the trigger was executed.
307307
E.g. vso.secrets.hashicorp.com/restartedAt: "2023-03-23T13:39:31Z"
308308
309-
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout
309+
For Strimzi KafkaConnect the annotation is instead applied to
310+
'spec.template.pod.metadata.annotations', which is where Strimzi propagates
311+
pod-level annotations from.
312+
313+
Supported resources: Deployment, DaemonSet, StatefulSet, argo.Rollout, KafkaConnect
310314
properties:
311315
kind:
312316
description: Kind of the resource
@@ -315,6 +319,7 @@ spec:
315319
- DaemonSet
316320
- StatefulSet
317321
- argo.Rollout
322+
- KafkaConnect
318323
type: string
319324
name:
320325
description: Name of the resource

0 commit comments

Comments
 (0)