func NewSecretWithName(meta metav1.ObjectMeta, name string) *corev1.Secret {
	secret := NewSecret(meta)

	secret.ObjectMeta.Name = name
	secret.ObjectMeta.Labels[common.ArgoCDKeyName] = name

	return secret
}
// NewSecretWithName returns a new Secret based on the given metadata with the provided Name.
NewSecretWithName returns a new Secret based on the given metadata with the provided Name.
// NewSecretWithName returns a new Secret based on the given metadata with the provided Name .
func NewSecretWithName(meta metav1.ObjectMeta, name string) *corev1.Secret {
	secret := NewSecret(meta)
	secret.ObjectMeta.Name = name
	secret.ObjectMeta.Labels[common.ArgoCDKeyName] = name
	return secret
}
func NewSecretWithName ( meta metav1 . ObjectMeta , name string ) * corev1 . Secret { secret := NewSecret ( meta ) secret . ObjectMeta . Name = name secret . ObjectMeta . Labels [ common . ArgoCDKeyName ] = name return secret }
NewSecretWithName returns a new Secret based on the given metadata with the provided Name.
NewSecretWithName returns a new Secret based on the given metadata with the provided Name .