"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/specgen/generate/container_create.go" between
podman-3.2.2.tar.gz and podman-3.2.3.tar.gz

About: podman (previous name "libpod") provides a library for applications looking to use the Container Pod concept, popularized by Kubernetes. Podman manages pods, containers, container images, and container volumes.

container_create.go  (podman-3.2.2):container_create.go  (podman-3.2.3)
skipping to change at line 404 skipping to change at line 404
} }
options = append(options, libpod.WithRestartPolicy(s.RestartPolic y)) options = append(options, libpod.WithRestartPolicy(s.RestartPolic y))
} }
if s.ContainerHealthCheckConfig.HealthConfig != nil { if s.ContainerHealthCheckConfig.HealthConfig != nil {
options = append(options, libpod.WithHealthCheck(s.ContainerHealt hCheckConfig.HealthConfig)) options = append(options, libpod.WithHealthCheck(s.ContainerHealt hCheckConfig.HealthConfig))
logrus.Debugf("New container has a health check") logrus.Debugf("New container has a health check")
} }
if len(s.Secrets) != 0 { if len(s.Secrets) != 0 {
options = append(options, libpod.WithSecrets(s.Secrets)) manager, err := rt.SecretsManager()
if err != nil {
return nil, err
}
var secrs []*libpod.ContainerSecret
for _, s := range s.Secrets {
secr, err := manager.Lookup(s.Source)
if err != nil {
return nil, err
}
secrs = append(secrs, &libpod.ContainerSecret{
Secret: secr,
UID: s.UID,
GID: s.GID,
Mode: s.Mode,
})
}
options = append(options, libpod.WithSecrets(secrs))
} }
if len(s.EnvSecrets) != 0 { if len(s.EnvSecrets) != 0 {
options = append(options, libpod.WithEnvSecrets(s.EnvSecrets)) options = append(options, libpod.WithEnvSecrets(s.EnvSecrets))
} }
if len(s.DependencyContainers) > 0 { if len(s.DependencyContainers) > 0 {
deps := make([]*libpod.Container, 0, len(s.DependencyContainers)) deps := make([]*libpod.Container, 0, len(s.DependencyContainers))
for _, ctr := range s.DependencyContainers { for _, ctr := range s.DependencyContainers {
depCtr, err := rt.LookupContainer(ctr) depCtr, err := rt.LookupContainer(ctr)
 End of changes. 1 change blocks. 
1 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)