forked from knative-extensions/eventing-kafka-broker
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-v1.14] workaround DeepDerivative CreationTimestamp comparison (
#1305) * workaround DeepDerivative CreationTimestamp comparison * add patch for eventing_auth_serviceaccount_creationtimestamp.patch * add patch to generate-release
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
openshift/patches/eventing_auth_serviceaccount_creationtimestamp.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/vendor/knative.dev/eventing/pkg/auth/serviceaccount.go b/vendor/knative.dev/eventing/pkg/auth/serviceaccount.go | ||
index 5b98d61c7..12e0fe130 100644 | ||
--- a/vendor/knative.dev/eventing/pkg/auth/serviceaccount.go | ||
+++ b/vendor/knative.dev/eventing/pkg/auth/serviceaccount.go | ||
@@ -109,6 +109,9 @@ func EnsureOIDCServiceAccountExistsForResource(ctx context.Context, serviceAccou | ||
return fmt.Errorf("service account %s not owned by %s %s", sa.Name, gvk.Kind, objectMeta.Name) | ||
} | ||
|
||
+ // DeepDerivative does not understand default metav1.Time{} as an empty value | ||
+ expected.CreationTimestamp = sa.CreationTimestamp | ||
+ | ||
if !equality.Semantic.DeepDerivative(expected, sa) { | ||
expected.ResourceVersion = sa.ResourceVersion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters