mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-06 12:40:10 +00:00
fix: bug annotations (#3255)
Fix Issue: https://github.com/woodpecker-ci/woodpecker/issues/3254 Co-authored-by: elias.souza <elias.souza@quintoandar.com.br>
This commit is contained in:
@@ -32,6 +32,7 @@ import (
|
|||||||
"k8s.io/client-go/informers"
|
"k8s.io/client-go/informers"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/kubernetes/scheme"
|
"k8s.io/client-go/kubernetes/scheme"
|
||||||
|
|
||||||
// To authenticate to GCP K8s clusters
|
// To authenticate to GCP K8s clusters
|
||||||
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
|
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
@@ -163,7 +164,7 @@ func (e *kube) getConfig() *config {
|
|||||||
}
|
}
|
||||||
c := *e.config
|
c := *e.config
|
||||||
c.PodLabels = maps.Clone(e.config.PodLabels)
|
c.PodLabels = maps.Clone(e.config.PodLabels)
|
||||||
c.PodAnnotations = maps.Clone(e.config.PodLabels)
|
c.PodAnnotations = maps.Clone(e.config.PodAnnotations)
|
||||||
c.ImagePullSecretNames = slices.Clone(e.config.ImagePullSecretNames)
|
c.ImagePullSecretNames = slices.Clone(e.config.ImagePullSecretNames)
|
||||||
return &c
|
return &c
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user