From 2578ffc9d0dd2a4e4540c532c155aacb2e2a16dc Mon Sep 17 00:00:00 2001 From: Maksim Fedotov Date: Thu, 1 Jul 2021 17:17:35 +0300 Subject: [PATCH] chore: v1beta1 goimports and formatting --- api/v1alpha1/zz_generated.deepcopy.go | 2 +- api/v1beta1/zz_generated.deepcopy.go | 2 +- pkg/webhook/pod/imagepullpolicy_pullpolicy.go | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index e258ce427..fad8b8f33 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -10,7 +10,7 @@ package v1alpha1 import ( corev1 "k8s.io/api/core/v1" networkingv1 "k8s.io/api/networking/v1" - "k8s.io/api/rbac/v1" + v1 "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/runtime" ) diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index 7147ed3cc..59ea7e0ec 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -10,7 +10,7 @@ package v1beta1 import ( corev1 "k8s.io/api/core/v1" networkingv1 "k8s.io/api/networking/v1" - "k8s.io/api/rbac/v1" + v1 "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/runtime" ) diff --git a/pkg/webhook/pod/imagepullpolicy_pullpolicy.go b/pkg/webhook/pod/imagepullpolicy_pullpolicy.go index d3b78c0e1..5d666b98e 100644 --- a/pkg/webhook/pod/imagepullpolicy_pullpolicy.go +++ b/pkg/webhook/pod/imagepullpolicy_pullpolicy.go @@ -38,7 +38,6 @@ func NewPullPolicy(tenant *capsulev1beta1.Tenant) PullPolicy { return nil } - var allowedPolicies []string for _, policy := range tenant.Spec.ImagePullPolicies { allowedPolicies = append(allowedPolicies, policy.String())