Logo
Explore Help
Register Sign In
Katenary/katenary
2
0
Fork 0
You've already forked katenary
Code Issues 7 Pull Requests Actions Packages Projects Releases 15 Wiki Activity
Files
16c8e3dd20e2e71d7d83089ee91a06d7867e144a
katenary/tools/path_test.go

15 lines
254 B
Go
Raw Normal View History

Feat cronjob (#23) Make possible to declare cronTabs inside docker-compose file. ⇒ Also, add multiple compose file injection with `-c` arguments ⇒ Also, fixes “ignore depends on” for same pod ⇒ Also fixes * fix [Be able to specify compose.yml files and its override #21](https://github.com/metal3d/katenary/issues/21) * fix [Be able to ignore ports to expose in a katenary.io/ports list #16](https://github.com/metal3d/katenary/issues/16) And more fixes… (later, we will use branches in a better way, that was a hard, long fix process)
2022-06-10 16:15:18 +02:00
package tools
Fix problems with local volumes to configmap - make it possible to mount only one file as configmap - remove "dots" from path to convert it to volume name - see #11 that can be resolved
2022-05-23 11:13:42 +02:00
import (
"katenary/compose"
"testing"
)
func Test_PathToName(t *testing.T) {
path := compose.GetCurrentDir() + "/envéfoo.file"
name := PathToName(path)
if name != "env-foo-file" {
t.Error("Expected env-foo-file, got ", name)
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 1105ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API