summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-05 04:44:35 -0400
committerGitHub <noreply@github.com>2022-05-05 04:44:35 -0400
commit8081d921b2bf39a418155a6822e55f3392ad63f6 (patch)
treec59534a6678522e57afabe54be6bde3ca5a6768b /libpod
parenta3908b009a16c4a946a639e90ef49f609ea68aa8 (diff)
parent6ea122f6e07f8b49f7a07884556ea697827a5052 (diff)
downloadpodman-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.go14
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
+}