|
1 | 1 | diff --git a/Kptfile b/Kptfile |
2 | | -index 1e0e356..a7a2d0b 100644 |
| 2 | +index a7a2d0b..3dbfee4 100644 |
3 | 3 | --- a/Kptfile |
4 | 4 | +++ b/Kptfile |
5 | | -@@ -1,7 +1,7 @@ |
6 | | --apiVersion: kpt.dev/v1 |
7 | | --kind: Kptfile |
8 | | --metadata: |
9 | | -- name: app |
10 | | --pipeline: |
11 | | -- mutators: |
12 | | -- - image: ghcr.io/kptdev/krm-functions-catalog/no-op |
13 | | -+apiVersion: kpt.dev/v1 |
14 | | -+kind: Kptfile |
15 | | -+metadata: |
16 | | -+ name: app |
17 | | -+pipeline: |
18 | | -+ mutators: |
19 | | -+ - image: ghcr.io/kptdev/krm-functions-catalog/no-op |
20 | | -diff --git a/resources.yaml b/resources.yaml |
21 | | -index c0974f0..60f96f2 100644 |
22 | | ---- a/resources.yaml |
23 | | -+++ b/resources.yaml |
24 | | -@@ -1,82 +1,82 @@ |
25 | | --# Copyright 2021 The kpt Authors |
26 | | --# |
27 | | --# Licensed under the Apache License, Version 2.0 (the "License"); |
28 | | --# you may not use this file except in compliance with the License. |
29 | | --# You may obtain a copy of the License at |
30 | | --# |
31 | | --# http://www.apache.org/licenses/LICENSE-2.0 |
32 | | --# |
33 | | --# Unless required by applicable law or agreed to in writing, software |
34 | | --# distributed under the License is distributed on an "AS IS" BASIS, |
35 | | --# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
36 | | --# See the License for the specific language governing permissions and |
37 | | --# limitations under the License. |
38 | | --apiVersion: apps/v1 |
39 | | --kind: Deployment |
40 | | --metadata: |
41 | | -- name: my-nginx |
42 | | -- namespace: my-space |
43 | | -- labels: |
44 | | -- env: dev |
45 | | -- foo: bar |
46 | | --spec: |
47 | | -- # comment 1 |
48 | | -- replicas: 3 |
49 | | -- selector: |
50 | | -- # comment 2 |
51 | | -- matchLabels: # comment 3 |
52 | | -- # comment 4 |
53 | | -- app: nginx # comment 5 |
54 | | -- template: |
55 | | -- metadata: |
56 | | -- labels: |
57 | | -- app: nginx |
58 | | -- spec: |
59 | | -- # comment 6 |
60 | | -- containers: |
61 | | -- # comment 7 |
62 | | -- - name: nginx |
63 | | -- image: 'nginx:1.14.2' # comment 8 |
64 | | -- ports: |
65 | | -- # comment 9 |
66 | | -- - containerPort: 80 # comment 10 |
67 | | ----- |
68 | | --apiVersion: v1 |
69 | | --kind: Service |
70 | | --metadata: |
71 | | -- name: my-service |
72 | | --spec: |
73 | | -- ports: |
74 | | -- # comment 1 |
75 | | -- - name: etcd-server-ssl |
76 | | -- port: 2380 |
77 | | -- # comment 2 |
78 | | -- - name: etcd-client-ssl |
79 | | -- port: 2379 |
80 | | ----- |
81 | | --apiVersion: constraints.gatekeeper.sh/v1beta1 |
82 | | --kind: EnforceFoo |
83 | | --metadata: |
84 | | -- name: enforce-foo |
85 | | --spec: |
86 | | -- parameters: |
87 | | -- naming_rules: |
88 | | -- - kind: Folder |
89 | | -- patterns: |
90 | | -- # comment 1 |
91 | | -- - ^(dev|prod|staging|qa|shared)$ |
92 | | ----- |
93 | | --apiVersion: v1 |
94 | | --kind: ConfigMap |
95 | | --metadata: |
96 | | -- name: setters-config |
97 | | --data: |
98 | | -- # This should be the name of your Config Controller instance |
99 | | -- cluster-name: cluster-name |
100 | | -- # This should be the project where you deployed Config Controller |
101 | | -- project-id: project-id |
102 | | -- project-number: '1234567890123' |
103 | | -- # You can leave these defaults |
104 | | -- namespace: config-control |
105 | | -- deployment-repo: deployment-repo |
106 | | -- source-repo: source-repo |
107 | | -+# Copyright 2021 The kpt Authors |
108 | | -+# |
109 | | -+# Licensed under the Apache License, Version 2.0 (the "License"); |
110 | | -+# you may not use this file except in compliance with the License. |
111 | | -+# You may obtain a copy of the License at |
112 | | -+# |
113 | | -+# http://www.apache.org/licenses/LICENSE-2.0 |
114 | | -+# |
115 | | -+# Unless required by applicable law or agreed to in writing, software |
116 | | -+# distributed under the License is distributed on an "AS IS" BASIS, |
117 | | -+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
118 | | -+# See the License for the specific language governing permissions and |
119 | | -+# limitations under the License. |
120 | | -+apiVersion: apps/v1 |
121 | | -+kind: Deployment |
122 | | -+metadata: |
123 | | -+ name: my-nginx |
124 | | -+ namespace: my-space |
125 | | -+ labels: |
126 | | -+ env: dev |
127 | | -+ foo: bar |
128 | | -+spec: |
129 | | -+ # comment 1 |
130 | | -+ replicas: 3 |
131 | | -+ selector: |
132 | | -+ # comment 2 |
133 | | -+ matchLabels: # comment 3 |
134 | | -+ # comment 4 |
135 | | -+ app: nginx # comment 5 |
136 | | -+ template: |
137 | | -+ metadata: |
138 | | -+ labels: |
139 | | -+ app: nginx |
140 | | -+ spec: |
141 | | -+ # comment 6 |
142 | | -+ containers: |
143 | | -+ # comment 7 |
144 | | -+ - name: nginx |
145 | | -+ image: 'nginx:1.14.2' # comment 8 |
146 | | -+ ports: |
147 | | -+ # comment 9 |
148 | | -+ - containerPort: 80 # comment 10 |
149 | | -+--- |
150 | | -+apiVersion: v1 |
151 | | -+kind: Service |
152 | | -+metadata: |
153 | | -+ name: my-service |
154 | | -+spec: |
155 | | -+ ports: |
156 | | -+ # comment 1 |
157 | | -+ - name: etcd-server-ssl |
158 | | -+ port: 2380 |
159 | | -+ # comment 2 |
160 | | -+ - name: etcd-client-ssl |
161 | | -+ port: 2379 |
162 | | -+--- |
163 | | -+apiVersion: constraints.gatekeeper.sh/v1beta1 |
164 | | -+kind: EnforceFoo |
165 | | -+metadata: |
166 | | -+ name: enforce-foo |
167 | | -+spec: |
168 | | -+ parameters: |
169 | | -+ naming_rules: |
170 | | -+ - kind: Folder |
171 | | -+ patterns: |
172 | | -+ # comment 1 |
173 | | -+ - ^(dev|prod|staging|qa|shared)$ |
174 | | -+--- |
175 | | -+apiVersion: v1 |
176 | | -+kind: ConfigMap |
177 | | -+metadata: |
178 | | -+ name: setters-config |
179 | | -+data: |
180 | | -+ # This should be the name of your Config Controller instance |
181 | | -+ cluster-name: cluster-name |
182 | | -+ # This should be the project where you deployed Config Controller |
183 | | -+ project-id: project-id |
184 | | -+ project-number: '1234567890123' |
185 | | -+ # You can leave these defaults |
186 | | -+ namespace: config-control |
187 | | -+ deployment-repo: deployment-repo |
188 | | -+ source-repo: source-repo |
| 5 | +@@ -5,3 +5,12 @@ metadata: |
| 6 | + pipeline: |
| 7 | + mutators: |
| 8 | + - image: ghcr.io/kptdev/krm-functions-catalog/no-op |
| 9 | ++status: |
| 10 | ++ conditions: |
| 11 | ++ - type: Rendered |
| 12 | ++ status: "True" |
| 13 | ++ reason: RenderSuccess |
| 14 | ++ renderStatus: |
| 15 | ++ mutationSteps: |
| 16 | ++ - image: ghcr.io/kptdev/krm-functions-catalog/no-op:latest |
| 17 | ++ exitCode: 0 |
0 commit comments