1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-09-16 08:46:30 +02:00

chore: fix some function names in comment (#4769)

Signed-off-by: damuzhi0810 <rust@before.tech>
This commit is contained in:
David Muthy
2025-01-24 01:11:36 +08:00
committed by GitHub
parent 37dc9e92ae
commit 437d6a74a5
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ func getClientOutOfCluster() (kubernetes.Interface, error) {
return kubernetes.NewForConfig(config) return kubernetes.NewForConfig(config)
} }
// getClient returns a k8s client set to the request from inside of cluster. // getClientInsideOfCluster returns a k8s client set to the request from inside of cluster.
func getClientInsideOfCluster() (kubernetes.Interface, error) { func getClientInsideOfCluster() (kubernetes.Interface, error) {
config, err := rest.InClusterConfig() config, err := rest.InClusterConfig()
if err != nil { if err != nil {

View File

@@ -319,7 +319,7 @@ func (c *client) Pipeline(repoID, pipeline int64) (*Pipeline, error) {
return out, err return out, err
} }
// Pipeline returns the latest repository pipeline. // PipelineLast returns the latest repository pipeline.
func (c *client) PipelineLast(repoID int64, opt PipelineLastOptions) (*Pipeline, error) { func (c *client) PipelineLast(repoID int64, opt PipelineLastOptions) (*Pipeline, error) {
out := new(Pipeline) out := new(Pipeline)
uri, _ := url.Parse(fmt.Sprintf(pathPipeline, c.addr, repoID, "latest")) uri, _ := url.Parse(fmt.Sprintf(pathPipeline, c.addr, repoID, "latest"))