mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-08-03 00:00:02 +08:00
feat(sample-controller): use update status
Signed-off-by: Frank Yang <yangpoan@gmail.com> Kubernetes-commit: 01e9c80d90c5a6da8278d0785ef583e01f901c1e
This commit is contained in:
committed by
Kubernetes Publisher
parent
44e50f65ab
commit
0edb970c17
+1
-3
@@ -236,9 +236,7 @@ func (f *fixture) expectUpdateDeploymentAction(d *apps.Deployment) {
|
||||
}
|
||||
|
||||
func (f *fixture) expectUpdateFooStatusAction(foo *samplecontroller.Foo) {
|
||||
action := core.NewUpdateAction(schema.GroupVersionResource{Resource: "foos"}, foo.Namespace, foo)
|
||||
// TODO: Until #38113 is merged, we can't use Subresource
|
||||
//action.Subresource = "status"
|
||||
action := core.NewUpdateSubresourceAction(schema.GroupVersionResource{Resource: "foos"}, "status", foo.Namespace, foo)
|
||||
f.actions = append(f.actions, action)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user