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:
18
helm/serviceAccount.go
Normal file
18
helm/serviceAccount.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package helm
|
||||
|
||||
// ServiceAccount defines a service account
|
||||
type ServiceAccount struct {
|
||||
*K8sBase `yaml:",inline"`
|
||||
}
|
||||
|
||||
// NewServiceAccount creates a new service account with a given name.
|
||||
func NewServiceAccount(name string) *ServiceAccount {
|
||||
sa := &ServiceAccount{
|
||||
K8sBase: NewBase(),
|
||||
}
|
||||
sa.K8sBase.Kind = "ServiceAccount"
|
||||
sa.K8sBase.ApiVersion = "v1"
|
||||
sa.K8sBase.Metadata.Name = ReleaseNameTpl + "-" + name + "-cron-user"
|
||||
sa.K8sBase.Metadata.Labels[K+"/component"] = name
|
||||
return sa
|
||||
}
|
Reference in New Issue
Block a user