GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: persistent deployer in func.yaml, block incompatible deployer switch, func delete removes f.Deploy values to match reality by gauron99 · Pull Request #3953 · knative/func Conversation
Contributor
global deployer
deployer switch
func delete change
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gauron99
requested review from
Copilot and
lkingland
and removed request for
Copilot,
dsimansk and
jrangelramos
gauron99
force-pushed
the
push-oymlnoorklvq
branch
from
91da09f to
88f644d
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pull request overviewThis PR makes deployer selection a first-class, globally configurable setting that is persisted into Changes:
Reviewed changesCopilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments. Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
gauron99
force-pushed
the
push-oymlnoorklvq
branch
from
88f644d to
7430589
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pull request overviewCopilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@ ## main #3953 +/- ## ========================================== + Coverage 54.26% 54.36% +0.10% ========================================== Files 203 204 +1 Lines 23915 23974 +59 ========================================== + Hits 12977 13033 +56 + Misses 9697 9696 -1 - Partials 1241 1245 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice! My only suggestion is to move most of that logic into core from the CLI pkg
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| // path-based delete clears both Deploy.Namespace and Deploy.Deployer - | ||
| // live-deployment state that's stale once undeployed. The next flagless | ||
| // deploy correctly falls back to the global config's deployer default. | ||
| func TestDelete_ByProjectClearsDeployedMarker(t *testing.T) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Likewise, this could be a test in core, because it would be doing this clearing for every deployer (even the mock on the test)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
to resolve the tension between unclear boundaries of func.yaml purpose in terms of "half status/ half declared intention" we introduced different means to interpret some keys. usually having one yaml key represent both is fine but sometimes its not. Sometime the current state is a dependency for some action. Knowing if a function was deployed is essential to deliver "was the deployer changed". We can determine if function was deployed by checking the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
02b00b7 to
446963e
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 25 out of 25 changed files in this pull request and generated 2 comments.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
446963e to
f844198
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 27 out of 27 changed files in this pull request and generated 2 comments.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎉
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauron99, lkingland The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
A pre-knative#3953 func.yaml recorded the deployer only under deploy.deployer. Deleting such a function clears the observed Deploy.Deployer, and with intent f.Deployer never populated the next deploy fell back to the default knative deployer via config.Apply. Promote the legacy observed value to top-level intent (explicit intent always wins); observed state is preserved. Fixes knative#4054 Signed-off-by: Elvand Lie Nababan <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.