repo_description: KubeLinter is a static analysis tool that checks Kubernetes YAML files and Helm charts to ensure the applications represented in them adhere to best practices.
repo_topics: hacktoberfest hactoberfest helm-charts kubernetes static-analysis yaml-files
code: package extract
  
  import (
  	"golang.stackrox.io/kube-linter/pkg/k8sutil"
  )
  
  // Labels extracts labels from the given object.
  func Labels(object k8sutil.Object) map[string]string {
  	return object.GetLabels()
  }
  
  // Annotations extracts annotations from the given object.
  func Annotations(object k8sutil.Object) map[string]string {
  	return object.GetAnnotations()
  }
  