Skip to content

Conversation

sunjayBhatia
Copy link
Member

Includes fixes that ensure compatibility with k8s 1.27 clusters

See kubernetes/kubernetes#118361 for context

Includes fixes that ensure compatibility with k8s 1.27 clusters

See kubernetes/kubernetes#118361 for context

Signed-off-by: Sunjay Bhatia <[email protected]>
@sunjayBhatia sunjayBhatia added the release-note/none-required Marks a PR as not requiring a release note. Should only be used for very small changes. label Jul 26, 2023
@sunjayBhatia sunjayBhatia requested a review from a team as a code owner July 26, 2023 20:43
@sunjayBhatia sunjayBhatia requested review from tsaarni and stevesloka and removed request for a team July 26, 2023 20:43
@sunjayBhatia sunjayBhatia changed the title Bump client-go to 1.26.7 release-1.25: Bump client-go to 1.26.7 Jul 26, 2023
@sunjayBhatia sunjayBhatia requested a review from skriss July 26, 2023 20:45
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #5595 (8924795) into release-1.25 (830849a) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##           release-1.25    #5595   +/-   ##
=============================================
  Coverage         77.84%   77.85%           
=============================================
  Files               138      138           
  Lines             18296    18294    -2     
=============================================
  Hits              14243    14243           
+ Misses             3779     3777    -2     
  Partials            274      274           
Files Changed Coverage Δ
cmd/contour/serve.go 19.48% <0.00%> (+0.04%) ⬆️

Further compatibility with 1.27

Signed-off-by: Sunjay Bhatia <[email protected]>
// Returning error will avoid handlers from being called.
// This does not avoid caching.
return nil, fmt.Errorf("ignoring secret %s/%s of type %s", secret.Namespace, secret.Name, secret.Type)
return secret, nil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can't return an error here with the updated handling of the transformer func, see: kubernetes/client-go@fffc68d

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks consistent with what we did when we upgraded to 1.27 deps (#5362), 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contour informers don't sync and this error is repeatedly logged without this

time="2023-07-26T20:27:34Z" level=error msg="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:169: Failed to watch *v1.Secret: unable to sync list result: couldn't enqueue object: ignoring secret kube-system/bootstrap-token-abcdef of type bootstrap.kubernetes.io/token\n" caller="reflector.go:140" context=kubernetes error="<nil>"

Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for sorting this out @sunjayBhatia

@sunjayBhatia sunjayBhatia merged commit 2e9e61b into projectcontour:release-1.25 Jul 26, 2023
@sunjayBhatia sunjayBhatia deleted the 1.25-bump-client-go branch July 26, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/none-required Marks a PR as not requiring a release note. Should only be used for very small changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants