mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
Docs and examples use config.k8s.io/function annotation
- Update function docs to recommend new annotation - Update examples to use config.k8s.io/function annotation
This commit is contained in:
@@ -15,7 +15,7 @@ Resource configuration, and looks for invalid configuration.
|
||||
## Function invocation
|
||||
|
||||
The function is invoked by authoring a [local Resource](local-resource)
|
||||
with `metadata.configFn` and running:
|
||||
with `metadata.annotations.[config.k8s.io/function]` and running:
|
||||
|
||||
kustomize config run local-resource/
|
||||
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
apiVersion: examples.config.kubernetes.io/v1beta1
|
||||
kind: Validator
|
||||
metadata:
|
||||
configFn:
|
||||
container:
|
||||
image: gcr.io/kustomize-functions/example-validator:v0.1.0
|
||||
annotations:
|
||||
config.k8s.io/function: |
|
||||
container:
|
||||
image: gcr.io/kustomize-functions/example-validator:v0.1.0
|
||||
---
|
||||
apiVersion: apps/v1 # this should fail validation
|
||||
kind: Deployment
|
||||
|
||||
Reference in New Issue
Block a user