diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-15 14:26:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 14:26:09 -0400 |
commit | 81ce39f10b1aec8b67e9b6e0e114ad63ff6c4596 (patch) | |
tree | ba2abcf770af76ba193aaa5c0072bb3f60e5d810 /pkg/specgen/generate/kube/kube.go | |
parent | b074e80351de2be0ea2888ac54f92bc542209a36 (diff) | |
parent | 1685c2dc36d3595fabc53451b60909937c64505b (diff) | |
download | podman-81ce39f10b1aec8b67e9b6e0e114ad63ff6c4596.tar.gz podman-81ce39f10b1aec8b67e9b6e0e114ad63ff6c4596.tar.bz2 podman-81ce39f10b1aec8b67e9b6e0e114ad63ff6c4596.zip |
Merge pull request #10044 from Luap99/fix-10015
podman play kube apply correct log driver
Diffstat (limited to 'pkg/specgen/generate/kube/kube.go')
-rw-r--r-- | pkg/specgen/generate/kube/kube.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/specgen/generate/kube/kube.go b/pkg/specgen/generate/kube/kube.go index 31ed3fd7c..7aeec9d41 100644 --- a/pkg/specgen/generate/kube/kube.go +++ b/pkg/specgen/generate/kube/kube.go @@ -98,6 +98,8 @@ type CtrSpecGenOptions struct { NetNSIsHost bool // SecretManager to access the secrets SecretsManager *secrets.SecretsManager + // LogDriver which should be used for the container + LogDriver string } func ToSpecGen(ctx context.Context, opts *CtrSpecGenOptions) (*specgen.SpecGenerator, error) { @@ -115,6 +117,10 @@ func ToSpecGen(ctx context.Context, opts *CtrSpecGenOptions) (*specgen.SpecGener s.Pod = opts.PodID + s.LogConfiguration = &specgen.LogConfig{ + Driver: opts.LogDriver, + } + setupSecurityContext(s, opts.Container) // Since we prefix the container name with pod name to work-around the uniqueness requirement, |