Compare commits
No commits in common. "a890a979e95a0122d3466648aae26c551aaa228b" and "7697420c3097b3bc7892883971af7caff965f122" have entirely different histories.
a890a979e9
...
7697420c30
@ -12,7 +12,7 @@ envSecretRender = lambda e: Envs {
|
||||
metadata = {
|
||||
name = "app-sevret"
|
||||
}
|
||||
stringData = e.envs
|
||||
data = e.envs
|
||||
}
|
||||
[secret]
|
||||
}
|
||||
|
29
main.k
29
main.k
@ -2,20 +2,18 @@ import base
|
||||
import yaml
|
||||
import manifests
|
||||
|
||||
apps = [
|
||||
base.App {
|
||||
name = "nginxxx"
|
||||
replicas = 2
|
||||
image = "nginx"
|
||||
port = 80
|
||||
}
|
||||
base.App {
|
||||
name = "caddyy"
|
||||
replicas = 2
|
||||
image = "caddy"
|
||||
port = 80
|
||||
}
|
||||
]
|
||||
base.App {
|
||||
name = "myapp"
|
||||
replicas = 2
|
||||
image = "myimage"
|
||||
port = 8080
|
||||
}
|
||||
base.App {
|
||||
name = "myapp122"
|
||||
replicas = 2
|
||||
image = "myimage"
|
||||
port = 8080
|
||||
}
|
||||
|
||||
envs = base.Envs {
|
||||
envs = {
|
||||
@ -24,8 +22,9 @@ envs = base.Envs {
|
||||
}
|
||||
}
|
||||
|
||||
deploys = sum([base.appRender(a) for a in apps], [])
|
||||
deploys = sum([base.appRender(a) for a in base.App.instances()], [])
|
||||
# print(yaml.encode(deploys))
|
||||
|
||||
apps_manifests = [base.envInjector(envs, deploy) for deploy in deploys]
|
||||
|
||||
env_manifests = [base.envSecretRender(a) for a in base.Envs.instances()]
|
||||
|
Loading…
x
Reference in New Issue
Block a user