mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
bump ResourceList from v1alpha1 to v1
This commit is contained in:
@@ -23,7 +23,7 @@ const service = "Service"
|
||||
// ExampleSimpleProcessor_modify implements a function that sets an annotation on each resource.
|
||||
func ExampleSimpleProcessor_modify() {
|
||||
input := bytes.NewBufferString(`
|
||||
apiVersion: config.kubernetes.io/v1alpha1
|
||||
apiVersion: config.kubernetes.io/v1
|
||||
kind: ResourceList
|
||||
# items are provided as nodes
|
||||
items:
|
||||
@@ -60,7 +60,7 @@ functionConfig:
|
||||
}
|
||||
|
||||
// Output:
|
||||
// apiVersion: config.kubernetes.io/v1alpha1
|
||||
// apiVersion: config.kubernetes.io/v1
|
||||
// kind: ResourceList
|
||||
// items:
|
||||
// - apiVersion: apps/v1
|
||||
@@ -86,7 +86,7 @@ functionConfig:
|
||||
// If the resource already exists, it replaces the resource with a new copy.
|
||||
func ExampleSimpleProcessor_generateReplace() {
|
||||
input := bytes.NewBufferString(`
|
||||
apiVersion: config.kubernetes.io/v1alpha1
|
||||
apiVersion: config.kubernetes.io/v1
|
||||
kind: ResourceList
|
||||
# items are provided as nodes
|
||||
items:
|
||||
@@ -150,7 +150,7 @@ metadata:
|
||||
}
|
||||
|
||||
// Output:
|
||||
// apiVersion: config.kubernetes.io/v1alpha1
|
||||
// apiVersion: config.kubernetes.io/v1
|
||||
// kind: ResourceList
|
||||
// items:
|
||||
// - apiVersion: apps/v1
|
||||
@@ -471,7 +471,7 @@ spec:
|
||||
// The second resource will be treated as a patch since its metadata matches the resource
|
||||
// generated by ResourceTemplates and MergeResources is true.
|
||||
rw := kio.ByteReadWriter{Reader: bytes.NewBufferString(`
|
||||
apiVersion: config.kubernetes.io/v1alpha1
|
||||
apiVersion: config.kubernetes.io/v1
|
||||
kind: ResourceList
|
||||
items:
|
||||
- kind: Deployment
|
||||
@@ -501,7 +501,7 @@ functionConfig:
|
||||
}
|
||||
|
||||
// Output:
|
||||
// apiVersion: config.kubernetes.io/v1alpha1
|
||||
// apiVersion: config.kubernetes.io/v1
|
||||
// kind: ResourceList
|
||||
// items:
|
||||
// - apiVersion: apps/v1
|
||||
@@ -543,7 +543,7 @@ func ExampleSelector_templatizeKinds() {
|
||||
}
|
||||
rw := &kio.ByteReadWriter{
|
||||
Reader: bytes.NewBufferString(`
|
||||
apiVersion: config.kubernetes.io/v1beta1
|
||||
apiVersion: config.kubernetes.io/v1
|
||||
kind: ResourceList
|
||||
functionConfig:
|
||||
kindName: Deployment
|
||||
@@ -575,7 +575,7 @@ items:
|
||||
}
|
||||
|
||||
// Output:
|
||||
// apiVersion: config.kubernetes.io/v1beta1
|
||||
// apiVersion: config.kubernetes.io/v1
|
||||
// kind: ResourceList
|
||||
// items:
|
||||
// - apiVersion: apps/v1
|
||||
@@ -595,7 +595,7 @@ func ExampleSelector_templatizeAnnotations() {
|
||||
Value string `yaml:"value"`
|
||||
}
|
||||
rw := &kio.ByteReadWriter{Reader: bytes.NewBufferString(`
|
||||
apiVersion: config.kubernetes.io/v1beta1
|
||||
apiVersion: config.kubernetes.io/v1
|
||||
kind: ResourceList
|
||||
functionConfig:
|
||||
value: bar
|
||||
@@ -629,7 +629,7 @@ items:
|
||||
}
|
||||
|
||||
// Output:
|
||||
// apiVersion: config.kubernetes.io/v1beta1
|
||||
// apiVersion: config.kubernetes.io/v1
|
||||
// kind: ResourceList
|
||||
// items:
|
||||
// - apiVersion: apps/v1
|
||||
@@ -995,7 +995,7 @@ func ExampleVersionedAPIProcessor() {
|
||||
}}}
|
||||
|
||||
source := &kio.ByteReadWriter{Reader: bytes.NewBufferString(`
|
||||
apiVersion: config.kubernetes.io/v1beta1
|
||||
apiVersion: config.kubernetes.io/v1
|
||||
kind: ResourceList
|
||||
functionConfig:
|
||||
apiVersion: example.com/v1alpha1
|
||||
@@ -1011,7 +1011,7 @@ functionConfig:
|
||||
}
|
||||
|
||||
// Output:
|
||||
// apiVersion: config.kubernetes.io/v1beta1
|
||||
// apiVersion: config.kubernetes.io/v1
|
||||
// kind: ResourceList
|
||||
// items:
|
||||
// - apiVersion: apps/v1
|
||||
|
||||
Reference in New Issue
Block a user