This example demonstrates how to add kubernetes recommended labels to kpt Blueprint packages
by running the [set-starndard-labels] function.
Get the example package by running the following commands:
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/set-stanrdard-labels-blueprintWe use the following Kptfile to configure the function.
apiVersion: kpt.dev/v1
kind: Kptfile
metadata:
name: frontend
annotations:
config.kubernetes.io/local-config: "true"Invoke the function by running the following commands:
$ kpt fn render set-stanrdard-labels-blueprintCheck the deployment has label app.kubernetes.io/name: frontend added.