diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-05 04:44:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 04:44:35 -0400 |
commit | 8081d921b2bf39a418155a6822e55f3392ad63f6 (patch) | |
tree | c59534a6678522e57afabe54be6bde3ca5a6768b /libpod | |
parent | a3908b009a16c4a946a639e90ef49f609ea68aa8 (diff) | |
parent | 6ea122f6e07f8b49f7a07884556ea697827a5052 (diff) | |
download | podman-8081d921b2bf39a418155a6822e55f3392ad63f6.tar.gz podman-8081d921b2bf39a418155a6822e55f3392ad63f6.tar.bz2 podman-8081d921b2bf39a418155a6822e55f3392ad63f6.zip |
Merge pull request #14119 from openshift-cherrypick-robot/cherry-pick-14037-to-v4.1
[v4.1] Report correct RemoteURI
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index 6c2323d88..78ff8ce94 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -1144,7 +1144,7 @@ func (r *Runtime) getVolumePlugin(name string) (*plugin.VolumePlugin, error) { return plugin.GetVolumePlugin(name, pluginPath) } -// GetSecretsStoreageDir returns the directory that the secrets manager should take +// GetSecretsStorageDir returns the directory that the secrets manager should take func (r *Runtime) GetSecretsStorageDir() string { return filepath.Join(r.store.GraphRoot(), "secrets") } @@ -1192,7 +1192,17 @@ func (r *Runtime) Network() nettypes.ContainerNetwork { return r.network } -// Network returns the network interface which is used by the runtime +// GetDefaultNetworkName returns the network interface which is used by the runtime func (r *Runtime) GetDefaultNetworkName() string { return r.config.Network.DefaultNetwork } + +// RemoteURI returns the API server URI +func (r *Runtime) RemoteURI() string { + return r.config.Engine.RemoteURI +} + +// SetRemoteURI records the API server URI +func (r *Runtime) SetRemoteURI(uri string) { + r.config.Engine.RemoteURI = uri +} |