-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore: move event reasons to the package and as constants #1915
base: main
Are you sure you want to change the base?
chore: move event reasons to the package and as constants #1915
Conversation
Signed-off-by: flavono123 <flavono123@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: flavono123 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 |
Welcome @flavono123! |
Hi @flavono123. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
when i tried a local test with the package i fixed, seems some settings are required concerned with kubebuilder, but it is not covered in any docs or different with a normal kubebuilder installation. how can i test in my local?: ❯ go test ./pkg/controllers/disruption/
Running Suite: Disruption - /Users/hansuk.hong/T/karpenter/pkg/controllers/disruption
=====================================================================================
Random Seed: 1736918483
Will run 175 of 175 specs
------------------------------
[BeforeSuite] [PANICKED] [0.015 seconds]
[BeforeSuite]
/Users/hansuk.hong/T/karpenter/pkg/controllers/disruption/suite_test.go:90
[PANICKED] Test Panicked
In [BeforeSuite] at: /Users/hansuk.hong/go/1.23.4/pkg/mod/github.com/samber/lo@v1.47.0/errors.go:53 @ 01/15/25 14:21:24.002
unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory
Full Stack Trace
github.com/samber/lo.must({0x1027b2be0, 0x140000ca340}, {0x0, 0x0, 0x0})
/Users/hansuk.hong/go/1.23.4/pkg/mod/github.com/samber/lo@v1.47.0/errors.go:53 +0x1cc
github.com/samber/lo.Must[...](...)
/Users/hansuk.hong/go/1.23.4/pkg/mod/github.com/samber/lo@v1.47.0/errors.go:65
sigs.k8s.io/karpenter/pkg/test.NewEnvironment({0x140002f7748?, 0x0?, 0x0?})
/Users/hansuk.hong/T/karpenter/pkg/test/environment.go:133 +0x304
sigs.k8s.io/karpenter/pkg/controllers/disruption_test.init.func4()
/Users/hansuk.hong/T/karpenter/pkg/controllers/disruption/suite_test.go:91 +0xa8
------------------------------
[AfterSuite] [PANICKED] [0.000 seconds]
[AfterSuite]
/Users/hansuk.hong/T/karpenter/pkg/controllers/disruption/suite_test.go:104
[PANICKED] Test Panicked
In [AfterSuite] at: /Users/hansuk.hong/.goenv/versions/1.23.4/src/runtime/panic.go:262 @ 01/15/25 14:21:24.002
runtime error: invalid memory address or nil pointer dereference
Full Stack Trace
sigs.k8s.io/karpenter/pkg/test.(*Environment).Stop(0x0)
/Users/hansuk.hong/T/karpenter/pkg/test/environment.go:169 +0x1c
sigs.k8s.io/karpenter/pkg/controllers/disruption_test.init.func5()
/Users/hansuk.hong/T/karpenter/pkg/controllers/disruption/suite_test.go:105 +0x24
------------------------------
Summarizing 2 Failures:
[PANICKED!] [BeforeSuite]
/Users/hansuk.hong/go/1.23.4/pkg/mod/github.com/samber/lo@v1.47.0/errors.go:53
[PANICKED!] [AfterSuite]
/Users/hansuk.hong/.goenv/versions/1.23.4/src/runtime/panic.go:262
Ran 0 of 175 Specs in 0.015 seconds
FAIL! -- A BeforeSuite node failed so all tests were skipped.
--- FAIL: TestAPIs (0.02s)
FAIL
FAIL sigs.k8s.io/karpenter/pkg/controllers/disruption 0.536s
FAIL |
/assign @jigisha620 |
@engedaam: GitHub didn't allow me to assign the following users: jigisha620. Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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. |
Looking into the changes. |
/assign @jigisha620 |
/ok-to-test |
Fixes #1897
Description
events
events
is enough overapis
or under thatHow was this change tested?
events
package."InsufficientCapacityError"
which also is incloudprovider/metrics
package.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.