Merge pull request #912 from Random-Liu/add-hostname-env-integration-test
Add hostname env integration test.
This commit is contained in:
@@ -126,6 +126,13 @@ func WithPodLogDirectory(dir string) PodSandboxOpts {
|
||||
}
|
||||
}
|
||||
|
||||
// Add pod hostname.
|
||||
func WithPodHostname(hostname string) PodSandboxOpts {
|
||||
return func(p *runtime.PodSandboxConfig) {
|
||||
p.Hostname = hostname
|
||||
}
|
||||
}
|
||||
|
||||
// PodSandboxConfig generates a pod sandbox config for test.
|
||||
func PodSandboxConfig(name, ns string, opts ...PodSandboxOpts) *runtime.PodSandboxConfig {
|
||||
config := &runtime.PodSandboxConfig{
|
||||
|
Reference in New Issue
Block a user