Merge pull request #28208 from mtrmac/tls-behavior-basics

Add --tls-details for (pull, push, run, login, logout)
This commit is contained in:
Paul Holzinger
2026-03-06 16:33:38 +01:00
committed by GitHub
16 changed files with 635 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ import (
"go.podman.io/common/pkg/config"
"go.podman.io/common/pkg/secrets"
"go.podman.io/image/v5/manifest"
"go.podman.io/image/v5/pkg/cli/basetls"
"go.podman.io/storage"
"go.podman.io/storage/pkg/fileutils"
"go.podman.io/storage/pkg/idtools"
@@ -226,6 +227,14 @@ func WithRegistriesConf(path string) RuntimeOption {
}
}
// WithBaseTLSConfig sets the TLS _algorithm_ options for the runtime.
func WithBaseTLSConfig(baseTLSConfig *basetls.Config) RuntimeOption {
return func(rt *Runtime) error {
rt.imageContext.BaseTLSConfig = baseTLSConfig.TLSConfig()
return nil
}
}
// WithDatabaseBackend configures the runtime's database backend.
func WithDatabaseBackend(value string) RuntimeOption {
logrus.Debugf("Setting custom database backend: %q", value)