mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
Merge pull request #136199 from saschagrunert/master
Fix credential test by setting `AlwaysVerify` policy
This commit is contained in:
commit
62277ef5d2
1 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ import (
|
|||
internalapi "k8s.io/cri-api/pkg/apis"
|
||||
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
|
||||
"k8s.io/kubernetes/pkg/features"
|
||||
kubeletconfig "k8s.io/kubernetes/pkg/kubelet/apis/config"
|
||||
admissionapi "k8s.io/pod-security-admission/api"
|
||||
|
||||
e2ecommonnode "k8s.io/kubernetes/test/e2e/common/node"
|
||||
|
|
@ -44,6 +45,11 @@ var _ = SIGDescribe("Ensure Credential Pulled Images", func() {
|
|||
var testImage string
|
||||
var testSecret *v1.Secret
|
||||
var testNode string
|
||||
|
||||
tempSetCurrentKubeletConfig(f, func(ctx context.Context, initialConfig *kubeletconfig.KubeletConfiguration) {
|
||||
initialConfig.ImagePullCredentialsVerificationPolicy = string(kubeletconfig.AlwaysVerify)
|
||||
})
|
||||
|
||||
ginkgo.BeforeEach(func(ctx context.Context) {
|
||||
var err error
|
||||
_, is, err = getCRIClient()
|
||||
|
|
|
|||
Loading…
Reference in a new issue