// GetLabels return labels that identifies given application
// additional labels are used only when creating object
// if you are creating something use additional=true
// if you need labels to filter component than use additional=false
GetLabels return labels that identifies given application
additional labels are used only when creating object
if you are creating something use additional=true
if you need labels to filter component than use additional=false
// GetLabels return labels that identifies given application // additional labels are used only when creating object // if you are creating something use additional = true // if you need labels to filter component than use additional = false
func GetLabels(application string, additional bool) map[string]string {
	labels := map[string]string{
		ApplicationLabel: application,
	}
	if additional {
		for _, additionalLabel := range AdditionalApplicationLabels {
			labels[additionalLabel] = application
		}
	}
	return labels
}
func GetLabels ( application string , additional bool ) map [ string ] string { labels := map [ string ] string { ApplicationLabel : application , } if additional { for _ , additionalLabel := range AdditionalApplicationLabels { labels [ additionalLabel ] = application } } return labels }
GetLabels return labels that identifies given application
additional labels are used only when creating object
if you are creating something use additional=true
if you need labels to filter component than use additional=false
GetLabels return labels that identifies given application additional labels are used only when creating object if you are creating something use additional = true if you need labels to filter component than use additional = false