-
Notifications
You must be signed in to change notification settings - Fork 771
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
pub support custom workload #982
Conversation
"k8s.io/client-go/discovery" | ||
"k8s.io/client-go/dynamic" | ||
clientset "k8s.io/client-go/kubernetes" | ||
"k8s.io/client-go/scale" |
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.
ST1019: package "k8s.io/client-go/scale" is being imported more than once
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
@@ -18,7 +18,6 @@ package controllerfinder | |||
|
|||
import ( | |||
"context" |
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.
goimports: File is not goimports
-ed
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
main.go
Outdated
@@ -18,6 +18,7 @@ package main | |||
|
|||
import ( | |||
"flag" | |||
"github.com/openkruise/kruise/pkg/util/controllerfinder" |
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.
goimports: File is not goimports
-ed
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
11ea421
to
cf71458
Compare
@@ -18,6 +18,9 @@ package validating | |||
|
|||
import ( | |||
"context" |
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.
goimports: File is not goimports
-ed
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
cf71458
to
856255b
Compare
a288bfa
to
b1f4f48
Compare
b1f4f48
to
53db277
Compare
53db277
to
27d112c
Compare
/lgtm |
return nil, 0, nil | ||
} | ||
workloadReplicas = obj.Scale | ||
workloadUIDs = append(workloadUIDs, obj.UID) | ||
// Deployment and others crds |
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.
there is special logic to extract replicaset for deployment, is it better to separate deployment handling from general scale resource handling?
const ( | ||
// PubProtectOperationAnnotation indicates the pub protected Operation[DELETE,UPDATE] | ||
// the following indicates the pub only protect DELETE Operation | ||
// annotations[kruise.io/pub-protect-operations]=DELETE |
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.
please demonstrate how to protect multiple operation explicitly
kruise.io/pub-protect-operations: DELETE,UPDATE
27d112c
to
95844ce
Compare
test/e2e/apps/daemonset.go
Outdated
@@ -55,7 +55,7 @@ var _ = SIGDescribe("DaemonSet", func() { | |||
*/ | |||
framework.ConformanceIt("should run and stop simple daemon", func() { | |||
label := map[string]string{framework.DaemonSetNameLabel: dsName} | |||
|
|||
fmt.Println("start") |
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.
remote temp code
Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com>
95844ce
to
7697962
Compare
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.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FillZpp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com> Signed-off-by: Liu Zhenwei <zwliu@thoughtworks.com>
Signed-off-by: liheng.zms liheng.zms@alibaba-inc.com
Ⅰ. Describe what this PR does
annotations[kruise.io/pub-feature-gate]='PodUnavailableBudgetUpdateGate=false,PodUnavailableBudgetDeleteGate=true'