mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-30 19:19:07 +00:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
commit
e5ca83e190
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue