-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add some note about generated file to unversioned_feature_list.yaml& versioned_feature_list.yaml #127297
base: master
Are you sure you want to change the base?
Conversation
Hi @liangyuanpeng. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
ff9eb6f
to
f1a4a10
Compare
/assign @BenTheElder @jpbetz |
/lgtm |
LGTM label has been added. Git tree hash: c33f465761278d5b6aaf2fbf050801be9f968072
|
/triage accepted |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jpbetz, liangyuanpeng The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…versioned_feature_list.yaml Signed-off-by: Lan Liang <gcslyp@gmail.com>
f1a4a10
to
c5248b4
Compare
New changes are detected. LGTM label has been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebased to resolve conflict.
Needs approval from an approver in each of these files:
hack/OWNERS
test/featuregates_linter/OWNERS[jpbetz]
test/featuregates_linter/test_data/OWNERS[jpbetz]
looking for approval for hack
cc @liggitt @BenTheElder thank you!
@@ -28,3 +28,5 @@ source "${KUBE_ROOT}/hack/lib/init.sh" | |||
cd "${KUBE_ROOT}" | |||
|
|||
go run test/featuregates_linter/main.go feature-gates update | |||
sed -i '1i\# This is a generated file. Do not edit directly.\n# Run hack/update-featuregates.sh to update it.' test/featuregates_linter/test_data/versioned_feature_list.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be emitted by go run test/featuregates_linter/main.go feature-gates update
, so we can have verify confirm that these lines exist?
kubernetes/hack/verify-featuregates.sh
Line 31 in e9cde03
go run test/featuregates_linter/main.go feature-gates verify |
Right now we won't fail presubmit if someone edits these lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me understand what you mean, you mean to put the text lines into the update and verify logic as well? Even though it has nothing to do with featuregate.
How is the way people modify text in hack/update-featuregates.sh
different from how they modify text in code?
The reason I didn't put the logic into the code is because I didn't want to make the code more complicated, but I'd be happy to do that if necessary.
kubernetes/test/featuregates_linter/cmd/feature_gates.go
Lines 162 to 166 in 99ff62e
data, err := yaml.Marshal(featureList) | |
if err != nil { | |
return err | |
} | |
return os.WriteFile(filePath, data, 0644) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the way people modify text in hack/update-featuregates.sh different from how they modify text in code?
One place that makes sense is let go run test/featuregates_linter/main.go feature-gates verify
working for featuregate and text lines.
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
for tell people that unversioned_feature_list.yaml&versioned_feature_list.yaml is updated automatically and not edited manually
xref #127185 (comment)
/assign @Jefftree
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: