mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #75302 from liggitt/apps-v1-test
Use apps/v1 APIs in integration tests
This commit is contained in:
commit
290cf142e1
@ -461,7 +461,7 @@ func TestApplyRemoveContainerPort(t *testing.T) {
|
||||
defer closeFn()
|
||||
|
||||
obj := []byte(`{
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"metadata": {
|
||||
"name": "deployment",
|
||||
@ -495,7 +495,7 @@ func TestApplyRemoveContainerPort(t *testing.T) {
|
||||
}`)
|
||||
|
||||
_, err := client.CoreV1().RESTClient().Patch(types.ApplyPatchType).
|
||||
AbsPath("/apis/extensions/v1beta1").
|
||||
AbsPath("/apis/apps/v1").
|
||||
Namespace("default").
|
||||
Resource("deployments").
|
||||
Name("deployment").
|
||||
|
Loading…
Reference in New Issue
Block a user