File tree Expand file tree Collapse file tree 10 files changed +138
-1
lines changed
fn-eval/preserve-order-null-values
fn-render/preserve-order-null-values Expand file tree Collapse file tree 10 files changed +138
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2021 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ testType : eval
16
+ image : gcr.io/kpt-fn/set-namespace:v0.1.3
17
+ args :
18
+ namespace : staging
Original file line number Diff line number Diff line change
1
+ diff --git a/resources.yaml b/resources.yaml
2
+ index 4a7ba01..4d4f59f 100644
3
+ --- a/resources.yaml
4
+ +++ b/resources.yaml
5
+ @@ -16,6 +16,7 @@ kind: Deployment
6
+ metadata:
7
+ name: nginx-deployment
8
+ createTimestamp: null
9
+ + namespace: staging
10
+ spec:
11
+ replicas: 3
12
+ ---
13
+ @@ -23,5 +24,6 @@ apiVersion: custom.io/v1
14
+ kind: Custom
15
+ metadata:
16
+ name: custom
17
+ + namespace: staging
18
+ spec:
19
+ image: nginx:1.2.3
Original file line number Diff line number Diff line change
1
+ .expected
Original file line number Diff line number Diff line change
1
+ # Copyright 2021 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ apiVersion : apps/v1
15
+ kind : Deployment
16
+ metadata :
17
+ name : nginx-deployment
18
+ createTimestamp : null
19
+ spec :
20
+ replicas : 3
21
+ ---
22
+ apiVersion : custom.io/v1
23
+ kind : Custom
24
+ metadata :
25
+ name : custom
26
+ spec :
27
+ image : nginx:1.2.3
Original file line number Diff line number Diff line change
1
+ diff --git a/resources.yaml b/resources.yaml
2
+ index 4a7ba01..f883068 100644
3
+ --- a/resources.yaml
4
+ +++ b/resources.yaml
5
+ @@ -16,12 +16,25 @@ kind: Deployment
6
+ metadata:
7
+ name: nginx-deployment
8
+ createTimestamp: null
9
+ + namespace: staging
10
+ + labels:
11
+ + tier: backend
12
+ spec:
13
+ replicas: 3
14
+ + selector:
15
+ + matchLabels:
16
+ + tier: backend
17
+ + template:
18
+ + metadata:
19
+ + labels:
20
+ + tier: backend
21
+ ---
22
+ apiVersion: custom.io/v1
23
+ kind: Custom
24
+ metadata:
25
+ name: custom
26
+ + namespace: staging
27
+ + labels:
28
+ + tier: backend
29
+ spec:
30
+ image: nginx:1.2.3
Original file line number Diff line number Diff line change
1
+ .expected
Original file line number Diff line number Diff line change
1
+ apiVersion: kpt.dev/v1
2
+ kind: Kptfile
3
+ metadata:
4
+ name: app
5
+ pipeline:
6
+ mutators:
7
+ - image: gcr.io/kpt-fn/set-namespace:v0.1.3
8
+ configMap:
9
+ namespace: staging
10
+ - image: gcr.io/kpt-fn/set-labels:v0.1.4
11
+ configMap:
12
+ tier: backend
Original file line number Diff line number Diff line change
1
+ # Copyright 2021 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ apiVersion : apps/v1
15
+ kind : Deployment
16
+ metadata :
17
+ name : nginx-deployment
18
+ createTimestamp : null
19
+ spec :
20
+ replicas : 3
21
+ ---
22
+ apiVersion : custom.io/v1
23
+ kind : Custom
24
+ metadata :
25
+ name : custom
26
+ spec :
27
+ image : nginx:1.2.3
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ require (
24
24
k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9
25
25
sigs.k8s.io/cli-utils v0.25.1-0.20210702190410-c1a7c2d0409d
26
26
sigs.k8s.io/kustomize/api v0.8.10
27
- sigs.k8s.io/kustomize/kyaml v0.11.1 -0.20210715213702-35d1c3f9b418
27
+ sigs.k8s.io/kustomize/kyaml v0.11.2 -0.20210908182956-2b8a39373e88
28
28
)
Original file line number Diff line number Diff line change @@ -994,6 +994,8 @@ sigs.k8s.io/kustomize/kyaml v0.10.17/go.mod h1:mlQFagmkm1P+W4lZJbJ/yaxMd8PqMRSC4
994
994
sigs.k8s.io/kustomize/kyaml v0.10.20 /go.mod h1:TYWhGwW9vjoRh3rWqBwB/ZOXyEGRVWe7Ggc3+KZIO+c =
995
995
sigs.k8s.io/kustomize/kyaml v0.11.1-0.20210715213702-35d1c3f9b418 h1:aFl1EFMI4TNZ10Zga2LMGQDopLqM85os8ggXJZLGTIY =
996
996
sigs.k8s.io/kustomize/kyaml v0.11.1-0.20210715213702-35d1c3f9b418 /go.mod h1:FTJxEZ86ScK184NpGSAQcfEqee0nul8oLCK30D47m4E =
997
+ sigs.k8s.io/kustomize/kyaml v0.11.2-0.20210908182956-2b8a39373e88 h1:oAFCwINXUpDfmRrof559WnkAMIVQl6gTTrMaXsYAOrc =
998
+ sigs.k8s.io/kustomize/kyaml v0.11.2-0.20210908182956-2b8a39373e88 /go.mod h1:FTJxEZ86ScK184NpGSAQcfEqee0nul8oLCK30D47m4E =
997
999
sigs.k8s.io/structured-merge-diff/v4 v4.0.2 /go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw =
998
1000
sigs.k8s.io/structured-merge-diff/v4 v4.1.0 h1:C4r9BgJ98vrKnnVCjwCSXcWjWe0NKcUQkmzDXZXGwH8 =
999
1001
sigs.k8s.io/structured-merge-diff/v4 v4.1.0 /go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw =
You can’t perform that action at this time.
0 commit comments