kube/mirko: allow specifying securityContext

Change-Id: Iebafd6b1480ed1e1c1f3cf83361376987720766e
changes/07/207/1
q3k 2020-02-15 12:38:39 +01:00
parent 80c9b015d0
commit aa8c2b0cca
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,7 @@ local kube = import "kube.libsonnet";
main: cfg.container,
},
nodeSelector: null,
securityContext: {},
container:: error "container(s) must be set",
ports:: {
publicHTTP: {}, // name -> { port: no, dns: fqdn }
@ -167,6 +168,7 @@ local kube = import "kube.libsonnet";
nodeSelector: cfg.nodeSelector,
serviceAccountName: component.sa.metadata.name,
securityContext: cfg.securityContext,
},
},
},