mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-16 17:33:14 +00:00
update kyaml api version.
This commit is contained in:
@@ -463,7 +463,7 @@ spec:
|
|||||||
// TestFormatInput_service verifies a Service yaml is formatted correctly
|
// TestFormatInput_service verifies a Service yaml is formatted correctly
|
||||||
func TestFormatInput_validatingWebhookConfiguration(t *testing.T) {
|
func TestFormatInput_validatingWebhookConfiguration(t *testing.T) {
|
||||||
y := `
|
y := `
|
||||||
apiVersion: admissionregistration.k8s.io/v1beta1
|
apiVersion: admissionregistration.k8s.io/v1
|
||||||
kind: ValidatingWebhookConfiguration
|
kind: ValidatingWebhookConfiguration
|
||||||
metadata:
|
metadata:
|
||||||
name: <name of this configuration object>
|
name: <name of this configuration object>
|
||||||
@@ -490,7 +490,7 @@ webhooks:
|
|||||||
- v1beta1
|
- v1beta1
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
`
|
`
|
||||||
expected := `apiVersion: admissionregistration.k8s.io/v1beta1
|
expected := `apiVersion: admissionregistration.k8s.io/v1
|
||||||
kind: ValidatingWebhookConfiguration
|
kind: ValidatingWebhookConfiguration
|
||||||
metadata:
|
metadata:
|
||||||
name: <name of this configuration object>
|
name: <name of this configuration object>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ var WhitelistedListSortKinds = newSet(
|
|||||||
// sorting list field elements
|
// sorting list field elements
|
||||||
var WhitelistedListSortApis = newSet(
|
var WhitelistedListSortApis = newSet(
|
||||||
"apps/v1", "apps/v1beta1", "apps/v1beta2", "batch/v1", "batch/v1beta1",
|
"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
|
// WhitelistedListSortFields contains json paths to list fields that should
|
||||||
// be sorted, and the field they should be sorted by
|
// be sorted, and the field they should be sorted by
|
||||||
|
|||||||
Reference in New Issue
Block a user