You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a list of Kubernetes manifests where only CustomResourceDefinition kinds are labeled with knative.dev/crd-install: '' (or 'true' or any other value), the following command filters everything but objects with metadata.labels set and not empty.
A Deployment and a bunch of other objects such as ClusterRoles should have been included (and images resolved + built), but were not, because they don't have any metadata.labels set.
I also tried setting an empty list of labels on these objects, without success:
$ ko resolve -f config/ -l '!knative.dev/crd-install'---------2021/10/09 13:03:56 Using base gcr.io/distroless/static:nonroot for github.com/triggermesh/triggermesh/cmd/triggermesh-controller...---
The text was updated successfully, but these errors were encountered:
Version: ko 0.9.3
What happened
Given a list of Kubernetes manifests where only
CustomResourceDefinition
kinds are labeled withknative.dev/crd-install: ''
(or'true'
or any other value), the following command filters everything but objects withmetadata.labels
set and not empty.What I expected
A
Deployment
and a bunch of other objects such asClusterRoles
should have been included (and images resolved + built), but were not, because they don't have anymetadata.labels
set.I also tried setting an empty list of labels on these objects, without success:
Workaround
Setting a non-empty
metadata.labels
works 🎉The text was updated successfully, but these errors were encountered: