diff --git a/generator/configMap.go b/generator/configMap.go index 9af2d37..d65811d 100644 --- a/generator/configMap.go +++ b/generator/configMap.go @@ -24,17 +24,6 @@ const ( FileMapUsageFiles // files in a configmap. ) -// NewFileMap creates a new DataMap from a compose service. The appName is the name of the application taken from the project name. -func NewFileMap(service types.ServiceConfig, appName, kind string) DataMap { - switch kind { - case "configmap": - return NewConfigMap(service, appName, true) - default: - log.Fatalf("Unknown filemap kind: %s", kind) - } - return nil -} - // only used to check interface implementation var ( _ DataMap = (*ConfigMap)(nil) diff --git a/generator/converter.go b/generator/converter.go index 3cea782..bbb2400 100644 --- a/generator/converter.go +++ b/generator/converter.go @@ -397,23 +397,6 @@ func addMainTagAppDoc(values []byte, project *types.Project) []byte { return []byte(strings.Join(lines, "\n")) } -// addModeline adds a modeline to the values.yaml file to make sure that vim -// will use the correct syntax highlighting. -func addModeline(values []byte) []byte { - modeline := "# vi" + "m: ft=helm.gotmpl.yaml" - - // if the values ends by `{{- end }}` we need to add the modeline before - lines := strings.Split(string(values), "\n") - - if lines[len(lines)-1] == "{{- end }}" || lines[len(lines)-1] == "{{- end -}}" { - lines = lines[:len(lines)-1] - lines = append(lines, modeline, "{{- end }}") - return []byte(strings.Join(lines, "\n")) - } - - return append(values, []byte(modeline)...) -} - func addResourceHelp(values []byte) []byte { lines := strings.Split(string(values), "\n") for i, line := range lines {