From 7d7df2daa569b7220f9810733acee99e42ee03a8 Mon Sep 17 00:00:00 2001
From: Vishal Choudhary
Date: Thu, 2 Mar 2023 13:43:30 +0530
Subject: [PATCH] Removes the deprecated DeadLetterChannel in ChannelableStatus
(#6722)
Signed-off-by: Vishal Choudhary
Fixes #6720
## Proposed Changes
- :wastebasket: Remove feature or internal logic
- removes deprecated `DeadLetterChannel`
https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1/channelable_types.go#L70-L74
### Pre-review Checklist
- [x] **At least 80% unit test coverage**
- [x] **E2E tests** for any new behavior
- [ ] **Docs PR** for any user-facing impact
- [ ] **Spec PR** for any new API feature
- [ ] **Conformance test** for any change to the spec
**Release Note**
```release-note
removes deprecated DeadLetterChannel in favor of DeliveryStatus
```
**Docs**
---------
Signed-off-by: Vishal Choudhary
---
docs/eventing-api.md | 16 ----------------
pkg/apis/duck/v1/channelable_types.go | 5 -----
pkg/apis/duck/v1/zz_generated.deepcopy.go | 5 -----
3 files changed, 26 deletions(-)
diff --git a/docs/eventing-api.md b/docs/eventing-api.md
index c68ff38c26e..f4504edb0c1 100644
--- a/docs/eventing-api.md
+++ b/docs/eventing-api.md
@@ -282,22 +282,6 @@ DeliveryStatus
resolved delivery options.
-
-
-deadLetterChannel
-
-
-knative.dev/pkg/apis/duck/v1.KReference
-
-
- |
-
-(Optional)
- DeadLetterChannel is a KReference and is set by the channel when it supports native error handling via a channel
-Failed messages are delivered here.
-Deprecated in favor of DeliveryStatus, to be removed September 2022.
- |
-
DeliverySpec
diff --git a/pkg/apis/duck/v1/channelable_types.go b/pkg/apis/duck/v1/channelable_types.go
index 39784fcaf96..fef82764dea 100644
--- a/pkg/apis/duck/v1/channelable_types.go
+++ b/pkg/apis/duck/v1/channelable_types.go
@@ -67,11 +67,6 @@ type ChannelableStatus struct {
// resolved delivery options.
// +optional
DeliveryStatus `json:",inline"`
- // DeadLetterChannel is a KReference and is set by the channel when it supports native error handling via a channel
- // Failed messages are delivered here.
- // Deprecated in favor of DeliveryStatus, to be removed September 2022.
- // +optional
- DeadLetterChannel *duckv1.KReference `json:"deadLetterChannel,omitempty"`
}
var (
diff --git a/pkg/apis/duck/v1/zz_generated.deepcopy.go b/pkg/apis/duck/v1/zz_generated.deepcopy.go
index 1ba69456ef2..d91a3ff6287 100644
--- a/pkg/apis/duck/v1/zz_generated.deepcopy.go
+++ b/pkg/apis/duck/v1/zz_generated.deepcopy.go
@@ -117,11 +117,6 @@ func (in *ChannelableStatus) DeepCopyInto(out *ChannelableStatus) {
in.AddressStatus.DeepCopyInto(&out.AddressStatus)
in.SubscribableStatus.DeepCopyInto(&out.SubscribableStatus)
in.DeliveryStatus.DeepCopyInto(&out.DeliveryStatus)
- if in.DeadLetterChannel != nil {
- in, out := &in.DeadLetterChannel, &out.DeadLetterChannel
- *out = new(duckv1.KReference)
- **out = **in
- }
return
}