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)
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"katenary/tools"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -31,8 +32,7 @@ func NewConfigMap(name, path string) *ConfigMap {
|
||||
base.Metadata.Name = ReleaseNameTpl + "-" + name
|
||||
base.Metadata.Labels[K+"/component"] = name
|
||||
if path != "" {
|
||||
//base.Metadata.Labels[K+"/path"] = path
|
||||
base.Metadata.Labels[K+"/path"] = `{{ "` + path + `" | quote }}`
|
||||
base.Metadata.Labels[K+"/path"] = tools.PathToName(path)
|
||||
}
|
||||
return &ConfigMap{
|
||||
K8sBase: base,
|
||||
@@ -97,7 +97,7 @@ func NewSecret(name, path string) *Secret {
|
||||
base.Metadata.Name = ReleaseNameTpl + "-" + name
|
||||
base.Metadata.Labels[K+"/component"] = name
|
||||
if path != "" {
|
||||
base.Metadata.Labels[K+"/path"] = `{{ "` + path + `" | quote }}`
|
||||
base.Metadata.Labels[K+"/path"] = tools.PathToName(path)
|
||||
}
|
||||
return &Secret{
|
||||
K8sBase: base,
|
||||
|
Reference in New Issue
Block a user