Skip to content

Commit

Permalink
Write kubebuilder version annotation to resources created by kubebuil…
Browse files Browse the repository at this point in the history
…der to help with debugging
  • Loading branch information
pwittrock committed Mar 22, 2018
1 parent 655d56b commit 63da109
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/kubebuilder/create/config/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/golang/glog"
"github.com/kubernetes-sigs/kubebuilder/cmd/internal/codegen/parse"
"github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/util"
"github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/version"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
rbacv1 "k8s.io/api/rbac/v1"
Expand All @@ -36,7 +37,7 @@ import (
type CodeGenerator struct{}

var kblabels = map[string]string{
"platform": "kubernetes_sigs_kubebuilder",
"kubebuilder.k8s.io": version.GetVersion().KubeBuilderVersion,
}

func addLabels(m map[string]string) map[string]string {
Expand Down

0 comments on commit 63da109

Please sign in to comment.