general: add k3d version to default object labels

pull/490/head
iwilltry42 4 years ago
parent e2a05c1f39
commit 58d37bea94
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 4
      pkg/types/types.go

@ -28,6 +28,7 @@ import (
"github.com/docker/go-connections/nat"
"github.com/rancher/k3d/v4/pkg/types/k3s"
"github.com/rancher/k3d/v4/version"
)
// DefaultClusterName specifies the default name used for newly created clusters
@ -105,7 +106,8 @@ var ClusterExternalNodeRoles = []Role{
// DefaultObjectLabels specifies a set of labels that will be attached to k3d objects by default
var DefaultObjectLabels = map[string]string{
"app": "k3d",
"app": "k3d",
"k3d.version": version.Version,
}
// List of k3d technical label name

Loading…
Cancel
Save