GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — only update the deployment if desired labels, annotations or spec changes by dprotaso · Pull Request #16554 · knative/serving

Conversation

@dprotaso

@dprotaso dprotaso commented Apr 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #13204

Deployments are now only reconciled when a respective hash changes. The hash corresponds to labels, annotations and the deployment spec

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow knative-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2026
@knative-prow

knative-prow Bot commented Apr 19, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [dprotaso]
  • pkg/apis/OWNERS [dprotaso]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 19, 2026
@knative-prow
knative-prow Bot requested review from dsimansk and skonto April 19, 2026 02:33
@dprotaso dprotaso changed the title [wip] only update the deployment if labels, annotations or spec changes [wip] only update the deployment if desired labels, annotations or spec changes Apr 19, 2026
@dprotaso
dprotaso force-pushed the rev-hash branch from b48c234 to b7b9c63 Compare April 19, 2026 02:37
@dprotaso
Only update the deployment if desired labels, annotations or spec cha…
e89d091
…nges

We compute a hash of these properties and add it to the deployment as a
new label. When the hash changes then we know an update is required.
@dprotaso
dprotaso force-pushed the rev-hash branch from b7b9c63 to e89d091 Compare April 19, 2026 02:38
@codecov

codecov Bot commented Apr 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.18%. Comparing base (1017c2b) to head (51cae5f).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16554      +/-   ##
==========================================
+ Coverage   80.15%   80.18%   +0.02%     
==========================================
  Files         217      217              
  Lines       13547    13542       -5     
==========================================
  Hits        10859    10859              
  Misses       2319     2319              
+ Partials      369      364       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso
tweak hash to use base 36 (alpha numeric chars alpha (base 36))
c4aefa1
@dprotaso dprotaso mentioned this pull request Apr 19, 2026
Reduce deployment updates #16361
Closed
@dprotaso
run update-deps
ef21d16
@dprotaso dprotaso changed the title [wip] only update the deployment if desired labels, annotations or spec changes only update the deployment if desired labels, annotations or spec changes Apr 19, 2026
@knative-prow knative-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2026
@dprotaso

dprotaso commented Apr 19, 2026

Copy link
Copy Markdown
Member Author

/assign @linkvt

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned linkvt Apr 19, 2026
@dprotaso

dprotaso commented Apr 19, 2026

Copy link
Copy Markdown
Member Author

/retest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso

dprotaso commented Apr 19, 2026

Copy link
Copy Markdown
Member Author

dunno what's up with GKE

domain_mapping_test.go:70: Failed to create initial Service b-y-o-certificate-fwhfoffr: Internal error occurred: failed calling webhook "webhook.serving.knative.dev": failed to call webhook: Post "https://webhook.9a4b340c-3b89-4f3a-a8eb-c4b82fe3b71a.svc:443/defaulting?timeout=10s": No agent available

/retest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso

dprotaso commented Apr 19, 2026

Copy link
Copy Markdown
Member Author

/retest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

linkvt
linkvt reviewed Apr 20, 2026
View reviewed changes
Comment thread pkg/reconciler/revision/resources/deploy.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/reconciler/revision/resources/meta.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso
address PR feedback
51cae5f
@dprotaso

dprotaso commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

Test ran out of time

/retest

{"component":"entrypoint","file":"sigs.k8s.io/prow/pkg/entrypoint/run.go:169","func":"sigs.k8s.io/prow/pkg/entrypoint.Options.ExecuteProcess","level":"error","msg":"Process did not finish before 2h0m0s timeout","severity":"error","time":"2026-04-20T15:50:47Z"}

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@linkvt

linkvt commented Apr 21, 2026

Copy link
Copy Markdown
Member

/lgtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 21, 2026
@knative-prow
knative-prow Bot merged commit 441a4dc into knative:main Apr 21, 2026
62 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso
dprotaso deleted the rev-hash branch April 21, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dsimansk dsimansk Awaiting requested review from dsimansk
@skonto skonto Awaiting requested review from skonto
1 more reviewer
@linkvt linkvt linkvt left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@linkvt linkvt

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Revision reconciler always updates the Kubernetes Deployment

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dprotaso @linkvt
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.