Skip to content

Commit 38ddcdb

Browse files
drootyuwenma
authored andcommitted
Handle kpt fn behavior change (#796)
* updated behavior and tests for ensure-name-substring * adjusted fix-simple test to not specify include-meta-resources * kubeval-simple: skip Kptfile validation * adjusted starlark tests/examples to handle Kptfile and StarlarkRun files * adjusted search-replace tests to match kpt behavior to include meta resources by default * adjusted create-setters-simple test to match kpt behavior * adjusted set-project-id to match the kpt fn behavior * adjusted generate-kpt-pkg-docs-simple test to match kpt behavior * adjusted set-annotations tests to match new kpt fn behavior * adjusted set-labels test to match new kpt fn behavior * adjusted the golden file for generate-folders function * using kpt@main
1 parent d9db966 commit 38ddcdb

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

  • examples/set-labels-imperative/.expected
Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
diff --git a/app.yaml b/app.yaml
2-
index d67a0d2..bf55161 100644
2+
index 1e641f7..bb4be90 100644
33
--- a/app.yaml
44
+++ b/app.yaml
5-
@@ -9,7 +9,7 @@ apiVersion: v1
6-
kind: Service
5+
@@ -2,6 +2,9 @@ apiVersion: v1
6+
kind: ConfigMap
7+
metadata:
8+
name: the-map
9+
+ labels:
10+
+ color: orange
11+
+ fruit: apple
12+
data:
13+
some-key: some-value
14+
---
15+
@@ -10,6 +13,9 @@ kind: MyResource
716
metadata:
817
name: the-service
9-
- namespace: example
10-
+ namespace: new-ns
18+
namespace: the-namespace
19+
+ labels:
20+
+ color: orange
21+
+ fruit: apple
1122
spec:
12-
ports:
13-
- name: etcd-server-ssl
14-
@@ -34,4 +34,4 @@ spec:
15-
apiVersion: v1
16-
kind: Namespace
17-
metadata:
18-
- name: example
19-
+ name: new-ns
23+
selector:
24+
labels:

0 commit comments

Comments
 (0)