vendir
vendir copied to clipboard
add kubernetes source
I am curious about this feature. Are there any more details to add on what a Kubernetes source for vendir
means? Does this mean fetching resources from a cluster, or something different?
Does this mean fetching resources from a cluster
yeah something like this what i had in mind:
kubernetesResources:
resources:
- apiVersion: v1
kind: Pod
namespace: ""
fieldSelector:
labelSelector:
path: all-pods.yml
- apiVersion: v1
kind: Secret
namespace: ...
fieldSelector:
labelSelector:
matchLabels:
foo: ""
matchExpressions:
- ...
path: svc.yml
main use case you be when vendir is being used by kapp-controller. it would give ability for App CR to take k8s resources in the cluster as inputs to ytt templates.
One caveat that needs to be taken into account, specially when using this in combination with kapp-controller's packages is that we need to make sure that inputs that are fetched via vendir are not used as outputs (as they are) as you might be trying to install resources that another package installed and then getting owner conflicts.