personal/q3k/factorio: fix deploy selectors

Change-Id: Id116da7d2486f2a2a5206fe1f8b79283a545c4d2
This commit is contained in:
q3k 2020-04-01 02:21:45 +02:00
parent 59786c5dfa
commit 6e985c4530

View file

@ -35,7 +35,7 @@ local kube = import "../../../../kube/kube.libsonnet";
metadata:: {
namespace: cfg.namespace,
labels: {
"app.kubernetes.io/name": cfg.appName,
"app.kubernetes.io/name": factorio.makeName("factorio"),
"app.kubernetes.io/managed-by": "kubecfg",
"app.kubernetes.io/component": "factorio",
},
@ -101,7 +101,12 @@ local kube = import "../../../../kube/kube.libsonnet";
},
},
svc: kube.Service(factorio.makeName("factorio")) {
metadata+: factorio.metadata,
metadata+: factorio.metadata {
// hack - have to keep existing naming scheme otherwise we'd lose addresses
labels: {
"app.kubernetes.io/name": cfg.appName,
},
},
target_pod:: factorio.deployment.spec.template,
spec+: {
ports: [