mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
minor correction in comments
This commit is contained in:
parent
4e94144d1e
commit
a4bfc732f7
@ -141,7 +141,7 @@ func ExpandContainerCommandOnlyStatic(containerCommand []string, envs []v1.EnvVa
|
|||||||
return command
|
return command
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExpandContainerVolumeMounts expands the subpath of the given VolumeMount by replacing variable references `with the values of given EnvVar.
|
// ExpandContainerVolumeMounts expands the subpath of the given VolumeMount by replacing variable references with the values of given EnvVar.
|
||||||
func ExpandContainerVolumeMounts(mount v1.VolumeMount, envs []EnvVar) (string, error) {
|
func ExpandContainerVolumeMounts(mount v1.VolumeMount, envs []EnvVar) (string, error) {
|
||||||
|
|
||||||
envmap := EnvVarsToMap(envs)
|
envmap := EnvVarsToMap(envs)
|
||||||
|
@ -260,7 +260,7 @@ const (
|
|||||||
ContainerStateRunning ContainerState = "running"
|
ContainerStateRunning ContainerState = "running"
|
||||||
// ContainerStateExited indicates a container that ran and completed ("stopped" in other contexts, although a created container is technically also "stopped").
|
// ContainerStateExited indicates a container that ran and completed ("stopped" in other contexts, although a created container is technically also "stopped").
|
||||||
ContainerStateExited ContainerState = "exited"
|
ContainerStateExited ContainerState = "exited"
|
||||||
// ContainerStateUnknown encompasses all the states that we currently don't care (like restarting, paused, dead).
|
// ContainerStateUnknown encompasses all the states that we currently don't care about (like restarting, paused, dead).
|
||||||
ContainerStateUnknown ContainerState = "unknown"
|
ContainerStateUnknown ContainerState = "unknown"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user