Merge pull request #22299 from lvyaoting/main

[CI:DOCS] chore: fix function names in comment
This commit is contained in:
openshift-merge-bot[bot]
2024-04-09 18:00:15 +00:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@ -446,7 +446,7 @@ func (l psReporter) CreatedAt() string {
return l.Created.String()
}
// CreateHuman allows us to output the created time in human readable format
// CreatedHuman allows us to output the created time in human readable format
func (l psReporter) CreatedHuman() string {
return units.HumanDuration(time.Since(l.Created)) + " ago"
}

View File

@ -1469,7 +1469,7 @@ func (s *BoltState) GetContainerExitCodeTimeStamp(id string) (*time.Time, error)
})
}
// PruneExitCodes removes exit codes older than 5 minutes unless the associated
// PruneContainerExitCodes removes exit codes older than 5 minutes unless the associated
// container still exists.
func (s *BoltState) PruneContainerExitCodes() error {
if !s.valid {

View File

@ -2482,7 +2482,7 @@ func (c *Container) hasNamespace(namespace spec.LinuxNamespaceType) bool {
return false
}
// extractSecretToStorage copies a secret's data from the secrets manager to the container's static dir
// extractSecretToCtrStorage copies a secret's data from the secrets manager to the container's static dir
func (c *Container) extractSecretToCtrStorage(secr *ContainerSecret) error {
manager, err := c.runtime.SecretsManager()
if err != nil {

View File

@ -26,7 +26,7 @@ func (c *Container) pathAbs(path string) string {
return path
}
// resolveContainerPaths resolves the container's mount point and the container
// resolvePath resolves the container's mount point and the container
// path as specified by the user. Both may resolve to paths outside of the
// container's mount point when the container path hits a volume or bind mount.
//
@ -153,7 +153,7 @@ func isPathOnVolume(c *Container, containerPath string) bool {
return false
}
// findBindMounts checks if the specified containerPath matches the destination
// findBindMount checks if the specified containerPath matches the destination
// path of a Mount. Returns a matching Mount or nil.
func findBindMount(c *Container, containerPath string) *specs.Mount {
cleanedPath := filepath.Clean(containerPath)