update kyaml api version.

This commit is contained in:
JaredTan95
2020-12-15 12:21:27 +08:00
parent 97402f1136
commit c71a4534a0
2 changed files with 3 additions and 3 deletions

View File

@@ -463,7 +463,7 @@ spec:
// TestFormatInput_service verifies a Service yaml is formatted correctly
func TestFormatInput_validatingWebhookConfiguration(t *testing.T) {
y := `
apiVersion: admissionregistration.k8s.io/v1beta1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: <name of this configuration object>
@@ -490,7 +490,7 @@ webhooks:
- v1beta1
timeoutSeconds: 1
`
expected := `apiVersion: admissionregistration.k8s.io/v1beta1
expected := `apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: <name of this configuration object>

View File

@@ -87,7 +87,7 @@ var WhitelistedListSortKinds = newSet(
// sorting list field elements
var WhitelistedListSortApis = newSet(
"apps/v1", "apps/v1beta1", "apps/v1beta2", "batch/v1", "batch/v1beta1",
"extensions/v1beta1", "v1", "admissionregistration.k8s.io/v1beta1")
"extensions/v1beta1", "v1", "admissionregistration.k8s.io/v1")
// WhitelistedListSortFields contains json paths to list fields that should
// be sorted, and the field they should be sorted by