mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 19:31:05 +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:
parent
188d6ed16c
commit
32a1199519
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue