func isSecretManaged()

in argocd-clusterprofile-syncer/cmd/main.go [130:138]


func isSecretManaged(secret *corev1.Secret, cpOrigin string) bool {
	if secret.Annotations == nil {
		return false
	}
	if secret.Annotations[managedByAnnotation] != "true" {
		return false
	}
	return secret.Annotations[clusterProfileOrigin] == cpOrigin
}