mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-10 22:40:24 +00:00
Kubernetes refactor (#2794)
Kubernetes backend refactoring and tests --------- Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -78,3 +78,15 @@ func getClientInsideOfCluster() (kubernetes.Interface, error) {
|
||||
|
||||
return kubernetes.NewForConfig(config)
|
||||
}
|
||||
|
||||
func newBool(val bool) *bool {
|
||||
ptr := new(bool)
|
||||
*ptr = val
|
||||
return ptr
|
||||
}
|
||||
|
||||
func newInt64(val int64) *int64 {
|
||||
ptr := new(int64)
|
||||
*ptr = val
|
||||
return ptr
|
||||
}
|
||||
|
Reference in New Issue
Block a user