// updateApplicationSetAnnotations updates the labels of the ApplicationSet spec
updateApplicationSetAnnotations updates the labels of the ApplicationSet spec
// updateApplicationSetAnnotations updates the labels of the ApplicationSet spec
func updateApplicationSetLabels(ctx context.Context, appSetName string, namespace string, labels map[string]string) error {
	appSet := applicationset.ApplicationSet{}
	err := k8sClient.Get(ctx, client.ObjectKey{
		Namespace: namespace,
		Name:      appSetName,
	}, &appSet)
	if err != nil {
		return err
	}
	appSet.Spec.Template.Labels = labels
	return k8sClient.Update(ctx, &appSet)
}
func updateApplicationSetLabels ( ctx context . Context , appSetName string , namespace string , labels map [ string ] string ) error { appSet := applicationset . ApplicationSet { } err := k8sClient . Get ( ctx , client . ObjectKey { Namespace : namespace , Name : appSetName , } , & appSet ) if err != nil { return err } appSet . Spec . Template . Labels = labels return k8sClient . Update ( ctx , & appSet ) }
updateApplicationSetAnnotations updates the labels of the ApplicationSet spec
updateApplicationSetAnnotations updates the labels of the ApplicationSet spec