pkg/secrets/pushtofile/secret_group.go
Function newSecretGroup
has 6 return statements (exceeds 4 allowed). Open
Open
func newSecretGroup(groupName string, annotations map[string]string, c Config) (*SecretGroup, []error) {
groupSecrets := annotations[secretGroupPrefix+groupName]
filePath := annotations[secretGroupFilePathPrefix+groupName]
fileFormat := annotations[secretGroupFileFormatPrefix+groupName]
Function collectTemplate
has 5 return statements (exceeds 4 allowed). Open
Open
func collectTemplate(groupName string, annotations map[string]string, c Config) (string, error) {
annotationTemplate := annotations[secretGroupFileTemplatePrefix+groupName]
configmapTemplate, err := readTemplateFromFile(groupName, annotations, c)
if os.IsNotExist(err) {