forked from kptdev/kpt
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdiff.patch
More file actions
67 lines (67 loc) · 1.46 KB
/
diff.patch
File metadata and controls
67 lines (67 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff --git a/Kptfile b/Kptfile
index 2985a1a..30b4376 100644
--- a/Kptfile
+++ b/Kptfile
@@ -2,8 +2,19 @@ apiVersion: kpt.dev/v1
kind: Kptfile
metadata:
name: app
+ labels:
+ tier: backend
pipeline:
mutators:
- image: set-labels:v0.1.5
configMap:
tier: backend
+status:
+ conditions:
+ - type: Rendered
+ status: "True"
+ reason: RenderSuccess
+ renderStatus:
+ mutationSteps:
+ - image: ghcr.io/kptdev/krm-functions-catalog/set-labels:v0.1.5
+ exitCode: 0
diff --git a/kustomization.yaml b/kustomization.yaml
index f3f0207..6c517af 100644
--- a/kustomization.yaml
+++ b/kustomization.yaml
@@ -11,7 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
# kustomization.yaml contents
resources:
- resources.yaml
+metadata:
+ labels:
+ tier: backend
diff --git a/resources.yaml b/resources.yaml
index 40a033d..eb585ba 100644
--- a/resources.yaml
+++ b/resources.yaml
@@ -15,12 +15,23 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
+ labels:
+ tier: backend
spec:
replicas: 3
+ selector:
+ matchLabels:
+ tier: backend
+ template:
+ metadata:
+ labels:
+ tier: backend
---
apiVersion: custom.io/v1
kind: Custom
metadata:
name: custom
+ labels:
+ tier: backend
spec:
image: nginx:1.2.3 # kpt-set: {something}