Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package-examples/wordpress-with-dependencies/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ info:
emails:
- wily.e.coyote@theacmecorporation.com
description: This is an example package that uses the depends-on annotation
pipeline:
mutators:
- image: ghcr.io/kptdev/krm-functions-catalog/set-labels:latest
configMap:
app: wordpress
validators:
- image: ghcr.io/kptdev/krm-functions-catalog/kubeconform:latest
2 changes: 1 addition & 1 deletion package-examples/wordpress-with-dependencies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Please refer to [kpt book] for consuming this package.

[kpt book]: https://kpt.dev/book/06-deploying-packages/03-handling-dependencies
[kpt book]: https://kpt.dev/book/06-deploying-packages/#handling-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
namespace: default
labels:
app: wordpress
annotations:
Expand All @@ -33,7 +32,7 @@ spec:
spec:
containers:
- name: wordpress
image: wordpress:4.8-apache
image: wordpress:6.8-apache
ports:
- name: wordpress
protocol: TCP
Expand Down
5 changes: 5 additions & 0 deletions package-examples/wordpress-with-dependencies/mysql/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ info:
emails:
- wily.e.coyote@theacmecorporation.com
description: This is an example mysql package.
pipeline:
mutators:
- image: ghcr.io/kptdev/krm-functions-catalog/set-labels:latest
configMap:
tier: mysql
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
spec:
containers:
- name: mysql
image: mysql:5.6
image: mysql:9.5
ports:
- name: mysql
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ apiVersion: v1
kind: Service
metadata:
name: wordpress
namespace: default
labels:
app: wordpress
annotations:
Expand Down
2 changes: 1 addition & 1 deletion package-examples/wordpress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Please refer to [kpt book] for consuming this package.

[kpt book]: https://kpt.dev/book/03-packages/01-getting-a-package
[kpt book]: https://kpt.dev/book/03-packages/#getting-a-package
2 changes: 1 addition & 1 deletion package-examples/wordpress/deployment/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
spec:
containers:
- name: wordpress
image: wordpress:4.8-apache
image: wordpress:6.8-apache
ports:
- name: wordpress
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion package-examples/wordpress/mysql/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
spec:
containers:
- name: mysql
image: mysql:5.6
image: mysql:9.5
ports:
- name: mysql
protocol: TCP
Expand Down
Loading