Commit 79a2e359 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #44024 from zhangxiaoyu-zidif/egnew

Automatic merge from submit-queue fix the typos of e.g. fix the typos of e.g. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
parents a481a5bc 932ece5c
...@@ -551,7 +551,7 @@ func calculateStatus(allRSs []*extensions.ReplicaSet, newRS *extensions.ReplicaS ...@@ -551,7 +551,7 @@ func calculateStatus(allRSs []*extensions.ReplicaSet, newRS *extensions.ReplicaS
totalReplicas := deploymentutil.GetReplicaCountForReplicaSets(allRSs) totalReplicas := deploymentutil.GetReplicaCountForReplicaSets(allRSs)
unavailableReplicas := totalReplicas - availableReplicas unavailableReplicas := totalReplicas - availableReplicas
// If unavailableReplicas is negative, then that means the Deployment has more available replicas running than // If unavailableReplicas is negative, then that means the Deployment has more available replicas running than
// desired, eg. whenever it scales down. In such a case we should simply default unavailableReplicas to zero. // desired, e.g. whenever it scales down. In such a case we should simply default unavailableReplicas to zero.
if unavailableReplicas < 0 { if unavailableReplicas < 0 {
unavailableReplicas = 0 unavailableReplicas = 0
} }
......
...@@ -1655,7 +1655,7 @@ func TestRollingUpdater_readyPods(t *testing.T) { ...@@ -1655,7 +1655,7 @@ func TestRollingUpdater_readyPods(t *testing.T) {
oldPods []bool oldPods []bool
newPods []bool newPods []bool
// deletions - should be less then the size of the respective slice above // deletions - should be less then the size of the respective slice above
// eg. len(oldPods) > oldPodDeletions && len(newPods) > newPodDeletions // e.g. len(oldPods) > oldPodDeletions && len(newPods) > newPodDeletions
oldPodDeletions int oldPodDeletions int
newPodDeletions int newPodDeletions int
// specify additional time to wait for deployment to wait on top of the // specify additional time to wait for deployment to wait on top of the
......
...@@ -23,7 +23,7 @@ func NewFakeProcFS() ProcFSInterface { ...@@ -23,7 +23,7 @@ func NewFakeProcFS() ProcFSInterface {
} }
// GetFullContainerName gets the container name given the root process id of the container. // GetFullContainerName gets the container name given the root process id of the container.
// Eg. If the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx, // E.g. if the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx,
// return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy. // return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy.
func (fakePfs *FakeProcFS) GetFullContainerName(pid int) (string, error) { func (fakePfs *FakeProcFS) GetFullContainerName(pid int) (string, error) {
return "", nil return "", nil
......
...@@ -53,7 +53,7 @@ func containerNameFromProcCgroup(content string) (string, error) { ...@@ -53,7 +53,7 @@ func containerNameFromProcCgroup(content string) (string, error) {
} }
// getFullContainerName gets the container name given the root process id of the container. // getFullContainerName gets the container name given the root process id of the container.
// Eg. If the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx, // E.g. if the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx,
// return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy. // return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy.
func (pfs *ProcFS) GetFullContainerName(pid int) (string, error) { func (pfs *ProcFS) GetFullContainerName(pid int) (string, error) {
filePath := path.Join("/proc", strconv.Itoa(pid), "cgroup") filePath := path.Join("/proc", strconv.Itoa(pid), "cgroup")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment